/* Lumovex Protection Office — premium design system.
 * Dark cinematic surfaces, restrained highlights, generous spacing. Scoped
 * under .lpo and token-driven so Lumovex can re-skin without touching markup.
 * Deliberately NOT the BridgeBrain Navigator shell (dev doc §7.3).
 */

.lpo {
  --lpo-bg: #0e0f13;
  --lpo-surface: #17181f;
  --lpo-surface-2: #1e2029;
  --lpo-line: #2a2d38;
  --lpo-text: #eef0f6;
  --lpo-muted: #a2a7b6;
  --lpo-accent: #6c8cff;
  --lpo-accent-2: #9a6cff;
  --lpo-ok: #43d17a;
  --lpo-warn: #f0b34e;
  --lpo-danger: #ff6b6b;
  --lpo-radius: 16px;
  --lpo-radius-sm: 10px;
  --lpo-shadow: 0 18px 50px rgba(0, 0, 0, .45);

  color: var(--lpo-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px;
  -webkit-font-smoothing: antialiased;
}
.lpo * { box-sizing: border-box; }

/* Header ------------------------------------------------------------------- */
.lpo-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.lpo-h { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 .2em; }
.lpo-h2 { font-size: 1.15rem; font-weight: 650; margin: 0 0 .5em; letter-spacing: -.01em; }
.lpo-sub { color: var(--lpo-muted); margin: 0 0 1em; }
.lpo-fine { color: var(--lpo-muted); font-size: .84rem; margin: .6em 0 0; }

/* Navigation --------------------------------------------------------------- */
.lpo-nav { margin: 0 0 22px; border-bottom: 1px solid var(--lpo-line); }
.lpo-nav ul { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.lpo-nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; color: var(--lpo-muted); text-decoration: none;
  border-bottom: 2px solid transparent; font-size: .94rem; font-weight: 550;
}
.lpo-nav-link:hover { color: var(--lpo-text); }
.lpo-nav-link.is-current { color: var(--lpo-text); border-bottom-color: var(--lpo-accent); }
.lpo-nav-link.is-locked { opacity: .58; }
.lpo-lock { font-size: .7rem; color: var(--lpo-muted); }

/* Cards -------------------------------------------------------------------- */
.lpo-card {
  background: var(--lpo-surface); border: 1px solid var(--lpo-line);
  border-radius: var(--lpo-radius); padding: 22px; margin-bottom: 18px;
}
.lpo-card--primary {
  background: linear-gradient(180deg, rgba(108, 140, 255, .10), rgba(108, 140, 255, .03));
  border-color: rgba(108, 140, 255, .30);
}
.lpo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }

/* Callout ------------------------------------------------------------------ */
.lpo-callout {
  background: var(--lpo-surface-2); border: 1px solid var(--lpo-line);
  border-left: 3px solid var(--lpo-warn);
  border-radius: var(--lpo-radius-sm); padding: 14px 16px; margin-bottom: 18px;
}
.lpo-callout p { margin: 0; color: var(--lpo-muted); }

/* Pills -------------------------------------------------------------------- */
.lpo-pill {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 650; letter-spacing: .01em;
  background: rgba(108, 140, 255, .14); color: var(--lpo-accent); white-space: nowrap;
}
.lpo-pill--ok { background: rgba(67, 209, 122, .14); color: var(--lpo-ok); }
.lpo-pill--warn { background: rgba(240, 179, 78, .14); color: var(--lpo-warn); }

/* Next action -------------------------------------------------------------- */
.lpo-next { font-size: 1.05rem; margin: 0 0 1em; }

/* Progress ----------------------------------------------------------------- */
.lpo-progress { margin-top: 14px; }
.lpo-progress-bar {
  height: 8px; background: var(--lpo-surface-2); border-radius: 999px; overflow: hidden;
}
.lpo-progress-bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--lpo-accent), var(--lpo-accent-2));
  transition: width .4s ease;
}

/* Steps -------------------------------------------------------------------- */
.lpo-steps { list-style: none; margin: 0; padding: 0; counter-reset: lpo-step; }
.lpo-steps li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--lpo-line);
}
.lpo-steps li:last-child { border-bottom: 0; }
.lpo-step-title { font-weight: 550; }
.lpo-step-state { color: var(--lpo-muted); font-size: .82rem; white-space: nowrap; }
.lpo-steps li.is-done .lpo-step-title { opacity: .6; text-decoration: line-through; }
.lpo-steps li.is-done .lpo-step-state { color: var(--lpo-ok); }

/* Buttons ------------------------------------------------------------------ */
.lpo-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: linear-gradient(135deg, var(--lpo-accent), var(--lpo-accent-2));
  color: #fff; font-weight: 650; font-size: .96rem;
  border: 0; border-radius: 999px; padding: 12px 24px; cursor: pointer;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 26px rgba(108, 140, 255, .30);
}
.lpo-btn:hover { transform: translateY(-1px); color: #fff; }
.lpo-btn--ghost {
  background: transparent; color: var(--lpo-text);
  border: 1px solid var(--lpo-line); box-shadow: none;
}
.lpo-btn--ghost:hover { border-color: var(--lpo-accent); }

/* Accessibility ------------------------------------------------------------ */
.lpo a:focus-visible,
.lpo button:focus-visible,
.lpo input:focus-visible,
.lpo textarea:focus-visible {
  outline: 2px solid var(--lpo-accent);
  outline-offset: 2px;
}
.lpo-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 640px) {
  .lpo { padding: 4px; }
  .lpo-h { font-size: 1.4rem; }
  .lpo-card { padding: 18px; }
  .lpo-nav ul { gap: 0; }
  .lpo-nav-link { padding: 9px 11px; font-size: .88rem; }
  .lpo-steps li { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .lpo *, .lpo-progress-bar > span { transition: none !important; animation: none !important; }
  .lpo-btn:hover { transform: none; }
}

/* Phase 5 — Lab status line. */
.lpo-status { margin-top: 12px; font-size: .95rem; min-height: 1.2em; color: var(--lpo-muted); }
.lpo-status.is-ok { color: var(--lpo-ok); }
.lpo-status.is-err { color: var(--lpo-danger); }

/* Phase 7 — evidence badges. An "off" badge is visibly not-yet-earned, never
   dressed up to look achieved. */
.lpo-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.lpo-badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: .74rem; font-weight: 600; letter-spacing: .01em;
  background: var(--lpo-surface-2); color: var(--lpo-muted);
  border: 1px solid var(--lpo-line); opacity: .55;
}
.lpo-badge.is-on {
  background: rgba(67, 209, 122, .12); color: var(--lpo-ok);
  border-color: rgba(67, 209, 122, .3); opacity: 1;
}

/* Phase 8 — Rights Desk offers. */
.lpo-offer { border-top: 1px solid var(--lpo-line); padding-top: 16px; margin-top: 16px; }
.lpo-offer:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.lpo-terms { list-style: none; margin: 0 0 12px; padding: 0; }
.lpo-terms li { padding: 5px 0; color: var(--lpo-muted); font-size: .92rem; }
.lpo-terms strong { color: var(--lpo-text); font-weight: 600; }

/* Phase 9 — earnings figures + activity table. */
.lpo-figures { display: flex; flex-wrap: wrap; gap: 28px; margin: 8px 0 14px; }
.lpo-figure { display: flex; flex-direction: column; gap: 2px; }
.lpo-figure-v { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; }
.lpo-figure-l { font-size: .78rem; color: var(--lpo-muted); text-transform: uppercase; letter-spacing: .08em; }
.lpo-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.lpo-table th, .lpo-table td { text-align: left; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--lpo-line); }
.lpo-table th { color: var(--lpo-muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.lpo-table td { color: var(--lpo-muted); }
.lpo-table td strong { color: var(--lpo-text); }
@media (max-width: 640px) {
  .lpo-figures { gap: 18px; }
  .lpo-figure-v { font-size: 1.35rem; }
  .lpo-table { font-size: .84rem; }
}

/* LUM-P1-005 — Rights Desk decision surface. Deliberately heavier than a
   button: this is where someone licenses their face. */
.lpo-decide { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--lpo-line); }
.lpo-decide-lede { color: var(--lpo-muted); font-size: .92rem; margin: 0 0 12px; }
.lpo-decide-lede strong { color: var(--lpo-text); }
.lpo-decide-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.lpo-btn--danger { border-color: rgba(255, 107, 107, .5); color: var(--lpo-danger); }
.lpo-btn--danger:hover { border-color: var(--lpo-danger); }
.lpo-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.lpo-confirm {
  margin-top: 14px; padding: 18px; border-radius: var(--lpo-radius-sm);
  background: var(--lpo-surface-2); border: 1px solid var(--lpo-line);
}
.lpo-confirm-h { font-size: 1rem; font-weight: 650; margin: 0 0 10px; }
.lpo-confirm-list { margin: 0 0 14px; padding-left: 18px; }
.lpo-confirm-list li { color: var(--lpo-muted); font-size: .92rem; padding: 3px 0; }
.lpo-confirm-check {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px; border-radius: var(--lpo-radius-sm);
  background: rgba(108, 140, 255, .08); border: 1px solid rgba(108, 140, 255, .25);
  cursor: pointer; font-size: .94rem;
}
.lpo-confirm-check input { margin-top: 3px; flex: 0 0 auto; }

.lpo-field { display: block; margin-top: 12px; }
.lpo-field > span {
  display: block; margin-bottom: 5px; font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; color: var(--lpo-muted);
}
.lpo-field input, .lpo-field textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--lpo-radius-sm);
  background: var(--lpo-surface); border: 1px solid var(--lpo-line);
  color: var(--lpo-text); font-size: .95rem; font-family: inherit;
}
.lpo-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .lpo-field-row { grid-template-columns: 1fr; } }

/* LUM-P1-006 — Watch findings awaiting the talent's response. */
.lpo-finding { border-top: 1px solid var(--lpo-line); padding-top: 16px; margin-top: 16px; }
.lpo-finding:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.lpo-field select {
  width: 100%; padding: 10px 12px; border-radius: var(--lpo-radius-sm);
  background: var(--lpo-surface); border: 1px solid var(--lpo-line);
  color: var(--lpo-text); font-size: .95rem; font-family: inherit;
}

/* LUM-P1-004 — per-capture controls inside a plan step. */
.lpo-captures { display: block; padding: 0 0 10px; border-bottom: 1px solid var(--lpo-line); }
.lpo-capture {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; padding: 8px 0 8px 14px; border-left: 2px solid var(--lpo-line); margin-bottom: 6px;
}
.lpo-capture-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lpo-capture-actions { display: flex; gap: 8px; }
.lpo-btn--sm { min-height: 34px; padding: 0 14px; font-size: .74rem; }
.lpo-capture .lpo-status { width: 100%; margin-top: 0; font-size: .85rem; }

/* LUM-P1-003 — Agency Desk filters. */
.lpo-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.lpo-filters .lpo-field { margin-top: 0; flex: 1 1 200px; }
.lpo-filters .lpo-btn { flex: 0 0 auto; }
.lpo--desk .lpo-table td { vertical-align: top; }
.lpo--desk .lpo-badge { margin-left: 6px; }
@media (max-width: 640px) { .lpo-filters .lpo-field { flex-basis: 100%; } }

