/* Operations Genie App: the shell, the learner screens and the login card.
   Same foundations as Reports (DM Sans, one warm neutral token set),
   client-branded through --oga-brand and --oga-accent, which the page sets
   from the App's branding. Mobile first in behaviour: below 760px the side
   rail becomes a top bar and a bottom bar. */

.oga-app,
.oga-auth {
	--oga-ink: #1F1A17;
	--oga-ink-2: #3B342F;
	--oga-muted: #6B625B;
	--oga-faint: #9A918A;
	--oga-line: #E8E2DC;
	--oga-line-2: #F3EEE9;
	--oga-bg: #F6F3EF;
	--oga-card: #FFFFFF;
	--oga-hover: #FAF7F4;
	--oga-track: #EFE9E3;
	--oga-field: #D9CFC6;
	--oga-green: #2F6B3A;
	--oga-green-bar: #3E7C4A;
	--oga-green-bg: #E7F3EA;
	--oga-blue: #1D4ED8;
	--oga-blue-bar: #2563EB;
	--oga-blue-bg: #EAF1FE;
	--oga-amber: #9A4A08;
	--oga-amber-bar: #B45309;
	--oga-amber-bg: #FEF3E2;
	--oga-red: #B42318;
	--oga-red-bg: #FDECEA;
	--oga-grey: #4F4842;
	--oga-grey-bg: #F1EEEB;
	--oga-radius: 16px;
	--oga-shadow: 0 1px 2px rgba(60, 40, 20, 0.05);
	font-family: 'DM Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
	color: var(--oga-ink);
	background: var(--oga-bg);
	font-size: 14px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
}
.oga-app *, .oga-app *::before, .oga-app *::after,
.oga-auth *, .oga-auth *::before, .oga-auth *::after { box-sizing: border-box; }
body.oga-body { margin: 0; background: #F6F3EF; }
.oga-app button, .oga-app input, .oga-app select,
.oga-auth button, .oga-auth input { font-family: inherit; font-size: inherit; color: inherit; }
.oga-app a, .oga-auth a { color: var(--oga-brand); }
.oga-app :focus-visible, .oga-auth :focus-visible { outline: 3px solid var(--oga-brand-soft); outline-offset: 2px; }
.oga-app h1, .oga-app h2, .oga-app h3, .oga-app p { margin: 0; }
.oga-num { font-variant-numeric: tabular-nums; }
.oga-muted { color: var(--oga-muted); }
.oga-app [hidden], .oga-auth [hidden] { display: none !important; }
.oga-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.oga-skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: #FFFFFF; color: #1F1A17; padding: 10px 14px; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-weight: 600; }
.oga-skip:focus { top: 8px; }

/* ------------------------------------------------------------------
 * Shell
 * ---------------------------------------------------------------- */
.oga-app { display: flex; min-height: 100vh; min-height: 100dvh; }
.oga-rail { flex: 0 0 232px; width: 232px; background: var(--oga-brand); color: var(--oga-on-brand); padding: 24px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.oga-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; text-decoration: none; }
.oga-app .oga-brand { color: inherit; }
.oga-logo { width: 36px; height: 36px; border-radius: 10px; background: #FFFFFF; color: var(--oga-brand); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; overflow: hidden; flex: 0 0 auto; }
.oga-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.oga-logo.has-img { width: auto; min-width: 36px; max-width: 120px; padding: 4px 6px; }
.oga-brand-name { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.oga-brand-name strong { font-size: 16px; }
.oga-brand-name span { font-size: 12px; opacity: 0.85; }
.oga-nav-group { display: flex; flex-direction: column; gap: 4px; }
.oga-nav-group + .oga-nav-group { padding-top: 18px; }
.oga-nav-label { padding: 0 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; opacity: 0.75; }
.oga-nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; opacity: 0.86; font-weight: 500; font-size: 14px; text-decoration: none; }
.oga-app .oga-nav-link { color: var(--oga-on-brand); }
.oga-nav-link:hover { background: rgba(255, 255, 255, 0.10); opacity: 1; }
.oga-nav-link[aria-current="page"] { background: rgba(255, 255, 255, 0.16); opacity: 1; font-weight: 700; }
.oga-nav-link svg { flex: 0 0 auto; }
.oga-label { flex: 1 1 auto; min-width: 0; }
.oga-pill { background: var(--oga-accent-soft); color: var(--oga-brand-deep); font-size: 12px; font-weight: 700; border-radius: 99px; padding: 2px 8px; font-variant-numeric: tabular-nums; }
.oga-pill[hidden] { display: none; }
.oga-rail-foot { margin-top: auto; padding: 14px 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.18); display: flex; flex-direction: column; gap: 10px; }
.oga-me { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.oga-app .oga-me { color: var(--oga-on-brand); }
.oga-me-avatar { width: 32px; height: 32px; border-radius: 99px; background: var(--oga-accent-soft); color: var(--oga-brand-deep); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: 0 0 auto; }
.oga-me-text { display: flex; flex-direction: column; line-height: 1.2; font-size: 12px; min-width: 0; }
.oga-me-text strong { font-size: 13px; }
.oga-me-text span { opacity: 0.85; }
.oga-app .oga-foot-link { color: var(--oga-on-brand); opacity: 0.85; font-size: 12px; }
.oga-powered { font-size: 11px; opacity: 0.75; }

.oga-top { display: none; background: var(--oga-brand); color: var(--oga-on-brand); padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); align-items: center; gap: 10px; }
.oga-top .oga-brand { padding: 0; flex: 1 1 auto; min-width: 0; }
.oga-top .oga-logo { width: 32px; height: 32px; border-radius: 9px; }
.oga-top .oga-logo.has-img { width: auto; }
.oga-top .oga-brand-name strong { font-size: 15px; }
.oga-bell { position: relative; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(255, 255, 255, 0.12); }
.oga-app .oga-bell { color: var(--oga-on-brand); }
.oga-bell .oga-pill { position: absolute; top: 3px; right: 3px; font-size: 11px; padding: 1px 6px; }

.oga-main { flex: 1 1 auto; min-width: 0; width: 100%; max-width: 1800px; padding: 32px 40px 40px; display: flex; flex-direction: column; gap: 24px; outline: none; }
.oga-tabs-wrap { display: none; }
.oga-tabs { display: grid; background: #FFFFFF; border-top: 1px solid var(--oga-line); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); }
.oga-tab { text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; border: 0; background: transparent; font-size: 11px; font-weight: 600; cursor: pointer; padding: 0 2px; text-align: center; line-height: 1.15; }
.oga-app .oga-tab { color: var(--oga-muted); }
.oga-app .oga-tab[aria-current="page"], .oga-app .oga-tab[aria-expanded="true"] { color: var(--oga-brand); font-weight: 700; }
.oga-sheet { background: #FFFFFF; border-top: 1px solid var(--oga-line); border-radius: 18px 18px 0 0; box-shadow: 0 -8px 24px rgba(60, 40, 20, 0.12); padding: 8px 12px 6px; }
.oga-sheet[hidden] { display: none; }
.oga-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 6px; font-size: 15px; }
.oga-sheet-link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 10px; border-radius: 10px; text-decoration: none; font-size: 15px; font-weight: 600; }
.oga-app .oga-sheet-link { color: var(--oga-ink); }
.oga-sheet-link svg { color: var(--oga-brand); flex: 0 0 auto; }
.oga-sheet-link span:first-of-type { flex: 1 1 auto; }
.oga-sheet-link:hover, .oga-sheet-link[aria-current="page"] { background: var(--oga-hover); }
.oga-icon-btn { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--oga-muted); }

