/* DA Integration Engine design system (owner request 2026-11-09: "top" appearance and UX). Static file: the CSP
   allows no inline style. Tokens first, then the shell, components and page layouts. */
:root {
  --ink: #1c1730; --ink-2: #3b3551; --muted: #625d75; --line: #e5e2ee; --line-2: #d4cfe2;
  --paper: #ffffff; --page: #f6f5fb; --page-2: #efedf7;
  --brand: #5b2d90; --brand-dark: #45206f; --brand-soft: #f1eafa; --brand-2: #7c4dbe;
  --teal: #0f766e; --teal-soft: #e3f4f1; --gold: #f4b400; --gold-ink: #7c5a00; --gold-soft: #fff6dc;
  --info: #2563eb; --info-soft: #eaf1ff; --ok: #15803d; --ok-soft: #e8f7ee;
  --warn: #b45309; --warn-soft: #fff4e5; --danger: #b42318; --danger-soft: #fdecea;
  --radius: .65rem; --radius-lg: 1rem;
  --shadow-1: 0 1px 2px rgba(28, 23, 48, .06), 0 1px 1px rgba(28, 23, 48, .04);
  --shadow-2: 0 10px 30px -12px rgba(45, 20, 87, .25);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; font: 400 1rem/1.55 var(--font); color: var(--ink); background: var(--page);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--brand); text-underline-offset: .15em; }
a:hover { color: var(--brand-dark); }
img, svg { max-width: 100%; }
code { font-family: var(--mono); font-size: .86em; background: var(--page-2); padding: .1em .35em; border-radius: .3rem; }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 100; background: var(--brand); color: #fff; padding: .5rem .9rem;
  border-radius: var(--radius); }
.skip:focus { left: .5rem; color: #fff; }
.icon { width: 1.1rem; height: 1.1rem; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round;
  stroke-linejoin: round; vertical-align: -.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Shell: a sticky app bar with the brand, the pages and the account menu. ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); }
.site-bar { max-width: 92rem; margin: 0 auto; padding: .55rem 1.25rem; display: flex; align-items: center; gap: .75rem 1.5rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 2.25rem; height: 2.25rem; border-radius: .7rem; display: grid; place-items: center; color: #fff; font-weight: 800;
  font-size: .8rem; letter-spacing: .03em; background: linear-gradient(135deg, var(--brand-2), var(--brand) 55%, #2d1457);
  box-shadow: 0 4px 12px -4px rgba(91, 45, 144, .6); }
.brand-name { font-weight: 750; line-height: 1.1; letter-spacing: -.01em; }
.brand-name small { display: block; font-weight: 450; font-size: .72rem; color: var(--muted); letter-spacing: 0; }
.tabs { display: flex; gap: .2rem; flex-wrap: wrap; }
.tabs a { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; color: var(--muted); font-weight: 550;
  font-size: .92rem; padding: .45rem .8rem; border-radius: .6rem; transition: background .15s, color .15s; }
.tabs a:hover { background: var(--page-2); color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); }
.account { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.menu { position: relative; }
.menu > summary { list-style: none; display: flex; align-items: center; gap: .5rem; cursor: pointer; padding: .25rem .45rem .25rem .25rem;
  border-radius: 999px; border: 1px solid var(--line); background: var(--paper); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { border-color: var(--line-2); }
.avatar { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .78rem;
  color: var(--brand-dark); background: var(--brand-soft); }
.menu-name { font-size: .88rem; font-weight: 600; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-panel { position: absolute; right: 0; top: calc(100% + .45rem); min-width: 15rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-2); padding: .4rem; display: grid; gap: .1rem; z-index: 30; }
.menu-panel a, .menu-panel button { display: flex; align-items: center; gap: .55rem; width: 100%; text-align: left; text-decoration: none;
  color: var(--ink); background: none; border: 0; padding: .5rem .65rem; border-radius: .5rem; font-size: .9rem; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--page-2); color: var(--ink); }
.menu-panel form { margin: 0; }
.menu-panel .menu-role { font-size: .74rem; color: var(--muted); padding: .35rem .65rem .25rem; }
.menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: .25rem 0; }
.feedback { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; font-size: .85rem; font-weight: 600;
  color: var(--warn); background: var(--warn-soft); border: 1px solid #f6d3a8; border-radius: 999px; padding: .35rem .8rem; }
.feedback:hover { color: #fff; background: var(--warn); border-color: var(--warn); }

.page { max-width: 76rem; margin: 0 auto; padding: 1.75rem 1.25rem 4rem; }
.page.wide { max-width: 92rem; }
.site-foot { max-width: 92rem; margin: 0 auto; padding: 1.25rem; color: var(--muted); font-size: .8rem; display: flex; flex-wrap: wrap;
  gap: .5rem 1rem; justify-content: space-between; border-top: 1px solid var(--line); }

/* ---------- Typography and page headers. ---------- */
h1, h2, h3 { letter-spacing: -.015em; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 750; margin: .15rem 0 .4rem; }
h2 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 .75rem; }
h3 { font-size: 1.02rem; font-weight: 700; margin: 1.2rem 0 .5rem; }
p { margin: .5rem 0; }
.muted { color: var(--muted); }
small, .small { font-size: .82rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head h1 { margin-bottom: .25rem; }
.page-head .actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.lede { margin: 0; max-width: 52rem; color: var(--muted); font-size: 1rem; }
.crumbs { display: flex; align-items: center; gap: .35rem; font-size: .84rem; color: var(--muted); margin-bottom: .35rem; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--brand); margin: 0; }

/* ---------- Buttons. ---------- */
button, .button { font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  gap: .45rem; padding: .55rem 1rem; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--paper); color: var(--ink);
  text-decoration: none; line-height: 1.2; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; }