/* ---- Actionable setup journey (v0.16.0) ----------------------------------
 * Steps were inert text; the outstanding one now carries the action. Later
 * steps stay reachable but quiet so the next move is never ambiguous.        */
.lpo-steps li { flex-wrap: wrap; }
.lpo-steps li.is-active { background: rgba(108, 140, 255, .07); border-radius: 10px; padding-left: 12px; padding-right: 12px; }
.lpo-steps li.is-active .lpo-step-title { color: var(--lpo-text); font-weight: 650; }
.lpo-steps li.is-active .lpo-step-state { color: var(--lpo-accent); }
.lpo-step-cta { flex: 0 0 auto; margin-left: auto; }
.lpo-step-link {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--lpo-accent);
  font-size: .84rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.lpo-step-link:hover { border-bottom-color: var(--lpo-accent); }
.lpo-step-panel {
  flex: 1 0 100%;
  margin-top: .7rem;
  padding: 1rem;
  border: 1px solid var(--lpo-line);
  border-radius: 12px;
  background: var(--lpo-surface-2);
}
.lpo-label { display: block; margin: .7rem 0 .3rem; color: var(--lpo-muted); font-size: .84rem; }
.lpo-input {
  display: block;
  width: 100%;
  padding: .6rem .7rem;
  border: 1px solid var(--lpo-line);
  border-radius: 9px;
  background: var(--lpo-bg);
  color: var(--lpo-text);
  font: inherit;
}
.lpo-input:focus { outline: none; border-color: var(--lpo-accent); }
.lpo-step-panel .lpo-btn { margin-top: .9rem; }
.lpo-step-msg { margin: .7rem 0 0; font-size: .84rem; color: var(--lpo-muted); }
.lpo-step-msg.is-err { color: var(--lpo-warn); }
.lpo-step-msg.is-ok { color: var(--lpo-ok); }
textarea.lpo-input { resize: vertical; min-height: 3.2em; }
[data-lpo-constitution] .lpo-btn { margin-right: .5rem; }

/* ---------------------------------------------------------------------------
 * Recording indicator (LUM-CAP-004)
 *
 * A voice take has no picture, and an empty panel reads as a broken recorder.
 * This fills that space with something that is plainly alive.
 *
 * Decorative only — aria-hidden in the markup, because the status line above it
 * is already aria-live and says the same thing in words. A screen-reader user
 * should not be handed a silent picture of bars.
 * ------------------------------------------------------------------------- */
.lpo-rec {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .75rem;
	min-height: 96px;
	padding: 1rem;
	border-radius: 8px;
	background: rgba(0, 0, 0, .04);
}

.lpo-rec-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #c0392b;
	animation: lpo-rec-pulse 1.4s ease-in-out infinite;
}

.lpo-rec-bars {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	height: 34px;
}

.lpo-rec-bars i {
	display: block;
	width: 5px;
	height: 100%;
	border-radius: 2px;
	background: currentColor;
	opacity: .65;
	transform-origin: bottom;
	animation: lpo-rec-bar 1s ease-in-out infinite;
}

.lpo-rec-bars i:nth-child(2) { animation-delay: .15s; }
.lpo-rec-bars i:nth-child(3) { animation-delay: .30s; }
.lpo-rec-bars i:nth-child(4) { animation-delay: .45s; }
.lpo-rec-bars i:nth-child(5) { animation-delay: .60s; }

@keyframes lpo-rec-pulse {
	0%, 100% { opacity: 1; }
	50%      { opacity: .25; }
}

@keyframes lpo-rec-bar {
	0%, 100% { transform: scaleY(.25); }
	50%      { transform: scaleY(1); }
}

/* Someone who has asked for less motion still needs to know it is recording,
 * so the dot keeps its slow pulse and only the bars are stilled. */
@media ( prefers-reduced-motion: reduce ) {
	.lpo-rec-bars i { animation: none; transform: scaleY(.6); }
	.lpo-rec-dot    { animation-duration: 2.5s; }
}

/* ---------------------------------------------------------------------------
 * LUM-CAP-005 — capture panel corrections.
 *
 * `hidden` is an attribute, and any `display` rule beats it. `.lpo-rec` was
 * declared `display:flex`, so the recording indicator rendered on EVERY task —
 * including video, where it read as a stray audio player — and a hidden <video>
 * still reserved its box on a voice take, which is the large blank area above
 * the animation.
 *
 * One rule fixes both, and it is the kind of thing worth stating loudly because
 * it will happen again the next time something is toggled with `hidden`.
 * ------------------------------------------------------------------------- */
.lpo-cap-camera [hidden],
.lpo-rec[hidden],
.lpo-cap-camera video[hidden] {
	display: none !important;
}

/* The camera panel only needs height when something is actually in it. */
.lpo-cap-camera video { max-width: 100%; border-radius: 8px; }

/* --- Each take is its own card -------------------------------------------
 * Voice tasks ran together as a list, so it was not clear which button
 * belonged to which title. Give every task a boundary.
 */
.lpo-capture-add {
	display: block;
	margin: 0 0 1rem;
	padding: 1rem 1.1rem;
	/* THEME-RELATIVE, NOT WHITE.
	 * Hardcoding #fff put black-on-white cards into a dark theme and made the
	 * text unreadable. currentColor tints follow whatever the surrounding
	 * design is, so these read correctly on light and dark without knowing
	 * which one they are in. */
	border: 1px solid currentColor;
	border-color: color-mix(in srgb, currentColor 22%, transparent);
	border-radius: 10px;
	background: color-mix(in srgb, currentColor 5%, transparent);
	color: inherit;
}

/* Fallback for anything without color-mix. Still never sets a colour of its
 * own — a faint white overlay reads correctly on dark and light alike. */
@supports not (background: color-mix(in srgb, currentColor 5%, transparent)) {
	.lpo-capture-add {
		border-color: rgba(128, 128, 128, .35);
		background: rgba(128, 128, 128, .08);
	}
}

.lpo-capture-add.is-complete { border-color: rgba(46, 160, 82, .55); }

.lpo-capture-add > h3,
.lpo-capture-add > .lpo-task-title { margin: 0 0 .35rem; }

.lpo-capture-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: .75rem;
}

/* --- The brow: what good looks like ---------------------------------------
 * The guidance ("even light, whole face in frame") was plain text among other
 * plain text, so it read as decoration rather than as the instruction it is.
 */
.lpo-hint,
.lpo-capture-add .lpo-fine {
	display: block;
	margin: .5rem 0 0;
	padding: .55rem .75rem;
	border-left: 3px solid #4a9eff;
	border-radius: 0 6px 6px 0;
	background: rgba(74, 158, 255, .12);
	color: inherit;
	font-size: .92em;
	line-height: 1.45;
	opacity: .95;
}

/* --- Status reads as an announcement, not a stray line --------------------
 * "Checking your upload…" and "Saved — 1 of 3" were easy to miss, and on a
 * long plan you had to scroll back up to find them.
 */
.lpo-status:empty { display: none; }

.lpo-status {
	display: block;
	margin: .75rem 0 0;
	padding: .7rem .9rem;
	border-radius: 8px;
	border: 1px solid rgba(128, 128, 128, .35);
	background: rgba(128, 128, 128, .10);
	color: inherit;
	font-weight: 600;
}

.lpo-status.is-ok  { border-color: rgba(46, 160, 82, .6);  background: rgba(46, 160, 82, .15); }
.lpo-status.is-err { border-color: rgba(224, 72, 96, .6);  background: rgba(224, 72, 96, .15); }

/* The recording panel is inside a card now, so it must not assume light. */
.lpo-rec { background: rgba(128, 128, 128, .12); }

/* --- Vault (LUM-VAULT-002) -------------------------------------------------
 * Was a bare list of "Your original photograph" repeated eight times. Every
 * item now says which take it is, carries a modality icon, and previews in
 * place. Theme-relative throughout — no hardcoded light background.
 * ------------------------------------------------------------------------- */
.lpo-vault-item {
	display: block;
	margin: 0 0 .85rem;
	padding: .9rem 1rem;
	border: 1px solid rgba(128, 128, 128, .3);
	border-radius: 10px;
	background: rgba(128, 128, 128, .07);
	color: inherit;
	list-style: none;
}

.lpo-vault-head { display: flex; align-items: flex-start; gap: .75rem; }

.lpo-vault-icon {
	flex: 0 0 auto;
	width: 34px; height: 34px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 8px;
	background: rgba(128, 128, 128, .18);
	font-size: 1.05rem; line-height: 1;
}

.lpo-vault-titles { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.lpo-vault-title  { font-size: 1rem; line-height: 1.3; }
.lpo-vault-kind,
.lpo-vault-date   { font-size: .85em; opacity: .75; }

.lpo-vault-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }

.lpo-vault-preview { margin-top: .85rem; }
.lpo-vault-preview[hidden] { display: none !important; }

.lpo-vault-preview img,
.lpo-vault-preview video {
	max-width: 100%;
	max-height: 420px;
	border-radius: 8px;
	display: block;
}

.lpo-vault-preview audio { width: 100%; }

/* Support form (LUM-SUPPORT-001) */
.lpo-support-form { margin-top: .75rem; }
.lpo-support-form[hidden] { display: none !important; }
.lpo-support-form .lpo-label { display: block; margin-bottom: .35rem; font-weight: 600; }
.lpo-support-form .lpo-input {
	width: 100%;
	padding: .6rem .7rem;
	border-radius: 8px;
	border: 1px solid rgba(128, 128, 128, .4);
	background: rgba(128, 128, 128, .08);
	color: inherit;
	font: inherit;
}
.lpo-topic { margin-bottom: 1rem; }

/* --- Protection Watch dashboard (LUM-WATCH-002) ---------------------------
 * The page was a column of prose. These give the service a shape a customer
 * can read at a glance — every figure real, every empty state saying what
 * would fill it rather than showing a bare zero.
 * ------------------------------------------------------------------------- */
.lpo-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: .75rem;
	margin: 0 0 1.1rem;
	padding: 0;
	list-style: none;
}

.lpo-tile {
	display: flex;
	flex-direction: column;
	gap: .2rem;
	padding: .9rem 1rem;
	border: 1px solid rgba(128, 128, 128, .3);
	border-radius: 10px;
	background: rgba(128, 128, 128, .07);
}

/* Attention, not alarm: a nudge, not a red panel on a page about someone
 * worrying whether their likeness is safe. */
.lpo-tile.is-attn { border-color: rgba(224, 168, 60, .6); background: rgba(224, 168, 60, .10); }