@media (max-width: 760px) {
	.oga-app { flex-direction: column; }
	.oga-rail { display: none; }
	.oga-top { display: flex; position: sticky; top: 0; z-index: 20; }
	.oga-main { padding: 20px 16px 24px; gap: 20px; flex: 1 0 auto; }
	.oga-tabs-wrap { display: block; position: sticky; bottom: 0; z-index: 20; }
}

/* ------------------------------------------------------------------
 * Building blocks
 * ---------------------------------------------------------------- */
.oga-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.oga-head-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.oga-h1 { font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -0.5px; }
.oga-sub { font-size: 15px; color: var(--oga-muted); }
.oga-h2 { font-size: 16px; font-weight: 700; }
.oga-card { background: var(--oga-card); border: 1px solid var(--oga-line); border-radius: var(--oga-radius); box-shadow: var(--oga-shadow); min-width: 0; }
.oga-card.is-pad { padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.oga-card.is-list { overflow: hidden; }
.oga-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--oga-track); }
.oga-card-head a { font-size: 13px; font-weight: 600; text-decoration: none; }
.oga-card-foot { padding: 14px 18px; font-size: 13px; color: var(--oga-muted); }
.oga-grid-2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.oga-grid-2.is-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.oga-grid-2.is-stretch { align-items: stretch; }
.oga-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.oga-chip { flex: 0 0 auto; display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 5px 10px; white-space: nowrap; background: var(--oga-grey-bg); color: var(--oga-grey); }
.oga-chip.is-sm { padding: 3px 9px; }
.oga-chip.is-amber { background: var(--oga-amber-bg); color: var(--oga-amber); }
.oga-chip.is-green { background: var(--oga-green-bg); color: var(--oga-green); }
.oga-chip.is-red { background: var(--oga-red-bg); color: var(--oga-red); }
.oga-chip.is-blue { background: var(--oga-blue-bg); color: var(--oga-blue); }
.oga-chip.is-light { background: var(--oga-accent-soft); color: var(--oga-brand-deep); }
.oga-meta-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 99px; background: #FFFFFF; border: 1px solid var(--oga-line); font-size: 13px; font-weight: 600; color: var(--oga-ink-2); }
.oga-meta-chip svg { color: var(--oga-brand); }