button:hover, .button:hover { border-color: #b9b2cc; background: #faf9fd; color: var(--ink); }
button:active, .button:active { transform: translateY(1px); }
button.primary, .button.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px -8px rgba(91, 45, 144, .7); }
button.primary:hover, .button.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
button.ghost, .button.ghost { background: transparent; border-color: transparent; color: var(--brand); }
button.ghost:hover, .button.ghost:hover { background: var(--brand-soft); }
button.danger, .button.danger { color: var(--danger); border-color: #f2c4bf; background: var(--paper); }
button.danger:hover, .button.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
button.small, .button.small { padding: .35rem .7rem; font-size: .82rem; }
button.large, .button.large { padding: .8rem 1.4rem; font-size: 1rem; border-radius: .8rem; }
button[disabled], button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
button.busy, .button.busy { position: relative; color: transparent !important; pointer-events: none; }
button.busy::after, .button.busy::after { content: ""; position: absolute; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite; }
button.busy:not(.primary)::after { border-color: var(--line-2); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms. ---------- */
label { display: block; margin: .9rem 0; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
label .hint, .field-hint { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); margin-top: .2rem; }
input, select, textarea { font: inherit; font-size: .95rem; font-weight: 400; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-2); border-radius: .55rem; padding: .55rem .7rem; transition: border-color .15s, box-shadow .15s; }
label > input:not([type=checkbox]):not([type=radio]), label > select, label > textarea { display: block; width: 100%; margin-top: .35rem; }
input[type=text], input[type=email], input[type=password], input[type=url], select, textarea { max-width: 40rem; }
input:hover, select:hover, textarea:hover { border-color: #b9b2cc; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(124, 77, 190, .18); }
button:focus-visible, a:focus-visible, summary:focus-visible, input[type=checkbox]:focus-visible, input[type=radio]:focus-visible {
  outline: 3px solid rgba(124, 77, 190, .55); outline-offset: 2px; }
input[type=checkbox], input[type=radio] { width: 1.05rem; height: 1.05rem; accent-color: var(--brand); margin: 0 .45rem 0 0; vertical-align: -.15em; }
label:has(> input[type=checkbox]), label:has(> input[type=radio]) { font-weight: 500; display: flex; align-items: flex-start; gap: .1rem; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem 1rem 1rem; margin: 1rem 0; background: var(--paper); }
legend { font-weight: 700; font-size: .92rem; padding: 0 .35rem; color: var(--ink); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 1.25rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1.25rem; }

/* Segmented control: radio buttons shown as one joined choice. */
.segmented { display: inline-flex; padding: .25rem; gap: .2rem; background: var(--page-2); border-radius: .75rem; border: 1px solid var(--line);
  margin-top: .35rem; flex-wrap: wrap; }
.segmented label { margin: 0; font-weight: 600; font-size: .9rem; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: .45rem .95rem; border-radius: .55rem; color: var(--muted); cursor: pointer; transition: all .15s; }
.segmented input:checked + span { background: var(--paper); color: var(--brand-dark); box-shadow: var(--shadow-1); }
.segmented input:focus-visible + span { outline: 3px solid rgba(124, 77, 190, .55); }
.segmented input:disabled + span { opacity: .45; cursor: not-allowed; }

/* Switch: a checkbox shown as a toggle. */
.switch { display: flex !important; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 600; padding: .7rem 0;
  margin: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch .hint { font-weight: 400; }
.switch input { appearance: none; -webkit-appearance: none; flex: none; width: 2.6rem; height: 1.5rem; border-radius: 999px; background: var(--line-2);
  position: relative; cursor: pointer; transition: background .2s; margin: 0; border: 0; }
.switch input::after { content: ""; position: absolute; top: .18rem; left: .18rem; width: 1.14rem; height: 1.14rem; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(1.1rem); }

/* ---------- Surfaces. ---------- */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem 1.4rem; box-shadow: var(--shadow-1); }
.panel + .panel { margin-top: 1rem; }
.panel > h2:first-child, .panel > h3:first-child, .card-head h2, .card-head h3 { margin-top: 0; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.card-head p { margin: .1rem 0 0; }
.step { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark);
  font-weight: 800; font-size: .85rem; margin-right: .5rem; flex: none; }
.card-title { display: flex; align-items: center; font-size: 1.05rem; font-weight: 700; margin: 0; }
.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }

/* Stat tiles. */
.stat-tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem 1.15rem; box-shadow: var(--shadow-1);
  display: grid; gap: .15rem; }