.lpo-tile-n { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.lpo-tile-l { font-weight: 600; }
.lpo-tile-h { font-size: .85em; opacity: .75; line-height: 1.4; }

.lpo-checks { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }

.lpo-check {
	display: flex;
	align-items: flex-start;
	gap: .65rem;
	padding: .7rem .85rem;
	border: 1px solid rgba(128, 128, 128, .28);
	border-radius: 8px;
	background: rgba(128, 128, 128, .05);
}

.lpo-check.is-ok { border-color: rgba(46, 160, 82, .5); background: rgba(46, 160, 82, .10); }

.lpo-check-mark {
	flex: 0 0 auto;
	width: 22px; height: 22px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: rgba(128, 128, 128, .22);
	font-size: .8rem; line-height: 1;
}

.lpo-check.is-ok .lpo-check-mark { background: rgba(46, 160, 82, .3); }
.lpo-check strong { display: block; }
.lpo-check em { font-style: normal; font-size: .88em; opacity: .8; }

/* ═══════════════════════════════════════════════════════════════════════════
 * LUMOVEX PROTECTION OFFICE — VISUAL SYSTEM v2
 *
 * Brief: someone has paid four figures to protect their own face and voice.
 * The interface has to feel like a private vault inside a studio — expensive,
 * calm, unmistakably AI-native — not a settings page.
 *
 * Direction, and the reasoning, because "make it neon" and "make it good" are
 * not the same instruction:
 *
 *  · DEEP NAVY, not black. Black is cheap to produce and reads as absence.
 *    Navy has depth and holds coloured light, which is the whole point here.
 *
 *  · NEON AS SIGNAL, NOT WALLPAPER. Cyan means live, active, yours. Violet is
 *    structure. If everything glows, nothing means anything — so glow is
 *    reserved for things that are genuinely happening: an active term, a
 *    recording, a primary action.
 *
 *  · ELEVATION BY LIGHT. Surfaces come forward by getting lighter and catching
 *    a hairline of light along the top edge, the way real material does. No
 *    heavy borders.
 *
 *  · RESTRAINT WHERE IT COUNTS. Nothing pulses or animates on the pages about
 *    findings and legal decisions. A page someone opens because they are
 *    worried should be still.
 * ═══════════════════════════════════════════════════════════════════════════ */

.lpo {
	/* --- Navy ladder: each step forward is lighter and cooler -------------- */
	--lpo-bg:        #060a16;
	--lpo-surface:   #0c1326;
	--lpo-surface-2: #121b35;
	--lpo-surface-3: #18244a;
	--lpo-line:      #22315c;
	--lpo-line-soft: rgba(120, 160, 255, .14);

	--lpo-text:  #eaf0ff;
	--lpo-muted: #93a3c9;
	--lpo-dim:   #6b7ba3;

	/* --- Neon: cyan is "live and yours", violet is structure --------------- */
	--lpo-accent:    #2ee6f6;
	--lpo-accent-2:  #a86bff;
	--lpo-accent-3:  #ff5ea8;

	--lpo-ok:     #2ee6a8;
	--lpo-warn:   #ffc24d;
	--lpo-danger: #ff6b8a;

	--lpo-glow:      0 0 28px rgba(46, 230, 246, .30);
	--lpo-glow-soft: 0 0 18px rgba(168, 107, 255, .22);
	--lpo-shadow:    0 24px 60px rgba(0, 0, 0, .55);

	--lpo-radius:    18px;
	--lpo-radius-sm: 12px;

	color: var(--lpo-text);
	position: relative;
	max-width: 1120px;
	padding: 28px 20px 64px;
	letter-spacing: .005em;
}

/* Ambient light. Two soft pools rather than a flat fill, so the page has a
 * sense of depth before a single element is drawn on it. */
.lpo::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(1100px 700px at 12% -8%,  rgba(46, 230, 246, .10), transparent 60%),
		radial-gradient(900px 620px at 92% 4%,    rgba(168, 107, 255, .12), transparent 62%),
		radial-gradient(1200px 800px at 50% 110%, rgba(255, 94, 168, .07), transparent 60%),
		var(--lpo-bg);
	pointer-events: none;
}

/* --- Type ---------------------------------------------------------------- */

/*
 * SECTION TITLES CARRY THE BRAND GRADIENT.
 *
 * The token is read from the theme, with the literal as a fallback. That
 * fallback is not politeness: `background-clip: text` with `color: transparent`
 * renders NOTHING if the background resolves to nothing, so a bare
 * var(--lvx-gradient) would turn every page title invisible anywhere the theme
 * variable is not in scope. A missing brand colour should cost you the brand
 * colour, never the words.
 *
 * The BRIGHT variant is used rather than the base one. On a button the gradient
 * is a background with dark text on top of it, so the deep purple end reads
 * fine. Here the gradient IS the text, on a dark page, and #9c27b0 against
 * #0b1024 is close to unreadable by the last few letters of a long title. The
 * bright end keeps the same hue and stays legible.
 */
.lpo {
	--lpo-title-gradient: var(
		--lvx-gradient-bright,
		var( --lvx-gradient, linear-gradient(120deg, #00e5ff 0%, #c13ad6 100%) )
	);
}

.lpo .lpo-h {
	font-size: clamp(1.9rem, 3.4vw, 2.6rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -.022em;
	margin: 0 0 .35rem;

	/*
	 * INLINE-BLOCK IS LOAD-BEARING HERE, and it was not needed before.
	 *
	 * The old gradient ran at 180deg, straight down, so the width of the box
	 * made no difference. The brand gradient runs at 120deg, which is mostly
	 * horizontal, and a block-level heading is as wide as its container whatever
	 * the text does. "Vault" in a 900px head would show the first six percent of
	 * the sweep and read as flat cyan, while "Licences and Earnings" showed the
	 * whole thing. Shrinking the box to the text makes every section title show
	 * the same full sweep.
	 */
	display: inline-block;

	/* Descenders sit outside the line box once the background is clipped to the
	   glyphs, so the g in "Pricing" loses its tail without this. */
	padding-bottom: .06em;

	background-image: var( --lpo-title-gradient );
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/*
 * Everywhere the clip cannot work, the words come back.
 *
 * This guard did not exist before and the old rule had the same exposure: any
 * context that ignores background-clip leaves `color: transparent` behind, and
 * transparent text on any background is no text at all. Three cases matter in
 * practice.
 */

/* 1. A browser without background-clip support at all. */
@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
	.lpo .lpo-h { color: var(--lpo-text); background-image: none; }
}

/* 2. Windows high contrast and similar, where the system chooses the colours
      and decorative backgrounds are dropped. */
@media (forced-colors: active) {
	.lpo .lpo-h {
		background-image: none;
		color: CanvasText;
		forced-color-adjust: none;
	}
}

/* 3. Print. Backgrounds are commonly stripped, which would print every section
      heading as a blank space. */
@media print {
	.lpo .lpo-h { background-image: none; color: #000; }
}

.lpo .lpo-h2 {
	font-size: 1.14rem;
	font-weight: 650;
	letter-spacing: -.012em;
	margin: 0;
}

.lpo-sub { color: var(--lpo-muted); font-size: 1.02rem; max-width: 68ch; }
.lpo-hint, .lpo-fine { color: var(--lpo-muted); }

/* --- Card: glass, with a hairline of light along the top ------------------ */
.lpo .lpo-card {
	position: relative;
	border-radius: var(--lpo-radius);
	border: 1px solid var(--lpo-line-soft);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, .045) 0%, rgba(255, 255, 255, 0) 42%),
		var(--lpo-surface);
	box-shadow: var(--lpo-shadow);
	padding: 1.35rem 1.45rem;
	margin: 0 0 1.15rem;
	overflow: hidden;
}

.lpo .lpo-card::after {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(46, 230, 246, .55), rgba(168, 107, 255, .45), transparent);
	opacity: .8;
}

/* The one card that is asking for something gets the accent edge. */
.lpo .lpo-card--primary {
	border-color: rgba(46, 230, 246, .34);
	box-shadow: var(--lpo-shadow), var(--lpo-glow);
}

.lpo-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }

