/* University credential UI. Load fonts.css, tokens.css, app.css, skin.css, brand.css in that order. */
*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding-bottom: a control focused near the bottom of the window (a tall text area) is scrolled fully into view. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 7rem; scroll-padding-bottom: 25vh; scrollbar-color: var(--border) transparent; scrollbar-width: thin; }
/* overflow-wrap: a word or address longer than the line breaks instead of widening the page (WCAG 1.4.10). */
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--fg); background: var(--page-glow), var(--bg); font: 1rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
a { color: var(--link); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:where(a, button, input, textarea, select, summary, [role="region"][tabindex="0"]):focus-visible { outline: 3px solid var(--focus-color); outline-offset: 4px; }
:where(h1, h2, h3) { color: var(--fg); font-family: var(--font-display); letter-spacing: -.035em; line-height: 1.25; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 3.1vw, 2.8rem); font-weight: 650; margin: .2rem 0 1.5rem; }
h2 { font-size: 1.3rem; font-weight: 600; margin: 2rem 0 1rem; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: .7rem 0 1rem; }
code, pre { font-family: var(--font-mono); font-size: .875em; overflow-wrap: anywhere; }
img, svg { max-width: 100%; }
.container { width: min(86rem, calc(100% - 4rem)); margin-inline: auto; }
main.container { flex: 1; padding-block: 2.5rem 4rem; min-width: 0; }
main:focus { outline: none; }
main > *, .admin, .credential-grid > * { min-width: 0; }
.skip-link { position: absolute; left: -9999px; top: .5rem; padding: .75rem 1rem; background: var(--surface); color: var(--fg); z-index: 100; border-radius: var(--radius-sm); }
.skip-link:focus { left: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Identity and navigation */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); border-bottom: 1px solid var(--border); }
.header-inner { min-height: 6rem; display: flex; align-items: center; gap: 1.4rem; padding-block: 1rem; }
.brand { display: flex; align-items: center; gap: .8rem; min-width: 0; flex-shrink: 0; max-width: 24rem; text-decoration: none; color: var(--fg); }
.brand-logo { width: auto; max-width: 12rem; height: 2.5rem; object-fit: contain; object-position: left center; flex-shrink: 0; }
.brand-monogram { display: grid; place-items: center; width: 2.8rem; height: 3rem; flex-shrink: 0; background: var(--brand); color: var(--on-brand); border-radius: .7rem .7rem 1.2rem 1.2rem; font: 600 1.4rem var(--font-display); }
.brand-label { display: flex; flex-direction: column; max-width: 16rem; }
.brand-name { font-family: var(--font-display); font-size: 1rem; font-weight: 650; line-height: 1.35; letter-spacing: -.025em; }
.brand-caption { color: var(--muted); font-size: .75rem; margin-top: .25rem; font-weight: 400; }
.main-nav { margin-left: auto; }
.site-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: .2rem; }
.main-nav a, .site-header .link-button { display: block; padding: .55rem .6rem; border: 0; border-radius: var(--radius-button); color: var(--muted); text-decoration: none; font-size: .875rem; font-weight: 500; white-space: nowrap; background: transparent; }
.main-nav a:hover, .site-header .link-button:hover { color: var(--fg); background: var(--surface-soft); }
.main-nav a[aria-current] { color: var(--fg); background: var(--surface-soft); }
.main-nav a[href*="/login"] { background: var(--action-bg); color: var(--on-brand); padding-inline: 1.15rem; font-weight: 700; }
.lang-switch { border-left: 1px solid var(--border); padding-left: 1rem; }
.lang-switch ul { gap: .5rem !important; }
.lang-switch a { text-decoration: none; font-size: .75rem; color: var(--muted); }
.lang-switch a[aria-current] { color: var(--fg); font-weight: 700; text-decoration: underline; text-underline-offset: .4rem; }
.inline-form { display: inline; margin: 0; }
/* A labelled form after a one-button form in the same cell (Approvals: the reason and Reject below Approve and issue). */
.inline-form + .inline-form.stack { margin-top: 1rem; }
.link-button { background: transparent; color: var(--link); border: 0; padding: 0; font: inherit; cursor: pointer; box-shadow: none; }
.site-footer { border-top: 1px solid var(--border); color: var(--muted); padding: 1.4rem 0; font-size: .8125rem; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }
.subnav { margin: 0 0 1.8rem; }
.subnav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.subnav a { display: inline-flex; align-items: center; gap: .7rem; padding: .6rem .9rem; border: 1px solid transparent; color: var(--muted); text-decoration: none; border-radius: var(--radius-sm); font-size: .875rem; }
.subnav a:hover { background: var(--surface-soft); color: var(--fg); }
.subnav a[aria-current] { background: color-mix(in srgb, var(--brand) 13%, var(--surface)); color: var(--link); border-color: color-mix(in srgb, var(--brand) 28%, var(--border)); font-weight: 650; }
.nav-caption { display: block; color: var(--muted); font-size: .6875rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; padding: .6rem .9rem 1.1rem; }
.nav-symbol { width: 1rem; height: 1rem; flex-shrink: 0; background: currentColor; mask: var(--nav-icon, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='6' height='6' rx='1'/%3E%3Crect x='14' y='4' width='6' height='6' rx='1'/%3E%3Crect x='4' y='14' width='6' height='6' rx='1'/%3E%3Crect x='14' y='14' width='6' height='6' rx='1'/%3E%3C/g%3E%3C/svg%3E")) center/contain no-repeat; }
[data-section="achievements"], [data-section="credentials"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='12' cy='9' r='5'/%3E%3Cpath d='m8 13-1 8 5-3 5 3-1-8'/%3E%3C/g%3E%3C/svg%3E"); }
[data-section="issue"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4v16M4 12h16' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E"); }
[data-section="users"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3 21v-3a6 6 0 0 1 12 0v3M16 5a3 3 0 0 1 0 6m3 10v-3a6 6 0 0 0-3-5'/%3E%3C/g%3E%3C/svg%3E"); }
[data-section="api-keys"], [data-section="keys"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='8' cy='9' r='5'/%3E%3Cpath d='m12 13 8 8 2-2-2-2 1-1-2-2-1 1-3-3'/%3E%3C/g%3E%3C/svg%3E"); }
[data-section="pathways"], [data-section="automation"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='5' cy='5' r='2'/%3E%3Ccircle cx='19' cy='12' r='2'/%3E%3Ccircle cx='5' cy='19' r='2'/%3E%3Cpath d='M7 5h5a4 4 0 0 1 4 4v3m1 0h-5a4 4 0 0 0-4 4v3'/%3E%3C/g%3E%3C/svg%3E"); }
[data-section="lti"], [data-section="agents"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.7'%3E%3Crect x='4' y='6' width='16' height='12' rx='3'/%3E%3Cpath d='M12 2v4M8 11v2m8-2v2m-7 2h6'/%3E%3C/g%3E%3C/svg%3E"); }
@media (min-width: 75rem) {
  body[data-area="admin"]:has(.admin-nav) main.container { width: calc(100% - var(--sidebar-width) - 4rem); max-width: 92rem; margin-left: calc(var(--sidebar-width) + 3rem); margin-right: 1rem; padding-right: 1rem; }
  .admin-nav { position: fixed; top: 7rem; bottom: 1rem; left: 1rem; width: var(--sidebar-width); overflow-y: auto; background: var(--nav-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem .65rem; margin: 0; scrollbar-color: var(--border) transparent; scrollbar-width: thin; }
  .admin-nav ul { display: flex; flex-direction: column; gap: .3rem; }
  .admin-nav li, .admin-nav a { width: 100%; }
  .admin-nav a { padding-block: .72rem; }
  body[data-area="admin"]:has(.admin-nav) .site-footer { margin-left: calc(var(--sidebar-width) + 2rem); }
}

/* Buttons and accessible form controls */
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.9rem; font: 650 .875rem/1.4 var(--font-body); border: 1px solid transparent; border-radius: var(--radius-button); padding: .75rem 1.3rem; background: var(--action-bg); color: var(--on-brand); text-decoration: none; cursor: pointer; transition: box-shadow .15s, transform .15s; }
button:hover, .button:hover { box-shadow: 0 5px 18px color-mix(in srgb, var(--brand) 20%, transparent); text-decoration: none; }
button:active, .button:active { transform: translateY(1px); }
button:disabled { opacity: .55; cursor: not-allowed; }
button.secondary, .button.secondary { background: var(--surface); border-color: var(--border); color: var(--fg); box-shadow: none; }
button.secondary:hover, .button.secondary:hover { border-color: color-mix(in srgb, var(--brand) 60%, var(--border)); background: var(--surface-soft); }
button.small, .button.small { padding: .45rem .85rem; min-height: 2.3rem; font-size: .8125rem; }
.button.block { display: flex; width: 100%; }
.button.linkedin { background: #0a66c2; color: #fff; }
.button.linkedin::before { content: "in"; display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 3px; background: #fff; color: #0a66c2; font: 800 .75rem/1 var(--font-body); }
:is(.button, button)[class*="icon-"]::before { content: ""; width: 1.1rem; height: 1.1rem; flex-shrink: 0; background: currentColor; mask: var(--icon) center/contain no-repeat; }
.icon-share { --icon: url("icons/share.svg"); } .icon-certificate { --icon: url("icons/certificate.svg"); } .icon-download { --icon: url("icons/download.svg"); }
.icon-about { --icon: url("icons/verified.svg"); } .icon-criteria { --icon: url("icons/criteria.svg"); } .icon-result { --icon: url("icons/date.svg"); }
.icon-skills { --icon: url("icons/skills.svg"); } .icon-evidence { --icon: url("icons/evidence.svg"); } .icon-facts { --icon: url("icons/institution.svg"); }
.stack { display: flex; flex-direction: column; gap: .6rem; max-width: 52rem; }
.stack button { align-self: flex-start; margin-top: .6rem; }
.field { margin-bottom: 1.25rem; }
label { display: block; font-size: .875rem; font-weight: 650; margin-bottom: .45rem; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea, select { width: 100%; max-width: 100%; min-height: 3rem; border: 1px solid var(--field-border); border-radius: var(--radius-sm); background: var(--surface); color: var(--fg); font: 400 1rem/1.5 var(--font-body); padding: .72rem .9rem; }
/* Full opacity: placeholder text keeps the 4.5:1 of --muted (WCAG 1.4.3). */
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[type="file"] { padding: .4rem !important; }
input[type="file"]::file-selector-button { border: 0; border-radius: calc(var(--radius-sm) - 3px); background: var(--surface-soft); color: var(--fg); padding: .55rem .8rem; margin-right: .7rem; font: 600 .8125rem var(--font-body); cursor: pointer; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); width: 1.05rem; height: 1.05rem; flex-shrink: 0; }
textarea { resize: vertical; min-height: 8rem; }
textarea[name="credential"], textarea[name="json"], textarea.secret-lines { font-family: var(--font-mono); font-size: .875rem; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%238b8497' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.7rem; }
.check-row { display: flex; gap: .65rem; align-items: baseline; font-weight: 400; margin: .65rem 0; }
fieldset, .admin-form fieldset { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.25rem; margin: .4rem 0 1.4rem; min-width: 0; }
legend { font: 600 .9375rem var(--font-display); padding: 0 .5rem; }
/* Administration forms: each fieldset is a card whose title sits inside it; short fields pair up in two columns, long
 * ones (text areas, tables, check rows, hints) take the full width. Pure CSS: the views keep their linear, accessible order. */
.admin form:not(.inline-form):not(.filters) { max-width: 64rem; }
.admin form fieldset { background: var(--surface); border-radius: var(--radius); padding: 1.4rem 1.6rem .6rem; box-shadow: var(--shadow); margin: 0 0 1.25rem; }
.admin form fieldset > legend { float: left; width: 100%; padding: 0 0 .9rem; margin: 0 0 1rem; border-bottom: 1px solid var(--border); font-size: 1.05rem; font-weight: 650; }
.admin form fieldset > :not(legend) { clear: both; }
.admin form fieldset fieldset { box-shadow: none; padding: 1rem 1.1rem .4rem; }
.admin form fieldset:has(> .field ~ .field) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; align-items: start; }
.admin form fieldset:has(> .field ~ .field) > :is(legend, p, .hint, .table-wrap, .check-row, label, fieldset, ul, ol, div:not(.field), .field:has(textarea), .field:has(.check-row), .field:has(input[type="checkbox"]), .field:has(fieldset)) { grid-column: 1 / -1; }
.admin form fieldset:disabled { opacity: .85; }
.admin form:not(.inline-form):not(.filters):has(> .field ~ .field) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1.6rem .8rem; box-shadow: var(--shadow); }
.admin form:not(.inline-form):not(.filters):has(> .field ~ .field) > :is(fieldset, p, .hint, .notice, .table-wrap, .check-row, label, ul, ol, div:not(.field), .field:has(textarea), .field:has(fieldset), button, .actions) { grid-column: 1 / -1; }
.admin form:not(.inline-form):not(.filters):has(> .field ~ .field) > fieldset { box-shadow: none; background: var(--surface-soft); border-color: transparent; }
.admin form:not(.inline-form):not(.filters):has(> .field ~ .field) > button { justify-self: start; margin: .4rem 0 .8rem; }
@media (max-width: 48rem) { .admin form fieldset:has(> .field ~ .field), .admin form:not(.inline-form):not(.filters):has(> .field ~ .field) { grid-template-columns: 1fr; } }
.hint, .muted { color: var(--muted); }
.hint { font-size: .8125rem; line-height: 1.65; }
.small { font-size: .8125rem; }
.lead { font-size: 1.0625rem; color: var(--muted); max-width: 56rem; line-height: 1.8; }
.prewrap { white-space: pre-line; }
.narrow { max-width: 34rem; }
.narrow:has(#login-title), .narrow:has(#confirm-title), .narrow:has(#msg-title), .narrow.lti-launch, .narrow:has(#lti-error-title) { margin: 2rem auto; padding: 2.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.narrow:has(#login-title)::before, .narrow.lti-launch::before { content: ""; display: block; width: 3.5rem; height: .3rem; background: var(--action-bg); border-radius: 5px; margin-bottom: 1.8rem; }
.separator { display: flex; align-items: center; gap: .9rem; color: var(--muted); font-size: .8125rem; margin-block: 1.5rem; }
.separator::before, .separator::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-block: 1.5rem; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; padding: 1.2rem; margin-bottom: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.filters .field { flex: 1; min-width: 10rem; margin-bottom: 0; }
.filters button { margin-bottom: .05rem; }
.chooser { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.chooser select { width: auto; flex: 1; }

/* Panels, cards and tables */
.notice { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-soft); padding: 1rem 1.25rem; font-size: .9375rem; }
.notice.error { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 30%, var(--border)); color: var(--bad); }
.notice.success { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 30%, var(--border)); color: var(--ok); }
.card-list { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem; }
.card, .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.panel { margin-block: 1.5rem; }
.panel h2, .card h3, .card h2 { margin-top: 0; }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.card .card-title, .wallet-card .card-title { font-size: 1.125rem; margin: 1rem 0 .7rem; line-height: 1.5; }
.card-title a { color: var(--fg); text-decoration: none; }
.card-title a:hover { color: var(--link); }
.wallet-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); }
.wallet-card { position: relative; overflow: hidden; padding: 0; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.wallet-card:has(a:hover) { box-shadow: 0 2px 4px #1a24330d, 0 16px 34px #1a24331a; transform: translateY(-2px); }
.wallet-art { display: grid; place-items: center; padding: 1.6rem 1rem 1.2rem; background: var(--art-bg); border-bottom: 1px solid var(--border); }
.wallet-art .achievement-image, .wallet-art .badge-art { width: 9.5rem; height: 9.5rem; max-width: none; padding: 0; background: none; border-radius: 0; object-fit: contain; filter: drop-shadow(0 8px 14px color-mix(in srgb, var(--fg) 16%, transparent)); }
.wallet-body { padding: 1.1rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: .15rem; }
.wallet-body .card-title { margin: .25rem 0 .2rem !important; font-size: 1.1rem; line-height: 1.3; }
.wallet-body .card-title a::after { content: ""; position: absolute; inset: 0; }
.wallet-body p { margin: .15rem 0; font-size: .875rem; }
.wallet-body .eyebrow { font-size: .6875rem; }
.wallet-count { margin-top: 0; }
.alumni-note { margin: 1.5rem 0; padding: 1rem 1.3rem 1rem 5.2rem; border: 1px dashed var(--field-border); border-radius: var(--radius); background: var(--surface) url("icons/wallet.svg") 1.4rem center / 2.6rem no-repeat; }
.alumni-note p { margin: 0; color: var(--muted); }
.alumni-note strong { display: block; color: var(--fg); margin-bottom: .2rem; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stats .stat { display: flex; flex-direction: column; justify-content: space-between; gap: .65rem; padding: 1.35rem; min-height: 8rem; }
.stat-value { font: 600 2.2rem/1.2 var(--font-display); letter-spacing: -.05em; color: var(--fg); }
.stat-label { color: var(--muted); font-size: .8125rem; }
.stat-label a { color: inherit; text-decoration: none; }
.stat-label a:hover { color: var(--link); text-decoration: underline; }
/* position: relative keeps absolutely positioned content (visually hidden column headers) inside the scrolling area; the
 * wide scroll padding makes the browser scroll a focused link or control of a table wider than the screen towards the
 * middle of the visible area instead of leaving it cut at the edge. */
.table-wrap { position: relative; max-width: 100%; overflow-x: auto; scroll-padding-inline: 45%; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin: 1rem 0 1.75rem; }
.data-table { border-collapse: collapse; width: 100%; font-size: .875rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 1rem; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--surface-soft); font-size: .75rem; letter-spacing: .01em; font-weight: 650; color: var(--muted); min-width: 6rem; }
dd > .notice, td > .notice { display: block; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: color-mix(in srgb, var(--surface-soft) 55%, transparent); }
.data-table.form-rows input, .data-table.form-rows select { min-width: 9rem; }
.data-table.audit td { font-size: .8125rem; overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; padding: .25rem .65rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: .75rem; font-weight: 600; line-height: 1.5; vertical-align: middle; }
.badge.ok, .badge-valid { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge-revoked { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.badge-expired, .badge-pending, .badge-suspended { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge-unknown { background: var(--surface-soft); color: var(--muted); }
.pager { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; font-size: .875rem; }
.panel.danger { border-color: color-mix(in srgb, var(--bad) 55%, var(--border)); }
.panel.danger button { background: var(--bad-bg); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--border)); }
.role-chip { display: inline-flex; align-items: center; gap: .4rem; margin: .25rem; }
.json-preview { max-width: 100%; overflow-x: auto; max-height: 32rem; padding: 1.2rem; border-radius: var(--radius-sm); background: var(--surface-soft); color: var(--muted); font-size: .8125rem; }
ul.plain { list-style: none; padding: 0; }
ul.plain li { margin: .6rem 0; }
.js-only { display: none; }
.js .js-only { display: inline-flex; }

/* Public home and credential proof */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(2rem, 5vw, 4.5rem); margin-bottom: 3rem; border: 1px solid var(--border); border-radius: calc(var(--radius) + 8px); background: var(--hero-bg); color: var(--hero-fg); }
.hero h1 { font-size: clamp(2.3rem, 4.5vw, 4rem); max-width: 21ch; color: var(--hero-fg); margin-bottom: 1.3rem; letter-spacing: -.05em; }
.hero .lead { max-width: 55ch; }
.hero::after { content: ""; position: absolute; z-index: -1; width: 22rem; height: 22rem; right: -9rem; bottom: -13rem; border: 3rem double color-mix(in srgb, var(--brand) 12%, transparent); border-radius: 50%; }
.cards { margin-block: 2rem 3rem; }
.did { overflow-wrap: anywhere; }
.status-banner { margin: 0 0 1.5rem; padding: .9rem 1.3rem; border-radius: var(--radius-sm); display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .9375rem; }
.status-banner strong { font-weight: 700; }
.status-valid { color: var(--ok); background: var(--ok-bg); }
.status-revoked, .status-unknown { color: var(--bad); background: var(--bad-bg); }
.status-expired, .status-pending, .status-suspended { color: var(--warn); background: var(--warn-bg); }
/* Credential page: badge-first hero, readable sections, plain-language verification (technical results in <details>). */
.credential-view main.container { padding-top: 0; }
.credential-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); margin: 0 calc(50% - 50vw) 2rem; padding: clamp(2rem, 4vw, 3.25rem) max(2rem, calc(50vw - 43rem)); background: var(--hero-image, none) right center / auto 100% no-repeat, var(--surface); border-bottom: 1px solid var(--border); }
.credential-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--surface) 0 48%, color-mix(in srgb, var(--surface) 55%, transparent) 72%, transparent); }
.credential-art { display: grid; place-items: center; }
.credential-art .achievement-image, .badge-art { width: 100%; max-width: 15rem; height: auto; aspect-ratio: 1; object-fit: contain; background: none; padding: 0; border-radius: 0; filter: drop-shadow(0 14px 22px color-mix(in srgb, var(--fg) 18%, transparent)); }
.badge-placeholder .bp-ring { fill: var(--badge-ring); } .badge-placeholder .bp-core { fill: var(--badge-core); } .badge-placeholder .bp-ribbon { fill: color-mix(in srgb, var(--badge-core) 80%, var(--fg)); }
.badge-placeholder .bp-check { fill: none; stroke: var(--badge-mark); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.credential-heading h1 { margin: .35rem 0 .9rem; max-width: 24ch; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 750; letter-spacing: -.04em; line-height: 1.08; }
.credential-heading p { margin: .25rem 0; }
.eyebrow { color: var(--hero-accent); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 750; margin: 0; }
.eyebrow-detail { color: var(--muted); font-weight: 650; }
.recipient { font-size: 1.15rem; font-weight: 600; color: var(--fg); }
.issuer-line { color: var(--muted); font-size: .9375rem; }
.verified-pill { display: inline-flex !important; align-items: center; gap: .55rem; margin: 1.1rem 0 .4rem !important; padding: .4rem 1rem .4rem .45rem; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: .9375rem; border: 1px solid color-mix(in srgb, var(--ok) 22%, transparent); }
.verified-pill span:last-child { color: var(--fg); opacity: .8; }
.verified-mark, .verify-seal { display: inline-block; flex-shrink: 0; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat; }
.hero-actions { margin: 1.25rem 0 0; }
.achievement-image { width: 120px; height: 120px; object-fit: contain; }
.achievement-image.small { width: 64px; height: 64px; }
.credential-grid { display: grid; grid-template-columns: minmax(0, 1fr) 23rem; gap: 1.75rem; align-items: start; }
.credential-main { display: flex; flex-direction: column; gap: 1rem; }
.achievement-main { max-width: 60rem; }
.cred-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem 1.6rem; box-shadow: var(--shadow); }
.cred-section :is(h2, h3) { display: flex; align-items: center; gap: .65rem; margin: 0 0 .7rem; font-size: 1.05rem; }
.cred-section :is(h2, h3)::before { content: ""; width: 1.35rem; height: 1.35rem; flex-shrink: 0; background: var(--hero-accent); mask: var(--icon) center/contain no-repeat; }
.cred-section > p { color: var(--fg); opacity: .88; margin: .4rem 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--fg); font-size: .875rem; font-weight: 550; text-decoration: none; }
a.chip:hover { border-color: var(--hero-accent); }
.chip-tag { font-size: .6875rem; font-weight: 750; letter-spacing: .04em; color: var(--hero-accent); background: var(--brand-soft); border-radius: 6px; padding: .1rem .4rem; }
.chips-quiet .chip { background: var(--surface-soft); border-color: transparent; color: var(--muted); }
.result-meter { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.result-score { margin: 0; display: flex; align-items: baseline; gap: .35rem; }
.result-score strong { font: 750 2.6rem/1 var(--font-display); letter-spacing: -.04em; }
.result-score span { color: var(--muted); font-weight: 600; }
.result-detail { flex: 1; min-width: 12rem; }
.result-name { font-weight: 650; margin: 0 0 .4rem; }
.result-detail .hint { margin: .3rem 0 0; }
meter { width: min(100%, 20rem); height: .7rem; border-radius: 99px; overflow: hidden; background: var(--surface-soft); border: 0; display: block; }
meter::-webkit-meter-bar { background: var(--surface-soft); border: 0; border-radius: 99px; height: .7rem; }
meter::-webkit-meter-optimum-value, meter::-webkit-meter-suboptimum-value { background: linear-gradient(90deg, var(--accent), var(--brand)); border-radius: 99px; }
meter::-moz-meter-bar { background: var(--brand); border-radius: 99px; }
.evidence-list { padding-left: 1.1rem; margin: .4rem 0; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .6rem 1.5rem; margin: .5rem 0 1rem; font-size: .9375rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.facts dd code { font-weight: 400; color: var(--muted); }
.credential-side { display: flex; flex-direction: column; gap: 1rem; }
.credential-side .panel { margin: 0; }
.credential-side .panel h2 { font-size: 1rem; margin-bottom: .9rem; }
.verify-headline { display: flex; gap: .8rem; align-items: center; margin: 0 0 .8rem; }
.verify-headline .verify-seal { width: 2.6rem; height: 2.6rem; box-shadow: 0 0 0 5px var(--ok-bg); }
.verify-headline strong { display: block; font-size: 1rem; }
.verify-panel:not(.status-valid) .verify-seal { background-color: var(--bad); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7 7 17' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E"); box-shadow: 0 0 0 5px var(--bad-bg); }
.verify-panel.status-pending .verify-seal, .verify-panel.status-suspended .verify-seal, .verify-panel.status-expired .verify-seal { background-color: var(--warn); box-shadow: 0 0 0 5px var(--warn-bg); }
.verify-panel.status-valid, .verify-panel.status-revoked, .verify-panel.status-pending, .verify-panel.status-unknown, .verify-panel.status-expired, .verify-panel.status-suspended { color: var(--fg); background: var(--surface); }
.plain-checks { list-style: none; margin: 0 0 1rem; padding: 0; }
.plain-check { display: flex; gap: .6rem; align-items: flex-start; padding: .4rem 0; font-size: .9rem; }
.plain-check::before { content: "✓"; flex-shrink: 0; display: grid; place-items: center; width: 1.2rem; height: 1.2rem; margin-top: .15rem; border-radius: 50%; background: var(--ok); color: #fff; font-size: .7rem; font-weight: 800; }
.plain-failed::before { content: "✗"; background: var(--bad); }
.plain-skipped::before { content: "–"; background: var(--muted); }
.checks { list-style: none; padding: 0; margin: 1rem 0; }
.check { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr) auto; gap: .25rem .55rem; padding: .8rem 0; border-bottom: 1px solid var(--border); font-size: .8125rem; }
.check:last-child { border: 0; }
.check-icon { font-weight: 700; }
.check-ok .check-icon, .check-ok .check-state { color: var(--ok); }
.check-failed .check-icon, .check-failed .check-state { color: var(--bad); }
.check-skipped .check-icon, .check-skipped .check-state { color: var(--muted); }
.check-message { grid-column: 2 / 4; color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; line-height: 1.6; }
.tech-details .checks { margin: .4rem 0 .8rem; }
.tech-details { border-top: 1px solid var(--border); padding-top: .8rem; font-size: .875rem; }
.tech-details summary { cursor: pointer; font-weight: 650; color: var(--fg); }
.tech-details[open] summary { margin-bottom: .4rem; }
.share-qr { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; align-items: center; }
.share-qr .qr { margin: 0; }
.share-qr .qr svg { width: 8.5rem; height: 8.5rem; }
.copy-row { display: flex; gap: .5rem; align-items: stretch; margin: 1rem 0 .75rem; }
.copy-row .copy-source { margin: 0; min-height: 2.75rem !important; font-size: .8125rem !important; }
.copy-row button { min-height: 2.75rem; white-space: nowrap; }
.qr { text-align: center; margin: 1.2rem 0; }
.qr svg { display: inline-block; width: 11rem; height: 11rem; background: #fff; border-radius: 12px; padding: .4rem; }
.qr figcaption { font-size: .8125rem; color: var(--muted); margin-top: .6rem; }
.copy-source { margin-bottom: .5rem; font-size: .8125rem; }
textarea.secret-lines { display: block; width: 100%; max-width: 40rem; white-space: pre; overflow-x: auto; }
.result { margin: 1.5rem 0; padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.result-ok { border-color: var(--ok); }
.result-ok h2 { color: var(--ok); }
.result-failed { border-color: var(--bad); }
.result-failed h2 { color: var(--bad); }
.problems li { overflow-wrap: anywhere; }
/* Long addresses (evidence, criteria and alignment links) and text people typed wrap instead of widening the page. */
.prewrap, .untrusted-text, .evidence-list a, .credential-main a, .achievement a { overflow-wrap: anywhere; }

/* Pathways share the components and status tokens. */
.pathway-groups { padding-left: 1.3rem; }
.pathway-group { margin-block: 1rem; }
.pathway-group h3 { margin-top: .4rem; }
.pathway-group li { margin-block: .7rem; }
.pathway-card h2 { font-size: 1.25rem; }
.pathway-list .pathway-card { max-width: 60rem; }
progress { accent-color: var(--brand); width: min(100%, 16rem); height: .7rem; border: 0; border-radius: 99px; overflow: hidden; background: var(--surface-soft); vertical-align: middle; margin: .5rem; }
progress::-webkit-progress-bar { background: var(--surface-soft); border-radius: 99px; }
progress::-webkit-progress-value { background: var(--action-bg); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--brand); }
.item-done { color: var(--ok); }

/* Print is legible independently of the screen skin. */
.print-view main.container { max-width: 68rem; }
.certificate { text-align: center; border: 3px double var(--border); border-radius: var(--radius); padding: 3.5rem 3rem; background: var(--surface); box-shadow: var(--shadow); }
.certificate-logo { width: 100px; height: 80px; object-fit: contain; }
.certificate-institution { font: 600 1.25rem var(--font-display); margin: .5rem 0 2rem; }
.certificate-certifies, .certificate-earned { color: var(--muted); font-size: .9375rem; }
.certificate-recipient { font: 600 2.4rem var(--font-display); margin: .75rem 0; }
.certificate-title { font: 600 1.8rem var(--font-display); color: var(--hero-accent); margin: .75rem 0 1.5rem; }
.certificate-description { max-width: 40rem; margin: 0 auto 1.5rem; }
.certificate-revoked { color: var(--bad); font-weight: 700; }
.certificate-verify { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 2rem; text-align: left; flex-wrap: wrap; }
.certificate-verify .qr svg { width: 8rem; height: 8rem; }
.certificate-url { font: .8125rem var(--font-mono); overflow-wrap: anywhere; }
/* Narrow screens: the administration sections scroll sideways. The wide scroll padding makes the browser bring a focused
 * section link fully into view, towards the middle of the list; the list padding leaves room for its focus outline. */
@media (max-width: 74.99rem) { .header-inner { flex-wrap: wrap; gap: 1rem; } .main-nav { order: 3; width: 100%; margin-left: 0; } .lang-switch { margin-left: auto; } .nav-caption, .nav-symbol { display: none; } .admin-nav ul { flex-wrap: nowrap; overflow-x: auto; padding: .5rem .5rem .6rem; scroll-padding-inline: 45%; } .admin-nav a { white-space: nowrap; } }
@media (max-width: 58rem) {
  .credential-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.25rem; padding: 1.75rem 1rem 2rem; background: var(--surface); }
  .credential-hero::before { display: none; }
  .credential-art .achievement-image, .credential-art .badge-art { max-width: 11rem; }
  .credential-heading h1 { margin-inline: auto; font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .verified-pill { flex-wrap: wrap; justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-actions .button { flex: 1 1 100%; }
  .credential-grid { grid-template-columns: 1fr; gap: .5rem; } .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .credential-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; } }
@media (max-width: 40rem) {
  html { scroll-padding-top: 2rem; } .container { width: calc(100% - 2rem); } main.container { padding-block: 1.75rem 3rem; } .site-header { position: static; } .header-inner { gap: .8rem; padding-block: 1rem .65rem; } .brand { max-width: calc(100% - 4rem); } .brand-label { max-width: 15rem; } .brand-logo { width: 50px; height: 40px; } .brand-name { font-size: .9rem; } .brand-caption { font-size: .6875rem; } .lang-switch { width: 100%; padding: 0; border: 0; order: 4; } .lang-switch a { font-size: .6875rem; } .main-nav { overflow: visible; } .main-nav ul { width: auto; flex-wrap: wrap !important; } .main-nav a, .site-header .link-button { padding: .55rem .7rem; font-size: .8125rem; } h1 { font-size: 1.8rem; } .hero { padding: 1.75rem; margin-bottom: 2rem; } .hero h1 { font-size: 2.2rem; } .lead { font-size: .9375rem; } .card, .panel { padding: 1.2rem; } .stats { gap: .75rem; } .stats .stat { padding: 1.05rem; min-height: 7rem; } .stat-value { font-size: 1.8rem; } .stat-label { font-size: .75rem; } .data-table { min-width: 38rem; } .data-table th, .data-table td { padding: .85rem; } .filters { padding: 1rem; } .narrow:has(#login-title), .narrow:has(#confirm-title), .narrow:has(#msg-title) { padding: 1.5rem; margin: .5rem auto; } .facts { grid-template-columns: 1fr; gap: .15rem; } .facts dd { margin-bottom: .7rem; } .credential-header h1 { font-size: 1.8rem; } .certificate { padding: 1.5rem; } .certificate-recipient { font-size: 1.8rem; } .certificate-title { font-size: 1.4rem; }
}
@media print {
  :root { --bg: #fff !important; --fg: #111 !important; --muted: #444 !important; --surface: #fff !important; --surface-soft: #f5f5f5 !important; --border: #aaa !important; --hero-accent: #111 !important; color-scheme: light !important; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .site-header, .site-footer, .skip-link, .no-print, .admin-nav, .lang-switch, button { display: none !important; }
  main.container, body[data-area="admin"]:has(.admin-nav) main.container { margin: 0; padding: 0; max-width: none; width: 100%; }
  .certificate { box-shadow: none; border-color: #333; margin: 0; min-height: 85vh; display: flex; flex-direction: column; justify-content: center; break-inside: avoid; }
  .credential-side { display: none; } .credential-grid { display: block; } a { color: #111; text-decoration: none; }
  @page { size: A4 landscape; margin: 12mm; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* reports dashboard */
/* Administration overview (/admin, views/reports.ts): period choice, KPI notes, stacked bar chart (inline SVG styled by
 * these classes only: CSP forbids style attributes), legend swatches, most issued achievements. */
.report-range { color: var(--muted); font-size: .875rem; }
.stat-note { line-height: 1.4; }
.report-chart { margin: 1rem 0; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.report-chart .chart { display: block; width: 100%; height: auto; }
.chart-grid { stroke: var(--border); stroke-width: 1; }
.chart-axis-line { stroke: var(--muted); stroke-width: 1; }
.chart-axis, .chart-label, .chart-total { fill: var(--muted); font-family: var(--font-body); font-size: 12px; }
.chart-total { fill: var(--fg); font-weight: 600; }
.chart-bar { stroke: var(--surface); stroke-width: 1; }
.chart-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: .5rem 0 1rem; padding: 0; font-size: .875rem; }
.chart-swatch { display: inline-block; width: .9rem; height: .9rem; margin-right: .45rem; border-radius: 3px; vertical-align: -.12em; }
.cat-lms { fill: var(--brand); background: var(--brand); }
.cat-pathway { fill: var(--accent); background: var(--accent); }
.cat-staff { fill: var(--ok); background: var(--ok); }
.cat-bulk { fill: var(--warn); background: var(--warn); }
.cat-api { fill: color-mix(in srgb, var(--brand) 45%, var(--surface)); background: color-mix(in srgb, var(--brand) 45%, var(--surface)); }
.cat-other { fill: var(--muted); background: var(--muted); }
.report-data { margin-bottom: 1.5rem; }
.report-data summary { cursor: pointer; font-weight: 600; }
.report-achievement { display: inline-flex; align-items: center; gap: .75rem; }
.report-achievement img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; flex: none; }
/* end reports dashboard */

/* ==== Media library and certificate templates (views/admin-media.ts, achievement editor) — begin ====
   Functional styles only; the designer restyles them later. */
.media-grid { list-style: none; margin: 1rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; }
.media-card { display: flex; flex-direction: column; gap: .35rem; padding: .75rem; }
.media-card a { display: flex; flex-direction: column; gap: .4rem; }
.media-card-name { overflow-wrap: anywhere; font-weight: 600; }
.media-thumb { display: block; width: 100%; height: 8rem; object-fit: contain; background: var(--surface-soft); border-radius: var(--radius-sm); }
.media-detail { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; margin-bottom: 1.5rem; }
.media-preview { margin: 0; flex: 0 1 20rem; max-width: 100%; padding: 1rem; background: var(--surface-soft); border-radius: var(--radius-sm); }
.media-preview img { display: block; width: 100%; height: auto; max-height: 20rem; object-fit: contain; }
.media-detail .facts { flex: 1 1 18rem; }
.media-hash { overflow-wrap: anywhere; }
.media-picker { border: 0; padding: 0; margin: 0 0 1rem; }
.media-choices { list-style: none; margin: .5rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .75rem; }
.media-choice { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; height: 100%; padding: .6rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.media-choice:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.media-choice span { overflow-wrap: anywhere; font-size: .875rem; }
.media-choice .media-thumb { height: 5.5rem; }
.media-choice img:not(.media-thumb) { display: block; width: 100%; height: 5.5rem; object-fit: contain; background: var(--surface-soft); border-radius: var(--radius-sm); }
.media-choice-none { justify-content: flex-start; }
.layout-picker { border: 0; padding: 0; margin: 0 0 1rem; }
.choice-cards { list-style: none; margin: .5rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .75rem; }
.choice-card { display: flex; flex-direction: column; gap: .4rem; height: 100%; padding: .75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.choice-title { font-weight: 600; }
.cert-thumb { display: block; width: 8rem; height: auto; max-width: 100%; }
.cert-thumb-portrait { width: 4.8rem; }
.cert-table td:first-child { width: 9rem; }
.cert-preview-frame { display: block; width: 100%; max-width: 64rem; aspect-ratio: 279.4 / 215.9; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-soft); }
.cert-preview-frame.cert-preview-portrait { max-width: 36rem; aspect-ratio: 215.9 / 279.4; }
/* ==== Media library and certificate templates — end ==== */

/* ==== Sign-in with two doors (views/pages.ts loginPage, LMS_PORTAL_URL) — begin ====
   Current learners: the LMS (primary block); graduates and others: the e-mail link; staff: institutional SSO. */
.login-door { margin-top: 1.5rem; }
.login-door h2 { font-size: 1.125rem; margin: 0 0 .4rem; }
.login-door-lms { padding: 1.25rem 1.4rem; border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--border)); border-radius: var(--radius-sm); background: var(--brand-soft); }
.login-door-lms > p:last-child { margin-bottom: 0; }
.login-door-email { padding-top: 1.5rem; border-top: 1px solid var(--border); }
.login-door-staff { margin-top: 0; }
.login-door-staff h2.separator { font-size: .8125rem; font-weight: 600; margin-block: 1.5rem 1rem; }
/* ==== Sign-in with two doors — end ==== */

/* ==== Alumni portability (views/wallet.ts graduation reminder, views/credential.ts baked badge) — begin ====
   Functional styles only; the designer restyles them later. */
.alumni-reminder { margin: 1rem 0 1.5rem; padding: 1.1rem 1.3rem 1.1rem 5.2rem; border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--border)); border-left: 6px solid var(--warn); border-radius: var(--radius); background: var(--warn-bg) url("icons/wallet.svg") 1.4rem 1.2rem / 2.6rem no-repeat; color: var(--fg); }
.alumni-reminder p { margin: 0 0 .6rem; }
.alumni-reminder p:last-child { margin-bottom: 0; }
.alumni-reminder-title { font-size: 1.0625rem; }
.add-email.alumni-highlight { margin: 1.5rem 0; padding: 1rem 1.3rem 1.3rem; border: 2px solid var(--brand); border-radius: var(--radius); background: var(--brand-soft); }
.add-email.alumni-highlight h2 { margin-top: 0; }
.alumni-highlight-text { margin: 0 0 1rem; }
.baked-badge { display: flex; flex-direction: column; gap: .4rem; }
@media (max-width: 40rem) {
  .alumni-reminder { padding-left: 1.3rem; background-image: none; }
}
/* ==== Alumni portability — end ==== */