.stat-tile b { font-size: 1.8rem; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-tile span { color: var(--muted); font-size: .85rem; }
.stat-tile.accent { background: linear-gradient(135deg, var(--brand-soft), #fff 70%); }

/* Badges and pills. */
.badge, .pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 700; line-height: 1; padding: .3rem .55rem;
  border-radius: 999px; background: var(--page-2); color: var(--ink-2); white-space: nowrap; }
.pill.active, .pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.draft { background: var(--info-soft); color: var(--info); }
.pill.old { background: var(--page-2); color: var(--muted); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.danger { background: var(--danger-soft); color: var(--danger); }
.pill.brand { background: var(--brand-soft); color: var(--brand-dark); }
.pill::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.plain::before { display: none; }

/* Alerts: information, success, warning, error. */
.notice, .error, .success, .warning { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius);
  border: 1px solid; margin: .8rem 0; font-size: .93rem; }
.notice { background: var(--info-soft); border-color: #c9d9fb; color: #1e3a8a; }
.success { background: var(--ok-soft); border-color: #bfe5cd; color: #14532d; }
.warning { background: var(--warn-soft); border-color: #f6d3a8; color: #7c2d12; }
.error { background: var(--danger-soft); border-color: #f2c4bf; color: #7a1a12; font-weight: 500; }
.notice::before, .error::before, .success::before, .warning::before { flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%; display: grid;
  place-items: center; font-weight: 800; font-size: .78rem; color: #fff; margin-top: .05rem; }
.notice::before { content: "i"; background: var(--info); }
.success::before { content: "✓"; background: var(--ok); }
.warning::before { content: "!"; background: var(--warn); }
.error::before { content: "!"; background: var(--danger); }
p.notice, p.error, p.success, p.warning { margin: .8rem 0; }
.notice.plain::before, .error.plain::before { display: none; }

/* Empty states. */
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); border: 1.5px dashed var(--line-2); border-radius: var(--radius-lg); background: var(--paper); }
.empty .icon { width: 2.2rem; height: 2.2rem; color: var(--brand-2); margin-bottom: .4rem; }
.empty h3 { margin: .2rem 0; color: var(--ink); }

/* Tables: scroll on small screens, sticky header, quiet rows. */
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow-1); max-height: 70vh; }
.table-wrap.tall { max-height: none; }
table { border-collapse: separate; border-spacing: 0; width: 100%; background: var(--paper); font-size: .9rem; }
th, td { padding: .7rem .85rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { position: sticky; top: 0; z-index: 1; background: #faf9fd; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); }
tbody tr:hover td { background: #fbfaff; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.depth-1 { padding-left: 1.8rem; } .depth-2 { padding-left: 2.8rem; } .depth-3 { padding-left: 3.8rem; }

/* Disclosure blocks. */
details.block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); margin: .8rem 0; box-shadow: var(--shadow-1); }
details.block > summary { cursor: pointer; padding: .9rem 1.2rem; font-weight: 700; list-style: none; display: flex; align-items: center; gap: .6rem; }
details.block > summary::-webkit-details-marker { display: none; }
details.block > summary::before { content: "›"; display: inline-block; transition: transform .15s; color: var(--muted); font-size: 1.2rem; line-height: 1; }
details.block[open] > summary::before { transform: rotate(90deg); }
details.block > .block-body { padding: 0 1.2rem 1.1rem; }

/* Progress bar (imports). */
.progress { height: .55rem; border-radius: 999px; background: var(--page-2); overflow: hidden; margin: .5rem 0; }
.progress > span { display: block; height: 100%; width: 40%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-2), var(--teal));
  animation: indeterminate 1.4s ease-in-out infinite; }
@keyframes indeterminate { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

/* Quote of catalog text. */
.quote { border-left: 4px solid var(--gold); background: var(--gold-soft); padding: .8rem 1rem; border-radius: .4rem; color: var(--ink-2); margin: .8rem 0; }
.pre { white-space: pre-wrap; }

/* ---------- Pages. ---------- */
/* Sign in: a brand panel beside the form. */
.auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: calc(100vh - 8rem); max-width: 68rem; margin: 2rem auto; border-radius: 1.4rem;
  overflow: hidden; box-shadow: var(--shadow-2); background: var(--paper); border: 1px solid var(--line); }
.auth-brand { padding: 3rem; color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  background: radial-gradient(circle at 85% 10%, rgba(244, 180, 0, .45), transparent 40%), linear-gradient(140deg, #2d1457, var(--brand) 50%, #0f5f59); }
.auth-brand h2 { color: #fff; font-size: 2rem; margin: 0 0 .75rem; }
.auth-brand p { color: rgba(255, 255, 255, .85); }
.auth-brand ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.auth-brand li { display: flex; gap: .7rem; align-items: flex-start; color: rgba(255, 255, 255, .92); }
.auth-brand li .icon { color: var(--gold); margin-top: .2rem; }
.auth-form { padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.auth-form h1 { margin-bottom: .2rem; }
.auth-form button.primary { width: 100%; margin-top: .6rem; padding: .8rem; font-size: 1rem; }
.auth-form input { max-width: none; }
.auth-card { max-width: 30rem; margin: 3rem auto; }

/* Home: welcome hero, quick actions and the programs ready to plan. */
.welcome { position: relative; overflow: hidden; border-radius: 1.4rem; padding: 2.2rem 2.4rem; color: #fff; margin-bottom: 1.5rem;
  background: radial-gradient(circle at 90% -10%, rgba(244, 180, 0, .5), transparent 42%), linear-gradient(120deg, #2d1457 0%, var(--brand) 48%, #0f5f59 100%);
  box-shadow: var(--shadow-2); }
.welcome h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 40rem; }
.welcome p { color: rgba(255, 255, 255, .88); max-width: 44rem; font-size: 1.02rem; }
.welcome .actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.2rem; }
.welcome .button.primary { background: #fff; color: var(--brand-dark); border-color: #fff; }
.welcome .button.primary:hover { background: var(--gold-soft); color: var(--brand-dark); }
.welcome .button.ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.welcome .button.ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.program-card { display: grid; gap: .5rem; align-content: start; }
.program-card h3 { margin: 0; font-size: 1rem; }
.program-card .meta { display: flex; gap: .35rem; flex-wrap: wrap; }
.program-card .links { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .3rem; }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.steps-list li { counter-increment: s; display: flex; gap: .8rem; align-items: flex-start; }
.steps-list li::before { content: counter(s); flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; font-size: .82rem; }

/* Review page: a summary and a sticky in-page navigation. */
.layout-side { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 2rem; align-items: start; }
.side-nav { position: sticky; top: 5rem; display: grid; gap: .15rem; font-size: .88rem; }
.side-nav a { text-decoration: none; color: var(--muted); padding: .4rem .7rem; border-radius: .5rem; display: flex; justify-content: space-between; gap: .5rem; }
.side-nav a:hover { background: var(--page-2); color: var(--ink); }
.side-nav .count { font-weight: 700; color: var(--ink-2); }
.review-item { display: flex; gap: .8rem; justify-content: space-between; align-items: flex-start; padding: .75rem .9rem; border: 1px solid var(--line);
  border-left: 4px solid var(--warn); border-radius: .6rem; background: var(--paper); margin: .5rem 0; }
.review-item b { display: block; }
.review-item .reason { color: var(--ink-2); font-size: .9rem; }
.activate-bar { position: sticky; bottom: 0; z-index: 5; margin-top: 2rem; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 -8px 30px -18px rgba(45, 20, 87, .35); padding: 1rem 1.2rem; }

@media (max-width: 60rem) {
  .auth { grid-template-columns: 1fr; margin: 0 auto; border-radius: 0; min-height: auto; }
  .auth-brand { padding: 2rem; }
  .auth-form { padding: 2rem; }
  .layout-side { grid-template-columns: 1fr; }
  .side-nav { position: static; display: flex; flex-wrap: wrap; }
}
@media (max-width: 40rem) {
  .site-bar { padding: .5rem .8rem; }
  .brand-name small, .menu-name { display: none; }
  .tabs { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .page { padding: 1.2rem .9rem 3rem; }
  .welcome { padding: 1.6rem 1.3rem; border-radius: 1rem; }
  .panel { padding: 1rem; }
  .feedback span { display: none; }
}
@media print {
  .site-head, .site-foot, .no-print { display: none !important; }
  body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.field-error { display: block; color: var(--danger); font-weight: 600; font-size: .82rem; margin-top: .25rem; }
.steps-list.s2 { counter-reset: s 1; } .steps-list.s3 { counter-reset: s 2; }
a.stat-tile { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.stat-tile:hover { border-color: var(--brand-2); transform: translateY(-1px); }
input[type=search] { min-width: 16rem; }
.grid > .panel + .panel, .grid > .panel { margin-top: 0; }
.auth { min-height: 34rem; }
.eyebrow.light, .welcome .eyebrow { color: var(--gold); }
.tabs a { white-space: nowrap; }
@media (max-width: 40rem) {
  details.block > .block-body { padding: 0 .6rem .8rem; }
  details.block > summary { padding: .8rem .9rem; }
  .build-bar p { display: none; }
  .build-bar button { width: 100%; }
}
/* Catalog sources. */
.import-form { display: flex; gap: .6rem; flex-wrap: wrap; align-items: stretch; }
.import-form input { flex: 1 1 22rem; max-width: none; }
.job { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .8rem; }
.job-head { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.job-head .pill { margin-left: auto; }
.section-head { margin-top: 2rem; margin-bottom: .8rem; align-items: center; }
.section-head h2 { margin: 0 0 .2rem; }
.release-row td a { text-decoration: none; }
.release-row td a:hover b { text-decoration: underline; }
/* Review page. */
.review-stats { margin-bottom: 1.5rem; }
.review-main section { scroll-margin-top: 5rem; }
.review-main > section > h2:first-child { margin-top: 0; }
.review-main section + section { margin-top: 2.2rem; }
.review-item > div { display: grid; gap: .15rem; }
.review-item .button { flex: none; }
.text-danger { color: var(--danger); }
.clean-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.clean-list li { background: var(--paper); border: 1px solid var(--line); border-radius: .5rem; padding: .55rem .8rem; }
.activate-bar { display: grid; gap: .3rem; }
.activate-bar .card-title { margin: 0; }
.activate-bar details summary { cursor: pointer; color: var(--brand); font-weight: 600; margin: .4rem 0; }
.activate-bar textarea { width: 100%; max-width: none; }
.activate-bar form { margin: 0; }
textarea { width: 100%; }
/* Accounts. */
.accounts-grid { grid-template-columns: minmax(18rem, 22rem) minmax(0, 1fr); align-items: start; }
.accounts-grid .section-head { margin-top: 0; }
.person { display: flex; gap: .65rem; align-items: center; }
.roles-form { display: flex; flex-wrap: wrap; gap: .2rem .9rem; align-items: center; margin: 0; }
.roles-form label { margin: 0; font-size: .85rem; }
.row-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.link-panel { border-color: #c9d9fb; background: linear-gradient(135deg, var(--info-soft), #fff 60%); margin-bottom: 1.5rem; }
.copy-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.copy-row code { flex: 1 1 20rem; padding: .6rem .8rem; background: var(--paper); border: 1px solid var(--line); border-radius: .5rem; word-break: break-all; }
@media (max-width: 60rem) { .accounts-grid { grid-template-columns: 1fr; } }
/* Definition forms. */
.define-layout { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 1.5rem; align-items: start; }
.define-aside { position: sticky; top: 5rem; }
@media (max-width: 60rem) { .define-layout { grid-template-columns: 1fr; } .define-aside { position: static; } }
label > input[size] { max-width: 10rem; }
.define-form fieldset label { max-width: 40rem; }
@media (max-width: 40rem) {
  .grid.four { grid-template-columns: 1fr 1fr; }
  .stat-tile b { font-size: 1.45rem; }
  .welcome .actions .button { width: 100%; }
}