/* --- Navigation: a segmented rail, current item lit ----------------------- */
.lpo .lpo-nav {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
	padding: .4rem;
	margin: 0 0 1.3rem;
	border-radius: 999px;
	border: 1px solid var(--lpo-line-soft);
	background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0)), var(--lpo-surface);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.lpo .lpo-nav-link {
	display: inline-flex;
	align-items: center;
	padding: .5rem .95rem;
	border-radius: 999px;
	color: var(--lpo-muted);
	text-decoration: none;
	font-size: .93rem;
	font-weight: 550;
	white-space: nowrap;
	transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.lpo-nav-link:hover { color: var(--lpo-text); background: rgba(255, 255, 255, .05); }

.lpo .lpo-nav-link.is-current {
	color: #04121c;
	background: linear-gradient(135deg, var(--lpo-accent), #67f2ff);
	box-shadow: var(--lpo-glow);
	font-weight: 680;
}

.lpo-nav-link.is-locked { opacity: .42; }

/* --- Buttons ------------------------------------------------------------- */
.lpo .lpo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .45rem;
	padding: .68rem 1.15rem;
	border-radius: 999px;
	border: 1px solid transparent;
	background: linear-gradient(135deg, var(--lpo-accent), #5ad0ff);
	color: #04121c;
	font: inherit;
	font-weight: 660;
	letter-spacing: .004em;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(46, 230, 246, .22);
	transition: transform .14s ease, box-shadow .18s ease, filter .18s ease;
}

.lpo-btn:hover  { filter: brightness(1.07); box-shadow: 0 10px 30px rgba(46, 230, 246, .34); transform: translateY(-1px); }
.lpo-btn:active { transform: translateY(0); }
.lpo-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.lpo .lpo-btn--ghost {
	background: rgba(255, 255, 255, .04);
	border-color: var(--lpo-line);
	color: var(--lpo-text);
	box-shadow: none;
}
.lpo-btn--ghost:hover { background: rgba(46, 230, 246, .10); border-color: rgba(46, 230, 246, .45); box-shadow: none; }

.lpo-btn--danger { background: linear-gradient(135deg, var(--lpo-danger), #ff8fa3); color: #2a0710; box-shadow: 0 8px 24px rgba(255, 107, 138, .22); }
.lpo-btn--sm { padding: .48rem .85rem; font-size: .88rem; }

.lpo .lpo-btn:focus-visible,
.lpo .lpo-nav-link:focus-visible,
.lpo-input:focus-visible { outline: 2px solid var(--lpo-accent); outline-offset: 2px; }

/* --- Pills --------------------------------------------------------------- */
.lpo .lpo-pill {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .32rem .8rem;
	border-radius: 999px;
	font-size: .82rem;
	font-weight: 620;
	letter-spacing: .01em;
	border: 1px solid var(--lpo-line);
	background: rgba(255, 255, 255, .04);
	color: var(--lpo-muted);
}

.lpo .lpo-pill--ok {
	color: #04140f;
	background: linear-gradient(135deg, var(--lpo-ok), #7df7c8);
	border-color: transparent;
	box-shadow: 0 0 20px rgba(46, 230, 168, .32);
}

.lpo-pill--warn { color: var(--lpo-warn); border-color: rgba(255, 194, 77, .45); background: rgba(255, 194, 77, .10); }

/* --- Stat tiles: the numbers are the hero --------------------------------- */
.lpo-tiles { gap: .85rem; }

.lpo .lpo-tile {
	position: relative;
	padding: 1.15rem 1.2rem;
	border-radius: var(--lpo-radius-sm);
	border: 1px solid var(--lpo-line-soft);
	background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0)), var(--lpo-surface-2);
	overflow: hidden;
	transition: transform .18s ease, border-color .18s ease;
}

.lpo-tile:hover { transform: translateY(-2px); border-color: rgba(46, 230, 246, .3); }

.lpo .lpo-tile-n {
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	background: linear-gradient(180deg, #ffffff, var(--lpo-accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.lpo-tile-l { font-weight: 620; letter-spacing: -.008em; }
.lpo-tile-h { color: var(--lpo-dim); }

.lpo-tile.is-attn { border-color: rgba(255, 194, 77, .45); background: linear-gradient(180deg, rgba(255, 194, 77, .10), rgba(255, 255, 255, 0)), var(--lpo-surface-2); }
.lpo-tile.is-attn .lpo-tile-n { background: linear-gradient(180deg, #fff, var(--lpo-warn)); -webkit-background-clip: text; background-clip: text; }

/* --- Condition checks ----------------------------------------------------- */
.lpo .lpo-check {
	border-color: var(--lpo-line-soft);
	background: var(--lpo-surface-2);
	border-radius: var(--lpo-radius-sm);
	padding: .85rem 1rem;
}

.lpo-check-mark { background: rgba(255, 255, 255, .07); color: var(--lpo-dim); }

.lpo-check.is-ok { border-color: rgba(46, 230, 168, .4); background: linear-gradient(180deg, rgba(46, 230, 168, .10), rgba(255, 255, 255, 0)), var(--lpo-surface-2); }
.lpo-check.is-ok .lpo-check-mark { background: linear-gradient(135deg, var(--lpo-ok), #7df7c8); color: #04140f; box-shadow: 0 0 14px rgba(46, 230, 168, .4); }
.lpo-check em { color: var(--lpo-muted); }

/* --- Capture and vault surfaces ------------------------------------------ */
.lpo .lpo-capture-add,
.lpo .lpo-vault-item {
	border-color: var(--lpo-line-soft);
	background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0)), var(--lpo-surface-2);
	border-radius: var(--lpo-radius-sm);
}

.lpo-capture-add.is-complete { border-color: rgba(46, 230, 168, .38); }

.lpo .lpo-vault-icon {
	background: linear-gradient(135deg, rgba(46, 230, 246, .22), rgba(168, 107, 255, .22));
	color: var(--lpo-accent);
	border: 1px solid var(--lpo-line-soft);
}

.lpo-vault-kind, .lpo-vault-date { color: var(--lpo-dim); }

/* Guidance brow: violet rule, so it reads as instruction rather than alarm. */
.lpo .lpo-hint,
.lpo .lpo-capture-add .lpo-fine {
	border-left-color: var(--lpo-accent-2);
	background: rgba(168, 107, 255, .10);
	color: var(--lpo-muted);
	border-radius: 0 var(--lpo-radius-sm) var(--lpo-radius-sm) 0;
}

/* --- Status: an announcement, not a line of text -------------------------- */
.lpo .lpo-status {
	border-color: var(--lpo-line);
	background: var(--lpo-surface-2);
	border-radius: var(--lpo-radius-sm);
	color: var(--lpo-text);
}

.lpo-status.is-ok   { border-color: rgba(46, 230, 168, .45); background: rgba(46, 230, 168, .10); }
.lpo-status.is-err  { border-color: rgba(255, 107, 138, .45); background: rgba(255, 107, 138, .10); }
.lpo-status.is-warn { border-color: rgba(255, 194, 77, .45); background: rgba(255, 194, 77, .10); }

/* --- Recording: the one place a live glow is earned ----------------------- */
.lpo .lpo-rec {
	background: radial-gradient(120% 120% at 50% 0%, rgba(255, 94, 168, .16), transparent 70%), var(--lpo-surface-3);
	border: 1px solid rgba(255, 94, 168, .32);
	border-radius: var(--lpo-radius-sm);
	color: var(--lpo-accent-3);
	min-height: 108px;
}

.lpo-rec-dot { background: var(--lpo-accent-3); box-shadow: 0 0 16px rgba(255, 94, 168, .8); }
.lpo-rec-bars i { background: currentColor; opacity: .85; }

/* --- Progress ------------------------------------------------------------ */
.lpo-progress { background: rgba(255, 255, 255, .07); border-radius: 999px; overflow: hidden; height: 8px; }
.lpo-progress-bar { background: linear-gradient(90deg, var(--lpo-accent), var(--lpo-accent-2)); box-shadow: var(--lpo-glow); height: 100%; }

/* --- Inputs -------------------------------------------------------------- */
.lpo .lpo-input, .lpo-support-form .lpo-input {
	background: rgba(2, 6, 18, .55);
	border: 1px solid var(--lpo-line);
	border-radius: var(--lpo-radius-sm);
	color: var(--lpo-text);
	padding: .7rem .85rem;
}
.lpo-input::placeholder { color: var(--lpo-dim); }
.lpo-input:focus { border-color: rgba(46, 230, 246, .55); box-shadow: 0 0 0 3px rgba(46, 230, 246, .12); outline: none; }

/* --- Steps --------------------------------------------------------------- */
.lpo .lpo-step-panel {
	border: 1px solid var(--lpo-line-soft);
	border-radius: var(--lpo-radius-sm);
	background: var(--lpo-surface-2);
	padding: 1rem 1.1rem;
	margin-bottom: .7rem;
}
.lpo-step-title { font-weight: 620; }
.lpo-step-state { color: var(--lpo-dim); font-size: .85em; }
.lpo-step-msg   { color: var(--lpo-muted); }

/* --- Tables -------------------------------------------------------------- */
.lpo-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.lpo .lpo-table th {
	text-align: left;
	font-size: .78rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--lpo-dim);
	padding: .6rem .75rem;
	border-bottom: 1px solid var(--lpo-line);
}
.lpo-table td { padding: .8rem .75rem; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.lpo-table tr:last-child td { border-bottom: 0; }

/* --- Media --------------------------------------------------------------- */
.lpo .lpo-vault-preview img,
.lpo-vault-preview video { border: 1px solid var(--lpo-line-soft); box-shadow: var(--lpo-shadow); }

/* Honour the request. Motion is decoration here; the meaning is always in the
 * words as well, so removing it costs nothing. */
@media ( prefers-reduced-motion: reduce ) {
	.lpo-btn, .lpo-tile, .lpo-nav-link { transition: none; }
	.lpo-btn:hover, .lpo-tile:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * VISUAL SYSTEM v2.1 — width, ambient artwork, and the sections that missed out
 * ═══════════════════════════════════════════════════════════════════════════ */

.lpo {
	/* PROPORTIONAL, NOT A FIXED COLUMN.
	 *
	 * A capped width leaves a 27" display mostly empty while a 14" laptop still
	 * feels cramped — the same number is wrong at both ends. A percentage tracks
	 * the screen it is actually on.
	 *
	 * Narrow screens get MORE of the viewport, not less: at that size the
	 * margin is wasted, and every pixel of gutter is a pixel not showing a
	 * capture or a licence.
	 */
	width: 80%;
	max-width: none;
	margin-inline: auto;
	padding: 32px 0 72px;

	/* Supplied by the theme via the `lpo_hero_image` filter. Empty is fine —
	 * everything below degrades to the gradient field on its own. */
	--lpo-hero: none;
}

/* --- Ambient artwork -------------------------------------------------------
 * The theme's hero ring, held behind everything: centred, contained (never
 * stretched), heavily knocked back, and drifting a few pixels toward the
 * pointer with a long ease. On an image this large the movement is almost
 * subliminal — which is the point. It should feel alive, not animated.
 *
 * Two layers: ::before carries the artwork and moves, ::after holds the static
 * colour field. Separating them means the gradients never smear as it drifts.
 * ------------------------------------------------------------------------- */
.lpo::before {
	content: "";
	position: fixed;
	inset: -6vmax;                     /* overscan, so drifting never reveals an edge */
	z-index: -2;
	background-image: var(--lpo-hero);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: contain;          /* fit, never stretch */
	/* THIS is what controls how visible the ring is — not the scrim below it.
	 * Two passes were spent lightening that scrim while the artwork sat at 10%,
	 * which is why nothing appeared to change. At .28 the ring reads clearly
	 * and still stays behind the content rather than competing with it. */
	opacity: .28;
	transform: translate3d(var(--lpo-px, 0px), var(--lpo-py, 0px), 0);
	transition: transform 1.6s cubic-bezier(.22, .61, .36, 1);
	will-change: transform;
	pointer-events: none;
}

.lpo::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(1100px 700px at 12% -8%,  rgba(46, 230, 246, .10), transparent 60%),
		radial-gradient(900px 620px at 92% 4%,    rgba(168, 107, 255, .12), transparent 62%),
		radial-gradient(1200px 800px at 50% 110%, rgba(255, 94, 168, .07), transparent 60%),
		/* The scrim, last so it sits beneath the coloured pools.
		 *
		 * Settled at .42 after two passes. .82 buried the artwork entirely;
		 * .55 was still heavier than it needed to be. Text keeps a dark ground
		 * because the CARDS carry their own surfaces — this layer only has to
		 * stop the page behind them competing, not black it out. */
		linear-gradient(rgba(6, 10, 22, .42), rgba(6, 10, 22, .42));
	pointer-events: none;
}

/* A SCRIM, NOT A FILL — and not nothing either.
 *
 * An opaque navy hid the artwork it was meant to sit on. Removing it entirely
 * was worse: the dark came from HERE, not from the theme, so interior pages
 * fell back to the theme's light background and near-white text vanished on it.
 *
 * A translucent dark layer does both jobs. The ring reads through at roughly a
 * fifth strength, and text is guaranteed a dark ground underneath it whatever
 * the theme is doing — which matters because a page can never be allowed to
 * become unreadable depending on where it is embedded.
 *
 * On the fixed layer rather than the element, so it covers the viewport rather
 * than stopping where the content stops. */

@media ( prefers-reduced-motion: reduce ) {
	.lpo::before { transition: none; transform: none; }
}

/* --- Navigation ----------------------------------------------------------- */
.lpo .lpo-nav { border-radius: 11px; }
.lpo .lpo-nav-link { border-radius: 8px; }

/* --- Headings: these three sections use lpo-h1 ---------------------------- */
.lpo .lpo-h1 {
	font-size: clamp(1.9rem, 3.4vw, 2.6rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -.022em;
	margin: 0 0 .35rem;
	background: linear-gradient(180deg, #ffffff 10%, #b9c9f2 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* --- Vault grants --------------------------------------------------------- */
.lpo .lpo-grants { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }

.lpo .lpo-grant {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	padding: .95rem 1.1rem;
	border: 1px solid var(--lpo-line-soft);
	border-radius: var(--lpo-radius-sm);
	background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0)), var(--lpo-surface-2);
}

.lpo .lpo-grant-main { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.lpo .lpo-grant-who  { font-weight: 640; letter-spacing: -.008em; }
.lpo .lpo-grant .lpo-hint { border: 0; background: none; padding: 0; color: var(--lpo-dim); font-size: .86em; }

/* --- Documents ------------------------------------------------------------ */
.lpo .lpo-docs { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }

.lpo .lpo-docs > li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	padding: .95rem 1.1rem;
	border: 1px solid var(--lpo-line-soft);
	border-radius: var(--lpo-radius-sm);
	background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0)), var(--lpo-surface-2);
	transition: border-color .18s ease;
}

.lpo .lpo-docs > li:hover { border-color: rgba(46, 230, 246, .3); }
.lpo .lpo-doc-name { font-weight: 620; letter-spacing: -.008em; }

/* --- Support topics ------------------------------------------------------- */
.lpo .lpo-topic {
	padding: 1.05rem 1.15rem;
	border: 1px solid var(--lpo-line-soft);
	border-radius: var(--lpo-radius-sm);
	background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0)), var(--lpo-surface-2);
	transition: border-color .18s ease;
}

.lpo .lpo-topic:hover { border-color: rgba(168, 107, 255, .38); }
.lpo .lpo-topic h3 { margin: 0 0 .3rem; font-size: 1.02rem; font-weight: 640; }
.lpo .lpo-label { display: block; margin-bottom: .4rem; font-weight: 620; color: var(--lpo-muted); }

/* --- Width, by screen ------------------------------------------------------
 * 80% on desktop, 95% below — a narrow screen has no margin to spare, and the
 * gutter that reads as composure on a monitor reads as waste on a laptop.
 * ------------------------------------------------------------------------- */
@media ( max-width: 1200px ) {
	.lpo { width: 95%; }
}

/* The nav is inside .lpo, so it follows the container rather than needing its
 * own width. Stated here only because it was the thing that looked pinned. */
.lpo .lpo-nav { width: 100%; box-sizing: border-box; }

/* ═══════════════════════════════════════════════════════════════════════════
 * NAVIGATION — QUIET BY DEFAULT
 *
 * The menu's job is to let you leave. It is not what anyone came for, and on a
 * page whose entire purpose is "here is your next step", thirteen links above
 * that step compete with it and win.
 *
 * So: a single slim bar that says where you are, and opens on click. Content
 * starts near the top of the page again.
 * ═══════════════════════════════════════════════════════════════════════════ */

.lpo .lpo-nav {
	display: block;
	margin: 0 0 1.4rem;
	border-radius: 14px;
	border: 1px solid var(--lpo-line-soft);
	background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 70%), var(--lpo-surface);
	box-shadow: 0 14px 36px rgba(0, 0, 0, .3);
	overflow: hidden;
}

/* --- The bar: home on the left, sections on the right ----------------------
 * Two controls with a visible divide, because they do different things. An
 * icon that looks like a destination and behaves like a disclosure is a small
 * lie told on every page.
 * ------------------------------------------------------------------------- */
.lpo .lpo-nav-bar { display: flex; align-items: stretch; }

.lpo .lpo-nav-home {
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .8rem 1.05rem;
	text-decoration: none;
	color: var(--lpo-text);
	border-right: 1px solid var(--lpo-line-soft);
	transition: background .16s ease;
	flex: 0 0 auto;
}

.lpo .lpo-nav-home:hover { background: rgba(46, 230, 246, .1); }
.lpo .lpo-nav-home:focus-visible { outline: 2px solid var(--lpo-accent); outline-offset: -2px; }

.lpo .lpo-nav-home-mark {
	width: 30px; height: 30px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 9px;
	color: #04121c;
	background: linear-gradient(135deg, var(--lpo-accent), var(--lpo-accent-2));
	flex: 0 0 auto;
}

.lpo .lpo-nav-home-label { font-size: .92rem; font-weight: 640; letter-spacing: -.01em; white-space: nowrap; }

/* On the status page itself the home control is already where you are, so it
 * reads as a marker rather than an invitation. */
.lpo .lpo-nav-home.is-current { background: rgba(46, 230, 246, .08); }
.lpo .lpo-nav-home.is-current .lpo-nav-home-label { color: var(--lpo-accent); }

.lpo .lpo-nav-open {
	display: flex;
	align-items: center;
	gap: .85rem;
	flex: 1 1 auto;
	padding: .8rem 1.1rem;
	border: 0;
	background: transparent;
	color: var(--lpo-text);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.lpo .lpo-nav-open:hover { background: rgba(255, 255, 255, .04); }
.lpo .lpo-nav-open:focus-visible { outline: 2px solid var(--lpo-accent); outline-offset: -2px; }

.lpo .lpo-nav-open-where { display: flex; flex-direction: column; gap: .05rem; min-width: 0; flex: 1 1 auto; }

.lpo .lpo-nav-bar-eyebrow {
	font-size: .62rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--lpo-dim);
}

.lpo .lpo-nav-bar-title { font-size: 1rem; font-weight: 660; letter-spacing: -.01em; }

.lpo .lpo-nav-bar-cue { display: flex; align-items: center; gap: .5rem; color: var(--lpo-muted); font-size: .84rem; }

.lpo .lpo-nav-chev {
	width: 8px; height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform .2s ease;
}

.lpo .lpo-nav-open[aria-expanded="true"] .lpo-nav-chev { transform: rotate(-135deg) translate(-3px, -3px); }

@media ( max-width: 620px ) {
	.lpo .lpo-nav-home-label { display: none; }
	.lpo .lpo-nav-home { padding: .8rem .85rem; }
}

/* --- The panel ------------------------------------------------------------- */
.lpo .lpo-nav-groups {
	display: flex;
	flex-wrap: wrap;
	gap: 1.4rem;
	padding: 1rem 1.1rem 1.15rem;
	border-top: 1px solid var(--lpo-line-soft);
	background: rgba(0, 0, 0, .18);
}

/* `hidden` must beat the display rule above it, in every engine. Specificity
 * says it already does, but this pattern has bitten this codebase twice — a
 * display rule silently overriding the attribute — so it is stated outright
 * rather than reasoned about. */
.lpo .lpo-nav-groups[hidden] { display: none !important; }

.lpo .lpo-nav-group { display: flex; flex-direction: column; gap: .35rem; flex: 0 0 auto; }

.lpo .lpo-nav-group-label {
	font-size: .62rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--lpo-dim);
	padding-left: .55rem;
}

.lpo .lpo-nav-group.has-current .lpo-nav-group-label { color: var(--lpo-accent); }

/* Items in a group never split across lines — a lone "Studio" on its own row
 * reads as a stray rather than part of the set. Groups reflow, items do not. */
.lpo .lpo-nav-group ul {
	display: flex;
	flex-wrap: nowrap;
	gap: .2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lpo .lpo-nav li { list-style: none; margin: 0; padding: 0; }
.lpo .lpo-nav li::before,
.lpo .lpo-nav li::marker { content: none; }

.lpo .lpo-nav-link {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding: .42rem .65rem;
	border-radius: 8px;
	color: var(--lpo-muted);
	text-decoration: none;
	font-size: .9rem;
	font-weight: 550;
	white-space: nowrap;
	transition: color .16s ease, background .16s ease;
}

.lpo .lpo-nav-link:hover { color: var(--lpo-text); background: rgba(255, 255, 255, .07); }

.lpo .lpo-nav-link.is-current {
	color: var(--lpo-text);
	font-weight: 680;
	background: rgba(46, 230, 246, .12);
	box-shadow: inset 0 -2px 0 var(--lpo-accent);
}

/* Dimmed, never hidden — hiding what somebody has not bought makes an upgrade
 * feel like a trick. */
.lpo .lpo-nav-link.is-locked { opacity: .45; }
.lpo .lpo-nav-link.is-locked .lpo-lock { color: var(--lpo-warn); font-size: .55rem; }

@media ( max-width: 860px ) {
	.lpo .lpo-nav-groups { flex-direction: column; gap: 1rem; }
	.lpo .lpo-nav-group ul { flex-wrap: wrap; }
	.lpo .lpo-nav-link { font-size: .95rem; padding: .5rem .7rem; }
	.lpo .lpo-nav-bar-cue .lpo-nav-bar-open { display: none; }
}

@media ( prefers-reduced-motion: reduce ) {
	.lpo .lpo-nav-link, .lpo .lpo-nav-chev { transition: none; }
}

/* --- Member portrait --------------------------------------------------------
 * Their own approved front-face reference, or a silhouette. Sized to the text
 * beside it so the header reads as one unit rather than an image with a caption.
 * ------------------------------------------------------------------------- */
.lpo .lpo-ident { display: flex; align-items: center; gap: 1.1rem; min-width: 0; }

.lpo .lpo-avatar {
	position: relative;
	flex: 0 0 auto;
	width: 74px;
	height: 74px;
	border-radius: 18px;
	overflow: visible;
	border: 1px solid var(--lpo-line-soft);
	background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0)), var(--lpo-surface-2);
}

.lpo .lpo-avatar img {
	width: 100%; height: 100%;
	object-fit: cover;
	border-radius: 17px;
	display: block;
}

/* The silhouette is deliberately quiet — it is a placeholder, not a state to
 * be alarmed about. */
.lpo .lpo-avatar svg { width: 100%; height: 100%; fill: var(--lpo-dim); opacity: .5; border-radius: 17px; }
.lpo .lpo-avatar.is-empty { border-style: dashed; border-color: rgba(120, 160, 255, .26); }

/* Top-left, so it never sits over a face. */
.lpo .lpo-avatar-edit {
	position: absolute;
	top: -7px;
	left: -7px;
	width: 24px; height: 24px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	color: #04121c;
	background: linear-gradient(135deg, var(--lpo-accent), #67f2ff);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
	text-decoration: none;
	transition: transform .16s ease;
}

.lpo .lpo-avatar-edit:hover { transform: scale(1.1); }
.lpo .lpo-avatar-edit:focus-visible { outline: 2px solid var(--lpo-accent); outline-offset: 2px; }

/* The capture someone was sent here to take. */
.lpo .lpo-capture-add.is-targeted {
	border-color: rgba(46, 230, 246, .55);
	box-shadow: 0 0 0 1px rgba(46, 230, 246, .25), var(--lpo-glow);
}

@media ( max-width: 620px ) {
	.lpo .lpo-avatar { width: 60px; height: 60px; }
}

@media ( prefers-reduced-motion: reduce ) {
	.lpo .lpo-avatar-edit { transition: none; }
	.lpo .lpo-avatar-edit:hover { transform: none; }
}

/* --- Sent here to do one thing ---------------------------------------------- */
.lpo .lpo-callout-act { margin: .9rem 0 .4rem; }

/* The step someone was sent to complete. Cyan, matching every other "this is
 * live and yours" cue in the product. */
.lpo .lpo-steps li.is-targeted {
	border-radius: 10px;
	padding: .6rem .8rem;
	margin-left: -.8rem;
	background: rgba(46, 230, 246, .12);
	box-shadow: inset 3px 0 0 var(--lpo-accent);
}

/* --- Identity proof capture -------------------------------------------------
 * Violet, matching every other "this is a term or a document" cue rather than
 * the cyan used for likeness capture. It is evidence, not a reference image.
 * ------------------------------------------------------------------------- */
.lpo .lpo-proof {
	margin: 1rem 0;
	padding: 1.1rem 1.2rem;
	border: 1px solid rgba(168, 107, 255, .34);
	border-radius: var(--lpo-radius-sm);
	background: linear-gradient(180deg, rgba(168, 107, 255, .1), rgba(255, 255, 255, 0)), var(--lpo-surface-2);
}

.lpo .lpo-proof-h { margin: 0 0 .3rem; font-size: .98rem; font-weight: 660; }

.lpo .lpo-proof-stage { margin: .85rem 0; }
.lpo .lpo-proof-stage video,
.lpo .lpo-proof-stage img {
	width: 100%;
	max-height: 320px;
	object-fit: contain;
	border-radius: 10px;
	background: rgba(2, 6, 18, .55);
	display: block;
}
.lpo .lpo-proof-stage video[hidden],
.lpo .lpo-proof-stage img[hidden] { display: none !important; }

/* --- Greeting ----------------------------------------------------------------
 * Name on its own line, and smaller above it — the person is the subject, not
 * the salutation.
 * ------------------------------------------------------------------------- */
.lpo .lpo-h-greet {
	display: block;
	font-size: .5em;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .75;
	margin-bottom: .12em;
}

.lpo .lpo-h-name { display: block; }

/* --- The assemble action -----------------------------------------------------
 * Every capture and approval in the Lab leads to this one press. It was a ghost
 * button among ghost buttons, so somebody who had finished could not tell what
 * to do next.
 *
 * ONE BUTTON IN THE PRODUCT WEARS THIS. It is 1.22rem at weight 720 with a
 * breathing glow, which is right for the single action a whole page builds
 * toward and absurd on the word "Open". Emphasis is relative — spend it twice
 * and it is worth nothing either time.
 * ------------------------------------------------------------------------- */
.lpo .lpo-assemble { display: flex; justify-content: center; margin: 1.6rem 0 .5rem; }

.lpo .lpo-btn--hero {
	padding: 1.15rem 3rem;
	font-size: 1.22rem;
	font-weight: 720;
	letter-spacing: .012em;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--lpo-accent) 0%, #67f2ff 45%, var(--lpo-accent-2) 100%);
	color: #04121c;
	box-shadow:
		0 14px 44px rgba(46, 230, 246, .38),
		0 0 0 1px rgba(255, 255, 255, .12) inset;
}

.lpo .lpo-btn--hero:hover {
	filter: brightness(1.06);
	transform: translateY(-2px);
	box-shadow:
		0 18px 54px rgba(46, 230, 246, .5),
		0 0 0 1px rgba(255, 255, 255, .18) inset;
}

/* A slow breath, so it reads as ready rather than as an alarm. This is the one
 * button in the product that should ask to be pressed. */
@media ( prefers-reduced-motion: no-preference ) {
	.lpo .lpo-btn--hero { animation: lpo-hero-breathe 3.4s ease-in-out infinite; }
}

@keyframes lpo-hero-breathe {
	0%, 100% { box-shadow: 0 14px 44px rgba(46, 230, 246, .34), 0 0 0 1px rgba(255, 255, 255, .12) inset; }
	50%      { box-shadow: 0 16px 52px rgba(46, 230, 246, .5),  0 0 0 1px rgba(255, 255, 255, .16) inset; }
}

/* The vault reassurance under the identity capture — quiet, but present at the
 * moment somebody is deciding whether to photograph their passport. */
.lpo .lpo-proof-note {
	margin-top: .7rem;
	padding-top: .65rem;
	border-top: 1px solid var(--lpo-line-soft);
	font-size: .82rem;
	line-height: 1.5;
	opacity: .85;
}

@media ( max-width: 620px ) {
	.lpo .lpo-btn--hero { padding: 1rem 1.8rem; font-size: 1.05rem; width: 100%; }
}

/* --- Working overlay ---------------------------------------------------------
 * Shown while a request is in flight. A dimmed button is not enough feedback for
 * a call that takes seconds — it looks identical to a button that did nothing.
 * ------------------------------------------------------------------------- */
.lpo-wait {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.1rem;
	background: rgba(4, 8, 18, .72);
	backdrop-filter: blur(3px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .18s ease, visibility .18s ease;
	pointer-events: none;
}

/* Pointer events only once visible — an invisible overlay must never swallow a
 * click. */
.lpo-wait.is-on { opacity: 1; visibility: visible; pointer-events: auto; }

.lpo-wait-ring {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 3px solid rgba(46, 230, 246, .22);
	border-top-color: #2ee6f6;
	animation: lpo-wait-spin .8s linear infinite;
}

@keyframes lpo-wait-spin { to { transform: rotate(360deg); } }

.lpo-wait-word {
	margin: 0;
	color: #eaf0ff;
	font-size: .95rem;
	font-weight: 600;
	letter-spacing: .01em;
}

/* Still says it is working, without the spin. */
@media ( prefers-reduced-motion: reduce ) {
	.lpo-wait-ring { animation: lpo-wait-fade 1.6s ease-in-out infinite; }
	@keyframes lpo-wait-fade { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
	.lpo-wait { transition: none; }
}

/* --- Licensable consent ------------------------------------------------------
 * Sits with the approval controls, because approving a shot and allowing it to
 * be licensed are decided in the same moment — but they are not the same thing,
 * and the wording has to make that obvious.
 * ------------------------------------------------------------------------- */
.lpo .lpo-licensable {
	display: flex;
	align-items: flex-start;
	gap: .55rem;
	margin: .7rem 0;
	padding: .65rem .8rem;
	border: 1px solid rgba(168, 107, 255, .3);
	border-radius: 10px;
	background: rgba(168, 107, 255, .07);
	font-size: .84rem;
	line-height: 1.5;
	color: var(--lpo-muted);
	cursor: pointer;
}

.lpo .lpo-licensable input { margin-top: .18rem; flex: 0 0 auto; accent-color: var(--lpo-accent-2); }
.lpo .lpo-licensable:hover { color: var(--lpo-text); border-color: rgba(168, 107, 255, .5); }

/* --- What you bought ---------------------------------------------------------
 * A licence buyer has an account here and no protection package, so the Office
 * is mostly shut to them. This is the thing they came for, so it goes first.
 * ------------------------------------------------------------------------- */
.lpo .lpo-bought {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
	border-color: rgba(46, 230, 246, .42);
	background:
		radial-gradient(600px 240px at 8% -30%, rgba(46, 230, 246, .16), transparent 70%),
		linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 45%),
		var(--lpo-surface);
}

.lpo .lpo-bought-body { flex: 1 1 320px; min-width: 0; }
.lpo .lpo-bought .lpo-h2 { margin-bottom: .3rem; }

/* --- No package yet ------------------------------------------------------------ */
.lpo .lpo-nopkg { border-style: dashed; border-color: rgba(168, 107, 255, .34); }

/* --- A section outside the package ---------------------------------------------
 * Explained, never merely dimmed. Somebody who has paid us money and cannot tell
 * what they own is a support ticket at best.
 * ------------------------------------------------------------------------- */
.lpo .lpo-locked { text-align: center; padding: 2.4rem 1.6rem; }

.lpo .lpo-locked-mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; margin-bottom: .9rem;
	border-radius: 50%;
	font-size: .7rem;
	color: var(--lpo-warn);
	background: rgba(255, 196, 84, .12);
	border: 1px solid rgba(255, 196, 84, .34);
}

.lpo .lpo-locked .lpo-sub { max-width: 54ch; margin-inline: auto; }
.lpo .lpo-locked .lpo-hint { max-width: 54ch; margin-inline: auto; }
.lpo .lpo-locked-act { margin: 1.2rem 0 .6rem; }
.lpo .lpo-locked .lpo-fine { opacity: .8; }

/* --- Extended Persona Pro ----------------------------------------------------
 * A long editing surface, so it gets its own space rather than fighting the page
 * behind it. Reads as a document: groups with intros, fields with room.
 * ------------------------------------------------------------------------- */
.lpo .lpo-ext-invite {
	border-color: rgba(168, 107, 255, .38);
	background:
		radial-gradient(620px 240px at 88% -30%, rgba(168, 107, 255, .16), transparent 70%),
		linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 45%),
		var(--lpo-surface);
}