.oga-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; text-decoration: none; font-size: 15px; font-weight: 700; cursor: pointer; border: 1px solid transparent; line-height: 1.2; text-align: center; }
.oga-app .oga-btn.is-primary, .oga-auth .oga-btn.is-primary { background: var(--oga-brand); border-color: var(--oga-brand); color: var(--oga-on-brand); }
.oga-btn.is-primary:hover { background: var(--oga-brand-deep); border-color: var(--oga-brand-deep); }
.oga-app .oga-btn.is-secondary, .oga-auth .oga-btn.is-secondary { background: #FFFFFF; border-color: var(--oga-line); color: var(--oga-ink); }
.oga-btn.is-secondary:hover { background: var(--oga-hover); }
.oga-app .oga-btn.is-green { background: var(--oga-green); border-color: var(--oga-green); color: #FFFFFF; }
.oga-btn.is-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.oga-btn.is-block { width: 100%; }
.oga-btn[disabled] { opacity: 0.6; cursor: default; }
.oga-btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.oga-btn-row .oga-btn.is-grow { flex: 1 1 200px; }

.oga-seg { align-self: flex-start; display: inline-flex; flex-wrap: wrap; background: var(--oga-track); border-radius: 99px; padding: 3px; }
.oga-seg button { border: 0; min-height: 40px; padding: 0 16px; border-radius: 99px; font-size: 13px; font-weight: 600; cursor: pointer; background: transparent; color: var(--oga-muted); }
.oga-seg button[aria-pressed="true"] { background: #FFFFFF; color: var(--oga-ink); box-shadow: 0 1px 3px rgba(60, 40, 20, 0.15); }

.oga-row { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--oga-line-2); text-decoration: none; }
.oga-app .oga-row { color: inherit; }
a.oga-row:hover { background: var(--oga-hover); }
.oga-row-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: var(--oga-brand-tint); color: var(--oga-brand); display: flex; align-items: center; justify-content: center; }
.oga-row-icon.is-grey { background: var(--oga-grey-bg); color: var(--oga-muted); }
.oga-row-main { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.oga-row-title { font-size: 14px; font-weight: 600; }
.oga-row-sub { font-size: 13px; color: var(--oga-muted); }
.oga-row-score { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.oga-row.is-wrap { flex-wrap: wrap; gap: 12px 14px; }
.oga-row.is-wrap .oga-row-main { flex: 1 1 220px; }

.oga-ring { position: relative; flex: 0 0 auto; display: inline-block; }
.oga-ring svg { display: block; }
.oga-ring-track { stroke: var(--oga-track); }
.oga-ring-bar { stroke: var(--oga-brand); transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.oga-ring-bar.is-green { stroke: var(--oga-green-bar); }
.oga-ring-bar.is-blue { stroke: var(--oga-blue-bar); }
.oga-ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.oga-ring-label small { font-size: 11px; font-weight: 500; margin-top: 3px; opacity: 0.85; }

.oga-empty { padding: 28px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.oga-empty-icon { width: 52px; height: 52px; border-radius: 99px; background: var(--oga-brand-tint); color: var(--oga-brand); display: flex; align-items: center; justify-content: center; }
.oga-empty p { color: var(--oga-muted); max-width: 420px; }

.oga-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.oga-alert svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; }
.oga-alert.is-error { background: var(--oga-red-bg); color: var(--oga-red); }
.oga-alert.is-ok { background: var(--oga-green-bg); color: var(--oga-green); }

.oga-skel { background: linear-gradient(90deg, #EFE9E3 0%, #F7F3EF 50%, #EFE9E3 100%); background-size: 200% 100%; animation: oga-shimmer 1.4s ease-in-out infinite; border-radius: var(--oga-radius); min-height: 180px; }
.oga-skel-head { min-height: 56px; max-width: 420px; }
.oga-skel-tall { min-height: 280px; }
@keyframes oga-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.oga-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 14px; font-weight: 600; text-decoration: none; }
.oga-fade { animation: oga-in 0.35s ease-out both; }
@keyframes oga-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------
 * Home
 * ---------------------------------------------------------------- */
.oga-team { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 16px 18px; text-decoration: none; }
.oga-app .oga-team { color: inherit; }
.oga-team:hover .oga-team-link { text-decoration: underline; }
.oga-team-text { display: flex; flex-direction: column; gap: 3px; flex: 1 1 240px; min-width: 0; }
.oga-team-text span { font-size: 13px; font-weight: 600; color: var(--oga-muted); }
.oga-team-text strong { font-size: 16px; }
.oga-team-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--oga-brand); }

.oga-due { overflow: hidden; }
.oga-due-top { background: var(--oga-brand); color: var(--oga-on-brand); padding: 20px; display: flex; gap: 18px; align-items: center; }
.oga-due-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.oga-due-text h2 { font-size: 22px; line-height: 1.2; font-weight: 700; }
.oga-due-text span { font-size: 14px; opacity: 0.88; }
.oga-due-tag { align-self: flex-start; font-size: 12px; font-weight: 700; background: var(--oga-accent-soft); color: var(--oga-brand-deep); border-radius: 99px; padding: 3px 10px; }
.oga-due-top .oga-ring-track { stroke: rgba(255, 255, 255, 0.22); }
.oga-due-top .oga-ring-bar { stroke: var(--oga-on-brand); }
.oga-due-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 16px; }
.oga-due-facts { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.oga-due-date { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.oga-due-date svg { color: var(--oga-brand); }
.oga-rings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.oga-rings > div { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.oga-rings strong { font-size: 13px; margin-top: 4px; }
.oga-rings span.oga-muted { font-size: 12px; }
.oga-install { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; background: var(--oga-brand-tint); border: 1px solid var(--oga-brand-tint-2); text-decoration: none; }
.oga-app .oga-install { color: var(--oga-ink); }
.oga-install-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: var(--oga-brand); color: var(--oga-on-brand); display: flex; align-items: center; justify-content: center; }
.oga-install-text { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; }
.oga-install-text strong { font-size: 14px; }
.oga-install-text span { font-size: 13px; color: var(--oga-ink-2); }
.oga-install > svg { color: var(--oga-brand); }
.oga-only-phone { display: none; }
@media (max-width: 760px) {
	.oga-only-phone { display: flex; }
}

/* ------------------------------------------------------------------
 * My Briefings
 * ---------------------------------------------------------------- */
.oga-group { display: flex; flex-direction: column; gap: 12px; }
.oga-group-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.oga-count { font-size: 12px; font-weight: 700; background: var(--oga-track); color: var(--oga-grey); border-radius: 99px; padding: 2px 9px; }
.oga-bcard { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 16px 18px; }
.oga-bcard-main { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.oga-bcard-title { font-size: 16px; font-weight: 700; text-decoration: none; }
.oga-app .oga-bcard-title { color: var(--oga-ink); }
.oga-bcard-title:hover { text-decoration: underline; }
.oga-bcard-status { font-size: 13px; color: var(--oga-ink-2); }

/* ------------------------------------------------------------------
 * Briefing overview
 * ---------------------------------------------------------------- */
.oga-finished { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px; border-radius: 16px; background: var(--oga-green-bg); border: 1px solid #C9E3CF; }
.oga-finished-icon { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 99px; background: var(--oga-green); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.oga-finished-text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; }
.oga-finished-text h2 { font-size: 18px; font-weight: 700; color: #1F3D24; }
.oga-finished-text p { font-size: 14px; color: #2F4F35; }
.oga-hero { overflow: hidden; }
.oga-hero-img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: cover; background: var(--oga-brand-tint); }
.oga-hero-band { background: var(--oga-brand); color: var(--oga-on-brand); padding: 24px 22px; display: flex; flex-direction: column; gap: 8px; }
.oga-hero-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; opacity: 0.8; }
.oga-hero-band .oga-h1 { color: inherit; }
.oga-hero-intro { font-size: 14px; opacity: 0.88; }
.oga-desc { padding: 18px 22px 20px; font-size: 15px; line-height: 1.6; color: var(--oga-ink-2); display: flex; flex-direction: column; gap: 10px; }
.oga-mod { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--oga-line-2); text-decoration: none; }
.oga-app .oga-mod { color: inherit; }
a.oga-mod:hover { background: var(--oga-hover); }
.oga-mod.is-child { padding-left: 68px; }
.oga-mod.is-current { background: #FBF8F5; }
.oga-mod-dot { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 99px; display: flex; align-items: center; justify-content: center; border: 2px solid transparent; }
.oga-mod-dot.is-done { background: var(--oga-green-bg); color: var(--oga-green); }
.oga-mod-dot.is-current { background: #FFFFFF; color: var(--oga-brand); border-color: var(--oga-brand); }
.oga-mod-dot.is-open { background: var(--oga-brand-tint); color: var(--oga-brand); }
.oga-mod-dot.is-locked { background: var(--oga-grey-bg); color: var(--oga-muted); }
.oga-mod-main { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.oga-mod-title { font-size: 14px; font-weight: 600; }
.oga-mod.is-locked .oga-mod-title { color: var(--oga-grey); }
.oga-mod-state { font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--oga-muted); }
.oga-mod-state.is-done { color: var(--oga-green); }
.oga-side { display: flex; flex-direction: column; gap: 18px; padding: 20px; }
.oga-side-top { display: flex; align-items: center; gap: 16px; }
.oga-side-top > div { display: flex; flex-direction: column; gap: 3px; }
.oga-side-top strong { font-size: 18px; }
.oga-dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 16px; font-size: 14px; border-top: 1px solid var(--oga-line-2); padding-top: 16px; }
.oga-dl dt { color: var(--oga-muted); }
.oga-dl dd { margin: 0; font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------
 * Certificates
 * ---------------------------------------------------------------- */
.oga-cert { overflow: hidden; display: flex; flex-direction: column; }
.oga-cert-art { background: var(--oga-brand-tint); padding: 20px; display: flex; justify-content: center; }
.oga-cert-paper { width: 100%; max-width: 340px; aspect-ratio: 297 / 210; background: #FFFFFF; border-radius: 6px; box-shadow: 0 4px 14px rgba(60, 40, 20, 0.10); padding: 10px; }
.oga-cert-inner { height: 100%; border: 1px solid var(--oga-brand-tint-2); border-radius: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 10px; }
.oga-cert-kicker { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--oga-muted); }
.oga-cert-name { font-size: 16px; font-weight: 700; color: var(--oga-brand); line-height: 1.2; }
.oga-cert-who { font-size: 12px; color: var(--oga-muted); }
.oga-cert-inner svg { color: var(--oga-green-bar); }
.oga-cert-body { padding: 16px 18px 6px; display: flex; flex-direction: column; gap: 4px; }
.oga-cert-body h2 { font-size: 16px; font-weight: 700; }
.oga-cert-actions { padding: 12px 18px 18px; }

/* ------------------------------------------------------------------
 * Profile
 * ---------------------------------------------------------------- */
.oga-me-card { display: flex; align-items: center; gap: 16px; }
.oga-avatar-lg { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 99px; background: var(--oga-accent-soft); color: var(--oga-brand-deep); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.oga-me-card h2 { font-size: 20px; font-weight: 700; }
.oga-me-card span { font-size: 14px; color: var(--oga-muted); }
.oga-dl.is-plain { border-top: 0; padding-top: 0; grid-template-columns: minmax(110px, auto) minmax(0, 1fr); gap: 10px 16px; }
.oga-dl.is-ruled { grid-template-columns: minmax(110px, auto) minmax(0, 1fr); gap: 10px 16px; }
.oga-note { padding: 10px 12px; border-radius: 10px; background: var(--oga-bg); font-size: 13px; color: var(--oga-muted); }
.oga-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.oga-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.oga-steps li > span:first-child { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 99px; background: var(--oga-brand); color: var(--oga-on-brand); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.oga-steps li > span:last-child { padding-top: 3px; }

/* Fields (Profile and the login card) */
.oga-field { display: flex; flex-direction: column; gap: 6px; }
.oga-field-label { font-size: 14px; font-weight: 600; color: var(--oga-ink-2); }
.oga-input { width: 100%; min-height: 48px; border: 1px solid var(--oga-field); border-radius: 10px; padding: 0 14px; font-size: 16px; background: #FFFFFF; color: var(--oga-ink); }
.oga-input:focus { border-color: var(--oga-brand); outline: 3px solid var(--oga-brand-soft); outline-offset: 0; }
.oga-input.is-invalid { border-color: var(--oga-red); }
.oga-hint { font-size: 13px; color: var(--oga-muted); }
.oga-pw-wrap { position: relative; }
.oga-pw-wrap .oga-input { padding-right: 54px; }
.oga-pw-toggle { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--oga-muted); cursor: pointer; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.oga-pw-toggle[aria-pressed="true"] { color: var(--oga-brand); }
.oga-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }

/* ------------------------------------------------------------------
 * Phones
 * ---------------------------------------------------------------- */
@media (max-width: 760px) {
	.oga-h1 { font-size: 26px; }
	.oga-grid-2, .oga-grid-2.is-even { grid-template-columns: minmax(0, 1fr); }
	.oga-due-text h2 { font-size: 20px; }
	.oga-mod.is-child { padding-left: 50px; }
	.oga-mod { padding: 12px 14px; gap: 12px; }
	.oga-hero-band { padding: 20px 18px; }
	.oga-desc { padding: 16px 18px 18px; }
}
@media (max-width: 380px) {
	.oga-rings { gap: 6px; }
	.oga-rings .oga-ring { transform: scale(0.9); }
}

/* ------------------------------------------------------------------
 * Login card
 * ---------------------------------------------------------------- */
.oga-auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; }
.oga-auth-band { width: 100%; height: 300px; flex: 0 0 auto; background: var(--oga-brand); }
.oga-auth-main { width: 100%; max-width: 448px; padding: 0 16px 32px; margin-top: -236px; display: flex; flex-direction: column; gap: 20px; }
.oga-auth-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--oga-on-brand); text-align: center; }
.oga-auth-logo { width: 56px; height: 56px; border-radius: 16px; background: #FFFFFF; color: var(--oga-brand); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 26px; overflow: hidden; }
.oga-auth-logo.has-img { width: auto; min-width: 56px; max-width: 200px; padding: 6px 10px; }
.oga-auth-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.oga-auth-name { display: flex; flex-direction: column; gap: 2px; }
.oga-auth-name strong { font-size: 20px; }
.oga-auth-name span { font-size: 13px; opacity: 0.88; }
.oga-auth-card { background: #FFFFFF; border: 1px solid var(--oga-line); border-radius: 18px; box-shadow: 0 10px 30px rgba(60, 40, 20, 0.10); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.oga-auth-head { display: flex; flex-direction: column; gap: 6px; }
.oga-auth-head h1 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; }
.oga-auth-head p { margin: 0; font-size: 14px; color: var(--oga-muted); }
.oga-auth-head p.oga-auth-body { font-size: 15px; line-height: 1.5; color: var(--oga-ink-2); }
.oga-auth-form { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.oga-auth-badge { width: 48px; height: 48px; border-radius: 99px; background: var(--oga-brand-tint); color: var(--oga-brand); display: flex; align-items: center; justify-content: center; }
.oga-auth-badge.is-ok { background: var(--oga-green-bg); color: var(--oga-green); }
.oga-auth-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--oga-bg); font-size: 14px; line-height: 1.45; color: var(--oga-ink-2); }
.oga-linkbtn { align-self: center; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; font-weight: 600; }
.oga-auth-foot { margin: 0; text-align: center; font-size: 12px; color: var(--oga-muted); }
@media (max-width: 760px) {
	.oga-auth-band { height: 230px; }
	.oga-auth-main { margin-top: -196px; }
	.oga-auth-card { padding: 22px 20px; }
}

/* People's Choose your password form, inside the login card */
.oga-people-form .ogp-pw-logo { display: none; }
.oga-people-form .ogp-pw-title { margin: 0 0 6px; font-size: 24px; font-weight: 700; line-height: 1.2; }
.oga-people-form .ogp-pw-text { margin: 0 0 18px; font-size: 14px; color: var(--oga-muted); }
.oga-people-form .ogp-pw-error { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--oga-red-bg); color: var(--oga-red); font-size: 14px; font-weight: 600; }
.oga-people-form .ogp-pw-form { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.oga-people-form .ogp-pw-form label { font-size: 14px; font-weight: 600; color: var(--oga-ink-2); margin-top: 10px; }
.oga-people-form .ogp-pw-form label:first-of-type { margin-top: 0; }
.oga-people-form .ogp-pw-field { position: relative; }
.oga-people-form .ogp-pw-field input { width: 100%; min-height: 48px; border: 1px solid var(--oga-field); border-radius: 10px; padding: 0 70px 0 14px; font-size: 16px; background: #FFFFFF; }
.oga-people-form .ogp-pw-field input:focus { border-color: var(--oga-brand); outline: 3px solid var(--oga-brand-soft); outline-offset: 0; }
.oga-people-form .ogp-pw-show { position: absolute; right: 4px; top: 4px; min-height: 40px; padding: 0 12px; border: 0; background: transparent; color: var(--oga-brand); font-weight: 600; cursor: pointer; border-radius: 8px; }
.oga-people-form .ogp-pw-button,
.oga-people-form button[type="submit"] { margin-top: 18px; display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--oga-brand); background: var(--oga-brand); color: var(--oga-on-brand); font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; }
.oga-people-form .ogp-pw-small { margin: 16px 0 0; font-size: 13px; color: var(--oga-muted); }

/* Motion: off when the person asks for less */
@media (prefers-reduced-motion: reduce) {
	.oga-ring-bar { transition: none; }
	.oga-skel { animation: none; }
	.oga-fade { animation: none; }
}