.lpo-ext {
	position: fixed;
	inset: 0;
	z-index: 99998;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 3vh 1rem;
	background: rgba(3, 6, 16, .8);
	backdrop-filter: blur(4px);
	overflow-y: auto;
}

.lpo-ext[hidden] { display: none !important; }

.lpo-ext-panel {
	width: min(880px, 100%);
	border-radius: 18px;
	border: 1px solid rgba(168, 107, 255, .32);
	background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 30%), #0b1226;
	box-shadow: 0 40px 90px rgba(0, 0, 0, .66);
	color: var(--lpo-text);
	overflow: hidden;
}

.lpo-ext-head {
	display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
	padding: 1.3rem 1.5rem 1rem;
	border-bottom: 1px solid var(--lpo-line-soft);
}
.lpo-ext-head .lpo-h2 { margin-bottom: .2rem; }

.lpo-ext-close {
	border: 0; background: transparent; color: var(--lpo-muted);
	font-size: 1rem; cursor: pointer; padding: .3rem .4rem; line-height: 1;
}
.lpo-ext-close:hover { color: var(--lpo-text); }

/* The one action that starts everything, kept in view while they scroll. */
.lpo-ext-bar {
	position: sticky;
	top: 0;
	z-index: 2;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid var(--lpo-line-soft);
	background: rgba(11, 18, 38, .96);
}
.lpo-ext-bar .lpo-status { margin: .5rem 0 0; }

.lpo-ext-body { padding: .5rem 1.5rem 1rem; }

.lpo-ext-group { padding: 1.2rem 0; border-bottom: 1px solid var(--lpo-line-soft); }
.lpo-ext-group:last-child { border-bottom: 0; }
.lpo-ext-group-h { margin: 0 0 .2rem; font-size: 1.02rem; font-weight: 680; color: var(--lpo-accent-2); }

.lpo-ext-field { margin-top: 1rem; }
.lpo-ext-field .lpo-fine { margin: .1rem 0 .35rem; opacity: .8; }
.lpo-ext-field textarea { width: 100%; resize: vertical; }

.lpo-ext-field-act {
	display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
	margin-top: .45rem;
}
.lpo-ext-field-act .lpo-fine { margin: 0; }

.lpo-ext-foot {
	display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
	padding: 1.2rem 1.5rem 1.4rem;
	border-top: 1px solid var(--lpo-line-soft);
	background: rgba(0, 0, 0, .22);
}
.lpo-ext-foot .lpo-fine { flex: 1 1 100%; margin: .2rem 0 0; }

@media ( max-width: 620px ) {
	.lpo-ext { padding: 0; }
	.lpo-ext-panel { border-radius: 0; min-height: 100vh; }
}

/* --- RAG Studio Training ------------------------------------------------------ */
.lpo .lpo-rag { border-color: rgba(46, 230, 168, .32); }
.lpo .lpo-rag-block { margin: 1.2rem 0; padding-top: 1.1rem; border-top: 1px solid var(--lpo-line-soft); }
.lpo .lpo-rag-block:first-of-type { border-top: 0; padding-top: 0; }
.lpo .lpo-rag-h { margin: 0 0 .25rem; font-size: .98rem; font-weight: 660; color: var(--lpo-ok); }
.lpo .lpo-rag-block .lpo-fine { margin: .1rem 0 .5rem; }

.lpo .lpo-rag-add { display: flex; gap: .5rem; align-items: center; }
.lpo .lpo-rag-add .lpo-input { flex: 1 1 auto; }

.lpo .lpo-rag-list { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .25rem; }
.lpo .lpo-rag-list li {
	display: flex; align-items: center; gap: .6rem;
	padding: .5rem .7rem; border-radius: 8px;
	background: rgba(255, 255, 255, .05);
	font-size: .88rem;
	word-break: break-all;
}
.lpo .lpo-rag-list li span { flex: 1 1 auto; }
.lpo .lpo-rag-x { border: 0; background: transparent; color: var(--lpo-muted); cursor: pointer; font-size: .8rem; padding: .2rem .3rem; }
.lpo .lpo-rag-x:hover { color: var(--lpo-warn); }

/* --- Not ready to assemble ---------------------------------------------------
 * Said before the press, not after. The button is the end of a long journey and
 * being told "that failed" at the end of one is worse than being told what is
 * left before you start.
 * ------------------------------------------------------------------------- */
.lpo .lpo-assemble-not-yet {
	margin: 1.2rem 0 0;
	padding: .95rem 1.1rem;
	border: 1px solid rgba(255, 196, 84, .3);
	border-radius: var(--lpo-radius-sm);
	background: rgba(255, 196, 84, .07);
	font-size: .9rem;
	line-height: 1.55;
	color: var(--lpo-muted);
}

.lpo .lpo-assemble-not-yet p { margin: 0 0 .35rem; }
.lpo .lpo-assemble-not-yet p:last-child { margin-bottom: 0; }
.lpo .lpo-assemble-not-yet strong { color: var(--lpo-warn); }

/* A disabled hero button should read as waiting, not as broken. */
.lpo .lpo-btn--hero:disabled {
	opacity: .42;
	cursor: not-allowed;
	animation: none;
	transform: none;
	box-shadow: none;
}
.lpo .lpo-btn--hero:disabled:hover { transform: none; filter: none; }

/* --- The guided tour ----------------------------------------------------------
 * Four dimmed panels around the target rather than one masked overlay. A mask or
 * a giant box-shadow fights the cards' own shadows and the background artwork,
 * and reads as a rendering fault; four rectangles leave the target genuinely
 * untouched.
 * ------------------------------------------------------------------------- */
.lpo-tour-dim {
	position: fixed;
	z-index: 99990;
	background: rgba(3, 6, 16, .78);
	backdrop-filter: blur(1.5px);
	pointer-events: auto;
}

.lpo-tour-ring {
	position: fixed;
	z-index: 99991;
	border-radius: 14px;
	border: 2px solid var(--lpo-accent);
	box-shadow: 0 0 0 1px rgba(3, 6, 16, .6), 0 0 34px rgba(46, 230, 246, .45);
	/* The point of the tour is that you can see the thing. */
	pointer-events: none;
}

.lpo-tour-card {
	position: fixed;
	z-index: 99992;
	width: min(400px, calc(100vw - 28px));
	padding: 1.1rem 1.2rem 1.15rem;
	border-radius: 16px;
	border: 1px solid rgba(46, 230, 246, .4);
	background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0) 40%), #0b1226;
	box-shadow: 0 26px 70px rgba(0, 0, 0, .62);
	color: #eaf0ff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.lpo-tour-count {
	margin: 0 0 .3rem;
	font-size: .66rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--lpo-accent);
}

.lpo-tour-title { margin: 0 0 .4rem; font-size: 1.05rem; font-weight: 680; letter-spacing: -.01em; }
.lpo-tour-body { margin: 0; font-size: .92rem; line-height: 1.6; color: #b9c6e4; }

.lpo-tour-acts { display: flex; gap: .5rem; margin-top: 1rem; }

/* The launcher, wherever it is offered. */
.lpo .lpo-tour-invite {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
}

@media ( prefers-reduced-motion: reduce ) {
	.lpo-tour-dim { backdrop-filter: none; }
}

/* --- Folding sections ---------------------------------------------------------
 * Three long editors on one page. One open at a time, so the page is always
 * about a single thing.
 * ------------------------------------------------------------------------- */
.lpo .lpo-fold { padding: 0; overflow: hidden; }

.lpo .lpo-fold-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	padding: 1.15rem 1.3rem;
	border: 0;
	background: transparent;
	color: var(--lpo-text);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.lpo .lpo-fold-head:hover { background: rgba(255, 255, 255, .04); }
.lpo .lpo-fold-head:focus-visible { outline: 2px solid var(--lpo-accent); outline-offset: -2px; }

.lpo .lpo-fold-title { display: flex; flex-direction: column; gap: .18rem; min-width: 0; }
.lpo .lpo-fold-label { font-size: 1.05rem; font-weight: 670; letter-spacing: -.01em; }
.lpo .lpo-fold-blurb { font-size: .86rem; color: var(--lpo-muted); line-height: 1.45; }

.lpo .lpo-fold.is-open .lpo-fold-label { color: var(--lpo-accent); }

.lpo .lpo-fold-chev {
	flex: 0 0 auto;
	width: 9px; height: 9px;
	border-right: 2px solid var(--lpo-muted);
	border-bottom: 2px solid var(--lpo-muted);
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform .2s ease, border-color .2s ease;
}

.lpo .lpo-fold.is-open .lpo-fold-chev {
	transform: rotate(-135deg) translate(-3px, -3px);
	border-color: var(--lpo-accent);
}

.lpo .lpo-fold-body {
	padding: 0 1.3rem 1.35rem;
	border-top: 1px solid var(--lpo-line-soft);
	padding-top: 1.2rem;
}

.lpo .lpo-fold-body[hidden] { display: none !important; }

/* The section's own heading is now in the fold header, so the duplicate inside
 * would say the same thing twice. */
.lpo .lpo-fold-body > .lpo-h2:first-child { display: none; }

/* Add link: two words that must not break across lines. */
.lpo .lpo-rag-add .lpo-btn { white-space: nowrap; flex: 0 0 auto; }

@media ( prefers-reduced-motion: reduce ) {
	.lpo .lpo-fold-chev { transition: none; }
}

/* A fold header can carry a status alongside its chevron — how far along a
 * modality is should be readable without opening it. */
.lpo .lpo-fold-side { display: flex; align-items: center; gap: .8rem; flex: 0 0 auto; }

/* The Lab's capture sections sit inside their own wrapper, so the fold body
 * needs no second set of side padding. */
.lpo .lpo-fold-body > .lpo-capture-plan:first-child { margin-top: 0; }

/* --- The Rights Desk licence record --------------------------------------- */

/*
 * The closed state must look exactly as it did before. The whole value of this
 * page is that it is scannable; a list where every row advertises that it has
 * more inside is a list nobody scans.
 */
.lpo-lic-d { width: 100%; }

.lpo-lic-sum {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	cursor: pointer;
	list-style: none;
	padding: .1rem 0;
}

.lpo-lic-sum::-webkit-details-marker { display: none; }

/* A marker of our own, so the affordance reads at a glance and rotates to say
   which state it is in. */
.lpo-lic-sum::after {
	content: "";
	flex: 0 0 auto;
	width: .5rem;
	height: .5rem;
	margin-left: .25rem;
	border-right: 2px solid var(--lpo-muted, #93a3c9);
	border-bottom: 2px solid var(--lpo-muted, #93a3c9);
	transform: rotate(45deg) translateY(-.1em);
	transition: transform .15s ease;
}

.lpo-lic-d[open] > .lpo-lic-sum::after { transform: rotate(-135deg) translateY(-.1em); }

.lpo-lic-sum:focus-visible {
	outline: 2px solid var(--lpo-accent, #2ee6f6);
	outline-offset: 3px;
	border-radius: 4px;
}

.lpo-lic-body {
	margin: .85rem 0 .35rem;
	padding: .9rem 1rem;
	border: 1px solid var(--lpo-line, #22315c);
	border-radius: 10px;
	background: rgba(255, 255, 255, .02);
}

.lpo-lic-group + .lpo-lic-group { margin-top: 1.1rem; }

.lpo-lic-h {
	margin: 0 0 .4rem;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--lpo-muted, #93a3c9);
}

/* Two columns where there is room, one where there is not. A definition list
   keeps the label attached to its value for a screen reader either way. */
.lpo-lic-dl {
	display: grid;
	grid-template-columns: minmax(8rem, 12rem) 1fr;
	gap: .35rem 1rem;
	margin: 0;
}

.lpo-lic-dl dt { color: var(--lpo-muted, #93a3c9); font-size: .88rem; }
.lpo-lic-dl dd { margin: 0; font-size: .92rem; }

/* Free text somebody typed keeps its own line breaks and is not squeezed into
   a narrow column. */
.lpo-lic-dl dd.is-long { grid-column: 1 / -1; line-height: 1.5; }
.lpo-lic-dl dd.is-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84rem; }

@media (max-width: 640px) {
	.lpo-lic-dl { grid-template-columns: 1fr; gap: .1rem .5rem; }
	.lpo-lic-dl dt { margin-top: .5rem; }
	.lpo-lic-sum { flex-direction: column; align-items: flex-start; gap: .15rem; }
}

.lpo-lic-acts {
	margin-top: 1.2rem;
	padding-top: .9rem;
	border-top: 1px solid var(--lpo-line, #22315c);
}

/*
 * A MENU RATHER THAN A ROW OF PILLS.
 *
 * Four identical ghost buttons made every action look equally likely and told
 * nobody what any of them did. These are read by somebody who has just found a
 * problem and is deciding what to do, so each row carries its own reason and
 * the whole thing scans top to bottom.
 */
.lpo-lic-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: .25rem;
}

.lpo-lic-act {
	display: flex;
	align-items: flex-start;
	gap: .7rem;
	padding: .6rem .7rem;
	border: 1px solid transparent;
	border-radius: 9px;
	text-decoration: none;
	color: inherit;
	transition: background .12s ease, border-color .12s ease;
}

.lpo-lic-act:hover,
.lpo-lic-act:focus-visible {
	background: rgba(46, 230, 246, .07);
	border-color: rgba(46, 230, 246, .28);
	text-decoration: none;
}

.lpo-lic-act:focus-visible { outline: 2px solid var(--lpo-accent, #2ee6f6); outline-offset: 2px; }

.lpo-lic-ico { flex: 0 0 auto; margin-top: .12rem; color: var(--lpo-accent, #2ee6f6); }

.lpo-lic-act-t { display: block; min-width: 0; flex: 1 1 auto; }
.lpo-lic-act-t b { display: block; font-weight: 640; font-size: .93rem; }
.lpo-lic-act-t span { display: block; margin-top: .1rem; font-size: .82rem; line-height: 1.4; color: var(--lpo-muted, #93a3c9); }

/* The rare one. Marked so it is findable at a glance on the day it is needed,
   and quiet enough not to shout on every other day. */
.lpo-lic-act.is-warn .lpo-lic-ico { color: var(--lpo-warn, #ffc24d); }
.lpo-lic-act.is-warn:hover,
.lpo-lic-act.is-warn:focus-visible {
	background: rgba(255, 194, 77, .08);
	border-color: rgba(255, 194, 77, .32);
}

.lpo-lic-act > .lpo-fine { flex: 0 0 auto; align-self: center; font-size: .74rem; }

@media (max-width: 640px) {
	.lpo-lic-act > .lpo-fine { display: none; }
}

/* A term running out is the one thing here that is time-critical. */
.lpo-lic-warn {
	margin: 0 0 .9rem;
	padding: .55rem .75rem;
	font-size: .88rem;
	border-left: 3px solid var(--lpo-warn, #ffc24d);
	background: rgba(255, 194, 77, .08);
	border-radius: 0 6px 6px 0;
}

.lpo-lic.is-ending > .lpo-lic-d > .lpo-lic-sum .lpo-step-state { color: var(--lpo-warn, #ffc24d); }

/* What to do, under the name of the thing to do it to. */
.lpo-task-hint {
	display: block;
	margin-top: .15rem;
	font-size: .84rem;
	line-height: 1.45;
	font-weight: 400;
	color: var(--lpo-muted, #93a3c9);
	max-width: 52ch;
}

/* The misuse form, opened from the licence it concerns. */
.lpo-lic-form { width: 100%; }
.lpo-lic-form > summary { list-style: none; cursor: pointer; }
.lpo-lic-form > summary::-webkit-details-marker { display: none; }

.lpo-lic-form-body {
	margin: .5rem 0 .25rem 2.4rem;
	padding: .9rem 1rem;
	border: 1px solid rgba(255, 194, 77, .3);
	border-radius: 10px;
	background: rgba(255, 194, 77, .05);
}

@media (max-width: 640px) {
	.lpo-lic-form-body { margin-left: 0; }
}

/* --- Capture sets in the Likeness Lab ------------------------------------- */

/*
 * Three poses saved against one task rendered as an undivided run of controls,
 * so it was not obvious which "Use this one" belonged to which shot. A band per
 * capture is the cheapest thing that makes a set legible on a page that already
 * has plenty of chrome.
 */
.lpo .lpo-capture {
	padding: .85rem 1rem;
	border-radius: 10px;
	border: 1px solid transparent;
}

.lpo .lpo-capture.is-alt {
	background: rgba(255, 255, 255, .035);
	border-color: var(--lpo-line, #22315c);
}

.lpo .lpo-capture + .lpo-capture { margin-top: .5rem; }

/* Keep the banding legible where colour is not available. */
@media (forced-colors: active) {
	.lpo .lpo-capture.is-alt { border-color: CanvasText; }
}

/*
 * The decision this screen exists for. It was one ghost button among four,
 * which is how the single thing somebody came to do becomes the hardest to see.
 */
.lpo .lpo-btn.lpo-capture-go {
	padding: .6rem 1.25rem;
	font-weight: 700;
	background: linear-gradient(135deg, var(--lpo-accent, #2ee6f6), #5ad0ff);
	color: #04121c;
	border-color: transparent;
	box-shadow: 0 6px 18px rgba(46, 230, 246, .25);
}

.lpo .lpo-btn.lpo-capture-go:hover {
	filter: brightness(1.06);
	box-shadow: 0 8px 22px rgba(46, 230, 246, .34);
}

/*
 * A permission, not fine print. This is the line where somebody agrees their
 * face may be offered in a licence, and it was set in the same muted grey as
 * every incidental note on the page.
 */
.lpo .lpo-licensable--live {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
	padding: .55rem .7rem;
	margin: .1rem 0 .6rem;
	border-left: 3px solid var(--lpo-accent, #2ee6f6);
	border-radius: 0 8px 8px 0;
	background: rgba(46, 230, 246, .07);
	line-height: 1.45;
}

.lpo .lpo-licensable--live span { color: var(--lpo-text, #e8edf7); font-size: .9rem; }
.lpo .lpo-licensable--live input { margin-top: .2rem; flex: 0 0 auto; }

/*
 * A task the Lab cannot capture. It is stated rather than hidden: removing the
 * row entirely would make the modality look shorter than the plan says it is,
 * and somebody comparing the two would reasonably think something had gone
 * missing.
 */
.lpo .lpo-capture-add.is-unavailable {
	padding: .85rem 1rem;
	border: 1px dashed var(--lpo-line, #22315c);
	border-radius: 10px;
	background: rgba(255, 255, 255, .015);
}

.lpo .lpo-capture-add.is-unavailable .lpo-sub { margin: 0 0 .35rem; }
.lpo .lpo-capture-add.is-unavailable .lpo-fine { margin: 0; }

/* --- Capture assets: the row you actually work in -------------------------- */

/*
 * These were a flat run of text and small grey buttons, and with three shots
 * saved against one task it was a sprawl with no edges. The panel is where
 * somebody decides whether a piece of their own likeness is good enough to
 * license, so it should read as a card with a clear action, not as a log line.
 */
.lpo .lpo-capture {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem 1rem;
	padding: .85rem 1rem;
	margin: 0;
	border: 1px solid var(--lpo-line, #22315c);
	border-radius: 12px;
	background: rgba(255, 255, 255, .022);
	transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.lpo .lpo-capture.is-alt { background: rgba(255, 255, 255, .045); }
.lpo .lpo-capture:hover { border-color: rgba(46, 230, 246, .28); }
.lpo .lpo-capture + .lpo-capture { margin-top: .6rem; }

.lpo .lpo-capture-main {
	flex: 1 1 16rem;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: .2rem;
}

/*
 * Actions on one line, wrapping as a group rather than one button at a time —
 * a stray "Remove this one" alone on a line reads as belonging to the next
 * asset, which on this screen is a genuinely bad thing to get wrong.
 */
.lpo .lpo-capture-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem;
	flex: 0 0 auto;
}

.lpo .lpo-capture .lpo-btn--sm {
	padding: .42rem .8rem;
	font-size: .82rem;
	border-radius: 999px;
}

/* THE ONE-SECOND CONFIRMATION.
 *
 * After saving, the page returns to the shot just taken and marks it. Somebody
 * who has taken three photographs in a row needs to know which of them the
 * buttons underneath belong to, and a colour that fades is the least intrusive
 * way to say "this one". */
.lpo .lpo-capture.is-just-saved {
	background: rgba(46, 230, 168, .16);
	border-color: rgba(46, 230, 168, .55);
	box-shadow: 0 0 0 3px rgba(46, 230, 168, .12);
}

@media (prefers-reduced-motion: reduce) {
	.lpo .lpo-capture { transition: none; }
}

@media (forced-colors: active) {
	.lpo .lpo-capture.is-just-saved { outline: 3px solid Highlight; }
}

/* The preview panel: a bounded frame, not a full-width sprawl. */
.lpo .lpo-capture [data-vault-preview] { flex: 1 1 100%; margin-top: .6rem; }

.lpo .lpo-capture [data-vault-preview] img,
.lpo .lpo-capture [data-vault-preview] video {
	display: block;
	max-width: min(100%, 24rem);
	max-height: 18rem;
	border-radius: 10px;
	border: 1px solid var(--lpo-line, #22315c);
	background: #05080f;
}

.lpo .lpo-capture [data-vault-preview] audio {
	display: block;
	width: min(100%, 24rem);
}

@media (max-width: 640px) {
	.lpo .lpo-capture { gap: .6rem; }
	.lpo .lpo-capture-actions { flex: 1 1 100%; }
	.lpo .lpo-capture-actions .lpo-btn { flex: 1 1 auto; justify-content: center; }
}

/* --- Capture row: layout that survives its own contents ------------------- */

/*
 * THE PERMISSION LINE GETS ITS OWN ROW.
 *
 * It sat inline after Preview and Get a copy, did not wrap, and ran off the
 * right edge of the panel. It is also a sentence, not a button — putting it in
 * a row of buttons was wrong twice over.
 */
.lpo .lpo-capture .lpo-licensable--live {
	flex: 1 1 100%;
	order: 3;
	margin: .35rem 0 0;
}

/* Buttons above it, centred as a group. */
.lpo .lpo-capture-actions {
	order: 2;
	flex: 1 1 100%;
	justify-content: center;
}

.lpo .lpo-capture-main { order: 1; }
.lpo .lpo-capture [data-vault-preview] { order: 4; }

/*
 * TWO STATES, TWO COLOURS.
 *
 * "Checked and ready" and "Approved by you" are different things — one is us
 * saying it passed, the other is the person saying yes — and they were the same
 * blue as every other pill on the page, so the distinction that matters most
 * here was invisible.
 */
.lpo .lpo-capture .lpo-pill--ok {
	background: rgba(255, 176, 46, .16);
	border-color: rgba(255, 176, 46, .45);
	color: #ffcd7a;
}

.lpo .lpo-capture .lpo-pill--approved {
	background: rgba(46, 230, 168, .18);
	border-color: rgba(46, 230, 168, .5);
	color: #7ef7cd;
}

/* Start-a-capture buttons, centred. */
.lpo .lpo-capture-add .lpo-capture-actions {
	justify-content: center;
	gap: .6rem;
}

/* --- Tune and approve: the destination ------------------------------------ */

/*
 * The last step should look like one. In a column of identical section pills
 * there was nothing to say which of them the whole page was leading to.
 */
.lpo .lpo-fold[data-lpo-fold="tuning"] > .lpo-fold-head,
.lpo .lpo-fold--final > .lpo-fold-head {
	background: linear-gradient(135deg, rgba(138, 92, 255, .22), rgba(92, 60, 200, .14));
	border: 1px solid rgba(160, 120, 255, .45);
	border-radius: 12px;
	box-shadow: 0 0 0 1px rgba(160, 120, 255, .12), 0 8px 26px rgba(90, 50, 180, .18);
}

.lpo .lpo-fold[data-lpo-fold="tuning"] > .lpo-fold-head:hover,
.lpo .lpo-fold--final > .lpo-fold-head:hover {
	border-color: rgba(180, 145, 255, .7);
}

/* Room to breathe. The lock button sat directly on top of the next record. */
.lpo .lpo-facet {
	padding: 1rem 1.1rem;
	border: 1px solid var(--lpo-line, #22315c);
	border-radius: 12px;
	background: rgba(255, 255, 255, .02);
}

.lpo .lpo-facet + .lpo-facet { margin-top: .85rem; }
.lpo .lpo-facet .lpo-btn { margin-top: .7rem; }
.lpo .lpo-facet .lpo-status { margin-top: .6rem; }
