/* Umbral shared design tokens. Surface styles may map legacy names to these values. */
:root {
  color-scheme: dark;

  --umbral-color-canvas: #030503;
  --umbral-color-canvas-subtle: #050805;
  --umbral-color-surface: #0a0f0a;
  --umbral-color-surface-raised: #0f160f;
  --umbral-color-surface-muted: #182216;
  --umbral-color-surface-inverse: #050805;
  --umbral-color-surface-glass: rgba(255, 255, 255, 0.03);
  --umbral-color-surface-hover: rgba(255, 255, 255, 0.055);
  --umbral-color-text: #ffffff;
  --umbral-color-text-soft: rgba(255, 255, 255, 0.95);
  --umbral-color-text-muted: rgba(255, 255, 255, 0.78);
  --umbral-color-text-subtle: rgba(255, 255, 255, 0.68);
  --umbral-color-text-inverse: #fffdf7;
  --umbral-color-text-inverse-muted: #c4cec7;
  --umbral-color-accent: #d6b85b;
  --umbral-color-accent-text: #d6b85b;
  --umbral-color-accent-strong: #f0d989;
  --umbral-color-accent-deep: #b8871e;
  --umbral-color-accent-soft: rgba(214, 184, 91, 0.17);
  --umbral-color-accent-line: rgba(214, 184, 91, 0.36);
  --umbral-color-on-accent: #171a18;
  --umbral-color-on-accent-strong: #171a18;
  --umbral-color-brand: #153e2d;
  --umbral-color-brand-strong: #215b43;
  --umbral-color-on-brand: #fffdf7;
  --umbral-color-success: #85b878;
  --umbral-color-warning: #e3b95f;
  --umbral-color-danger: #e28d81;
  --umbral-color-on-danger: #171a18;
  --umbral-color-info: #8fb7d2;
  --umbral-color-border-subtle: rgba(255, 255, 255, 0.09);
  --umbral-color-border-default: rgba(216, 180, 118, 0.2);
  --umbral-color-border-strong: rgba(216, 180, 118, 0.42);

  --umbral-font-body: "Open Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --umbral-font-display: "Open Sans", Georgia, serif;
  --umbral-font-mono: "Open Sans", "SF Mono", ui-monospace, monospace;
  --umbral-font-size-body: 1rem;
  --umbral-font-size-supporting: 0.75rem;
  --umbral-font-size-control: 0.875rem;
  --umbral-line-height-body: 1.6;
  --umbral-line-height-tight: 1.2;

  --umbral-space-1: 0.25rem;
  --umbral-space-2: 0.5rem;
  --umbral-space-3: 0.75rem;
  --umbral-space-4: 1rem;
  --umbral-space-5: 1.25rem;
  --umbral-space-6: 1.5rem;
  --umbral-space-7: 2rem;
  --umbral-space-8: 3rem;

  --umbral-radius-small: 4px;
  --umbral-radius-control: 7px;
  --umbral-radius-card: 10px;
  --umbral-radius-dialog: 14px;
  --umbral-radius-pill: 999px;
  --umbral-border-subtle: 1px solid var(--umbral-color-border-subtle);
  --umbral-border-default: 1px solid var(--umbral-color-border-default);
  --umbral-border-strong: 1px solid var(--umbral-color-border-strong);
  --umbral-shadow-raised: 0 18px 50px rgba(0, 0, 0, 0.38);
  --umbral-shadow-dialog: 0 40px 110px rgba(0, 0, 0, 0.55);
  --umbral-focus-ring: 0 0 0 3px rgba(240, 217, 137, 0.42);

  --umbral-layer-base: 0;
  --umbral-layer-raised: 10;
  --umbral-layer-navigation: 120;
  --umbral-layer-overlay: 900;
  --umbral-layer-dialog: 1000;
  --umbral-layer-toast: 4000;
  --umbral-control-height-small: 36px;
  --umbral-control-height: 44px;
  --umbral-control-height-large: 52px;
  --umbral-duration-fast: 160ms;
  --umbral-duration-standard: 240ms;
  --umbral-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --umbral-ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --umbral-loading-logo-size: 190px;
  --umbral-loading-indicator-width: 128px;
  --umbral-loading-animation-duration: 1150ms;
  --umbral-loading-title-size: 24px;
  --umbral-loading-detail-size: 12px;
}

[data-theme="light"] {
  color-scheme: light;
  --umbral-color-canvas: #f7f4eb;
  --umbral-color-canvas-subtle: #eee9dc;
  --umbral-color-surface: #fffdf7;
  --umbral-color-surface-raised: #f3f1e8;
  --umbral-color-surface-muted: #e8eee4;
  --umbral-color-surface-inverse: #050805;
  --umbral-color-surface-glass: rgba(21, 62, 45, 0.035);
  --umbral-color-surface-hover: rgba(21, 62, 45, 0.075);
  --umbral-color-text: #171a18;
  --umbral-color-text-soft: #191d1a;
  --umbral-color-text-muted: #303833;
  --umbral-color-text-subtle: #465049;
  --umbral-color-text-inverse: #fffdf7;
  --umbral-color-text-inverse-muted: #c4cec7;
  --umbral-color-accent: #9b7532;
  --umbral-color-accent-text: #67491b;
  --umbral-color-accent-strong: #765724;
  --umbral-color-accent-deep: #67491b;
  --umbral-color-accent-soft: rgba(174, 139, 73, 0.14);
  --umbral-color-accent-line: rgba(139, 101, 38, 0.42);
  --umbral-color-on-accent: #050805;
  --umbral-color-on-accent-strong: #fffdf7;
  --umbral-color-brand: #153e2d;
  --umbral-color-brand-strong: #215b43;
  --umbral-color-on-brand: #fffdf7;
  --umbral-color-success: #2f6940;
  --umbral-color-warning: #8a642e;
  --umbral-color-danger: #9b3f32;
  --umbral-color-on-danger: #fffdf7;
  --umbral-color-info: #3b587a;
  --umbral-color-border-subtle: rgba(21, 62, 45, 0.12);
  --umbral-color-border-default: rgba(21, 62, 45, 0.19);
  --umbral-color-border-strong: rgba(21, 62, 45, 0.34);
  --umbral-shadow-raised: 0 14px 36px rgba(39, 48, 38, 0.12);
  --umbral-shadow-dialog: 0 28px 70px rgba(39, 48, 38, 0.16);
  --umbral-focus-ring: 0 0 0 3px rgba(118, 87, 36, 0.3);
}

[data-theme="disco"] {
  color-scheme: dark;
  --umbral-color-canvas: #090313;
  --umbral-color-canvas-subtle: #160725;
  --umbral-color-surface: #160c25;
  --umbral-color-surface-raised: #25113b;
  --umbral-color-surface-muted: #321750;
  --umbral-color-surface-inverse: #08020f;
  --umbral-color-surface-glass: rgba(255, 255, 255, 0.075);
  --umbral-color-surface-hover: rgba(90, 244, 255, 0.14);
  --umbral-color-text: #fffaff;
  --umbral-color-text-soft: #fff5fc;
  --umbral-color-text-muted: #eadcf4;
  --umbral-color-text-subtle: #d1bfdf;
  --umbral-color-text-inverse: #fffaff;
  --umbral-color-text-inverse-muted: #e7d8ef;
  --umbral-color-accent: #ff56d7;
  --umbral-color-accent-text: #ff8be4;
  --umbral-color-accent-strong: #63f5ff;
  --umbral-color-accent-deep: #b833ff;
  --umbral-color-accent-soft: rgba(255, 86, 215, 0.2);
  --umbral-color-accent-line: rgba(99, 245, 255, 0.48);
  --umbral-color-on-accent: #16051f;
  --umbral-color-on-accent-strong: #071318;
  --umbral-color-brand: #5b168d;
  --umbral-color-brand-strong: #8b25bd;
  --umbral-color-on-brand: #fffaff;
  --umbral-color-success: #9cff57;
  --umbral-color-warning: #ffd45f;
  --umbral-color-danger: #ff7b88;
  --umbral-color-on-danger: #21040c;
  --umbral-color-info: #63f5ff;
  --umbral-color-border-subtle: rgba(99, 245, 255, 0.18);
  --umbral-color-border-default: rgba(255, 86, 215, 0.34);
  --umbral-color-border-strong: rgba(99, 245, 255, 0.58);
  --umbral-shadow-raised: 0 18px 52px rgba(8, 1, 18, 0.52), 0 0 28px rgba(184, 51, 255, 0.12);
  --umbral-shadow-dialog: 0 42px 120px rgba(5, 0, 13, 0.7), 0 0 70px rgba(255, 86, 215, 0.18);
  --umbral-focus-ring: 0 0 0 3px rgba(99, 245, 255, 0.46), 0 0 24px rgba(255, 86, 215, 0.42);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --umbral-duration-fast: 0.01ms;
    --umbral-duration-standard: 0.01ms;
  }
}

/* Shared, low-specificity primitives. Product surfaces may extend these classes. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html[data-theme="disco"] :where(.umbral-card, .admin-card, .insight-card, .reader-card, dialog, [role="dialog"]) {
  border-color: color-mix(in srgb, var(--umbral-color-accent-strong) 45%, var(--umbral-color-border-default));
  box-shadow: var(--umbral-shadow-raised);
}

html[data-theme="disco"] :where(button, a, input, select, textarea):focus-visible {
  outline-color: var(--umbral-color-accent-strong);
  box-shadow: var(--umbral-focus-ring);
}

body {
  font-family: var(--umbral-font-body);
  font-size: var(--umbral-font-size-body);
  line-height: var(--umbral-line-height-body);
}

small,
.umbral-supporting {
  font-size: var(--umbral-font-size-supporting);
}

button,
input,
select,
textarea {
  font-family: var(--umbral-font-body);
  font-size: var(--umbral-font-size-control);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--umbral-color-accent-strong);
  outline-offset: 2px;
  box-shadow: var(--umbral-focus-ring);
}

.umbral-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--umbral-space-2);
  min-height: var(--umbral-control-height);
  padding: 0 var(--umbral-space-4);
  border: var(--umbral-border-strong);
  border-radius: var(--umbral-radius-control);
  background: var(--umbral-color-brand);
  color: var(--umbral-color-on-brand);
  font: 700 var(--umbral-font-size-control)/1 var(--umbral-font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--umbral-duration-fast) var(--umbral-ease-standard), border-color var(--umbral-duration-fast) var(--umbral-ease-standard), transform var(--umbral-duration-fast) var(--umbral-ease-enter);
}

.umbral-button:hover {
  border-color: var(--umbral-color-accent);
  background: var(--umbral-color-brand-strong);
}

.umbral-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.umbral-button-secondary {
  background: transparent;
  color: var(--umbral-color-text-soft);
}

.umbral-field {
  display: grid;
  gap: var(--umbral-space-2);
  color: var(--umbral-color-text-muted);
  font-size: var(--umbral-font-size-supporting);
}

.umbral-field :where(input, select, textarea) {
  width: 100%;
  min-height: var(--umbral-control-height);
  padding: var(--umbral-space-3);
  border: var(--umbral-border-default);
  border-radius: var(--umbral-radius-control);
  background: var(--umbral-color-surface);
  color: var(--umbral-color-text);
}

.umbral-card {
  padding: var(--umbral-space-5);
  border: var(--umbral-border-default);
  border-radius: var(--umbral-radius-card);
  background: var(--umbral-color-surface);
  color: var(--umbral-color-text);
  box-shadow: var(--umbral-shadow-raised);
}

.umbral-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 var(--umbral-space-3);
  border: var(--umbral-border-default);
  border-radius: var(--umbral-radius-pill);
  background: var(--umbral-color-accent-soft);
  color: var(--umbral-color-accent-strong);
  font-size: var(--umbral-font-size-supporting);
  font-weight: 700;
}

.umbral-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--umbral-color-text);
}

.umbral-table :where(th, td) {
  padding: var(--umbral-space-3) var(--umbral-space-4);
  border-bottom: var(--umbral-border-subtle);
  text-align: left;
}

.umbral-table th {
  color: var(--umbral-color-text-muted);
  font-size: var(--umbral-font-size-supporting);
}

.umbral-empty-state {
  display: grid;
  place-items: center;
  gap: var(--umbral-space-3);
  min-height: 180px;
  padding: var(--umbral-space-7);
  color: var(--umbral-color-text-muted);
  text-align: center;
}

.umbral-dialog {
  position: relative;
  z-index: var(--umbral-layer-dialog);
  width: min(680px, calc(100vw - 2 * var(--umbral-space-4)));
  max-height: calc(100dvh - 2 * var(--umbral-space-4));
  overflow: auto;
  padding: var(--umbral-space-6);
  border: var(--umbral-border-strong);
  border-radius: var(--umbral-radius-dialog);
  background: var(--umbral-color-surface-raised);
  color: var(--umbral-color-text);
  box-shadow: var(--umbral-shadow-dialog);
}

.umbral-tabs {
  display: flex;
  gap: var(--umbral-space-2);
  overflow-x: auto;
  border-bottom: var(--umbral-border-subtle);
}

.umbral-tabs :where(button, a) {
  min-height: var(--umbral-control-height);
  padding: 0 var(--umbral-space-4);
  border: 0;
  background: transparent;
  color: var(--umbral-color-text-muted);
}

.umbral-tabs :where([aria-selected="true"], .active) {
  color: var(--umbral-color-accent-strong);
  box-shadow: inset 0 -2px var(--umbral-color-accent);
}

.umbral-navigation {
  position: relative;
  z-index: var(--umbral-layer-navigation);
  display: flex;
  align-items: center;
  gap: var(--umbral-space-3);
  min-height: var(--umbral-control-height-large);
  border-bottom: var(--umbral-border-subtle);
  background: var(--umbral-color-surface);
  color: var(--umbral-color-text);
}

:where(button, [role="button"], a.umbral-action):active {
  filter: brightness(.92);
}

:where(button, [role="button"])[aria-busy="true"] {
  cursor: progress;
}

:root {
  --alfred-ink: #09081a;
  --alfred-indigo: #070816;
  --alfred-deep: #03040d;
  --alfred-violet: #8b5cf6;
  --alfred-purple: #6d28d9;
  --alfred-magenta: #d946ef;
  --alfred-pink: #f472b6;
  --alfred-blue: #3b82f6;
  --alfred-cyan: #22d3ee;
  --alfred-teal: #2dd4bf;
  --alfred-gold: #d9b968;
  --alfred-warm: #f8f5ff;
  --alfred-muted: #aaa9c7;
  --alfred-line: rgba(184, 132, 255, .30);
  --alfred-line-soft: rgba(132, 153, 255, .16);
  --alfred-glass: rgba(9, 8, 28, .88);
  --alfred-panel: rgba(7, 7, 25, .64);
  --alfred-panel-soft: rgba(255, 255, 255, .055);
  --alfred-input: rgba(255, 255, 255, .065);
  --alfred-shadow: rgba(2, 2, 14, .52);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.alfred-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--alfred-warm);
  font-family: "Open Sans", sans-serif;
  background:
    radial-gradient(circle at 10% -4%, rgba(34, 211, 238, .17), transparent 31%),
    radial-gradient(circle at 88% 7%, rgba(217, 70, 239, .19), transparent 34%),
    radial-gradient(circle at 56% 112%, rgba(59, 130, 246, .14), transparent 38%),
    linear-gradient(145deg, rgba(14, 11, 39, .96), var(--alfred-glass) 52%, rgba(4, 5, 17, .97));
  border: 1px solid rgba(193, 151, 255, .30);
  border-radius: 26px;
  box-shadow:
    0 32px 90px var(--alfred-shadow),
    0 0 0 1px rgba(34, 211, 238, .04),
    inset 0 1px 0 rgba(255, 255, 255, .10);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
}

.alfred-shell::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  opacity: .30;
  background-image:
    linear-gradient(rgba(101, 129, 255, .065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 70, 239, .055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

.alfred-shell::after {
  content: "";
  position: absolute;
  z-index: 8;
  inset: 0;
  padding: 1px;
  pointer-events: none;
  border-radius: inherit;
  background: conic-gradient(
    from 200deg at 50% 50%,
    transparent 0 7%,
    rgba(34, 211, 238, .72) 12%,
    rgba(139, 92, 246, .62) 20%,
    transparent 28% 54%,
    rgba(244, 114, 182, .58) 63%,
    rgba(59, 130, 246, .54) 71%,
    transparent 79% 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .62;
}

.alfred-shell button,
.alfred-shell textarea {
  font: inherit;
}

.alfred-shell button {
  cursor: pointer;
}

.alfred-shell button:focus-visible,
.alfred-shell textarea:focus-visible,
.alfred-launcher:focus-visible {
  outline: 2px solid var(--alfred-cyan);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(217, 70, 239, .18);
}

.alfred-shell-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 122px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--alfred-line);
  background:
    linear-gradient(90deg, rgba(4, 6, 22, .66), rgba(89, 45, 157, .13) 54%, rgba(217, 70, 239, .07)),
    rgba(9, 8, 27, .32);
  box-shadow: inset 0 -1px 0 rgba(34, 211, 238, .05);
}

.alfred-shell-head::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: -1px;
  width: 34%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--alfred-cyan), var(--alfred-magenta), transparent);
  opacity: .72;
}

.alfred-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 16px;
}

.alfred-portrait {
  position: relative;
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  flex: 0 0 90px;
  overflow: hidden;
  border: 1px solid rgba(199, 167, 255, .46);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 62%, rgba(34, 211, 238, .24), transparent 33%),
    conic-gradient(from 210deg, rgba(59, 130, 246, .24), rgba(217, 70, 239, .24), rgba(139, 92, 246, .25), rgba(45, 212, 191, .15), rgba(59, 130, 246, .24));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 10px 35px rgba(90, 43, 180, .20);
}

.alfred-portrait::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(34, 211, 238, .16);
  border-radius: 18px;
}

.alfred-portrait::after {
  content: "";
  position: absolute;
  inset: auto 18% 4px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--alfred-blue), var(--alfred-cyan), var(--alfred-pink));
  filter: blur(8px);
  opacity: .82;
  animation: alfred-glow 4.8s ease-in-out infinite alternate;
}

.alfred-portrait img {
  position: relative;
  z-index: 1;
  width: 95%;
  height: 106%;
  object-fit: contain;
  filter: drop-shadow(0 11px 13px rgba(0, 0, 0, .42));
}

.alfred-overline {
  display: block;
  color: var(--alfred-gold);
  font-size: .57rem;
  font-weight: 800;
  letter-spacing: .22em;
}

.alfred-identity h2 {
  margin: 3px 0 1px;
  color: var(--alfred-warm);
  font-size: 1.72rem;
  font-weight: 680;
  letter-spacing: -.045em;
  text-shadow: 0 0 24px rgba(139, 92, 246, .20);
}

.alfred-identity h2 small {
  color: var(--alfred-cyan);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.alfred-identity p {
  margin: 0;
  color: var(--alfred-muted);
  font-size: .67rem;
}

.alfred-identity p i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--alfred-cyan);
  box-shadow: 0 0 14px var(--alfred-cyan), 0 0 25px rgba(139, 92, 246, .68);
  animation: alfred-status-pulse 2.8s ease-in-out infinite;
}

.alfred-head-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.alfred-head-actions button {
  min-height: 35px;
  padding: 7px 12px;
  color: var(--alfred-warm);
  font-size: .63rem;
  font-weight: 720;
  background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(139, 92, 246, .07));
  border: 1px solid var(--alfred-line);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.alfred-head-actions button:hover {
  color: #fff;
  border-color: rgba(34, 211, 238, .48);
  background: linear-gradient(135deg, rgba(59, 130, 246, .16), rgba(217, 70, 239, .15));
  transform: translateY(-1px);
}

.alfred-head-actions .alfred-close {
  width: 35px;
  padding: 0;
  font-size: 1.2rem;
}

.alfred-workspace {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  min-height: 464px;
}

.alfred-history {
  padding: 18px 12px;
  border-right: 1px solid var(--alfred-line);
  background:
    linear-gradient(180deg, rgba(78, 44, 141, .12), transparent 48%),
    var(--alfred-panel);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.alfred-history header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px 11px;
}

.alfred-history header strong {
  font-size: .64rem;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.alfred-history header button {
  padding: 5px 9px;
  color: var(--alfred-cyan);
  font-size: .57rem;
  background: rgba(34, 211, 238, .05);
  border: 1px solid rgba(34, 211, 238, .24);
  border-radius: 8px;
}

.alfred-history > div {
  display: grid;
  gap: 6px;
}

.alfred-history > div > button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px;
  text-align: left;
  color: var(--alfred-warm);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.alfred-history > div > button:hover,
.alfred-history > div > button.active {
  border-color: rgba(184, 132, 255, .32);
  background: linear-gradient(135deg, rgba(59, 130, 246, .09), rgba(217, 70, 239, .09));
  transform: translateX(2px);
}

.alfred-history > div > button.active {
  box-shadow: inset 2px 0 0 var(--alfred-cyan);
}

.alfred-history button strong {
  overflow: hidden;
  font-size: .62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alfred-history button span,
.alfred-history p {
  margin: 0;
  color: var(--alfred-muted);
  font-size: .52rem;
}

.alfred-dialogue {
  display: grid;
  grid-template-rows: minmax(250px, 1fr) auto auto;
  min-width: 0;
  background: linear-gradient(160deg, rgba(24, 20, 58, .12), transparent 42%);
}

.alfred-messages {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 520px;
  padding: 26px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, .38) transparent;
}

.alfred-welcome {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 300px;
  padding: 22px;
  text-align: center;
}

.alfred-vine-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  color: #fff;
  border: 1px solid rgba(34, 211, 238, .38);
  border-radius: 14px;
  background: conic-gradient(from 40deg, rgba(34, 211, 238, .14), rgba(139, 92, 246, .28), rgba(217, 70, 239, .24), rgba(34, 211, 238, .14));
  box-shadow: 0 0 34px rgba(139, 92, 246, .24), inset 0 1px 0 rgba(255, 255, 255, .14);
  transform: rotate(45deg);
}

.alfred-vine-mark::first-letter {
  transform: rotate(-45deg);
}

.alfred-welcome h3 {
  margin: 0;
  color: var(--alfred-warm);
  font-size: 1.28rem;
  letter-spacing: -.025em;
}

.alfred-welcome p {
  max-width: 590px;
  margin: 8px 0 19px;
  color: var(--alfred-muted);
  font-size: .72rem;
  line-height: 1.7;
}

.alfred-starters,
.alfred-followups {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.alfred-starters button,
.alfred-followups button {
  padding: 8px 12px;
  color: var(--alfred-warm);
  font-size: .6rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, .09), rgba(139, 92, 246, .09));
  border: 1px solid rgba(139, 92, 246, .30);
  border-radius: 999px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.alfred-starters button:hover,
.alfred-followups button:hover {
  border-color: rgba(34, 211, 238, .48);
  background: linear-gradient(135deg, rgba(59, 130, 246, .18), rgba(217, 70, 239, .14));
  transform: translateY(-1px);
}

.alfred-message {
  align-self: flex-start;
  width: min(84%, 760px);
  padding: 14px 16px;
  border: 1px solid var(--alfred-line-soft);
  border-radius: 8px 18px 18px 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(139, 92, 246, .045));
  box-shadow: 0 12px 30px rgba(3, 3, 16, .13), inset 0 1px 0 rgba(255, 255, 255, .045);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.alfred-message.user {
  align-self: flex-end;
  border-color: rgba(89, 144, 255, .34);
  border-radius: 18px 8px 18px 18px;
  background: linear-gradient(135deg, rgba(59, 130, 246, .16), rgba(109, 40, 217, .14));
}

.alfred-message.error {
  border-color: rgba(244, 114, 182, .56);
}

.alfred-message-role {
  display: block;
  margin-bottom: 5px;
  color: var(--alfred-gold);
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.alfred-message.user .alfred-message-role {
  color: var(--alfred-cyan);
}

.alfred-message-copy {
  color: var(--alfred-warm);
  font-size: .72rem;
  line-height: 1.67;
}

.alfred-citations {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--alfred-line-soft);
}

.alfred-citations > span {
  color: var(--alfred-muted);
  font-size: .52rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.alfred-citations a {
  color: var(--alfred-gold);
  font-size: .59rem;
  text-decoration: none;
}

.alfred-citations a:hover {
  color: var(--alfred-cyan);
  text-decoration: underline;
}

.alfred-message-tools {
  display: flex;
  gap: 11px;
  margin-top: 10px;
}

.alfred-message-tools button {
  padding: 0;
  color: var(--alfred-muted);
  font-size: .55rem;
  background: transparent;
  border: 0;
}

.alfred-message-tools button:hover {
  color: var(--alfred-cyan);
}

.alfred-followups {
  justify-content: flex-start;
  margin-top: 12px;
}

.alfred-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 13px 16px;
  border-top: 1px solid var(--alfred-line);
  background: rgba(4, 5, 18, .68);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.alfred-composer label {
  min-width: 0;
}

.alfred-composer textarea {
  width: 100%;
  min-height: 56px;
  max-height: 160px;
  padding: 15px 16px;
  resize: vertical;
  box-sizing: border-box;
  color: var(--alfred-warm);
  line-height: 1.45;
  background: var(--alfred-input);
  border: 1px solid rgba(155, 130, 220, .28);
  border-radius: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
  transition: border-color .2s ease, background .2s ease;
}

.alfred-composer textarea:hover {
  border-color: rgba(34, 211, 238, .32);
}

.alfred-composer textarea::placeholder {
  color: #8383a5;
}

.alfred-composer-actions {
  display: flex;
  align-items: stretch;
  gap: 7px;
}

.alfred-composer-actions button {
  padding: 0 15px;
  color: var(--alfred-warm);
  font-size: .63rem;
  font-weight: 760;
  border-radius: 13px;
  transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}

.alfred-composer-actions button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.alfred-mic {
  background: rgba(139, 92, 246, .06);
  border: 1px solid var(--alfred-line);
}

.alfred-mic span {
  margin-right: 5px;
  color: var(--alfred-cyan);
  text-shadow: 0 0 10px var(--alfred-cyan);
}

.alfred-mic.recording {
  border-color: rgba(244, 114, 182, .62);
  background: rgba(244, 114, 182, .13);
}

.alfred-mic.recording span {
  color: var(--alfred-pink);
}

.alfred-send {
  color: #fff !important;
  background: linear-gradient(135deg, #3867dc, #7c3fe4 54%, #d946c7);
  border: 1px solid rgba(255, 255, 255, .14) !important;
  box-shadow: 0 9px 28px rgba(95, 50, 204, .30), inset 0 1px 0 rgba(255, 255, 255, .20);
}

.alfred-send span {
  margin-left: 8px;
}

.alfred-send:disabled {
  opacity: .55;
  cursor: wait;
}

.alfred-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 7px 18px 11px;
  color: var(--alfred-muted);
  font-size: .52rem;
}

.alfred-status .error {
  color: #ff9ac8;
}

.alfred-status small {
  font-size: inherit;
}

.alfred-status > button {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: #171027;
  font-size: .54rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--alfred-gold), #f0d98e);
  border: 0;
  border-radius: 999px;
}

.alfred-popover {
  position: fixed;
  right: 22px;
  bottom: 102px;
  z-index: 1200;
  width: min(540px, calc(100vw - 28px));
  filter: drop-shadow(0 30px 90px rgba(2, 2, 14, .60));
}

.alfred-popover:not([hidden]) .alfred-shell {
  animation: alfred-arrive .28s cubic-bezier(.2, .75, .25, 1);
}

.alfred-popover .alfred-shell-head {
  min-height: 94px;
  padding: 10px 14px;
}

.alfred-popover .alfred-portrait {
  width: 68px;
  height: 68px;
  flex-basis: 68px;
  border-radius: 19px;
}

.alfred-popover .alfred-portrait::before {
  border-radius: 14px;
}

.alfred-popover .alfred-identity h2 {
  font-size: 1.32rem;
}

.alfred-popover .alfred-workspace {
  display: block;
  min-height: 0;
}

.alfred-popover .alfred-history {
  position: absolute;
  z-index: 5;
  inset: 0 auto 0 0;
  width: 216px;
  transform: translateX(-105%);
  transition: transform .24s cubic-bezier(.2, .75, .25, 1);
}

.alfred-popover .alfred-history.open {
  transform: translateX(0);
  box-shadow: 22px 0 44px rgba(2, 2, 14, .36);
}

.alfred-popover .alfred-messages {
  height: 390px;
  max-height: 45vh;
  padding: 18px;
}

.alfred-popover .alfred-message {
  width: 90%;
}

.alfred-popover .alfred-composer {
  grid-template-columns: 1fr;
}

.alfred-popover .alfred-composer-actions {
  justify-content: flex-end;
}

.alfred-popover .alfred-status small {
  display: none;
}

.alfred-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1199;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
  height: 68px;
  padding: 6px 17px 6px 7px;
  color: var(--alfred-warm);
  background:
    linear-gradient(var(--alfred-indigo), var(--alfred-deep)) padding-box,
    conic-gradient(from 220deg, var(--alfred-cyan), var(--alfred-violet), var(--alfred-magenta), var(--alfred-blue), var(--alfred-cyan)) border-box;
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: 0 20px 54px rgba(2, 2, 14, .45), inset 0 1px 0 rgba(255, 255, 255, .10);
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.alfred-launcher > .alfred-launcher-portrait {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, .30);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .20), rgba(139, 92, 246, .16) 44%, transparent 72%);
  box-shadow: 0 0 24px rgba(139, 92, 246, .22);
}

.alfred-launcher > .alfred-launcher-portrait::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--alfred-indigo);
  border-radius: 50%;
  background: var(--alfred-cyan);
  box-shadow: 0 0 11px var(--alfred-cyan);
}

.alfred-launcher img {
  width: 96%;
  height: 108%;
  object-fit: contain;
  filter: drop-shadow(0 7px 8px rgba(0, 0, 0, .38));
}

.alfred-launcher strong {
  display: grid;
  text-align: left;
  font-size: .73rem;
  letter-spacing: -.01em;
}

.alfred-launcher small {
  margin-top: 2px;
  color: var(--alfred-cyan);
  font-size: .48rem;
  letter-spacing: .13em;
  text-shadow: 0 0 11px rgba(34, 211, 238, .55);
}

.alfred-launcher:hover {
  transform: translateY(-3px);
  filter: saturate(1.10);
  box-shadow: 0 25px 62px rgba(2, 2, 14, .52), 0 0 34px rgba(139, 92, 246, .19);
}

[data-alfred-embedded] {
  display: block;
  margin: 20px 0 22px;
}

[data-alfred-embedded] > .alfred-shell {
  box-shadow: 0 30px 78px rgba(37, 22, 84, .15), inset 0 1px 0 rgba(255, 255, 255, .10);
}

[data-theme="light"] .alfred-shell {
  --alfred-warm: #1d1935;
  --alfred-muted: #625e7a;
  --alfred-line: rgba(109, 40, 217, .20);
  --alfred-line-soft: rgba(89, 92, 173, .15);
  --alfred-glass: rgba(247, 244, 255, .90);
  --alfred-panel: rgba(241, 237, 253, .82);
  --alfred-panel-soft: rgba(94, 56, 157, .055);
  --alfred-input: rgba(255, 255, 255, .72);
  --alfred-shadow: rgba(56, 39, 93, .17);
  background:
    radial-gradient(circle at 10% -4%, rgba(34, 211, 238, .13), transparent 31%),
    radial-gradient(circle at 88% 7%, rgba(217, 70, 239, .12), transparent 35%),
    radial-gradient(circle at 56% 112%, rgba(59, 130, 246, .10), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, .97), var(--alfred-glass) 54%, rgba(239, 237, 251, .96));
}

[data-theme="light"] .alfred-shell-head {
  background: linear-gradient(90deg, rgba(255, 255, 255, .75), rgba(139, 92, 246, .075), rgba(217, 70, 239, .045));
}

[data-theme="light"] .alfred-history {
  background: linear-gradient(180deg, rgba(139, 92, 246, .075), transparent 48%), var(--alfred-panel);
}

[data-theme="light"] .alfred-dialogue {
  background: linear-gradient(160deg, rgba(139, 92, 246, .04), transparent 42%);
}

[data-theme="light"] .alfred-message {
  background: linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(139, 92, 246, .045));
  box-shadow: 0 12px 26px rgba(66, 49, 108, .07), inset 0 1px 0 rgba(255, 255, 255, .75);
}

[data-theme="light"] .alfred-message.user {
  background: linear-gradient(135deg, rgba(59, 130, 246, .10), rgba(109, 40, 217, .10));
}

[data-theme="light"] .alfred-composer {
  background: rgba(239, 237, 250, .78);
}

[data-theme="light"] .alfred-composer textarea {
  color: var(--alfred-warm);
}

[data-theme="light"] .alfred-head-actions button,
[data-theme="light"] .alfred-mic {
  background: rgba(255, 255, 255, .58);
}

[data-theme="light"] .alfred-launcher {
  color: #f8f5ff;
  background:
    linear-gradient(#0b0920, #050511) padding-box,
    conic-gradient(from 220deg, var(--alfred-cyan), var(--alfred-violet), var(--alfred-magenta), var(--alfred-blue), var(--alfred-cyan)) border-box;
  box-shadow: 0 18px 48px rgba(49, 35, 88, .24), inset 0 1px 0 rgba(255, 255, 255, .10);
}

@keyframes alfred-glow {
  to {
    transform: translateX(7%) scale(1.08);
    opacity: 1;
  }
}

@keyframes alfred-status-pulse {
  0%, 100% { opacity: .72; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.10); }
}

@keyframes alfred-arrive {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 900px) {
  .alfred-workspace {
    grid-template-columns: 1fr;
  }

  .alfred-history {
    position: absolute;
    z-index: 5;
    top: 0;
    bottom: 0;
    left: 0;
    width: 224px;
    transform: translateX(-105%);
    transition: transform .24s cubic-bezier(.2, .75, .25, 1);
  }

  .alfred-history.open {
    transform: translateX(0);
    box-shadow: 22px 0 46px rgba(2, 2, 14, .38);
  }

  .alfred-shell-head {
    align-items: flex-start;
  }

  .alfred-head-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  .alfred-shell {
    border-radius: 20px;
  }

  .alfred-shell-head {
    min-height: 92px;
    padding: 11px;
  }

  .alfred-identity {
    gap: 10px;
  }

  .alfred-portrait {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
    border-radius: 18px;
  }

  .alfred-portrait::before {
    border-radius: 13px;
  }

  .alfred-overline {
    font-size: .47rem;
    letter-spacing: .16em;
  }

  .alfred-identity h2 {
    font-size: 1.2rem;
  }

  .alfred-identity p {
    max-width: 150px;
    font-size: .55rem;
    line-height: 1.35;
  }

  .alfred-head-actions {
    gap: 5px;
  }

  .alfred-head-actions button:not(.alfred-close) {
    min-height: 31px;
    padding: 6px 8px;
    font-size: .54rem;
  }

  .alfred-messages {
    max-height: 430px;
    padding: 15px;
  }

  .alfred-message {
    width: 92%;
    padding: 12px 13px;
  }

  .alfred-composer {
    grid-template-columns: 1fr;
  }

  .alfred-composer-actions {
    justify-content: flex-end;
  }

  .alfred-composer-actions button {
    min-height: 42px;
  }

  .alfred-status {
    display: block;
  }

  .alfred-status small {
    display: none;
  }

  .alfred-launcher {
    right: 12px;
    bottom: 12px;
    min-width: 60px;
    width: 60px;
    height: 60px;
    padding: 4px;
  }

  .alfred-launcher > .alfred-launcher-portrait {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .alfred-launcher > strong {
    display: none;
  }

  .alfred-popover {
    inset: auto 7px 78px;
    width: auto;
  }

  .alfred-popover .alfred-messages {
    height: 360px;
    max-height: 42vh;
  }

  .alfred-popover .alfred-shell {
    max-height: calc(100dvh - 92px);
    border-radius: 20px;
  }
}

/* V0.9.9.472B stable command panel, retained as canonical structure */
.alfred-launcher {
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 56px;
  min-width: 56px;
  max-width: 176px;
  height: 56px;
  min-height: 56px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--alfred-launcher-border, #d8b968) 72%, transparent);
  border-radius: 999px;
  color: var(--alfred-launcher-text, #f4edd3);
  background: var(--alfred-launcher-background, #0d1f18);
  box-shadow: 0 16px 42px color-mix(in srgb, var(--alfred-launcher-shadow, #000) 38%, transparent);
  transition: width 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  transform-origin: right center;
  isolation: isolate;
}

.alfred-launcher:hover,
.alfred-launcher:focus-visible {
  width: 176px;
  min-width: 176px;
  transform: translateY(-2px);
  box-shadow: 0 19px 48px color-mix(in srgb, var(--alfred-launcher-shadow, #000) 46%, transparent);
}

.alfred-launcher:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold, #d8b968) 78%, #fff);
  outline-offset: 3px;
}

.alfred-launcher .alfred-launcher-portrait {
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.alfred-launcher .alfred-launcher-portrait::before,
.alfred-launcher .alfred-launcher-portrait::after {
  display: none;
  content: none;
}

.alfred-launcher .alfred-launcher-portrait img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transform: none;
  filter: drop-shadow(0 4px 9px rgba(0, 0, 0, .28));
}

.alfred-launcher > .alfred-launcher-label {
  position: relative;
  display: block;
  flex: 0 0 auto;
  place-items: initial;
  padding-right: 13px;
  overflow: hidden;
  color: inherit;
  font: 750 15px/1 "Open Sans", sans-serif;
  letter-spacing: .015em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(7px);
  transition: opacity 140ms ease 45ms, transform 160ms ease 35ms;
}

.alfred-launcher:hover .alfred-launcher-label,
.alfred-launcher:focus-visible .alfred-launcher-label {
  opacity: 1;
  transform: translateX(0);
}

.alfred-popover {
  right: 16px;
  bottom: 84px;
  width: min(620px, calc(100vw - 32px));
  min-width: 0;
  max-width: none;
  height: min(720px, calc(100dvh - 112px));
  max-height: none;
  overflow: hidden;
  border-radius: 22px;
  transform: none;
  contain: layout paint;
}

.alfred-popover[hidden] {
  display: none !important;
}

.alfred-popover .alfred-shell,
.alfred-popover .alfred-workspace,
.alfred-popover .alfred-dialogue {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  max-height: none;
}

.alfred-popover .alfred-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.alfred-popover .alfred-workspace {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}

.alfred-popover .alfred-dialogue {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  overflow: hidden;
}

.alfred-popover .alfred-messages {
  min-height: 0;
  max-height: none;
  padding: 20px 22px 26px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.alfred-popover .alfred-shell-head {
  min-height: 112px;
  padding: 18px 18px 16px;
  gap: 14px;
}

.alfred-popover .alfred-identity {
  min-width: 0;
  align-items: center;
  gap: 13px;
}

.alfred-popover .alfred-portrait {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
}

.alfred-popover .alfred-identity-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.alfred-popover .alfred-overline {
  font-size: .79rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.alfred-popover .alfred-identity h2 {
  margin: 0;
  font-size: clamp(1.72rem, 2.7vw, 2.18rem);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1;
}

.alfred-popover .alfred-identity h2 small {
  font-size: .72em;
  font-weight: 760;
  letter-spacing: -.015em;
}

.alfred-popover .alfred-identity-copy > p {
  margin: 4px 0 0;
  font-size: .76rem;
  line-height: 1.35;
}

.alfred-mode {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  margin-top: 5px;
  padding: 5px 9px;
  border: 1px solid rgba(216, 185, 104, .3);
  border-radius: 999px;
  color: #f8efd2;
  background: rgba(10, 45, 32, .78);
  font-size: .67rem;
  font-weight: 760;
  letter-spacing: .025em;
}

.alfred-mode i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #78d89c;
  box-shadow: 0 0 0 3px rgba(120, 216, 156, .13);
}

.alfred-popover .alfred-composer,
.alfred-popover .alfred-status {
  flex: none;
}

.alfred-popover .alfred-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  min-height: 59px;
  padding: 10px 20px 12px;
}

.alfred-popover .alfred-status small {
  grid-column: 1 / -1;
}

.alfred-status-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.alfred-retry {
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: #fff;
  background: #7f352b;
  font: 750 .72rem/1 "Open Sans", sans-serif;
  cursor: pointer;
}

.alfred-retry:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

[data-theme="light"] .alfred-mode {
  color: #fff;
  background: #174b36;
}

[data-theme="light"] .alfred-popover .alfred-identity-copy > p {
  color: #29271f;
}

@media (max-width: 720px) {
  .alfred-launcher {
    right: 10px;
    bottom: 10px;
    width: 54px;
    min-width: 54px;
    max-width: 168px;
    height: 54px;
    min-height: 54px;
  }

  .alfred-launcher:hover,
  .alfred-launcher:focus-visible {
    width: 168px;
    min-width: 168px;
  }

  .alfred-popover {
    inset: auto 10px 76px;
    width: auto;
    min-width: 0;
    height: min(720px, calc(100dvh - 88px));
    max-height: none;
    border-radius: 18px;
  }

  .alfred-popover .alfred-shell-head {
    min-height: 96px;
    padding: 13px;
  }

  .alfred-popover .alfred-portrait {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
  }

  .alfred-popover .alfred-overline {
    font-size: .67rem;
  }

  .alfred-popover .alfred-identity h2 {
    font-size: 1.55rem;
  }

  .alfred-popover .alfred-identity-copy > p {
    display: none;
  }

  .alfred-mode {
    margin-top: 4px;
    font-size: .61rem;
  }

  .alfred-popover .alfred-messages {
    padding: 16px 14px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alfred-launcher,
  .alfred-launcher-label,
  .alfred-popover {
    transition: none !important;
    animation: none !important;
  }
}

.alfred-inline-link { color: var(--alfred-gold); font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.alfred-inline-link:hover { color: var(--alfred-cyan); }
/* Live microphone energy indicator. No samples are stored. */
.alfred-mic-signal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 28px;
  height: 20px;
}

.alfred-mic-signal i {
  width: 2px;
  height: 4px;
  border-radius: 99px;
  background: currentColor;
  opacity: .52;
  transition: height 90ms linear, opacity 160ms ease, filter 160ms ease;
}

.alfred-mic.recording .alfred-mic-signal i { height: var(--alfred-signal, 4px); }
.alfred-mic.recording .alfred-mic-signal i:nth-child(2),
.alfred-mic.recording .alfred-mic-signal i:nth-child(4) { transform: scaleY(.72); }
.alfred-mic.recording .alfred-mic-signal i:nth-child(1),
.alfred-mic.recording .alfred-mic-signal i:nth-child(5) { transform: scaleY(.45); }

.alfred-mic.recording {
  color: #eadfff;
  border-color: rgba(207, 143, 255, .58);
  background: linear-gradient(135deg, rgba(86, 42, 153, .38), rgba(17, 139, 159, .26));
}

.alfred-mic.recording.hearing {
  border-color: rgba(93, 235, 255, .82);
  box-shadow: 0 0 0 3px rgba(129, 76, 255, .1), 0 0 22px rgba(68, 220, 255, .16);
}

.alfred-mic.recording.hearing .alfred-mic-signal i {
  opacity: 1;
  background: linear-gradient(180deg, #f39cff, #66edff);
  filter: drop-shadow(0 0 4px rgba(100, 235, 255, .65));
}

.alfred-mic-label { margin-right: 0 !important; white-space: nowrap; }

@media (max-width: 480px) {
  .alfred-shell-head {
    gap: 8px;
  }

  .alfred-popover .alfred-shell-head {
    min-height: 84px;
  }

  .alfred-popover .alfred-portrait {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .alfred-head-actions button:not(.alfred-close) {
    padding-inline: 7px;
  }

  .alfred-composer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .alfred-composer-actions button {
    padding: 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alfred-shell *,
  .alfred-shell::before,
  .alfred-shell::after,
  .alfred-launcher,
  .alfred-popover .alfred-history {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* V0.4.4.92B data room theme */
/* Retained as the canonical light and dark theme layer. */
.alfred-shell {
  --alfred-warm: #f4edd3;
  --alfred-muted: #aeb9b0;
  --alfred-line: rgba(216, 185, 104, .22);
  --alfred-line-soft: rgba(216, 185, 104, .13);
  --alfred-glass: rgba(6, 15, 11, .96);
  --alfred-panel: rgba(11, 27, 19, .95);
  --alfred-panel-soft: rgba(255, 255, 255, .045);
  --alfred-input: rgba(255, 255, 255, .065);
  --alfred-shadow: rgba(0, 0, 0, .5);
  font-size: 16px;
  background:
    radial-gradient(circle at 84% 8%, rgba(48, 125, 77, .22), transparent 34%),
    radial-gradient(circle at 8% 95%, rgba(216, 185, 104, .1), transparent 38%),
    linear-gradient(145deg, rgba(13, 31, 23, .98), rgba(4, 10, 7, .98));
  border-color: rgba(216, 185, 104, .27);
  border-radius: 18px;
}

.alfred-shell::before { opacity: .13; }
.alfred-shell::after { background: linear-gradient(135deg, rgba(216,185,104,.65), transparent 28%, transparent 72%, rgba(72,148,96,.5)); opacity: .42; }
.alfred-shell-head { background: linear-gradient(90deg, rgba(4,12,8,.76), rgba(31,75,49,.14)); }
.alfred-shell-head::after { background: linear-gradient(90deg, transparent, var(--alfred-gold), transparent); }
.alfred-dialogue { background: linear-gradient(160deg, rgba(45,112,68,.055), transparent 45%); }
.alfred-history { background: linear-gradient(180deg, rgba(45,112,68,.12), transparent 50%), var(--alfred-panel); }
.alfred-message { background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(42,105,66,.045)); }
.alfred-message.user { background: linear-gradient(135deg, rgba(48,125,77,.18), rgba(216,185,104,.08)); }
.alfred-message-copy { font-size: 1rem; line-height: 1.66; }
.alfred-welcome p { font-size: .98rem; line-height: 1.66; }
.alfred-message-role { font-size: .66rem; }
.alfred-citations a,.alfred-message-tools button,.alfred-followups button,.alfred-starters button { font-size: .8rem; }
.alfred-composer { background: rgba(4, 12, 8, .68); }
.alfred-composer textarea { min-height: 62px; font-size: 1rem; line-height: 1.5; }
.alfred-composer-actions button { min-height: 46px; padding: 10px 16px; font-size: 1rem; font-weight: 750; }
.alfred-mic { border-color: rgba(216,185,104,.25); background: rgba(216,185,104,.05); }
.alfred-mic span { color: var(--alfred-gold); text-shadow: none; }
.alfred-send { background: linear-gradient(135deg, #285e40, #3c7851 58%, #a88b42); }
.alfred-status { padding: 9px 18px 13px; font-size: .67rem; }

[data-theme="dark"] .alfred-shell {
  color: #f4edd3;
  background:
    radial-gradient(circle at 84% 8%, rgba(48, 125, 77, .22), transparent 34%),
    radial-gradient(circle at 8% 95%, rgba(216, 185, 104, .1), transparent 38%),
    linear-gradient(145deg, rgba(13, 31, 23, .98), rgba(4, 10, 7, .98));
}

[data-theme="light"] .alfred-shell {
  --alfred-warm: #172119;
  --alfred-muted: #59635b;
  --alfred-line: rgba(47, 81, 56, .2);
  --alfred-line-soft: rgba(47, 81, 56, .13);
  --alfred-glass: rgba(250, 248, 238, .97);
  --alfred-panel: rgba(244, 246, 237, .97);
  --alfred-panel-soft: rgba(34, 83, 51, .055);
  --alfred-input: rgba(255, 255, 255, .86);
  --alfred-shadow: rgba(44, 53, 45, .18);
  color: #172119;
  background:
    radial-gradient(circle at 84% 8%, rgba(48, 125, 77, .12), transparent 34%),
    radial-gradient(circle at 8% 95%, rgba(156, 120, 32, .08), transparent 38%),
    linear-gradient(145deg, #fffdf6, #edf2ea);
  border-color: rgba(65, 92, 69, .24);
}

[data-theme="light"] .alfred-shell-head { background: linear-gradient(90deg, rgba(255,255,255,.9), rgba(49,113,70,.08)); }
[data-theme="light"] .alfred-history { background: linear-gradient(180deg, rgba(49,113,70,.08), transparent 50%), var(--alfred-panel); }
[data-theme="light"] .alfred-dialogue { background: linear-gradient(160deg, rgba(49,113,70,.035), transparent 45%); }
[data-theme="light"] .alfred-message { background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(49,113,70,.04)); box-shadow: 0 10px 26px rgba(44,53,45,.06); }
[data-theme="light"] .alfred-message.user { background: linear-gradient(135deg, rgba(49,113,70,.1), rgba(156,120,32,.07)); }
[data-theme="light"] .alfred-composer { background: rgba(237,242,234,.9); }
[data-theme="light"] .alfred-head-actions button,[data-theme="light"] .alfred-mic { background: rgba(255,255,255,.72); }
/* Style Studio presentation variables */
[data-theme="light"] {
  --alfred-launcher-background: var(--alfred-launcher-background-light, #fcf8eb);
  --alfred-launcher-border: var(--alfred-launcher-border-light, #876825);
  --alfred-launcher-text: var(--alfred-launcher-text-light, #173b2e);
  --alfred-launcher-shadow: var(--alfred-launcher-shadow-light, #413314);
  --alfred-popup-background: var(--alfred-popup-background-light, #fffdf6);
  --alfred-popup-border: var(--alfred-popup-border-light, #415c45);
  --alfred-popup-text: var(--alfred-popup-text-light, #172119);
  --alfred-popup-accent: var(--alfred-popup-accent-light, #317146);
  --alfred-popup-shadow: var(--alfred-popup-shadow-light, #2c352d);
  --alfred-chat-body: var(--alfred-chat-body-light, #172119);
  --alfred-chat-user-bubble: var(--alfred-chat-user-bubble-light, #e2eee2);
  --alfred-chat-alfred-bubble: var(--alfred-chat-alfred-bubble-light, #ffffff);
  --alfred-chat-input-background: var(--alfred-chat-input-background-light, #ffffff);
  --alfred-chat-action-background: var(--alfred-chat-action-background-light, #317146);
  --alfred-chat-action-text: var(--alfred-chat-action-text-light, #ffffff);
  --alfred-portrait-border: var(--alfred-portrait-border-light, #71917a);
  --alfred-portrait-background: var(--alfred-portrait-background-light, #edf2ea);
  --alfred-portrait-glow: var(--alfred-portrait-glow-light, #317146);
}

[data-theme="dark"] {
  --alfred-launcher-background: var(--alfred-launcher-background-dark, #0d1f18);
  --alfred-launcher-border: var(--alfred-launcher-border-dark, #d8b968);
  --alfred-launcher-text: var(--alfred-launcher-text-dark, #f4edd3);
  --alfred-launcher-shadow: var(--alfred-launcher-shadow-dark, #000000);
  --alfred-popup-background: var(--alfred-popup-background-dark, #0d1f17);
  --alfred-popup-border: var(--alfred-popup-border-dark, #d8b968);
  --alfred-popup-text: var(--alfred-popup-text-dark, #f4edd3);
  --alfred-popup-accent: var(--alfred-popup-accent-dark, #d8b968);
  --alfred-popup-shadow: var(--alfred-popup-shadow-dark, #000000);
  --alfred-chat-body: var(--alfred-chat-body-dark, #f4edd3);
  --alfred-chat-user-bubble: var(--alfred-chat-user-bubble-dark, #173d29);
  --alfred-chat-alfred-bubble: var(--alfred-chat-alfred-bubble-dark, #15271d);
  --alfred-chat-input-background: var(--alfred-chat-input-background-dark, #14241c);
  --alfred-chat-action-background: var(--alfred-chat-action-background-dark, #3c7851);
  --alfred-chat-action-text: var(--alfred-chat-action-text-dark, #ffffff);
  --alfred-portrait-border: var(--alfred-portrait-border-dark, #d8b968);
  --alfred-portrait-background: var(--alfred-portrait-background-dark, #0b1b13);
  --alfred-portrait-glow: var(--alfred-portrait-glow-dark, #d8b968);
}
.alfred-popover {
  right: var(--alfred-launcher-offset-x, 14px);
  bottom: calc(var(--alfred-launcher-offset-y, 14px) + var(--alfred-launcher-height, 48px) + var(--alfred-popup-gap, 15px));
  width: min(var(--alfred-popup-width), calc(100vw - 28px));
}

.alfred-popover .alfred-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: min(var(--alfred-popup-max-height, 700px), calc(100dvh - 92px));
  max-height: var(--alfred-popup-max-height, 700px);
  overflow: auto;
  color: var(--alfred-popup-text, #f4edd3);
  border: var(--alfred-popup-border-width, 1px) solid var(--alfred-popup-border, #d8b968);
  border-radius: var(--alfred-popup-radius, 18px);
  background:
    radial-gradient(circle at 84% 8%, color-mix(in srgb, var(--alfred-popup-accent, #d8b968) 18%, transparent), transparent 34%),
    var(--alfred-popup-background, #0d1f17);
  box-shadow: 0 30px 90px color-mix(in srgb, var(--alfred-popup-shadow, #000000) 50%, transparent);
  opacity: var(--alfred-popup-opacity, .98);
  backdrop-filter: blur(var(--alfred-popup-blur, 28px)) saturate(145%);
  -webkit-backdrop-filter: blur(var(--alfred-popup-blur, 28px)) saturate(145%);
}

.alfred-popover .alfred-workspace {
  min-height: 0;
}

.alfred-popover .alfred-dialogue {
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto auto;
}

.alfred-shell.embedded {
  width: 100%;
}

.alfred-popover .alfred-messages {
  height: auto;
  min-height: 0;
  max-height: none;
  gap: var(--alfred-popup-gap, 15px);
  padding: var(--alfred-popup-padding, 18px);
}

.alfred-popover .alfred-message-copy,
.alfred-popover .alfred-welcome p {
  color: var(--alfred-chat-body, #f4edd3);
  font-size: var(--alfred-chat-message-size);
  line-height: var(--alfred-chat-line-height, 1.66);
}

.alfred-popover .alfred-message {
  background: var(--alfred-chat-alfred-bubble, #15271d);
}

.alfred-popover .alfred-message.user {
  background: var(--alfred-chat-user-bubble, #173d29);
}

.alfred-popover .alfred-composer textarea {
  color: var(--alfred-chat-body, #f4edd3);
  font-size: var(--alfred-chat-input-size);
  background: var(--alfred-chat-input-background, #14241c);
}

.alfred-popover .alfred-composer-actions button {
  color: var(--alfred-chat-action-text, #ffffff) !important;
  font-size: var(--alfred-chat-action-size);
  background: var(--alfred-chat-action-background, #3c7851);
}

.alfred-popover .alfred-portrait {
  width: var(--alfred-portrait-size);
  height: var(--alfred-portrait-size);
  flex-basis: var(--alfred-portrait-size);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.alfred-popover .alfred-portrait img {
  width: 100%;
  height: 100%;
  object-position: var(--alfred-portrait-position-x, 50%) var(--alfred-portrait-position-y, 50%);
  transform: scale(var(--alfred-portrait-crop-scale, 1)) rotate(var(--alfred-portrait-rotation, 0deg));
}

.alfred-popover .alfred-portrait::after {
  content: none;
  display: none;
}
/* V0.9.9.492B final Alfred surface authority */
.alfred-launcher {
  isolation: isolate;
  gap: 8px;
  width: 98px;
  min-width: 98px;
  max-width: 260px;
  height: 98px;
  min-height: 98px;
  padding: 1px;
  overflow: visible;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  transform: none;
  transform-origin: right center;
  will-change: width, transform, box-shadow;
  transition:
    width 520ms cubic-bezier(.22, 1, .36, 1),
    transform 360ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 400ms cubic-bezier(.22, 1, .36, 1),
    border-color 280ms ease;
}

.alfred-launcher::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #fffdf6, #edf2ea);
  box-shadow: 0 18px 46px rgba(27, 62, 46, .2);
  opacity: 0;
  pointer-events: none;
  transform: scaleX(.35);
  transform-origin: right center;
  transition:
    opacity 220ms ease,
    transform 520ms cubic-bezier(.22, 1, .36, 1);
}

.alfred-launcher:hover::before,
.alfred-launcher:focus-visible::before {
  opacity: 1;
  transform: scaleX(1);
}

.alfred-launcher:hover,
.alfred-launcher:focus-visible {
  width: 260px;
  min-width: 98px;
  transform: translateY(-3px) scale(1.012);
  box-shadow: 0 22px 52px color-mix(in srgb, var(--alfred-launcher-shadow, #000) 42%, transparent);
}

.alfred-launcher .alfred-launcher-portrait {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 96px;
  place-items: center;
  width: 96px;
  height: 96px;
  min-width: 96px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
}

.alfred-launcher .alfred-launcher-portrait::before,
.alfred-launcher .alfred-launcher-portrait::after {
  display: none;
  content: none;
}

.alfred-launcher .alfred-launcher-portrait img {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  object-fit: contain;
  transform: none;
  filter: none;
  clip-path: none;
}

.alfred-launcher > .alfred-launcher-label {
  position: relative;
  z-index: 1;
  display: block;
  flex: 0 0 auto;
  place-items: initial;
  width: auto;
  min-width: max-content;
  height: auto;
  padding-right: 16px;
  overflow: visible;
  color: #111;
  font: 750 16px/1 "Open Sans", sans-serif;
  letter-spacing: .015em;
  white-space: nowrap;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  filter: blur(1.5px);
  pointer-events: none;
  transform: translateX(22px);
  transform-origin: left center;
  transition:
    opacity 320ms ease 40ms,
    filter 360ms ease 20ms,
    transform 480ms cubic-bezier(.22, 1, .36, 1);
}

.alfred-launcher > .alfred-launcher-label::before,
.alfred-launcher > .alfred-launcher-label::after {
  display: none;
  content: none;
}

.alfred-launcher:hover .alfred-launcher-label,
.alfred-launcher:focus-visible .alfred-launcher-label {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}

.alfred-popover {
  bottom: 108px;
  width: min(max(var(--alfred-popup-width, 820px), 820px), calc(100vw - 28px));
  border: 0;
  outline: 0;
}

.alfred-popover .alfred-shell {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-height: none;
  overflow: hidden;
  border: 0;
  outline: 0;
  background-clip: border-box;
}

.alfred-popover .alfred-shell::after,
.alfred-popover .alfred-portrait::before,
.alfred-popover .alfred-portrait::after {
  content: none;
  display: none;
}

.alfred-popover .alfred-shell-head,
.alfred-popover .alfred-identity {
  align-items: flex-start;
}

.alfred-popover .alfred-portrait {
  transform: translateY(-10px);
}

.alfred-popover .alfred-head-actions {
  align-self: flex-start;
  justify-content: flex-end;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 7px;
  margin-top: 0;
}

.alfred-popover .alfred-head-actions button {
  min-height: 35px;
  padding: 7px 12px;
  color: var(--alfred-popup-text, #f4edd3);
  font-size: .64rem;
  font-weight: 780;
  white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--alfred-popup-border, #d8b968) 36%, transparent);
  background: color-mix(in srgb, var(--alfred-popup-background, #0d1f17) 88%, white 12%);
  box-shadow: none;
  transition:
    color 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms cubic-bezier(.22, 1, .36, 1);
}

.alfred-popover .alfred-mode {
  width: max-content;
  max-width: none;
  flex-wrap: nowrap;
  white-space: nowrap;
  color: var(--alfred-chat-action-text, #fff);
  background: var(--alfred-chat-action-background, #3c7851);
}

.alfred-popover .alfred-mode i {
  flex: 0 0 auto;
  background: var(--alfred-gold, #d8b968);
  box-shadow: 0 0 0 3px rgba(216, 185, 104, .18), 0 0 10px rgba(216, 185, 104, .42);
}

[data-theme="light"] .alfred-popover .alfred-mode {
  color: #fff !important;
  background: var(--alfred-chat-action-background, #3c7851);
}

[data-theme="light"] .alfred-launcher,
[data-theme="dark"] .alfred-launcher {
  color: #111;
  background: transparent;
  box-shadow: none;
}

[data-theme="light"] .alfred-popover .alfred-head-actions button {
  color: #234f37;
  border-color: #cfd8cf;
  background: #fffdf6;
}

[data-theme="light"] .alfred-popover .alfred-head-actions button:hover,
[data-theme="light"] .alfred-popover .alfred-head-actions button:focus-visible {
  color: #fff;
  border-color: #2f6445;
  background: #2f6445;
  box-shadow: 0 8px 20px rgba(47, 100, 69, .2);
  transform: translateY(-2px);
}

[data-theme="dark"] .alfred-popover .alfred-head-actions button:hover,
[data-theme="dark"] .alfred-popover .alfred-head-actions button:focus-visible {
  color: #102218;
  border-color: #ead48f;
  background: #d2b25e;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .24);
  transform: translateY(-2px);
}

@media (max-width: 720px) {
  .alfred-launcher {
    width: 88px;
    min-width: 88px;
    max-width: 238px;
    height: 88px;
    min-height: 88px;
  }

  .alfred-launcher:hover,
  .alfred-launcher:focus-visible {
    width: 238px;
    min-width: 88px;
  }

  .alfred-launcher .alfred-launcher-portrait {
    flex-basis: 86px;
    width: 86px;
    height: 86px;
    min-width: 86px;
  }

  .alfred-launcher .alfred-launcher-portrait img {
    width: 86px;
    height: 86px;
  }

  .alfred-popover {
    inset: auto 10px 88px;
  }

  .alfred-popover .alfred-shell-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .alfred-popover .alfred-head-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
  }

  .alfred-popover .alfred-composer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alfred-popover .alfred-head-actions button:not(.alfred-close) {
    min-height: 30px;
    padding: 6px 8px;
    font-size: .52rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alfred-launcher,
  .alfred-launcher::before,
  .alfred-launcher-label {
    transition-duration: 1ms !important;
  }
}

.notification-center {
  position: relative;
}

.notification-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  color: var(--muted);
  background: var(--glass);
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.notification-bell:hover,
.notification-bell[aria-expanded="true"] {
  color: var(--gold-bright);
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--gold) 8%, var(--glass));
}

.notification-bell svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-count {
  position: absolute;
  top: -4px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid var(--obsidian);
  border-radius: 999px;
  color: #fff;
  background: #b53c35;
  font: 800 .58rem var(--sans);
}

.notification-panel {
  position: absolute;
  z-index: 200;
  top: calc(100% + 12px);
  right: 0;
  width: min(430px, calc(100vw - 24px));
  max-height: min(680px, calc(100dvh - 92px));
  border: 1px solid color-mix(in srgb, var(--gold) 20%, var(--line));
  border-radius: 18px;
  color: var(--soft);
  background: color-mix(in srgb, var(--obsidian) 96%, transparent);
  box-shadow: 0 28px 72px rgba(0, 0, 0, .4);
  backdrop-filter: blur(24px);
  overflow: hidden;
}

.notification-panel[hidden] {
  display: none;
}

.notification-panel > header {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 1.05rem 1.1rem .95rem;
  border-bottom: 1px solid var(--hairline);
}

.notification-panel header div {
  display: grid;
  gap: 3px;
}

.notification-panel header span {
  color: var(--gold);
  font: 750 .58rem var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.notification-panel header strong {
  color: var(--cream);
  font-size: 1.2rem;
  letter-spacing: -.02em;
}

.notification-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: 0;
  padding: .7rem 1rem;
  border-bottom: 1px solid color-mix(in srgb, #dd5a50 26%, var(--hairline));
  color: #f1aaa4;
  background: color-mix(in srgb, #9b302b 14%, transparent);
  font-size: .72rem;
  line-height: 1.45;
}

.notification-status span {
  min-width: 0;
}

.notification-retry {
  flex: 0 0 auto;
  min-height: 30px;
  padding: .35rem .66rem;
  border: 1px solid color-mix(in srgb, currentColor 44%, transparent);
  border-radius: 999px;
  color: inherit;
  background: color-mix(in srgb, currentColor 8%, transparent);
  font: 750 .68rem var(--sans);
  cursor: pointer;
}

.notification-retry:hover {
  background: color-mix(in srgb, currentColor 15%, transparent);
}

.notification-list {
  max-height: min(580px, calc(100dvh - 168px));
  overflow: auto;
  overscroll-behavior: contain;
}

.notification-item {
  --notification-accent: var(--emerald);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 32px;
  gap: .78rem;
  align-items: start;
  padding: .86rem 1rem;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  transition: background .16s ease;
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item:not(.read) {
  background: color-mix(in srgb, var(--notification-accent) 9%, transparent);
}

.notification-item:hover {
  background: color-mix(in srgb, var(--notification-accent) 12%, transparent);
}

.notification-item.important {
  --notification-accent: var(--gold);
}

.notification-item.urgent {
  --notification-accent: #dd5a50;
}

.notification-item[class*="reward-"] {
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--notification-accent) 9%, transparent), transparent 48%);
}

.notification-item.reward-login {
  --notification-accent: #d8b45f;
}

.notification-item.reward-reading {
  --notification-accent: #56b987;
}

.notification-item.reward-deck {
  --notification-accent: #78aee8;
}

.notification-item.reward-question {
  --notification-accent: #b794e8;
}

.notification-item.reward-meeting {
  --notification-accent: #e58a67;
}

.notification-item.reward-ethereal {
  --notification-accent: #62d7cf;
}

.notification-item.reward-admin {
  --notification-accent: #edc86f;
}

.notification-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--notification-accent) 42%, var(--line));
  border-radius: 50%;
  color: var(--cream);
  background: color-mix(in srgb, var(--notification-accent) 26%, var(--glass));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  font: 800 .9rem var(--sans);
}

.notification-avatar[data-notification-kind="urgent"] {
  color: #fff1ef;
}

.notification-avatar[data-notification-kind="important"] {
  color: var(--gold-bright);
}

.notification-unread-dot {
  position: absolute;
  right: -1px;
  bottom: 1px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--obsidian);
  border-radius: 50%;
  background: var(--notification-accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--notification-accent) 60%, transparent);
}

.notification-copy {
  min-width: 0;
  padding-top: 1px;
}

.notification-copy > strong {
  display: block;
  color: var(--cream);
  font-size: .92rem;
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.notification-item:not(.read) .notification-copy > strong {
  color: color-mix(in srgb, var(--cream) 88%, var(--notification-accent));
  font-weight: 780;
}

.notification-copy p {
  margin: .3rem 0 .34rem;
  color: var(--muted);
  font-size: .79rem;
  line-height: 1.52;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.notification-copy small {
  display: block;
  color: var(--ghost);
  font-size: .65rem;
  letter-spacing: .012em;
  text-transform: capitalize;
}

.notification-action {
  display: table;
  max-width: 100%;
  margin-top: .58rem;
  padding: .42rem .72rem;
  border: 1px solid color-mix(in srgb, var(--notification-accent) 55%, var(--gold-dim));
  border-radius: 999px;
  color: var(--gold-bright);
  background: color-mix(in srgb, var(--notification-accent) 9%, transparent);
  font-size: .69rem;
  font-weight: 760;
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.notification-action:hover {
  border-color: color-mix(in srgb, var(--notification-accent) 82%, var(--gold));
  background: color-mix(in srgb, var(--notification-accent) 16%, transparent);
}

.notification-dismiss {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0 0 2px;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--ghost);
  background: transparent;
  font: 500 1.18rem/1 var(--sans);
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.notification-dismiss:hover {
  color: #f3a29b;
  border-color: color-mix(in srgb, #dd5a50 62%, var(--line));
  background: color-mix(in srgb, #dd5a50 12%, transparent);
}

.notification-dismiss:disabled {
  opacity: .45;
  cursor: wait;
}

.notification-empty {
  display: grid;
  gap: .42rem;
  place-items: center;
  min-height: 220px;
  padding: 2.2rem;
  text-align: center;
}

.notification-empty strong {
  color: var(--cream);
  font-size: .94rem;
}

.notification-empty span {
  color: var(--ghost);
  font-size: .75rem;
  line-height: 1.5;
}

.notification-loading-mark {
  width: 30px;
  height: 30px;
  margin-bottom: .35rem;
  border: 2px solid color-mix(in srgb, var(--gold) 25%, transparent);
  border-top-color: var(--gold-bright);
  border-radius: 50%;
  animation: notification-loading-spin .8s linear infinite;
}

@keyframes notification-loading-spin {
  to { transform: rotate(360deg); }
}

.notification-bell:focus-visible,
.notification-action:focus-visible,
.notification-dismiss:focus-visible,
.notification-retry:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

[data-theme="light"] .notification-panel {
  border-color: rgba(117, 95, 43, .22);
  color: #27362f;
  background: rgba(255, 253, 247, .985);
  box-shadow: 0 26px 68px rgba(44, 54, 45, .2);
}

[data-theme="light"] .notification-panel header strong,
[data-theme="light"] .notification-copy > strong,
[data-theme="light"] .notification-empty strong {
  color: #14251d;
}

[data-theme="light"] .notification-item:not(.read) {
  background: color-mix(in srgb, var(--notification-accent) 10%, #fffdf7);
}

[data-theme="light"] .notification-copy p {
  color: #52665b;
}

[data-theme="light"] .notification-copy small,
[data-theme="light"] .notification-empty span {
  color: #708177;
}

[data-theme="light"] .notification-avatar {
  color: #1f3329;
  background: color-mix(in srgb, var(--notification-accent) 20%, #fff);
}

[data-theme="light"] .notification-unread-dot {
  border-color: #fffdf7;
}

[data-theme="light"] .notification-dismiss {
  color: #68796f;
}

[data-theme="light"] .notification-action {
  color: #665017;
  background: color-mix(in srgb, var(--notification-accent) 10%, #fff);
}

[data-theme="light"] .notification-status {
  color: #8d302c;
  background: #fff4f1;
}

[data-theme="light"] .notification-count {
  border-color: #fff;
}

@media (max-width: 520px) {
  .notification-panel {
    right: -56px;
    width: min(430px, calc(100vw - 18px));
    max-height: calc(100dvh - 82px);
  }

  .notification-list {
    max-height: calc(100dvh - 158px);
  }

  .notification-item {
    grid-template-columns: 40px minmax(0, 1fr) 30px;
    gap: .66rem;
    padding: .78rem .78rem .82rem;
  }

  .notification-avatar {
    width: 40px;
    height: 40px;
  }

  .notification-dismiss {
    width: 30px;
    height: 30px;
  }

  .notification-status {
    align-items: flex-start;
    padding-inline: .82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notification-item,
  .notification-bell,
  .notification-action,
  .notification-dismiss {
    transition: none;
  }

  .notification-loading-mark {
    animation: none;
    border-color: var(--gold-bright);
  }
}

.embedded-dashboard { width: 100%; min-height: calc(100vh - var(--topbar, 76px)); padding: clamp(1.3rem, 3vw, 3rem); color: var(--soft); }
.embed-command-hero { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,340px); align-items: center; min-height: 390px; margin: calc(clamp(1.3rem,3vw,3rem) * -1) calc(clamp(1.3rem,3vw,3rem) * -1) 1rem; padding: clamp(2rem,5vw,5rem); overflow: hidden; border-bottom: 1px solid var(--hairline); background: radial-gradient(circle at 75% 26%,rgba(45,117,81,.24),transparent 34%),radial-gradient(circle at 10% 90%,rgba(216,180,118,.14),transparent 38%),linear-gradient(145deg,color-mix(in srgb,var(--obsidian) 82%,transparent),transparent); }
.embed-command-copy { position: relative; z-index: 1; }
.embed-command-copy > span { color: var(--gold); font: 750 .67rem/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.embed-command-copy h1 { max-width: 760px; margin: .7rem 0 1rem; color: var(--cream); font: 500 clamp(2.45rem,3.9vw,3.7rem)/1.08 var(--display); letter-spacing: -.035em; }
.embed-command-copy h1 em { display: inline-block; padding-right: .1em; color: var(--gold-bright); font-weight: 450; }
.embed-command-copy p { max-width: 680px; margin: 0; color: var(--muted); font-size: clamp(.96rem,1.5vw,1.12rem); line-height: 1.75; }
.embed-command-instrument { position: relative; display: grid; place-items: center; opacity: .88; }
.embed-command-instrument::before { content: ""; position: absolute; width: 72%; aspect-ratio: 1; border-radius: 50%; background: rgba(43,132,82,.2); filter: blur(44px); }
.embed-command-instrument svg { position: relative; width: min(100%,300px); overflow: visible; fill: none; stroke: var(--gold); stroke-width: 1; }
.embed-command-instrument circle:nth-child(2) { stroke-dasharray: 3 7; opacity: .48; }
.embed-command-instrument g { opacity: .5; }
.embed-command-instrument .embed-compass-needle { fill: color-mix(in srgb,var(--gold) 28%,transparent); stroke-width: 1.4; filter: drop-shadow(0 0 13px rgba(216,180,118,.35)); animation: embed-compass-breathe 4.5s ease-in-out infinite; transform-origin: 100px 100px; }
.embed-command-instrument circle:last-child { fill: var(--gold); }
@keyframes embed-compass-breathe { 50% { transform: rotate(9deg) scale(1.02); } }
.embed-deck-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin-bottom: 1rem; }
.embed-deck-links a { display: grid; gap: .35rem; min-height: 116px; align-content: end; padding: 1.25rem; border: 1px solid var(--hairline); border-radius: 18px; color: inherit; background: color-mix(in srgb,var(--obsidian) 60%,transparent); text-decoration: none; transition: transform .25s ease,border-color .25s ease,background .25s ease; }
.embed-deck-links a:hover { transform: translateY(-2px); border-color: color-mix(in srgb,var(--gold) 55%,var(--hairline)); background: color-mix(in srgb,var(--forest) 23%,var(--panel)); }
.embed-deck-links span { color: var(--gold); font: 700 .61rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.embed-deck-links strong { color: var(--cream); font: 550 1.18rem/1.2 var(--display); }
.embed-dash-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(270px,390px); align-items: center; gap: clamp(1.5rem,4vw,4.5rem); padding: clamp(1.7rem,4vw,4.2rem); border: 1px solid var(--hairline); border-radius: 26px; background: radial-gradient(circle at 82% 15%, rgba(216,180,118,.16), transparent 30%), radial-gradient(circle at 12% 88%, rgba(45,117,81,.18), transparent 34%), linear-gradient(145deg, color-mix(in srgb,var(--obsidian) 84%,transparent), color-mix(in srgb,var(--forest) 31%,transparent)); overflow: hidden; }
.embed-dash-hero > div > span,.embed-dash-panel header span,.embed-dash-metrics span,.embed-credit-card small { color: var(--gold); font: 750 .64rem/1.2 var(--mono); letter-spacing: .17em; text-transform: uppercase; }
.embed-dash-hero h1,.embed-dash-hero h2 { max-width: 780px; margin: .55rem 0 .7rem; color: var(--cream); font: 500 clamp(2.2rem,5vw,4.4rem)/.98 var(--display); letter-spacing: -.04em; }
.embed-dash-hero p { max-width: 720px; margin: 0; color: var(--muted); font-size: clamp(.92rem,1.4vw,1.08rem); line-height: 1.7; }
.embed-membership-link { display: inline-flex; margin-top: 1.2rem; padding: .7rem 1rem; border: 1px solid color-mix(in srgb,var(--gold) 45%,transparent); border-radius: 999px; color: var(--gold-bright); font-size: .8rem; font-weight: 750; letter-spacing: .04em; text-decoration: none; }
.embed-membership-link:hover { border-color: var(--gold); background: color-mix(in srgb,var(--gold) 9%,transparent); }
.embed-credit-card { width:100%; min-height:265px; transform:rotate(1.5deg); }
.embed-dash-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; margin: 1rem 0; }.embed-dash-metrics article { display: grid; gap: .35rem; min-height: 120px; padding: 1.25rem; border: 1px solid var(--hairline); border-radius: 18px; background: var(--panel); }.embed-dash-metrics strong { color: var(--cream); font: 550 1.7rem var(--display); }.embed-dash-metrics small { color: var(--ghost); }
.embed-dash-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }.embed-dash-panel { min-width: 0; padding: 1.35rem; border: 1px solid var(--hairline); border-radius: 20px; background: color-mix(in srgb,var(--obsidian) 55%,transparent); }.embed-dash-panel.wide { grid-column: 1/-1; }.embed-dash-panel h3 { margin: .3rem 0 1rem; color: var(--cream); font: 550 1.35rem var(--display); }
.embed-dash-list { display: grid; gap: .55rem; }.embed-dash-row,.embed-progress-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .8rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--hairline); }.embed-dash-row:first-child,.embed-progress-row:first-child { border-top: 0; }.embed-dash-row div,.embed-progress-row div { display: grid; gap: .2rem; }.embed-dash-row strong,.embed-progress-row strong { color: var(--soft); font-size: .86rem; }.embed-dash-row span,.embed-progress-row span,.embed-dash-row em,.embed-progress-row em { color: var(--ghost); font-size: .68rem; font-style: normal; }.embed-progress-row i { grid-column: 1/-1; height: 4px; border-radius: 99px; background: var(--glass); overflow: hidden; }.embed-progress-row i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--forest),var(--gold)); }.embed-dash-empty,.embed-dash-loading,.embed-dash-error { display: grid; place-items: center; min-height: 220px; color: var(--ghost); text-align: center; }.embed-dash-error { gap: .5rem; }.embed-dash-error button { padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--soft); background: var(--glass); }
.embed-accreditation-card { display: grid; gap: .7rem; }.embed-accreditation-card > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .72rem 0; border-top: 1px solid var(--hairline); }.embed-accreditation-card span { color: var(--ghost); font-size: .68rem; }.embed-accreditation-card strong { color: var(--soft); font-size: .78rem; text-align: right; }.embed-accreditation-card > a { display: inline-flex; justify-self: start; margin-top: .25rem; padding: .55rem .8rem; border: 1px solid color-mix(in srgb,var(--gold) 48%,transparent); border-radius: 999px; color: var(--gold-bright); font-size: .7rem; font-weight: 700; text-decoration: none; }.embed-accreditation-card > a:hover { background: color-mix(in srgb,var(--gold) 8%,transparent); }
[data-theme="light"] .embed-command-hero { background: radial-gradient(circle at 75% 26%,rgba(45,117,81,.15),transparent 34%),linear-gradient(145deg,#fff,#edf3ec); }
[data-theme="light"] .embed-deck-links a { background: rgba(255,255,255,.8); }
[data-theme="light"] .embed-dash-hero { background: radial-gradient(circle at 82% 15%,rgba(190,140,44,.13),transparent 30%),linear-gradient(145deg,#fff,#edf3ec); }[data-theme="light"] .embed-dash-panel,[data-theme="light"] .embed-dash-metrics article { background: rgba(255,255,255,.74); }
.embed-dash-memory { position: relative; display: grid; gap: .35rem; min-height: 132px; align-content: end; overflow: hidden; padding: 1.25rem; border: 1px solid rgba(34,211,238,.2); color: inherit; background: radial-gradient(circle at 82% 18%,rgba(244,114,182,.19),transparent 36%),radial-gradient(circle at 22% 78%,rgba(34,211,238,.14),transparent 44%),rgba(3,12,14,.32); text-decoration: none; }
.embed-dash-memory::before { content: ""; position: absolute; top: 1rem; right: 1.3rem; width: 34px; height: 54px; background: linear-gradient(145deg,rgba(229,252,255,.8),rgba(34,211,238,.14) 45%,rgba(244,114,182,.5)); clip-path: polygon(50% 0,88% 28%,77% 81%,50% 100%,17% 80%,9% 29%); filter: drop-shadow(0 0 13px rgba(34,211,238,.42)); }
.embed-dash-memory span { font-weight: 700; }.embed-dash-memory em { color: var(--ghost); font-size: .68rem; font-style: normal; line-height: 1.5; }.embed-dash-memory b { margin-top: .35rem; color: #22d3ee; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }.embed-dash-memory:hover { border-color: rgba(34,211,238,.5); transform: translateY(-1px); }
@media(max-width:900px){.embed-command-hero{grid-template-columns:1fr}.embed-command-instrument{display:none}.embed-deck-links{grid-template-columns:1fr}.embed-dash-hero{grid-template-columns:1fr}.embed-credit-card{max-width:480px}.embed-dash-metrics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.embedded-dashboard{padding:1rem}.embed-command-hero{min-height:340px;margin:-1rem -1rem 1rem;padding:2rem 1.35rem}.embed-command-copy h1{font-size:clamp(1.95rem,9.2vw,2.65rem)}.embed-dash-hero{padding:1.4rem;border-radius:20px}.embed-dash-grid,.embed-dash-metrics{grid-template-columns:1fr}.embed-dash-panel.wide{grid-column:auto}.embed-credit-card{min-height:265px}.embed-dash-row{align-items:start}}

/* V0.9.9.446B member engagement dashboard. */
.embed-command-hero { grid-template-columns: minmax(0, 1fr) minmax(250px, 380px); min-height: 320px; }
.embed-command-copy h1 { font-size: clamp(2.45rem, 4.2vw, 4.25rem); line-height: .98; }
.embed-command-orbit { width: min(30vw, 350px); border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.embed-command-orbit::before, .embed-command-orbit::after { display: none; }
.embed-command-orbit img { width: 92%; max-height: 280px; filter: drop-shadow(0 20px 42px rgba(0,0,0,.35)); }
.embed-deck-links a { grid-template-columns: 58px minmax(0, 1fr); grid-template-areas: "logo kicker" "logo title"; align-content: center; column-gap: 1rem; }
.embed-deck-links a > img { grid-area: logo; width: 52px; height: 64px; object-fit: contain; }
.embed-deck-links a > span { grid-area: kicker; align-self: end; }
.embed-deck-links a > strong { grid-area: title; align-self: start; }
.embed-engagement-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin: 0 0 1.15rem; }
.embed-engagement-links :is(a, button) { display: grid; min-height: 96px; align-content: center; gap: .35rem; padding: 1rem 1.1rem; border: 1px solid var(--hairline); border-radius: 14px; color: var(--soft); background: linear-gradient(145deg, color-mix(in srgb,var(--panel) 76%,transparent), color-mix(in srgb,var(--forest) 9%,transparent)); text-align: left; text-decoration: none; cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.embed-engagement-links :is(a, button):hover { border-color: var(--gold-dim); background: linear-gradient(145deg, var(--gold-glow), color-mix(in srgb,var(--forest) 18%,transparent)); transform: translateY(-1px); }
.embed-engagement-links span { color: var(--gold); font: 750 .58rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.embed-engagement-links strong { font: 550 .96rem/1.25 var(--display); }
.embed-membership-link { cursor: pointer; background: transparent; }
.embed-dash-row:is(button) { width: 100%; border-right: 0; border-bottom: 0; border-left: 0; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.embed-dash-row:is(button):hover { background: linear-gradient(90deg, var(--gold-glow), transparent); }
.embed-panel-action { margin-top: .85rem; padding: .65rem .8rem; border: 1px solid var(--gold-dim); border-radius: 999px; color: var(--gold-bright); background: transparent; font-size: .7rem; font-weight: 750; cursor: pointer; }
.embed-dash-memory { border-color: color-mix(in srgb,var(--gold) 28%,var(--hairline)); background: radial-gradient(circle at 82% 18%,color-mix(in srgb,var(--gold) 17%,transparent),transparent 36%), radial-gradient(circle at 22% 78%,color-mix(in srgb,var(--forest) 35%,transparent),transparent 44%), color-mix(in srgb,var(--obsidian) 68%,transparent); }
.embed-dash-memory::before { width: 40px; height: 58px; background: url('/LOGO/LOGO.png') center/contain no-repeat; clip-path: none; filter: drop-shadow(0 8px 14px rgba(0,0,0,.28)); }
.embed-dash-memory b { color: var(--gold); }
.embed-dash-memory:hover { border-color: var(--gold); }
[data-theme="light"] .embed-engagement-links :is(a, button) { background: rgba(255,255,255,.78); }
@media(max-width:1050px){.embed-engagement-links{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:900px){.embed-command-orbit{display:none}.embed-command-hero{grid-template-columns:1fr}.embed-deck-links a{grid-template-columns:50px minmax(0,1fr)}}
@media(max-width:620px){.embed-engagement-links{grid-template-columns:1fr}.embed-command-copy h1{font-size:clamp(2rem,10vw,3rem)}}

/* V0.9.9.445B My Umbral command center. */
.embed-dash-loading {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  color: var(--gold);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.embed-dash-loading::after {
  content: "";
  position: absolute;
  bottom: 34%;
  left: 25%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: dashboard-load 1s ease-in-out infinite;
}

@keyframes dashboard-load {
  0%, 100% { opacity: .25; transform: scaleX(.35); }
  50% { opacity: 1; transform: scaleX(1); }
}

.embed-command-hero {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
  min-height: 350px;
  margin-bottom: 1.15rem;
  border-bottom: 0;
  background:
    radial-gradient(circle at 84% 34%, rgba(216, 180, 118, .2), transparent 25%),
    radial-gradient(circle at 74% 36%, rgba(44, 113, 76, .26), transparent 41%),
    linear-gradient(138deg, color-mix(in srgb, var(--obsidian) 94%, transparent), color-mix(in srgb, var(--forest) 38%, var(--obsidian)));
}

.embed-command-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--gold) 9%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--gold) 7%, transparent) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent 15%, #000 70%, transparent);
  opacity: .36;
}

.embed-command-copy h1 {
  max-width: 850px;
  font-size: clamp(3rem, 5.2vw, 5.35rem);
  line-height: .94;
}

.embed-command-copy p {
  max-width: 700px;
  font-size: clamp(.98rem, 1.35vw, 1.12rem);
  line-height: 1.62;
}

.embed-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.35rem;
}

.embed-command-actions :is(a, button) {
  min-height: 44px;
  padding: .72rem 1.05rem;
  border: 1px solid color-mix(in srgb, var(--gold) 48%, transparent);
  border-radius: 999px;
  color: var(--gold-bright);
  background: color-mix(in srgb, var(--gold) 8%, transparent);
  font: 750 .76rem/1 var(--sans);
  letter-spacing: .035em;
  text-decoration: none;
  cursor: pointer;
}

.embed-command-actions :is(a, button):first-child {
  border-color: var(--gold);
  background: var(--gold);
  color: #172019;
}

.embed-command-orbit {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(25vw, 250px);
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid color-mix(in srgb, var(--gold) 24%, transparent);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 180, 118, .12), transparent 68%);
  box-shadow: 0 0 80px rgba(43, 132, 82, .18), inset 0 0 55px rgba(216, 180, 118, .06);
}

.embed-command-orbit::before,
.embed-command-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
  border-radius: 50%;
}

.embed-command-orbit::before {
  inset: 10%;
}

.embed-command-orbit::after {
  inset: -9%;
  border-style: dashed;
  animation: command-orbit 28s linear infinite;
}

.embed-command-orbit img {
  width: 44%;
  max-height: 68%;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .35));
}

@keyframes command-orbit {
  to { transform: rotate(360deg); }
}

.embed-destination-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-column: 1 / -1;
  margin: 0 0 1.15rem;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
}

.embed-command-hero > .embed-destination-links {
  position: relative;
  z-index: 2;
  align-self: end;
  margin: 1.6rem 0 -2.7rem;
  backdrop-filter: blur(18px);
}

.embed-destination-links button {
  position: relative;
  display: grid;
  gap: .28rem;
  min-height: 116px;
  align-content: center;
  padding: 1.15rem 1.25rem;
  border: 0;
  border-right: 1px solid var(--hairline);
  color: var(--soft);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.embed-destination-links button:last-child {
  border-right: 0;
}

.embed-destination-links button:hover {
  background: linear-gradient(145deg, color-mix(in srgb, var(--gold) 9%, transparent), color-mix(in srgb, var(--forest) 16%, transparent));
}

.embed-destination-links span {
  color: var(--gold);
  font: 750 .58rem/1 var(--mono);
  letter-spacing: .18em;
}

.embed-destination-links strong {
  font: 550 1.28rem/1.15 var(--display);
}

.embed-destination-links small {
  color: var(--ghost);
  font-size: .7rem;
}

.embed-deck-links {
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}

.embed-deck-links a {
  position: relative;
  min-height: 136px;
  overflow: hidden;
  padding: 1.4rem;
  border-color: color-mix(in srgb, var(--gold) 32%, var(--hairline));
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--gold) 15%, transparent), transparent 44%),
    color-mix(in srgb, var(--obsidian) 72%, transparent);
  box-shadow: 0 15px 38px rgba(0, 0, 0, .1);
}

.embed-deck-links strong {
  font-size: clamp(1.2rem, 1.8vw, 1.48rem);
}

.embed-dash-hero {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 500px);
  gap: clamp(2rem, 4vw, 5rem);
}

.embed-dash-hero h2 {
  font-size: clamp(2.25rem, 4vw, 4.25rem);
}

.embed-credit-card {
  width: min(100%, 500px);
  min-height: 0;
  transform: none;
}

[data-theme="light"] .embed-command-hero {
  background:
    radial-gradient(circle at 84% 34%, rgba(185, 139, 49, .2), transparent 25%),
    radial-gradient(circle at 74% 36%, rgba(44, 113, 76, .14), transparent 41%),
    linear-gradient(138deg, #fffdf7, #e9f0e8);
}

[data-theme="light"] .embed-command-orbit img {
  filter: drop-shadow(0 14px 24px rgba(73, 53, 21, .2));
}

[data-theme="light"] .embed-destination-links,
[data-theme="light"] .embed-deck-links a {
  background-color: rgba(255, 255, 255, .82);
}

@media(max-width:900px) {
  .embed-command-hero {
    grid-template-columns: 1fr;
    min-height: 320px;
  }

  .embed-command-orbit {
    display: none;
  }

  .embed-destination-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .embed-destination-links button:nth-child(2) {
    border-right: 0;
  }

  .embed-destination-links button:nth-child(-n + 2) {
    border-bottom: 1px solid var(--hairline);
  }

  .embed-dash-hero {
    grid-template-columns: 1fr;
  }
}

.embed-news { position: relative; margin-bottom: 1rem; padding: clamp(1rem,2.5vw,1.7rem); overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(135deg, color-mix(in srgb, var(--glass) 92%, var(--gold) 8%), var(--glass)); box-shadow: var(--shadow-soft); }
.embed-news::before { content: ""; position: absolute; inset: -60% auto auto 55%; width: 380px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 18%, transparent), transparent 68%); pointer-events: none; }
.embed-news > header { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.embed-news > header span { color: var(--gold-bright); font-size: .69rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.embed-news > header h2 { margin: .2rem 0 0; font-family: var(--font-display); font-size: clamp(1.35rem,2.2vw,2rem); font-weight: 500; }
.embed-news > header small { color: var(--ghost); }
.embed-news-grid { position: relative; display: grid; grid-template-columns: minmax(0,1.55fr) minmax(260px,.8fr); gap: .8rem; }
.embed-news-featured { display: grid; grid-template-columns: minmax(120px,32%) minmax(0,1fr); min-height: 210px; overflow: hidden; border: 1px solid var(--hairline); border-radius: 18px; background: var(--panel); }
.embed-news-featured > img { width: 100%; height: 100%; object-fit: cover; }
.embed-news-mark { display: grid; place-items: center; color: var(--gold-bright); background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--gold) 25%, transparent), transparent 68%), var(--ink); font: 500 clamp(3rem,8vw,7rem)/1 var(--font-display); }
.embed-news-featured > div { display: flex; flex-direction: column; justify-content: center; padding: clamp(1rem,2.5vw,1.7rem); }
.embed-news h3 { margin: .25rem 0 .4rem; font-family: var(--font-display); font-weight: 500; }
.embed-news p { margin: 0; color: var(--mist); line-height: 1.55; }
.embed-news a { align-self: start; margin-top: .75rem; color: var(--gold-bright); font-weight: 800; text-decoration: none; }
.embed-news-stack { display: grid; gap: .6rem; }
.embed-news-stack article { position: relative; padding: .9rem 2.8rem .9rem 1rem; border: 1px solid var(--hairline); border-radius: 14px; background: var(--panel); }
.embed-news-stack article p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .82rem; }
.embed-news-stack article a { position: absolute; right: .8rem; bottom: .8rem; font-size: .75rem; }
.embed-dash-tools-row { grid-column: 1 / -1; }
.embed-dash-tools-row .embed-engagement-links { margin: 0; }
.embed-question-row span { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

@media (max-width: 760px) {
  .embed-news-grid { grid-template-columns: 1fr; }
  .embed-news-featured { grid-template-columns: 1fr; }
  .embed-news-featured > img, .embed-news-mark { height: 160px; }
}

@media(max-width:620px) {
  .embed-command-hero {
    min-height: 300px;
  }

  .embed-command-copy h1 {
    font-size: clamp(2.35rem, 12vw, 3.35rem);
  }

  .embed-command-actions {
    display: grid;
  }

  .embed-destination-links {
    grid-template-columns: 1fr;
  }

  .embed-destination-links button {
    min-height: 86px;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .embed-destination-links button:last-child {
    border-bottom: 0;
  }
}

/* V0.9.9.446B final dashboard ownership */
.embed-command-copy h1 {
  font-size: clamp(2.45rem, 4.2vw, 4.3rem);
}

.embed-command-orbit {
  width: min(28vw, 310px);
  aspect-ratio: auto;
  min-height: 290px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.embed-command-orbit::before,
.embed-command-orbit::after {
  display: none;
}

.embed-command-orbit img {
  width: 94%;
  max-height: 290px;
  object-fit: contain;
}

@media(max-width:900px) {
  .embed-command-orbit {
    display: none;
  }
}

.embed-steward-invitation {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, .6fr);
  align-items: center;
  gap: clamp(1.2rem, 3vw, 3rem);
  margin: 1rem 0;
  padding: clamp(1.6rem, 4vw, 3.8rem);
  overflow: hidden;
  border: 1px solid var(--gold-dim);
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 14%, color-mix(in srgb, var(--gold) 23%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--forest) 76%, var(--obsidian)), var(--obsidian));
  box-shadow: 0 22px 60px rgba(0, 0, 0, .18);
}

.embed-steward-invitation > div > span {
  color: var(--gold-bright);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.embed-steward-invitation h2 {
  margin: .55rem 0 .8rem;
  color: #fff;
  font: 500 clamp(2.5rem, 5vw, 5.2rem)/.94 var(--serif);
  letter-spacing: -.045em;
}

.embed-steward-invitation p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(.95rem, 1.25vw, 1.08rem);
  line-height: 1.7;
}

.embed-steward-invitation small {
  display: block;
  margin-top: .8rem;
  color: rgba(255, 255, 255, .64);
  line-height: 1.55;
}

.embed-steward-invitation > a {
  display: grid;
  min-height: 112px;
  align-content: center;
  gap: .35rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--gold);
  border-radius: 18px;
  color: var(--umbral-color-on-accent);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  text-decoration: none;
  transition: transform var(--umbral-duration-fast) var(--umbral-ease-enter), box-shadow var(--umbral-duration-fast) var(--umbral-ease-enter);
}

.embed-steward-invitation > a:hover { transform: translateY(-2px); box-shadow: 0 16px 35px rgba(0, 0, 0, .22); }
.embed-steward-invitation > a strong { font-size: 1rem; }
.embed-steward-invitation > a span { font-size: .75rem; line-height: 1.4; }

[data-theme="light"] .embed-steward-invitation {
  color: var(--umbral-color-text);
  background: radial-gradient(circle at 92% 14%, rgba(174, 139, 73, .18), transparent 34%), var(--umbral-color-surface);
  --steward-text: var(--umbral-color-text);
  --steward-muted: var(--umbral-color-text-muted);
}

[data-theme="light"] .embed-steward-invitation h2 { color: var(--steward-text); }
[data-theme="light"] .embed-steward-invitation p,
[data-theme="light"] .embed-steward-invitation small { color: var(--steward-muted); }

@media(max-width:820px) {
  .embed-steward-invitation { grid-template-columns: 1fr; }
}

@media(prefers-reduced-motion:reduce) {
  .embed-steward-invitation > a { transition: none; }
}

/* V0.9.9.454B dashboard narrative and destination system. */
.embed-dashboard-row { width: 100%; }
.embed-deck-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.embed-deck-links :is(a, button) {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-areas: "logo kicker" "logo title";
  min-width: 0;
  min-height: 118px;
  align-content: center;
  column-gap: .8rem;
  padding: 1.1rem;
  border: 1px solid color-mix(in srgb, var(--gold) 32%, var(--hairline));
  border-radius: 16px;
  color: inherit;
  background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--gold) 15%, transparent), transparent 44%), color-mix(in srgb, var(--obsidian) 72%, transparent);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.embed-deck-links :is(a, button) > img { grid-area: logo; width: 42px; height: 54px; object-fit: contain; }
.embed-deck-links :is(a, button) > span { grid-area: kicker; align-self: end; color: var(--gold); font: 750 .56rem/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.embed-deck-links strong { grid-area: title; align-self: start; overflow: hidden; font-size: clamp(.72rem, .9rem, .9rem); font-weight: 800; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
[data-theme="light"] .embed-deck-links :is(a, button) { color: var(--umbral-color-text); background: rgba(255, 255, 255, .84); }
.embed-dash-memory { width: 100%; color: inherit; font: inherit; text-align: left; cursor: pointer; }

@media(max-width:1100px) { .embed-deck-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width:620px) { .embed-deck-links { grid-template-columns: 1fr; } }

/* V0.9.9.454B first-impression dashboard. */
.embed-membership-stage { display: grid; gap: 1rem; margin-bottom: 1rem; }
.embed-membership-stage .embed-deck-links { margin: 0; }

.embed-news {
  width: 100%;
  margin: 1.2rem 0;
  padding: clamp(1.35rem, 3.2vw, 3rem);
  border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--hairline));
  border-radius: 28px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--gold) 7%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--gold) 6%, transparent) 1px, transparent 1px),
    radial-gradient(circle at 92% 7%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 31%),
    linear-gradient(145deg, color-mix(in srgb, var(--obsidian) 86%, transparent), color-mix(in srgb, var(--forest) 34%, var(--obsidian)));
  background-size: 72px 72px, 72px 72px, auto, auto;
  box-shadow: 0 28px 72px rgba(0, 0, 0, .16);
}
.embed-news::before { display: none; }
.embed-news > header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1.5rem; margin-bottom: clamp(1.5rem, 3vw, 2.6rem); }
.embed-news > header h2 { margin: .45rem 0 .7rem; color: var(--cream); font: 550 clamp(2.8rem, 6vw, 6.8rem)/.88 var(--serif); letter-spacing: -.05em; }
.embed-news > header p { max-width: 820px; color: var(--soft); font-size: clamp(.96rem, 1.3vw, 1.12rem); line-height: 1.7; }
.embed-news > header small { padding: .55rem .75rem; border: 1px solid var(--gold-dim); border-radius: 999px; color: var(--gold-bright); font-size: .68rem; font-weight: 750; white-space: nowrap; }
.embed-news-list { display: grid; }
.embed-news-article[hidden] { display: none; }
.embed-news-article { display: grid; grid-template-columns: clamp(50px, 7vw, 92px) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.5rem); padding: clamp(1.4rem, 3vw, 2.6rem) 0; border-top: 1px solid color-mix(in srgb, var(--gold) 24%, var(--hairline)); }
.embed-news-article:first-child { border-top-color: var(--gold); }
.embed-news-index { color: color-mix(in srgb, var(--gold) 70%, transparent); font: 500 clamp(1.7rem, 4vw, 3.7rem)/1 var(--serif); }
.embed-news-story { display: grid; min-width: 0; }
.embed-news-meta { display: flex; flex-wrap: wrap; gap: .65rem 1rem; color: var(--gold-bright); font-size: .65rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.embed-news-story h3 { max-width: 1050px; margin: .55rem 0 .75rem; color: var(--cream); font: 550 clamp(2rem, 4.4vw, 4.8rem)/.94 var(--serif); letter-spacing: -.035em; }
.embed-news-article:not(.is-featured) .embed-news-story h3 { font-size: clamp(1.6rem, 3vw, 3.1rem); }
.embed-news-story p { max-width: 1000px; color: var(--soft); font-size: clamp(.94rem, 1.2vw, 1.08rem); line-height: 1.75; }
.embed-news-story a { justify-self: start; margin-top: 1rem; padding-bottom: .22rem; border-bottom: 1px solid var(--gold); color: var(--gold-bright); }
.embed-news-more { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--hairline); }
.embed-news-more button { min-height: 44px; padding: .7rem 0; border: 0; border-bottom: 1px solid var(--gold); color: var(--gold-bright); background: transparent; font-weight: 800; cursor: pointer; }
.embed-news-more span { color: var(--ghost); font-size: .7rem; }
[data-theme="light"] .embed-news { background: linear-gradient(90deg, rgba(145, 111, 45, .06) 1px, transparent 1px), linear-gradient(rgba(145, 111, 45, .05) 1px, transparent 1px), radial-gradient(circle at 92% 7%, rgba(188, 143, 58, .17), transparent 31%), linear-gradient(145deg, #fffdf7, #e9f0e8); background-size: 72px 72px, 72px 72px, auto, auto; }

.embed-steward-invitation {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .62fr);
  min-height: clamp(430px, 48vw, 610px);
  padding: clamp(2rem, 5vw, 5.6rem);
  border-color: color-mix(in srgb, var(--gold) 62%, transparent);
  background-image: linear-gradient(90deg, rgba(5, 15, 10, .95) 0%, rgba(5, 15, 10, .84) 48%, rgba(5, 15, 10, .38) 75%, rgba(5, 15, 10, .58) 100%), url('/assets/hospitality/glamping-hero.png');
  background-position: center;
  background-size: cover;
  box-shadow: 0 34px 84px rgba(0, 0, 0, .26);
}
.embed-steward-invitation::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 10%, transparent), transparent 45%); pointer-events: none; }
.embed-steward-copy { max-width: 850px; padding: clamp(1.1rem, 2vw, 1.8rem); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; background: rgba(5, 17, 11, .5); backdrop-filter: blur(16px) saturate(1.12); }
.embed-steward-invitation h2 { font-size: clamp(3rem, 6.2vw, 6.9rem); }
.embed-steward-highlights { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.embed-steward-highlights b { padding: .55rem .72rem; border: 1px solid rgba(238, 210, 137, .3); border-radius: 999px; color: #f4dfaa; background: rgba(7, 22, 14, .48); font-size: .68rem; letter-spacing: .055em; }
.embed-steward-invitation > a { min-height: 154px; padding: 1.5rem 1.7rem; border-radius: 22px; box-shadow: 0 22px 46px rgba(0, 0, 0, .24); }
.embed-steward-invitation > a > span { color: rgba(23, 32, 25, .7); font-size: .65rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.embed-steward-invitation > a strong { font: 650 clamp(1.35rem, 2.1vw, 2rem)/1.05 var(--serif); }
.embed-steward-invitation > a em { color: rgba(23, 32, 25, .78); font-size: .74rem; font-style: normal; }
[data-theme="light"] .embed-steward-invitation { color: #fff; background-image: linear-gradient(90deg, rgba(5, 15, 10, .91) 0%, rgba(5, 15, 10, .72) 50%, rgba(5, 15, 10, .2) 78%, rgba(5, 15, 10, .44) 100%), url('/assets/hospitality/glamping-hero.png'); }
[data-theme="light"] .embed-steward-invitation h2 { color: #fff !important; }
[data-theme="light"] .embed-steward-invitation p { color: rgba(255, 255, 255, .9) !important; }
[data-theme="light"] .embed-steward-invitation small { color: rgba(255, 255, 255, .7) !important; }
[data-theme="light"] .embed-steward-invitation > div > span { color: var(--gold-bright) !important; }
[data-theme="light"] .embed-steward-highlights b { color: #f4dfaa !important; }

@media (max-width: 820px) {
  .embed-news > header { grid-template-columns: 1fr; }
  .embed-news > header small { justify-self: start; }
  .embed-steward-invitation { grid-template-columns: 1fr; background-position: 66% center; }
  .embed-steward-invitation > a { min-height: 112px; }
}
@media (max-width: 620px) {
  .embed-news { padding: 1.2rem; border-radius: 20px; }
  .embed-news-article { grid-template-columns: 1fr; }
  .embed-news-index { font-size: 1.35rem; }
  .embed-news-more { align-items: flex-start; flex-direction: column; }
  .embed-steward-invitation { min-height: 560px; padding: 1.2rem; align-content: end; }
}
@media (prefers-reduced-motion: reduce) {
  .embed-news-more button, .embed-steward-invitation > a { transition: none; }
}

/* V0.9.9.463B unified My Umbral hero. */
.embed-command-hero {
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 450px);
  gap: clamp(1.25rem, 2.4vw, 2.25rem);
  min-height: 390px;
  padding: clamp(2.2rem, 4.2vw, 4.4rem) clamp(1.8rem, 4vw, 4rem);
}

.embed-command-copy h1 {
  max-width: 680px;
  margin: .8rem 0 .2rem;
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.01em;
}

.embed-command-copy h1 em {
  display: inline;
  color: var(--gold-bright);
  font-style: normal;
  font-weight: 750;
}

.embed-command-copy > span {
  letter-spacing: .15em;
  white-space: nowrap;
}

.embed-command-copy .embed-command-credit {
  max-width: 600px;
  margin: 0;
  color: var(--soft);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
}

.embed-command-copy .embed-command-explainer {
  max-width: 620px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.65;
}

.embed-command-copy .embed-command-explainer strong {
  font-weight: 650;
}

.embed-command-actions :is(a, button) {
  padding-inline: .9rem;
  font-size: .72rem;
  white-space: nowrap;
}

.embed-command-actions {
  margin-top: 1.25rem;
}

#member-dashboard-view .embed-command-hero > .embed-credit-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 450px;
  min-width: 0;
  min-height: 0;
  justify-self: end;
  transform: none;
}

@media (max-width: 1100px) {
  .embed-command-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  #member-dashboard-view .embed-command-hero > .embed-credit-card {
    grid-column: 1 / -1;
    width: min(100%, 520px);
    max-width: 520px;
    justify-self: center;
  }
}

/* V0.9.9.463B Umbral News section refinement. */
.embed-news {
  isolation: auto;
  overflow: visible;
  margin: 1.2rem 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.embed-news::before,
.embed-news::after {
  display: none;
}

.embed-news > .embed-news-title-lockup {
  display: block;
  max-width: none;
  margin: 0 0 1rem;
}

.embed-news-title-lockup h2 {
  margin: 0;
  color: var(--cream);
  font: 550 1.35rem/1.2 var(--display);
  letter-spacing: 0;
}

.embed-news-list {
  display: grid;
  gap: .75rem;
}

.embed-news-article,
.embed-news-article.is-featured {
  display: block;
  min-height: 0;
  padding: 1.35rem;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: color-mix(in srgb, var(--obsidian) 55%, transparent);
  box-shadow: none;
  animation: embed-news-arrive .28s var(--umbral-ease-enter) both;
}

.embed-news-article::after,
.embed-news-article.is-featured::after {
  display: none;
}

.embed-news-meta {
  display: flex;
  margin: 0 0 .35rem;
  color: var(--gold);
  font: 750 .64rem/1.2 var(--mono);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.embed-news-meta time {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.embed-news-story h3,
.embed-news-article.is-featured .embed-news-story h3,
.embed-news-article:not(.is-featured) .embed-news-story h3 {
  max-width: none;
  margin: .3rem 0 .55rem;
  color: var(--cream);
  font: 550 1.35rem/1.25 var(--display);
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.embed-news-story p {
  max-width: 860px;
  margin: 0;
  color: var(--soft);
  font-size: .86rem;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.embed-news-story a {
  min-height: 40px;
  margin-top: .9rem;
  padding: .58rem .82rem;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  color: var(--gold-bright);
  background: transparent;
  font-size: .7rem;
}

.embed-news-story a:hover {
  background: var(--gold-glow);
}

.embed-news-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0 0;
  border: 0;
}

.embed-news-more button {
  min-height: 44px;
  padding: .68rem 1rem;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  color: var(--gold-bright);
  background: transparent;
  box-shadow: none;
  font-size: .7rem;
  font-weight: 750;
}

.embed-news-more button:hover {
  border-color: var(--gold);
  background: var(--gold-glow);
  box-shadow: none;
  transform: translateY(-1px);
}

.embed-news-more button:focus-visible,
.embed-news-story a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.embed-news-more span {
  color: var(--ghost);
  font-size: .7rem;
}

[data-theme="light"] .embed-news {
  background: transparent;
  box-shadow: none;
}

[data-theme="light"] .embed-news-title-lockup h2,
[data-theme="light"] .embed-news-story h3,
[data-theme="light"] .embed-news-article.is-featured .embed-news-story h3,
[data-theme="light"] .embed-news-article:not(.is-featured) .embed-news-story h3 {
  color: var(--umbral-color-text);
}

[data-theme="light"] .embed-news-article,
[data-theme="light"] .embed-news-article.is-featured {
  background: rgba(255, 255, 255, .78);
  box-shadow: none;
}

[data-theme="light"] .embed-news-story p {
  color: var(--umbral-color-text-muted);
}

[data-theme="light"] .embed-news-meta time {
  color: var(--gold);
  background: transparent;
}

@media (max-width: 620px) {
  .embed-news {
    padding: 0;
    border-radius: 0;
  }

  .embed-news-title-lockup h2 {
    font-size: 1.3rem;
  }

  .embed-news-article,
  .embed-news-article.is-featured {
    min-height: 0;
    padding: 1.1rem;
    border-radius: 17px;
  }

  .embed-news-article.is-featured .embed-news-story h3 {
    font-size: 1.25rem;
  }

  .embed-news-more {
    align-items: flex-start;
  }

  .embed-news-more button {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .embed-news-article,
  .embed-news-article.is-featured {
    animation: none;
  }
}

/* V0.9.9.463B coordinated member promotion banners. */
.embed-promotion-stack {
  display: grid;
  gap: .9rem;
  margin: 1.35rem 0;
}

.embed-promotion-stack > .embed-dashboard-row {
  margin: 0;
}

.embed-member-activity-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.embed-member-activity-row > .embed-dash-panel {
  height: 100%;
}

.embed-steward-invitation,
.embed-referral-invitation {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 270px);
  align-items: center;
  gap: clamp(1.35rem, 3vw, 3rem);
  min-height: 190px;
  padding: clamp(1.4rem, 2.6vw, 2.2rem);
  overflow: hidden;
  border: 1px solid rgba(228, 193, 106, .42);
  border-radius: 22px;
  color: #fff;
  background-position: center;
  background-size: cover;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .17);
}

.embed-steward-invitation {
  background-image:
    linear-gradient(90deg, rgba(5, 18, 11, .95) 0%, rgba(5, 18, 11, .82) 54%, rgba(5, 18, 11, .42) 100%),
    url('/assets/hospitality/glamping-hero.png');
  background-position: center 60%;
}

.embed-referral-invitation {
  background-image:
    linear-gradient(90deg, rgba(17, 28, 19, .96) 0%, rgba(20, 35, 23, .82) 54%, rgba(15, 30, 20, .48) 100%),
    url('/assets/commerce/kickstarter-rainforest-hero.png');
  background-position: center 46%;
}

.embed-steward-invitation::after,
.embed-referral-invitation::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(226, 191, 101, .1), transparent 48%);
  pointer-events: none;
}

.embed-steward-copy,
.embed-promotion-copy {
  max-width: 760px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.embed-steward-invitation h2,
.embed-referral-invitation h2 {
  margin: 0 0 .55rem;
  color: #fff;
  font: 570 clamp(1.65rem, 2.6vw, 2.45rem)/1.08 var(--serif);
  letter-spacing: -.025em;
}

.embed-steward-invitation p,
.embed-referral-invitation p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: .88rem;
  line-height: 1.55;
}

.embed-steward-highlights {
  gap: .42rem;
  margin-top: .72rem;
}

.embed-steward-highlights b {
  padding: .32rem .55rem;
  border-color: rgba(238, 210, 137, .3);
  color: #f5dfaa;
  background: rgba(7, 22, 14, .46);
  font-size: .6rem;
}

.embed-steward-invitation small {
  margin-top: .52rem;
  color: rgba(255, 255, 255, .64);
  font-size: .63rem;
}

.embed-steward-invitation > .embed-promotion-action,
.embed-referral-invitation > .embed-promotion-action {
  display: flex;
  width: 100%;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem 1.1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 17px;
  color: #172019;
  background: linear-gradient(135deg, #f5e4b5 0%, #d5ad50 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.embed-promotion-action-copy {
  display: grid;
  gap: .3rem;
}

.embed-promotion-action strong {
  color: #172019;
  font: 700 1.04rem/1.15 var(--sans);
}

.embed-promotion-action em {
  color: rgba(23, 32, 25, .72);
  font-size: .66rem;
  font-style: normal;
  font-weight: 650;
}

.embed-promotion-action-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 50%;
  color: #f8edcf;
  background: #183323;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

.embed-promotion-action-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.embed-promotion-action:hover {
  filter: saturate(1.08) brightness(1.04);
  box-shadow: 0 19px 36px rgba(0, 0, 0, .3);
  transform: translateY(-3px);
}

.embed-promotion-action:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

[data-theme="light"] .embed-steward-invitation,
[data-theme="light"] .embed-referral-invitation {
  color: #fff;
}

[data-theme="light"] .embed-steward-invitation h2,
[data-theme="light"] .embed-referral-invitation h2 {
  color: #fff !important;
}

[data-theme="light"] .embed-steward-invitation p,
[data-theme="light"] .embed-referral-invitation p {
  color: rgba(255, 255, 255, .9) !important;
}

@media (max-width: 820px) {
  .embed-member-activity-row {
    grid-template-columns: 1fr;
  }

  .embed-steward-invitation,
  .embed-referral-invitation {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 1.15rem;
  }

  .embed-steward-invitation > .embed-promotion-action,
  .embed-referral-invitation > .embed-promotion-action {
    min-height: 86px;
  }
}

@media (max-width: 520px) {
  .embed-steward-invitation,
  .embed-referral-invitation {
    padding: 1.2rem;
    border-radius: 18px;
    background-position: 58% center;
  }

  .embed-steward-invitation h2,
  .embed-referral-invitation h2 {
    font-size: 1.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .embed-promotion-action {
    transition: none;
  }
}

/* System controlled My Umbral Dashboard presentation presets. */
.embedded-dashboard [data-dashboard-section][data-dashboard-size="compact"] {
  --dashboard-section-gap: .65rem;
}

.embedded-dashboard [data-dashboard-section][data-dashboard-size="spacious"] {
  --dashboard-section-gap: 1.45rem;
}

.embedded-dashboard .embed-command-hero[data-dashboard-size="compact"] {
  min-height: 275px;
  padding: clamp(1.4rem, 3.2vw, 2.7rem);
}

.embedded-dashboard .embed-command-hero[data-dashboard-size="spacious"] {
  min-height: 430px;
  padding: clamp(2.7rem, 6vw, 5.7rem);
}

.embedded-dashboard .embed-deck-links[data-dashboard-size="compact"] {
  gap: .65rem;
}

.embedded-dashboard .embed-deck-links[data-dashboard-size="compact"] > * {
  min-height: 116px;
  padding: .9rem;
}

.embedded-dashboard .embed-deck-links[data-dashboard-size="spacious"] {
  gap: 1.35rem;
}

.embedded-dashboard .embed-deck-links[data-dashboard-size="spacious"] > * {
  min-height: 180px;
  padding: 1.45rem;
}

.embedded-dashboard :is(.embed-news, .embed-property-opportunities, .embed-steward-invitation, .embed-referral-invitation, .embed-dash-panel)[data-dashboard-size="compact"] {
  gap: var(--dashboard-section-gap);
  padding: clamp(.8rem, 1.5vw, 1.05rem);
}

.embedded-dashboard :is(.embed-news, .embed-property-opportunities, .embed-steward-invitation, .embed-referral-invitation, .embed-dash-panel)[data-dashboard-size="spacious"] {
  gap: var(--dashboard-section-gap);
  padding: clamp(1.65rem, 3vw, 2.6rem);
}

.embedded-dashboard .embed-command-hero[data-dashboard-heading-size="small"] .embed-command-copy h1 {
  font-size: clamp(1.65rem, 3.1vw, 2.55rem);
}

.embedded-dashboard .embed-command-hero[data-dashboard-heading-size="large"] .embed-command-copy h1 {
  font-size: clamp(2.6rem, 4.65vw, 4.5rem);
}

.embedded-dashboard .embed-deck-links[data-dashboard-heading-size="small"] strong {
  font-size: .8rem;
}

.embedded-dashboard .embed-deck-links[data-dashboard-heading-size="large"] strong {
  font-size: 1.08rem;
}

.embedded-dashboard :is(.embed-news, .embed-property-opportunities, .embed-steward-invitation, .embed-referral-invitation)[data-dashboard-heading-size="small"] h2 {
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
}

.embedded-dashboard :is(.embed-news, .embed-property-opportunities, .embed-steward-invitation, .embed-referral-invitation)[data-dashboard-heading-size="large"] h2 {
  font-size: clamp(2rem, 3.25vw, 3rem);
}

.embedded-dashboard .embed-dash-panel[data-dashboard-heading-size="small"] h3 {
  font-size: .95rem;
}

.embedded-dashboard .embed-dash-panel[data-dashboard-heading-size="large"] h3 {
  font-size: 1.5rem;
}

.embed-dashboard-summary-primary[data-dashboard-columns="1"],
.embed-dashboard-summary-secondary[data-dashboard-columns="1"] {
  grid-template-columns: minmax(0, 1fr);
}

.embed-dashboard-summary-secondary[data-dashboard-columns="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.embed-dashboard-summary-secondary-middle:has(> .embed-dash-panel:only-child) {
  grid-template-rows: minmax(0, 1fr);
}

@media (max-width: 980px) {
  .embed-dashboard-summary-secondary[data-dashboard-columns] {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .embedded-dashboard .embed-command-hero[data-dashboard-heading-size="small"] .embed-command-copy h1 {
    font-size: clamp(1.15rem, 5.4vw, 1.45rem);
  }

  .embedded-dashboard .embed-command-hero[data-dashboard-heading-size="large"] .embed-command-copy h1 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .embedded-dashboard [data-dashboard-section] {
    scroll-behavior: auto;
  }
}

/* V0.9.9.463B dashboard and property polish. */
.embed-command-copy h1 {
  font-size: clamp(2.8rem, 4.8vw, 4.8rem);
  line-height: .98;
}

.embed-news.embed-news-shell {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
  padding: clamp(1.2rem, 2.4vw, 1.8rem);
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 24px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .1);
}

.embed-news.embed-news-shell > .embed-news-title-lockup {
  margin: 0;
}

.embed-news.embed-news-shell .embed-news-title-lockup h2 {
  font: 550 1.35rem/1.2 var(--display);
  letter-spacing: 0;
}

.embed-news.embed-news-shell .embed-news-more {
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}

[data-theme="light"] .embed-news.embed-news-shell {
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 16px 38px rgba(49, 43, 29, .08);
}

.embed-steward-invitation p {
  font-size: clamp(.96rem, 1.2vw, 1.08rem);
}

.embed-steward-invitation > .embed-promotion-action {
  width: min(360px, 30vw);
  min-height: 116px;
  padding-inline: 1.55rem;
}

.embed-referral-invitation > .embed-promotion-action {
  width: min(350px, 30vw);
  min-height: 108px;
  padding-inline: 1.5rem;
}

.embed-steward-invitation > .embed-promotion-action strong,
.embed-referral-invitation > .embed-promotion-action strong {
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
  line-height: 1.18;
}

.embed-property-filters {
  display: inline-grid;
  width: fit-content;
  max-width: 100%;
  grid-template-columns: repeat(3, max-content);
  justify-self: start;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: color-mix(in srgb, var(--obsidian) 44%, transparent);
}

.embed-property-filters button {
  min-height: 38px;
  padding: .55rem .9rem;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  font-size: .68rem;
  white-space: nowrap;
}

.embed-property-filters button.active {
  box-shadow: 0 5px 14px rgba(0, 0, 0, .14);
}

.embed-property-image > em,
[data-theme="light"] .embed-property-image > em {
  color: #fff;
  background: rgba(4, 14, 9, .78);
}

[data-theme="light"] .embed-property-filters {
  background: rgba(255, 255, 255, .72);
}

.embed-dashboard-summary-columns {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
}

.embed-dashboard-summary-left,
.embed-dashboard-summary-middle,
.embed-dashboard-summary-right {
  display: grid;
  min-width: 0;
  gap: 1rem;
}

.embed-dashboard-summary-columns .embed-dash-panel {
  height: auto;
  min-height: 0;
}

.embed-page-loading {
  display: grid;
  width: 100%;
  min-height: calc(100dvh - var(--topbar, 76px));
  place-content: center;
  justify-items: center;
  gap: 1rem;
  margin: 0;
  padding: clamp(2rem, 6vw, 5rem);
  border: 0;
  border-radius: 0;
  color: var(--cream);
  background: var(--umbral-color-bg);
  box-shadow: none;
  text-align: center;
}

.embed-page-loading img {
  width: clamp(150px, 19vw, 240px);
  height: auto;
  object-fit: contain;
}

.embed-page-loading span {
  display: grid;
  gap: .35rem;
}

.embed-page-loading strong {
  color: var(--cream);
  font: 550 clamp(1.25rem, 2vw, 1.65rem)/1.2 var(--display);
}

.embed-page-loading small {
  color: var(--soft);
  font-size: .76rem;
}

.embed-page-loading > i {
  position: relative;
  width: 128px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 22%, transparent);
}

.embed-page-loading > i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: var(--gold);
  animation: embed-page-loading-progress 1.15s ease-in-out infinite alternate;
}

@keyframes embed-page-loading-progress {
  from { transform: translateX(0); }
  to { transform: translateX(138%); }
}

[data-theme="light"] .embed-page-loading {
  color: var(--umbral-color-text);
  background: var(--umbral-color-bg);
}

[data-theme="light"] .embed-page-loading strong {
  color: var(--umbral-color-text);
}

[data-theme="light"] .embed-page-loading small {
  color: var(--umbral-color-text-muted);
}

@media (max-width: 980px) {
  .embed-dashboard-summary-columns {
    grid-template-columns: 1fr;
  }

  .embed-steward-invitation > .embed-promotion-action,
  .embed-referral-invitation > .embed-promotion-action {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .embed-command-copy h1 {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }

  .embed-news.embed-news-shell {
    padding: 1.1rem;
    border-radius: 20px;
  }

  .embed-property-filters {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .embed-property-filters button {
    min-width: 0;
    padding-inline: .45rem;
    font-size: .61rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .embed-page-loading > i::after {
    animation: none;
    transform: translateX(72%);
  }
}

/* V0.9.9.463B coordinated member promotion compatibility layer. */
.embed-steward-invitation,
.embed-referral-invitation {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 270px);
  min-height: 190px;
  margin: 0;
  padding: clamp(1.4rem, 2.6vw, 2.2rem);
  border-radius: 22px;
}

.embed-steward-invitation {
  background-image:
    linear-gradient(90deg, rgba(5, 18, 11, .95) 0%, rgba(5, 18, 11, .82) 54%, rgba(5, 18, 11, .42) 100%),
    url('/assets/hospitality/glamping-hero.png');
  background-position: center 60%;
}

.embed-referral-invitation {
  background-image:
    linear-gradient(90deg, rgba(17, 28, 19, .96) 0%, rgba(20, 35, 23, .82) 54%, rgba(15, 30, 20, .48) 100%),
    url('/assets/commerce/kickstarter-rainforest-hero.png');
  background-position: center 46%;
}

.embed-steward-invitation h2,
.embed-referral-invitation h2 {
  margin: 0 0 .55rem;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.6vw, 2.45rem);
  font-weight: 570;
  letter-spacing: -.025em;
  line-height: 1.08;
}

.embed-steward-invitation p,
.embed-referral-invitation p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: .88rem;
  line-height: 1.55;
}

.embed-steward-invitation small {
  color: rgba(255, 255, 255, .64);
}

.embed-steward-invitation > .embed-promotion-action,
.embed-referral-invitation > .embed-promotion-action {
  display: flex;
  width: 100%;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem 1.1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 17px;
  color: #172019;
  background: linear-gradient(135deg, #f5e4b5 0%, #d5ad50 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
  text-decoration: none;
}

.embed-promotion-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
  margin-top: .72rem;
}

.embed-promotion-highlights b {
  padding: .32rem .55rem;
  border: 1px solid rgba(238, 210, 137, .3);
  border-radius: 999px;
  color: #f5dfaa;
  background: rgba(7, 22, 14, .46);
  font-size: .6rem;
  letter-spacing: .04em;
}

.embed-promotion-action-icon {
  color: #fff;
}

.embed-steward-invitation > .embed-promotion-action:hover,
.embed-referral-invitation > .embed-promotion-action:hover {
  box-shadow: 0 19px 36px rgba(0, 0, 0, .3);
  transform: translateY(-3px);
}

[data-theme="light"] .embed-steward-invitation,
[data-theme="light"] .embed-referral-invitation {
  color: #fff;
}

[data-theme="light"] .embed-steward-invitation h2,
[data-theme="light"] .embed-referral-invitation h2 {
  color: #fff !important;
}

[data-theme="light"] .embed-steward-invitation p,
[data-theme="light"] .embed-referral-invitation p {
  color: rgba(255, 255, 255, .9) !important;
}

@media (max-width: 820px) {
  .embed-member-activity-row,
  .embed-steward-invitation,
  .embed-referral-invitation {
    grid-template-columns: 1fr;
  }

  .embed-steward-invitation,
  .embed-referral-invitation {
    min-height: 0;
    gap: 1.15rem;
  }

  .embed-steward-invitation > .embed-promotion-action,
  .embed-referral-invitation > .embed-promotion-action {
    min-height: 86px;
  }
}

@media (max-width: 620px) {
  .embed-command-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding: 1.65rem 1.2rem 1.8rem;
  }

  .embed-command-copy h1 {
    margin-top: .55rem;
  }

  .embed-command-copy .embed-command-explainer {
    line-height: 1.55;
  }

  .embed-command-actions {
    grid-column: 1 / -1;
  }

  #member-dashboard-view .embed-command-hero > .embed-credit-card {
    width: 100%;
  }
}

/* V0.9.9.463B Umbral News editorial revamp. */
.embed-news {
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.5rem, 3.6vw, 3.6rem);
  border: 1px solid color-mix(in srgb, var(--gold) 58%, var(--hairline));
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 7%, color-mix(in srgb, var(--gold) 26%, transparent), transparent 26%),
    radial-gradient(circle at 8% 96%, color-mix(in srgb, var(--forest) 76%, transparent), transparent 34%),
    linear-gradient(142deg, color-mix(in srgb, var(--obsidian) 92%, #10291d), color-mix(in srgb, var(--forest) 48%, var(--obsidian)));
  background-size: auto;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .055);
}

.embed-news::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -115px;
  right: -95px;
  width: 330px;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--gold) 26%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 44px color-mix(in srgb, var(--gold) 4%, transparent), 0 0 0 90px color-mix(in srgb, var(--gold) 3%, transparent);
  pointer-events: none;
}

.embed-news > .embed-news-title-lockup {
  display: block;
  max-width: 1000px;
  margin: 0 0 clamp(1.5rem, 3vw, 2.8rem);
}

.embed-news-title-lockup h2 {
  margin: 0;
  color: var(--cream);
  font: 550 clamp(2.35rem, 5.4vw, 6.1rem)/.94 var(--serif);
  letter-spacing: -.047em;
  text-wrap: balance;
}

.embed-news-list {
  position: relative;
  display: grid;
  gap: 1rem;
}

.embed-news-article {
  position: relative;
  display: block;
  overflow: hidden;
  padding: clamp(1.35rem, 3vw, 2.75rem);
  border: 1px solid color-mix(in srgb, var(--gold) 22%, var(--hairline));
  border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--panel) 92%, transparent), color-mix(in srgb, var(--forest) 14%, var(--panel)));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .13);
  animation: embed-news-arrive .42s var(--umbral-ease-enter) both;
}

.embed-news-article::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(34%, 360px);
  height: 100%;
  background: linear-gradient(125deg, transparent, color-mix(in srgb, var(--gold) 8%, transparent));
  clip-path: polygon(45% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.embed-news-article.is-featured {
  min-height: clamp(290px, 32vw, 410px);
  display: grid;
  align-items: end;
  border-color: color-mix(in srgb, var(--gold) 52%, var(--hairline));
  background:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--gold) 26%, transparent), transparent 34%),
    linear-gradient(125deg, color-mix(in srgb, var(--forest) 54%, var(--obsidian)), color-mix(in srgb, var(--obsidian) 88%, transparent));
  box-shadow: 0 26px 68px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .07);
}

.embed-news-story {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
}

.embed-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  color: var(--gold-bright);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.embed-news-meta time {
  display: inline-flex;
  padding: .44rem .65rem;
  border: 1px solid color-mix(in srgb, var(--gold) 43%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--obsidian) 48%, transparent);
}

.embed-news-story h3,
.embed-news-article:not(.is-featured) .embed-news-story h3 {
  max-width: 1050px;
  margin: .85rem 0 .7rem;
  color: var(--cream);
  font: 550 clamp(1.55rem, 3.2vw, 3.55rem)/1 var(--serif);
  letter-spacing: -.034em;
  text-wrap: balance;
}

.embed-news-article.is-featured .embed-news-story h3 {
  max-width: 920px;
  font-size: clamp(2.2rem, 4.8vw, 5.2rem);
}

.embed-news-story p {
  max-width: 880px;
  color: color-mix(in srgb, var(--soft) 92%, white);
  font-size: clamp(.94rem, 1.2vw, 1.08rem);
  line-height: 1.72;
}

.embed-news-story a {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  margin-top: 1.15rem;
  padding: .7rem 1rem;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  border-radius: 999px;
  color: var(--gold-bright);
  background: color-mix(in srgb, var(--gold) 8%, transparent);
  font-size: .75rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform var(--umbral-duration-fast) var(--umbral-ease-enter), background var(--umbral-duration-fast) var(--umbral-ease-enter);
}

.embed-news-story a:hover {
  background: color-mix(in srgb, var(--gold) 15%, transparent);
  transform: translateY(-1px);
}

.embed-news-more {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.35rem;
  border: 0;
}

.embed-news-more button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: .78rem 1.2rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--umbral-color-on-accent);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 12px 30px color-mix(in srgb, var(--gold) 22%, transparent);
  font-size: .76rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform var(--umbral-duration-fast) var(--umbral-ease-enter), box-shadow var(--umbral-duration-fast) var(--umbral-ease-enter);
}

.embed-news-more button:hover {
  box-shadow: 0 16px 34px color-mix(in srgb, var(--gold) 30%, transparent);
  transform: translateY(-2px);
}

.embed-news-more button:focus-visible,
.embed-news-story a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.embed-news-more span {
  color: color-mix(in srgb, var(--soft) 82%, transparent);
  font-size: .72rem;
}

[data-theme="light"] .embed-news {
  background:
    radial-gradient(circle at 92% 7%, rgba(185, 139, 49, .23), transparent 27%),
    radial-gradient(circle at 8% 96%, rgba(44, 113, 76, .15), transparent 34%),
    linear-gradient(142deg, #fffdf8, #e7f0e8);
  box-shadow: 0 28px 72px rgba(61, 45, 20, .14), inset 0 1px 0 #fff;
}

[data-theme="light"] .embed-news-title-lockup h2,
[data-theme="light"] .embed-news-story h3,
[data-theme="light"] .embed-news-article:not(.is-featured) .embed-news-story h3 {
  color: #152019;
}

[data-theme="light"] .embed-news-article {
  background: linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(237, 244, 237, .94));
  box-shadow: 0 16px 38px rgba(61, 45, 20, .1);
}

[data-theme="light"] .embed-news-article.is-featured {
  background:
    radial-gradient(circle at 88% 18%, rgba(205, 165, 80, .26), transparent 34%),
    linear-gradient(125deg, #edf5ed, #fffdf8);
}

[data-theme="light"] .embed-news-story p {
  color: #35443a;
}

[data-theme="light"] .embed-news-meta time {
  color: #72551f;
  background: rgba(255, 255, 255, .72);
}

@keyframes embed-news-arrive {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 620px) {
  .embed-news {
    padding: 1.2rem;
    border-radius: 22px;
  }

  .embed-news-title-lockup h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .embed-news-article,
  .embed-news-article.is-featured {
    min-height: 0;
    padding: 1.2rem;
    border-radius: 17px;
  }

  .embed-news-article.is-featured .embed-news-story h3 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .embed-news-more {
    align-items: stretch;
  }

  .embed-news-more button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .embed-news-article {
    animation: none;
  }

  .embed-news-more button,
  .embed-news-story a {
    transition: none;
  }
}

/* V0.9.9.463B final cascade. */
.embedded-dashboard .embed-command-copy h1 {
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(1.55rem, 2.25vw, 2.2rem);
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.embedded-dashboard .embed-steward-invitation,
.embedded-dashboard .embed-referral-invitation {
  grid-template-columns: minmax(0, 1fr) minmax(350px, 410px);
}

.embedded-dashboard .embed-steward-invitation > .embed-promotion-action,
.embedded-dashboard .embed-referral-invitation > .embed-promotion-action {
  width: 100%;
  min-height: 116px;
  padding: 1.15rem 1.3rem 1.15rem 1.5rem;
}

.embedded-dashboard .embed-steward-invitation > .embed-promotion-action strong,
.embedded-dashboard .embed-referral-invitation > .embed-promotion-action strong {
  display: -webkit-box;
  overflow: hidden;
  font: 700 clamp(1.08rem, 1.45vw, 1.28rem)/1.18 var(--serif);
  letter-spacing: -.012em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 820px) {
  .embedded-dashboard .embed-steward-invitation,
  .embedded-dashboard .embed-referral-invitation {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .embedded-dashboard .embed-command-copy h1 {
    font-size: clamp(1.28rem, 6.2vw, 1.7rem);
  }
}

/* V0.9.9.463B Data Room dashboard refinement. */
.embed-command-copy h1 {
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(1.55rem, 2.25vw, 2.2rem);
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.embed-command-credit {
  font-size: clamp(.9rem, 1.2vw, 1.04rem) !important;
}

.embed-steward-invitation,
.embed-referral-invitation {
  grid-template-columns: minmax(0, 1fr) minmax(350px, 410px);
}

.embed-steward-invitation > .embed-promotion-action,
.embed-referral-invitation > .embed-promotion-action {
  width: 100%;
  min-height: 116px;
  padding: 1.15rem 1.3rem 1.15rem 1.5rem;
}

.embed-steward-invitation > .embed-promotion-action strong,
.embed-referral-invitation > .embed-promotion-action strong {
  display: -webkit-box;
  overflow: hidden;
  font: 700 clamp(1.08rem, 1.45vw, 1.28rem)/1.18 var(--serif);
  letter-spacing: -.012em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.embed-property-card {
  height: 100%;
}

.embed-property-image > em,
.embed-property-rating {
  display: none;
}

.embed-property-copy {
  height: 100%;
  grid-template-rows: auto auto 1fr;
}

.embed-property-facts {
  display: flex;
  align-self: end;
  flex-wrap: wrap;
  gap: .36rem;
  margin-top: .45rem;
}

.embed-property-facts > i {
  display: inline-grid;
  gap: .1rem;
  max-width: 100%;
  padding: .38rem .5rem;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--hairline));
  border-radius: 999px;
  color: var(--soft);
  background: var(--gold-glow);
  font: 700 .57rem/1.15 var(--mono);
  text-align: left;
}

.embed-property-facts > i b {
  color: var(--gold-bright);
  font-size: .48rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.embed-dashboard-summary-primary,
.embed-dashboard-summary-secondary {
  display: grid;
  grid-column: 1 / -1;
  gap: 1rem;
  align-items: stretch;
}

.embed-dashboard-summary-primary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.embed-dashboard-summary-secondary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.embed-dashboard-summary-primary > div,
.embed-dashboard-summary-secondary > div,
.embed-dashboard-summary-primary .embed-dash-panel,
.embed-dashboard-summary-secondary .embed-dash-panel {
  min-width: 0;
  height: 100%;
}

.embed-dashboard-summary-secondary-middle {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 980px) {
  .embed-dashboard-summary-secondary {
    grid-template-columns: 1fr;
  }

  .embed-dashboard-summary-secondary-middle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }
}

@media (max-width: 820px) {
  .embed-steward-invitation,
  .embed-referral-invitation,
  .embed-dashboard-summary-primary,
  .embed-dashboard-summary-secondary-middle {
    grid-template-columns: 1fr;
  }

  .embed-steward-invitation > .embed-promotion-action,
  .embed-referral-invitation > .embed-promotion-action {
    min-height: 92px;
  }
}

@media (max-width: 620px) {
  .embed-command-copy h1 {
    font-size: clamp(1.28rem, 6.2vw, 1.7rem);
  }
}

/* V0.9.9.463B coordinated member promotion pre-final layer. */
.embed-steward-invitation,
.embed-referral-invitation {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 270px);
  min-height: 190px;
  margin: 0;
  padding: clamp(1.4rem, 2.6vw, 2.2rem);
  border-radius: 22px;
}

.embed-steward-invitation {
  background-image: linear-gradient(90deg, rgba(5, 18, 11, .95) 0%, rgba(5, 18, 11, .82) 54%, rgba(5, 18, 11, .42) 100%), url('/assets/hospitality/glamping-hero.png');
  background-position: center 60%;
}

.embed-referral-invitation {
  background-image: linear-gradient(90deg, rgba(17, 28, 19, .96) 0%, rgba(20, 35, 23, .82) 54%, rgba(15, 30, 20, .48) 100%), url('/assets/commerce/kickstarter-rainforest-hero.png');
  background-position: center 46%;
}

.embed-steward-invitation h2,
.embed-referral-invitation h2 {
  margin: 0 0 .55rem;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.6vw, 2.45rem);
  font-weight: 570;
  letter-spacing: -.025em;
  line-height: 1.08;
}

.embed-steward-invitation p,
.embed-referral-invitation p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: .88rem;
  line-height: 1.55;
}

.embed-steward-invitation > .embed-promotion-action,
.embed-referral-invitation > .embed-promotion-action {
  display: flex;
  width: 100%;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem 1.1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 17px;
  color: #172019;
  background: linear-gradient(135deg, #f5e4b5 0%, #d5ad50 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
  text-decoration: none;
}

.embed-steward-invitation > .embed-promotion-action:hover,
.embed-referral-invitation > .embed-promotion-action:hover {
  box-shadow: 0 19px 36px rgba(0, 0, 0, .3);
  transform: translateY(-3px);
}

[data-theme="light"] .embed-steward-invitation h2,
[data-theme="light"] .embed-referral-invitation h2 {
  color: #fff !important;
}

[data-theme="light"] .embed-steward-invitation p,
[data-theme="light"] .embed-referral-invitation p {
  color: rgba(255, 255, 255, .9) !important;
}

@media (max-width: 820px) {
  .embed-member-activity-row,
  .embed-steward-invitation,
  .embed-referral-invitation {
    grid-template-columns: 1fr;
  }

  .embed-steward-invitation,
  .embed-referral-invitation {
    min-height: 0;
    gap: 1.15rem;
  }

  .embed-steward-invitation > .embed-promotion-action,
  .embed-referral-invitation > .embed-promotion-action {
    min-height: 86px;
  }
}

/* V0.9.9.463B three-column member summary. */
.embed-member-summary-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.embed-member-summary-row > .embed-dash-panel {
  height: 100%;
}

@media (max-width: 980px) {
  .embed-member-summary-row {
    grid-template-columns: 1fr;
  }
}

/* V0.9.9.463B final Founding Steward banner. */
.embed-steward-invitation {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  min-height: 220px;
  margin: 1rem 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold) 58%, transparent);
  border-radius: 24px;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(5, 15, 10, .94) 0%, rgba(5, 15, 10, .84) 52%, rgba(5, 15, 10, .36) 100%),
    url('/assets/hospitality/glamping-hero.png');
  background-position: center 58%;
  background-size: cover;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .2);
}

.embed-steward-invitation::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 10%, transparent), transparent 48%);
  pointer-events: none;
}

.embed-steward-copy {
  max-width: 820px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.embed-steward-invitation > div > span {
  color: var(--gold-bright);
  font: 750 .64rem/1.2 var(--mono);
  letter-spacing: .17em;
  text-transform: uppercase;
}

.embed-steward-invitation h2 {
  margin: .35rem 0 .5rem;
  color: #fff;
  font: 550 clamp(2rem, 3.4vw, 3.5rem)/1 var(--serif);
  letter-spacing: -.035em;
}

.embed-steward-invitation p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: .9rem;
  line-height: 1.58;
}

.embed-steward-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .75rem;
}

.embed-steward-highlights b {
  padding: .38rem .58rem;
  border: 1px solid rgba(238, 210, 137, .28);
  border-radius: 999px;
  color: #f4dfaa;
  background: rgba(7, 22, 14, .42);
  font-size: .62rem;
  letter-spacing: .04em;
}

.embed-steward-invitation small {
  display: block;
  margin-top: .55rem;
  color: rgba(255, 255, 255, .62);
  font-size: .66rem;
  line-height: 1.45;
}

.embed-steward-invitation > a {
  display: grid;
  width: min(260px, 24vw);
  min-height: 108px;
  align-content: center;
  gap: .3rem;
  padding: 1.15rem 1.3rem;
  border: 1px solid var(--gold);
  border-radius: 18px;
  color: var(--umbral-color-on-accent);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
  text-decoration: none;
}

.embed-steward-invitation > a > span {
  color: rgba(23, 32, 25, .68);
  font-size: .6rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.embed-steward-invitation > a strong {
  font: 650 1.2rem/1.1 var(--serif);
}

.embed-steward-invitation > a em {
  color: rgba(23, 32, 25, .76);
  font-size: .68rem;
  font-style: normal;
}

.embed-steward-invitation > a:hover {
  box-shadow: 0 20px 38px rgba(0, 0, 0, .28);
  transform: translateY(-2px);
}

[data-theme="light"] .embed-steward-invitation {
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(5, 15, 10, .9) 0%, rgba(5, 15, 10, .76) 52%, rgba(5, 15, 10, .28) 100%),
    url('/assets/hospitality/glamping-hero.png');
}

[data-theme="light"] .embed-steward-invitation h2 {
  color: #fff !important;
}

[data-theme="light"] .embed-steward-invitation p {
  color: rgba(255, 255, 255, .9) !important;
}

[data-theme="light"] .embed-steward-invitation small {
  color: rgba(255, 255, 255, .64) !important;
}

@media (max-width: 820px) {
  .embed-steward-invitation {
    grid-template-columns: 1fr;
    min-height: 0;
    background-position: 62% center;
  }

  .embed-steward-invitation > a {
    width: 100%;
    min-height: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .embed-steward-invitation > a {
    transition: none;
  }
}

/* V0.9.9.463B final coordinated member promotion banners. */
.embed-property-opportunities {
  display: grid;
  gap: 1.15rem;
  margin: 1.35rem 0;
  padding: clamp(1.1rem, 2vw, 1.65rem);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .12);
}

.embed-property-opportunities > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.embed-property-opportunities > header > div > span {
  color: var(--gold-bright);
  font: 750 .61rem/1 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.embed-property-opportunities > header h2 {
  margin: .38rem 0 .35rem;
  color: var(--cream);
  font: 560 clamp(1.65rem, 2.6vw, 2.45rem)/1.08 var(--serif);
  letter-spacing: -.025em;
}

.embed-property-opportunities > header p {
  margin: 0;
  color: var(--soft);
  font-size: .78rem;
}

.embed-property-opportunities > header > strong {
  flex: 0 0 auto;
  color: var(--gold-bright);
  font: 750 .66rem/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.embed-property-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
}

.embed-property-filters button {
  min-height: 46px;
  padding: .7rem 1rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--soft);
  background: transparent;
  font-size: .74rem;
  font-weight: 750;
}

.embed-property-filters button:hover {
  border-color: var(--gold-dim);
  color: var(--cream);
  background: var(--gold-glow);
}

.embed-property-filters button.active {
  border-color: var(--gold);
  color: #20190b;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}

.embed-property-filters button:focus-visible,
.embed-property-card:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.embed-property-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}

.embed-property-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 292px;
  align-content: start;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 19px;
  color: var(--cream);
  background: color-mix(in srgb, var(--obsidian) 76%, var(--panel));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .13);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

button.embed-property-card {
  cursor: pointer;
}

button.embed-property-card:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .2);
  transform: translateY(-4px);
}

.embed-property-card[hidden] {
  display: none;
}

.embed-property-image {
  position: relative;
  display: block;
  height: 154px;
  overflow: hidden;
  background: linear-gradient(145deg, #14291d, #0a160f);
}

.embed-property-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

button.embed-property-card:hover .embed-property-image img {
  transform: scale(1.035);
}

.embed-property-image > em {
  position: absolute;
  z-index: 2;
  left: .7rem;
  bottom: .65rem;
  padding: .32rem .48rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: #fff;
  background: rgba(4, 14, 9, .72);
  backdrop-filter: blur(10px);
  font-size: .54rem;
  font-style: normal;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.embed-property-image-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  height: 100%;
  place-content: center;
  gap: .25rem;
  color: rgba(255, 255, 255, .76);
  text-align: center;
}

.embed-property-image-placeholder b {
  font: 500 1rem/1 var(--serif);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.embed-property-image-placeholder small {
  color: rgba(255, 255, 255, .5);
  font-size: .58rem;
}

.embed-property-rating {
  --property-score: 0;
  position: absolute;
  z-index: 2;
  top: .62rem;
  right: .62rem;
  display: grid;
  width: 58px;
  aspect-ratio: 1;
  place-content: center;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at center, #fff 0 61%, transparent 62%), conic-gradient(var(--gold) calc(var(--property-score) * 1%), rgba(255, 255, 255, .42) 0);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
  text-align: center;
}

.embed-property-rating strong {
  color: #1d211c;
  font: 700 1rem/1 var(--serif);
}

.embed-property-rating small {
  color: #4b5049;
  font-size: .46rem;
  font-weight: 750;
}

.embed-property-rating.pending {
  background: rgba(255, 255, 255, .92);
}

.embed-property-copy {
  display: grid;
  gap: .4rem;
  padding: .95rem;
}

.embed-property-copy small {
  min-width: 0;
  overflow: hidden;
  color: var(--ghost);
  font-size: .58rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.embed-property-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--cream);
  font: 580 1.02rem/1.13 var(--serif);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.embed-property-copy i {
  color: var(--soft);
  font-size: .6rem;
  font-style: normal;
  line-height: 1.35;
}

.embed-property-empty {
  grid-column: 1 / -1;
  padding: 2rem;
  border: 1px dashed var(--hairline);
  border-radius: 18px;
  color: var(--soft);
  text-align: center;
}

[data-theme="light"] .embed-property-opportunities {
  background: rgba(255, 255, 255, .72);
}

[data-theme="light"] .embed-property-opportunities > header h2,
[data-theme="light"] .embed-property-card,
[data-theme="light"] .embed-property-copy strong {
  color: var(--umbral-color-text);
}

[data-theme="light"] .embed-property-opportunities > header p,
[data-theme="light"] .embed-property-copy i {
  color: var(--umbral-color-text-muted);
}

[data-theme="light"] .embed-property-card {
  background: rgba(255, 255, 255, .94);
}

[data-theme="light"] .embed-property-filters button {
  color: var(--umbral-color-text);
  background: rgba(255, 255, 255, .72);
}

[data-theme="light"] .embed-property-filters button.active {
  color: #20190b;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
}

@media (max-width: 1100px) {
  .embed-property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .embed-property-opportunities > header {
    align-items: start;
    flex-direction: column;
  }

  .embed-property-filters,
  .embed-property-grid {
    grid-template-columns: 1fr;
  }
}

.embed-promotion-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
  margin-top: .72rem;
}

.embed-promotion-highlights b {
  padding: .32rem .55rem;
  border: 1px solid rgba(238, 210, 137, .3);
  border-radius: 999px;
  color: #f5dfaa;
  background: rgba(7, 22, 14, .46);
  font-size: .6rem;
  letter-spacing: .04em;
}

.embed-steward-invitation > .embed-promotion-action > .embed-promotion-action-icon,
.embed-referral-invitation > .embed-promotion-action > .embed-promotion-action-icon {
  color: #fff !important;
}

.embed-steward-invitation,
.embed-referral-invitation {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 270px);
  min-height: 190px;
  margin: 0;
  padding: clamp(1.4rem, 2.6vw, 2.2rem);
  border-radius: 22px;
}

.embed-steward-invitation h2,
.embed-referral-invitation h2 {
  margin: 0 0 .55rem;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.6vw, 2.45rem);
  font-weight: 570;
  letter-spacing: -.025em;
  line-height: 1.08;
}

.embed-steward-invitation > .embed-promotion-action,
.embed-referral-invitation > .embed-promotion-action {
  display: flex;
  width: 100%;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem 1.1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 17px;
  color: #172019;
  background: linear-gradient(135deg, #f5e4b5 0%, #d5ad50 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
  text-decoration: none;
}

@media (max-width: 820px) {
  .embed-member-activity-row,
  .embed-steward-invitation,
  .embed-referral-invitation {
    grid-template-columns: 1fr;
  }

  .embed-steward-invitation,
  .embed-referral-invitation {
    min-height: 0;
  }

  .embed-steward-invitation > .embed-promotion-action,
  .embed-referral-invitation > .embed-promotion-action {
    min-height: 86px;
  }
}

/* V0.9.9.463B final Umbral News section refinement. */
.embed-news-more button:focus-visible,
.embed-news-story a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.embed-news {
  isolation: auto;
  overflow: visible;
  margin: 1.2rem 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-size: auto;
  box-shadow: none;
}

.embed-news::before,
.embed-news::after {
  display: none;
}

.embed-news > .embed-news-title-lockup {
  display: block;
  max-width: none;
  margin: 0 0 1rem;
}

.embed-news-title-lockup h2 {
  margin: 0;
  color: var(--cream);
  font: 550 1.35rem/1.2 var(--display);
  letter-spacing: 0;
  text-wrap: pretty;
}

.embed-news-list {
  position: relative;
  display: grid;
  gap: .75rem;
}

.embed-news-article {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  padding: 1.35rem;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: color-mix(in srgb, var(--obsidian) 55%, transparent);
  box-shadow: none;
  animation: embed-news-arrive .28s var(--umbral-ease-enter) both;
}

.embed-news-article.is-featured {
  display: block;
  min-height: 0;
  align-items: initial;
  border-color: var(--hairline);
  background: color-mix(in srgb, var(--obsidian) 55%, transparent);
  box-shadow: none;
}

.embed-news-article::after,
.embed-news-article.is-featured::after {
  display: none;
}

.embed-news-story {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-width: 0;
}

.embed-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 .35rem;
  color: var(--gold);
  font: 750 .64rem/1.2 var(--mono);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.embed-news-meta time {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--gold);
  background: transparent;
}

.embed-news-story h3,
.embed-news-article.is-featured .embed-news-story h3,
.embed-news-article:not(.is-featured) .embed-news-story h3 {
  max-width: none;
  margin: .3rem 0 .55rem;
  color: var(--cream);
  font: 550 1.35rem/1.25 var(--display);
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.embed-news-story p {
  max-width: 860px;
  margin: 0;
  color: var(--soft);
  font-size: .86rem;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.embed-news-story a {
  min-height: 40px;
  margin-top: .9rem;
  padding: .58rem .82rem;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  color: var(--gold-bright);
  background: transparent;
  font-size: .7rem;
  font-weight: 750;
}

.embed-news-story a:hover {
  background: var(--gold-glow);
  transform: translateY(-1px);
}

.embed-news-more {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0 0;
  border: 0;
}

.embed-news-more button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: .68rem 1rem;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  color: var(--gold-bright);
  background: transparent;
  box-shadow: none;
  font-size: .7rem;
  font-weight: 750;
}

.embed-news-more button:hover {
  border-color: var(--gold);
  background: var(--gold-glow);
  box-shadow: none;
  transform: translateY(-1px);
}

.embed-news-more span {
  color: var(--ghost);
  font-size: .7rem;
}

[data-theme="light"] .embed-news {
  background: transparent;
  box-shadow: none;
}

[data-theme="light"] .embed-news-title-lockup h2,
[data-theme="light"] .embed-news-story h3,
[data-theme="light"] .embed-news-article.is-featured .embed-news-story h3,
[data-theme="light"] .embed-news-article:not(.is-featured) .embed-news-story h3 {
  color: var(--umbral-color-text);
}

[data-theme="light"] .embed-news-article,
[data-theme="light"] .embed-news-article.is-featured {
  background: rgba(255, 255, 255, .78);
  box-shadow: none;
}

[data-theme="light"] .embed-news-story p {
  color: var(--umbral-color-text-muted);
}

[data-theme="light"] .embed-news-meta time {
  color: var(--gold);
  background: transparent;
}

@media (max-width: 620px) {
  .embed-news {
    padding: 0;
    border-radius: 0;
  }

  .embed-news-title-lockup h2 {
    font-size: 1.3rem;
  }

  .embed-news-article,
  .embed-news-article.is-featured {
    min-height: 0;
    padding: 1.1rem;
    border-radius: 17px;
  }

  .embed-news-article.is-featured .embed-news-story h3 {
    font-size: 1.25rem;
  }

  .embed-news-more {
    align-items: flex-start;
  }

  .embed-news-more button {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .embed-news-article,
  .embed-news-article.is-featured {
    animation: none;
  }

  .embed-news-more button,
  .embed-news-story a {
    transition: none;
  }
}

/* Adapt to the usable canvas beside the reader rail, including a hidden rail. */
.embedded-dashboard { container: member-dashboard / inline-size; }

@container member-dashboard (min-width: 621px) and (max-width: 1100px) {
  #member-dashboard-view .embed-command-hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr);
    gap: 1.5rem;
    min-height: 0;
    padding: 2rem;
  }
  #member-dashboard-view .embed-command-copy { min-width: 0; }
  #member-dashboard-view .embed-command-copy h1 {
    overflow: visible;
    white-space: normal;
    font-size: clamp(1.55rem, 2.7cqi, 2rem);
  }
  #member-dashboard-view .embed-command-copy > span { white-space: normal; }
  #member-dashboard-view .embed-command-actions { flex-wrap: wrap; }
  #member-dashboard-view .embed-command-actions :is(a, button) { white-space: normal; }
  #member-dashboard-view .embed-command-hero > .embed-credit-card {
    grid-column: auto;
    width: 100%;
    max-width: 450px;
  }
  #member-dashboard-view .embed-deck-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
  }
  #member-dashboard-view .embed-deck-links :is(a, button) {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: .65rem;
    padding: 1rem;
  }
  #member-dashboard-view .embed-deck-links :is(a, button) > img { width: 30px; }
  #member-dashboard-view .embed-deck-links strong {
    overflow: visible;
    white-space: normal;
    line-height: 1.35;
  }
  #member-dashboard-view .embed-steward-invitation,
  #member-dashboard-view .embed-referral-invitation {
    grid-template-columns: minmax(0, 1fr) minmax(230px, .65fr);
    gap: 1.5rem;
    min-height: 240px;
    padding: 1.75rem;
    background-size: cover;
    background-repeat: no-repeat;
  }
  #member-dashboard-view .embed-steward-invitation > .embed-promotion-action,
  #member-dashboard-view .embed-referral-invitation > .embed-promotion-action {
    min-height: 96px;
    padding: 1rem;
    gap: .75rem;
  }
  #member-dashboard-view .embed-steward-invitation > .embed-promotion-action strong,
  #member-dashboard-view .embed-referral-invitation > .embed-promotion-action strong {
    white-space: normal;
    overflow: visible;
    font-size: 1.05rem;
    line-height: 1.3;
  }
  #member-dashboard-view .embed-property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #member-dashboard-view .embed-property-image { height: auto; aspect-ratio: 16 / 10; }
  #member-dashboard-view .embed-property-image img { display: block; object-fit: cover; }
  #member-dashboard-view .embed-dashboard-summary-secondary { grid-template-columns: 1fr; }
  #member-dashboard-view .embed-dashboard-summary-secondary-middle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }
}

@container member-dashboard (min-width: 621px) and (max-width: 800px) {
  #member-dashboard-view .embed-command-hero { grid-template-columns: minmax(0, 1fr); }
  #member-dashboard-view .embed-command-hero > .embed-credit-card { justify-self: center; }
  #member-dashboard-view .embed-steward-invitation,
  #member-dashboard-view .embed-referral-invitation { grid-template-columns: minmax(0, 1fr); }
  #member-dashboard-view .embed-steward-invitation > .embed-promotion-action,
  #member-dashboard-view .embed-referral-invitation > .embed-promotion-action { max-width: none; min-height: 72px; }
}

@media (min-width: 901px) {
  @container member-dashboard (max-width: 620px) {
    #member-dashboard-view .embed-command-hero,
    #member-dashboard-view .embed-deck-links,
    #member-dashboard-view .embed-dashboard-summary-primary,
    #member-dashboard-view .embed-dashboard-summary-secondary,
    #member-dashboard-view .embed-dashboard-summary-secondary-middle,
    #member-dashboard-view .embed-steward-invitation,
    #member-dashboard-view .embed-referral-invitation { grid-template-columns: minmax(0, 1fr); }
    #member-dashboard-view .embed-command-hero { padding: 1.5rem; }
    #member-dashboard-view .embed-command-copy h1,
    #member-dashboard-view .embed-command-copy > span,
    #member-dashboard-view .embed-deck-links strong,
    #member-dashboard-view .embed-promotion-action strong {
    font-weight: 800; white-space: normal; overflow: visible; }
    #member-dashboard-view .embed-steward-invitation,
    #member-dashboard-view .embed-referral-invitation { background-size: cover; background-repeat: no-repeat; }
    #member-dashboard-view .embed-promotion-action { min-width: 0; width: 100%; }
  }
}

.embedded-page-view { min-width: 0; padding: clamp(1rem, 2vw, 2rem); }
.embed-page-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 260px); align-items: center; min-height: 300px; overflow: hidden; padding: clamp(2rem, 5vw, 5rem); border: 1px solid var(--hairline); border-radius: 26px; background: radial-gradient(circle at 84% 30%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 27%), linear-gradient(135deg, color-mix(in srgb, var(--obsidian) 96%, transparent), color-mix(in srgb, var(--forest) 48%, var(--obsidian))); }
.embed-page-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(90deg, color-mix(in srgb, var(--gold) 7%, transparent) 1px, transparent 1px), linear-gradient(color-mix(in srgb, var(--gold) 6%, transparent) 1px, transparent 1px); background-size: 68px 68px; opacity: .32; mask-image: linear-gradient(90deg, transparent, #000 65%, transparent); }
.embed-page-hero > * { position: relative; z-index: 1; }
.embed-page-hero span, .embed-page-grid header span, .embed-release-list > header span, .embed-page-feature > span { color: var(--gold); font-size: .68rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.embed-page-hero h1 { max-width: 850px; margin: .7rem 0 1rem; font: 500 clamp(2.5rem, 5.4vw, 5.4rem)/.96 var(--serif); letter-spacing: -.045em; }
.embed-page-hero h1 em { color: var(--gold-bright); font-weight: 500; }
.embed-page-hero p { max-width: 720px; margin: 0; color: var(--soft); font-size: clamp(.98rem, 1.25vw, 1.12rem); line-height: 1.7; }
.embed-page-hero img { width: min(100%, 230px); max-height: 250px; justify-self: center; object-fit: contain; filter: drop-shadow(0 20px 45px rgba(0,0,0,.36)); }
.embed-page-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin: .8rem 0; }
.embed-page-actions :is(a, button) { display: grid; min-height: 70px; place-items: center; padding: .8rem 1rem; border: 1px solid var(--hairline); border-radius: 14px; color: var(--cream); background: color-mix(in srgb, var(--glass) 86%, transparent); font: 750 .78rem/1.25 var(--sans); text-align: center; text-decoration: none; cursor: pointer; transition: border-color .16s ease, transform .16s ease, background .16s ease; }
.embed-page-actions :is(a, button):hover { border-color: var(--gold); background: var(--gold-glow); transform: translateY(-1px); }
.embed-page-feature { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(260px, 1fr); gap: .5rem 2rem; margin: .8rem 0; padding: clamp(1.4rem, 3vw, 2.5rem); border: 1px solid var(--gold-dim); border-radius: 20px; background: linear-gradient(135deg, var(--gold-glow), transparent); }
.embed-page-feature > span { grid-column: 1 / -1; }
.embed-page-feature strong { font: 500 clamp(1.7rem, 3vw, 3rem)/1.05 var(--serif); }
.embed-page-feature p { margin: 0; align-self: center; color: var(--soft); line-height: 1.65; }
.embed-release-current { display: grid; grid-template-columns: minmax(260px, .58fr) minmax(0, 1fr); align-items: center; gap: clamp(1.4rem, 4vw, 4rem); margin: 1rem 0; padding: clamp(1.7rem, 4vw, 3.6rem); overflow: hidden; border: 1px solid var(--gold); border-radius: 24px; background: radial-gradient(circle at 8% 18%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 38%), linear-gradient(135deg, color-mix(in srgb, var(--forest) 55%, var(--panel)), var(--panel)); box-shadow: 0 24px 64px rgba(0, 0, 0, .14); }
.embed-release-current > div { display: grid; gap: .45rem; }
.embed-release-current span { color: var(--gold-bright); font: 800 .68rem/1.2 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.embed-release-current strong { color: var(--gold-bright); font: 650 clamp(1.3rem, 2.5vw, 2.2rem)/1 var(--display); letter-spacing: -.025em; }
.embed-release-current time { color: var(--gold-bright); font-size: .78rem; font-weight: 750; }
.embed-release-current p { max-width: 850px; margin: 0; color: var(--soft); font-size: clamp(1rem, 1.35vw, 1.16rem); line-height: 1.75; }
.embed-page-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.embed-page-grid > section, .embed-release-list { padding: clamp(1.3rem, 2.5vw, 2.2rem); border: 1px solid var(--hairline); border-radius: 20px; background: color-mix(in srgb, var(--glass) 88%, transparent); }
.embed-page-grid h2, .embed-release-list h2 { margin: .3rem 0 1.2rem; font: 500 clamp(1.7rem, 2.8vw, 2.5rem)/1.08 var(--serif); }
.embed-rule-list { display: grid; }
.embed-rule-list article { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--hairline); }
.embed-rule-list strong { display: block; font-size: .9rem; }
.embed-rule-list p { margin: .3rem 0 0; color: var(--ghost); font-size: .76rem; line-height: 1.5; }
.embed-rule-list b { flex: 0 0 auto; color: var(--gold-bright); font-size: .76rem; }
.embed-release-list { margin-top: .8rem; }
.embed-release-list > article { display: grid; grid-template-columns: minmax(145px, .25fr) minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--hairline); }
.embed-release-list > article.current { margin: 0 -.8rem; padding-inline: .8rem; border: 1px solid var(--gold-dim); border-radius: 14px; background: linear-gradient(90deg, var(--gold-glow), transparent); }
.embed-release-list aside { display: grid; align-content: start; gap: .35rem; }
.embed-release-list aside strong { color: var(--gold-bright); font: 500 1.25rem/1 var(--serif); }
.embed-release-list aside span { color: var(--ghost); font-size: .7rem; }
.embed-release-list article p { margin: 0 0 1rem; color: var(--soft); line-height: 1.65; }
.embed-release-list h3 { margin: .8rem 0 .35rem; color: var(--gold); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.embed-release-list ul { margin: 0; padding-left: 1.1rem; color: var(--soft); line-height: 1.65; }
.embed-release-activity { margin: 1rem 0; padding: clamp(1.2rem, 3vw, 2.25rem); border: 1px solid var(--hairline); border-radius: 22px; background: color-mix(in srgb, var(--panel) 92%, transparent); }
.embed-release-activity > header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1.25rem; }
.embed-release-activity > header > div:first-child > span { color: var(--gold); font: 800 .66rem/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.embed-release-activity h2 { margin: .35rem 0 .6rem; color: var(--cream); font: 560 clamp(1.8rem, 3.5vw, 3rem)/1 var(--display); letter-spacing: -.025em; }
.embed-release-activity > header > div:first-child > p { max-width: 760px; margin: 0; color: var(--soft); line-height: 1.65; }
.embed-release-activity-totals { display: grid; grid-template-columns: repeat(3, minmax(95px, 1fr)); gap: .55rem; }
.embed-release-activity-totals p { display: grid; gap: .2rem; min-width: 0; margin: 0; padding: .75rem; border: 1px solid var(--hairline); border-radius: 12px; background: var(--panel-strong); }
.embed-release-activity-totals strong { color: var(--gold-bright); font: 600 1.45rem/1 var(--display); }
.embed-release-activity-totals span { color: var(--ghost); font-size: .64rem; line-height: 1.25; }
.embed-release-scale { display: grid; grid-template-columns: minmax(210px, .62fr) minmax(0, 1.38fr); gap: 1rem; margin-top: 1.4rem; padding: 1rem; border: 1px solid var(--hairline); border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--forest) 26%, var(--panel-strong)), var(--panel-strong)); }
.embed-release-scale-intro { align-self: center; padding: .45rem; }
.embed-release-scale-intro span,.embed-release-equivalence > div > span { color: var(--gold-bright); font: 800 .66rem/1.2 var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.embed-release-scale-intro p { margin: .55rem 0 0; color: var(--soft); font-size: .82rem; line-height: 1.6; }
.embed-release-scale-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.embed-release-scale-grid article { display: grid; align-content: center; min-height: 128px; padding: .9rem; border: 1px solid color-mix(in srgb, var(--gold) 24%, var(--hairline)); border-radius: 12px; background: color-mix(in srgb, var(--panel) 94%, transparent); }
.embed-release-scale-grid strong { color: var(--gold-bright); font: 600 clamp(1.8rem, 3vw, 2.6rem)/1 var(--display); }
.embed-release-scale-grid span { margin-top: .35rem; color: var(--cream); font-size: .76rem; font-weight: 850; }
.embed-release-scale-grid small { margin-top: .4rem; color: var(--ghost); font-size: .62rem; line-height: 1.4; }
.embed-release-activity-chart { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); align-items: end; gap: clamp(.35rem, .8vw, .75rem); min-height: 300px; margin-top: 1.5rem; padding: 1.25rem 1rem .85rem; overflow-x: auto; border: 1px solid var(--hairline); border-radius: 16px; background: linear-gradient(to top, color-mix(in srgb, var(--gold) 5%, transparent), transparent 65%); }
.embed-release-activity-day { display: grid; grid-template-rows: 22px 190px auto auto; min-width: 54px; justify-items: center; gap: .35rem; }
.embed-release-activity-value { align-self: end; color: var(--gold-bright); font-size: .68rem; font-weight: 850; }
.embed-release-activity-day > i { align-self: end; width: min(34px, 72%); height: var(--activity-height); min-height: 8px; border-radius: 8px 8px 3px 3px; background: var(--gold); box-shadow: 0 8px 22px color-mix(in srgb, var(--gold) 18%, transparent); }
.embed-release-activity-day > strong { color: var(--cream); font-size: .68rem; white-space: nowrap; }
.embed-release-activity-day > small { color: var(--ghost); font-size: .58rem; text-align: center; white-space: nowrap; }
.embed-release-activity > footer { display: flex; justify-content: space-between; gap: 1rem; margin-top: .8rem; color: var(--ghost); font-size: .7rem; }
.embed-release-activity > footer span { display: inline-flex; align-items: center; gap: .4rem; }
.embed-release-activity > footer span i { width: 9px; height: 9px; border-radius: 3px; background: var(--gold); }
.embed-release-equivalence { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(300px, 1.1fr); gap: 1rem; margin-top: 1rem; padding: clamp(1rem, 2.4vw, 1.6rem); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--hairline)); border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 11%, var(--panel)), var(--panel)); }
.embed-release-equivalence > div > strong { display: block; margin: .45rem 0; color: var(--cream); font: 560 clamp(1.55rem, 3vw, 2.5rem)/1.05 var(--display); }
.embed-release-equivalence p { margin: .35rem 0 0; color: var(--soft); font-size: .78rem; line-height: 1.65; }
.embed-release-methodology { align-self: center; padding: .85rem 1rem; border: 1px solid var(--hairline); border-radius: 12px; background: color-mix(in srgb, var(--panel-strong) 94%, transparent); }
.embed-release-methodology h3 { margin: 0 0 .35rem; color: var(--gold-bright); font-size: .76rem; font-weight: 850; }
.embed-release-methodology strong { color: var(--cream); }
.embed-release-credit { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--hairline); color: var(--ghost); font-size: .72rem; text-align: center; }
.embed-release-credit a { color: var(--gold-bright); font-weight: 850; text-decoration: none; }
.embed-release-credit a:is(:hover,:focus-visible) { text-decoration: underline; text-underline-offset: .2em; }
.embed-changelog-settings { margin: 1rem 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--gold) 42%, var(--hairline)); border-radius: 22px; background: color-mix(in srgb, var(--panel) 94%, transparent); box-shadow: 0 18px 48px rgba(0,0,0,.1); }
.embed-changelog-settings > header { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,.45fr); align-items: center; gap: 1.25rem; padding: clamp(1.25rem,3vw,2rem); background: linear-gradient(135deg,color-mix(in srgb,var(--forest) 88%,var(--panel)),color-mix(in srgb,var(--forest) 62%,var(--panel))); }
.embed-changelog-settings > header > div > span { color: var(--gold-bright); font: 800 .66rem/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.embed-changelog-settings h2 { margin: .35rem 0 .5rem; color: #fff; font: 560 clamp(1.35rem,2.4vw,2rem)/1.08 var(--display); letter-spacing: -.02em; }
.embed-changelog-settings > header p { max-width: 760px; margin: 0; color: rgba(255,255,255,.82); font-size: .82rem; line-height: 1.6; }
.embed-changelog-visibility { display: grid; grid-template-columns: minmax(0,1fr) 52px; align-items: center; gap: .75rem; min-height: 64px; padding: .85rem 1rem; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: rgba(0,0,0,.16); color: #fff; cursor: pointer; }
.embed-changelog-visibility > span { font-size: .76rem; font-weight: 850; line-height: 1.35; }
.embed-changelog-visibility input { position: absolute; opacity: 0; pointer-events: none; }
.embed-changelog-visibility i { position: relative; width: 48px; height: 27px; border-radius: 999px; background: rgba(255,255,255,.24); transition: background .2s ease; }
.embed-changelog-visibility i::after { content: ""; position: absolute; top: 4px; left: 4px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.25); transition: transform .2s ease; }
.embed-changelog-visibility input:checked + i { background: var(--gold); }
.embed-changelog-visibility input:checked + i::after { transform: translateX(21px); }
.embed-changelog-visibility input:focus-visible + i { outline: 3px solid #fff; outline-offset: 3px; }
.embed-changelog-settings form { display: grid; gap: 1rem; padding: clamp(1.2rem,3vw,2rem); }
.embed-changelog-settings fieldset { min-width: 0; margin: 0; padding: 1rem; border: 1px solid var(--hairline); border-radius: 15px; background: color-mix(in srgb,var(--panel-strong) 92%,transparent); }
.embed-changelog-settings legend { padding: 0 .45rem; color: var(--gold-bright); font: 850 .68rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.embed-changelog-setting-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: .75rem; }
.embed-changelog-settings label:not(.embed-changelog-visibility) { display: grid; gap: .35rem; min-width: 0; }
.embed-changelog-settings label > span { color: var(--cream); font-size: .74rem; font-weight: 850; }
.embed-changelog-settings label > small { min-height: 2.5em; color: var(--ghost); font-size: .62rem; line-height: 1.3; }
.embed-changelog-settings :is(input[type="number"],input[type="text"],textarea) { width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid var(--hairline); border-radius: 10px; background: var(--panel); color: var(--cream); font: inherit; }
.embed-changelog-settings :is(input[type="number"],input[type="text"]) { min-height: 44px; padding: .65rem .75rem; }
.embed-changelog-settings textarea { min-height: 88px; padding: .75rem; line-height: 1.5; resize: vertical; }
.embed-changelog-settings :is(input,textarea):focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.embed-changelog-setting-copy { display: grid; grid-template-columns: minmax(190px,.55fr) minmax(240px,1fr) minmax(240px,1fr); gap: .75rem; }
.embed-changelog-settings form > footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.embed-changelog-settings form > footer p { margin: 0; color: var(--ghost); font-size: .7rem; line-height: 1.45; }
.embed-changelog-settings form > footer button { min-height: 46px; padding: .7rem 1.15rem; border: 1px solid var(--gold); border-radius: 999px; background: var(--forest); color: #fff; font: 850 .72rem/1 var(--sans); cursor: pointer; }
.embed-changelog-settings form > footer button:is(:hover,:focus-visible) { background: var(--gold); color: #152014; }
.embed-changelog-settings form > footer button:disabled { opacity: .55; cursor: wait; }
[data-theme="light"] .embed-release-activity { background: rgba(255,255,255,.78); }
[data-theme="light"] .embed-changelog-settings { background: rgba(255,255,255,.88); }
[data-theme="light"] .embed-changelog-settings fieldset { background: #fffdf8; }
[data-theme="light"] .embed-changelog-settings label:not(.embed-changelog-visibility) > span { color: #172017; }
[data-theme="light"] .embed-changelog-settings :is(input[type="number"],input[type="text"],textarea) { background: #fff; color: #172017; }
[data-theme="light"] .embed-release-scale { background: linear-gradient(135deg, #edf2ea, #fffdf7); }
[data-theme="light"] .embed-release-scale-grid article { background: #fffdf8; }
.embed-page-loading, .embed-page-error { display: grid; min-height: 65vh; place-items: center; align-content: center; gap: 1rem; color: var(--gold); text-align: center; }
.embed-page-error p { color: var(--soft); }
.embed-page-error button { padding: .75rem 1rem; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold-bright); background: transparent; cursor: pointer; }
[data-theme="light"] .embed-page-hero { background: radial-gradient(circle at 84% 30%, rgba(188,143,58,.17), transparent 28%), linear-gradient(135deg, #fff, #e7eee5); }
[data-theme="light"] .embed-release-current { background: radial-gradient(circle at 8% 18%, rgba(188,143,58,.18), transparent 38%), linear-gradient(135deg, #f8f1dc, #fffdf7); }
[data-theme="light"] .embed-release-current :is(span, strong, time) { color: #9a6d18; }
[data-theme="light"] .embed-page-grid > section, [data-theme="light"] .embed-release-list, [data-theme="light"] .embed-page-actions :is(a, button) { background: rgba(255,255,255,.78); }
@media (max-width: 900px) { .embed-page-actions { grid-template-columns: repeat(2, 1fr); } .embed-page-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .embed-changelog-setting-copy { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .embed-release-activity > header,.embed-release-scale,.embed-release-equivalence,.embed-changelog-settings > header { grid-template-columns: 1fr; }.embed-release-activity-totals { width: 100%; } }
@media (max-width: 650px) { .embedded-page-view { padding: .8rem; } .embed-page-hero { grid-template-columns: 1fr; min-height: 0; padding: 2rem 1.35rem; } .embed-page-hero img { width: 120px; margin-top: 1rem; } .embed-page-actions, .embed-page-feature, .embed-release-current { grid-template-columns: 1fr; } .embed-page-feature > span { grid-column: auto; } .embed-release-list > article { grid-template-columns: 1fr; }.embed-release-activity-totals,.embed-release-scale-grid{grid-template-columns:1fr}.embed-release-activity-chart{grid-template-columns:repeat(16,minmax(52px,1fr));min-height:265px}.embed-release-activity-day{grid-template-rows:20px 150px auto auto}.embed-release-activity > footer{display:grid} }
@media (max-width: 560px) { .embed-changelog-settings form > footer { align-items: stretch; flex-direction: column; }.embed-changelog-settings form > footer button { width: 100%; } }

.embed-meeting-page {
  width: 100%;
  min-height: calc(100vh - var(--topbar, 72px));
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--umbral-color-canvas);
  box-shadow: none;
}

.embed-meeting-page iframe {
  display: block;
  width: 100%;
  min-height: max(760px, calc(100vh - var(--topbar, 72px)));
  border: 0;
  background: var(--umbral-color-canvas);
}

.embedded-page-view[data-page-mode="meeting"] {
  width: 100%;
  min-height: calc(100vh - var(--topbar, 72px));
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--umbral-color-canvas);
}

@media (max-width: 650px) {
  .embedded-page-view[data-page-mode="meeting"] {
    padding: 0;
  }

  .embed-meeting-page {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
}

.umbral-team-page{display:grid;gap:clamp(3.5rem,7vw,7rem);width:100%;padding:clamp(1rem,3vw,3rem);color:var(--cream)}
.umbral-team-page>header{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem 3rem;min-height:340px;padding:clamp(2rem,6vw,5.5rem);border:1px solid color-mix(in srgb,var(--gold) 34%,var(--hairline));border-radius:28px;background:radial-gradient(circle at 86% 18%,rgba(212,175,106,.2),transparent 30%),linear-gradient(135deg,#10291d,#07130e);box-shadow:0 28px 80px rgba(0,0,0,.16)}
.umbral-team-page>header::after{content:"";position:absolute;right:-8%;bottom:-55%;width:44%;aspect-ratio:1;border:1px solid rgba(212,175,106,.18);border-radius:50%;box-shadow:0 0 0 35px rgba(212,175,106,.04),0 0 0 70px rgba(212,175,106,.025)}
.umbral-team-page>header>span,.umbral-team-founders>header>span,.umbral-team-advisors>header>span,.umbral-team-identity>span{color:var(--gold-bright);font:800 .68rem/1.2 var(--mono);letter-spacing:.18em;text-transform:uppercase}
.umbral-team-page>header h1{grid-column:1;margin:.6rem 0 0;color:#fffdf4;font:500 clamp(3.4rem,8vw,7.8rem)/.86 var(--display);letter-spacing:-.055em}
.umbral-team-page>header>p{grid-column:1;max-width:760px;margin:1rem 0 0;color:rgba(255,255,255,.76);font-size:clamp(1rem,1.5vw,1.25rem);line-height:1.65}
.umbral-team-page>header>div{grid-column:2;grid-row:1/4;align-self:end;display:grid;grid-template-columns:auto auto;gap:.25rem .7rem;position:relative;z-index:1;padding:1.2rem 1.4rem;border-left:1px solid rgba(212,175,106,.3)}
.umbral-team-page>header b{color:var(--gold-bright);font:500 2rem var(--display)}.umbral-team-page>header small{align-self:center;color:rgba(255,255,255,.72)}
.umbral-team-founders,.umbral-team-advisors{display:grid;gap:2rem}.umbral-team-founders>header,.umbral-team-advisors>header{display:grid;gap:.7rem;max-width:900px}.umbral-team-founders>header h2,.umbral-team-advisors>header h2{margin:0;font:500 clamp(2.35rem,5vw,4.9rem)/.96 var(--display);letter-spacing:-.04em}.umbral-team-founders>header p,.umbral-team-advisors>header p{max-width:740px;margin:0;color:var(--soft);font-size:.95rem;line-height:1.7}.umbral-team-founders>div,.umbral-team-advisors>div{display:grid;grid-template-columns:1fr;gap:clamp(1rem,2vw,1.6rem)}
.umbral-team-card{display:grid;grid-template-columns:minmax(260px,34%) minmax(0,1fr);min-width:0;overflow:hidden;border:1px solid var(--hairline);border-radius:22px;background:linear-gradient(145deg,color-mix(in srgb,var(--panel) 96%,var(--gold) 4%),var(--panel-strong));box-shadow:0 24px 60px rgba(0,0,0,.14)}
.umbral-team-photo{position:relative;min-height:440px;margin:0;overflow:hidden;background:radial-gradient(circle at 50% 35%,rgba(212,175,106,.2),transparent 42%),#13251b}.umbral-team-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(6,14,10,.44),transparent 48%);pointer-events:none}.umbral-team-photo>span{display:none;position:absolute;inset:0;place-items:center;color:rgba(255,255,255,.74);font:500 clamp(2.5rem,6vw,5rem) var(--display);letter-spacing:.08em}.umbral-team-photo.image-unavailable>span{display:grid}
.umbral-team-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top}.umbral-team-card>div{display:grid;align-content:start;padding:clamp(1.5rem,4vw,3.6rem)}
.umbral-team-identity{display:flex;align-items:center;justify-content:space-between;gap:1rem}.umbral-team-identity i{color:color-mix(in srgb,var(--gold) 58%,var(--soft));font:700 .72rem var(--mono);font-style:normal;letter-spacing:.12em}.umbral-team-card h2{margin:.5rem 0 .35rem;font:500 clamp(2.2rem,4vw,4.5rem)/.95 var(--display);letter-spacing:-.035em}.umbral-team-role{margin:0 0 1.6rem;color:var(--gold);font-size:.82rem;line-height:1.5}
.umbral-team-biography{display:grid;gap:.85rem}.umbral-team-biography p{margin:0;color:var(--soft);font-size:.91rem;line-height:1.72}.umbral-team-card aside{margin-top:1.6rem;padding:1rem 1.1rem;border-left:2px solid var(--gold);background:color-mix(in srgb,var(--gold) 7%,transparent)}.umbral-team-card aside strong{color:var(--gold-bright);font-size:.7rem;letter-spacing:.12em;text-transform:uppercase}.umbral-team-card aside p{margin:.45rem 0 0;color:var(--cream);font-size:.82rem;line-height:1.55}
.umbral-team-advisor{grid-template-columns:clamp(240px,27vw,330px) minmax(0,1fr);border-radius:18px}.umbral-team-advisor .umbral-team-photo{align-self:stretch;width:100%;height:100%;min-height:100%;aspect-ratio:auto}.umbral-team-advisor .umbral-team-photo img{object-position:center center}.umbral-team-advisor>div{padding:clamp(1.35rem,3vw,2.6rem)}.umbral-team-advisor h2{font-size:clamp(2rem,3.4vw,3.5rem)}.umbral-team-advisor .umbral-team-biography p{font-size:.88rem;line-height:1.68}
[data-theme="light"] .umbral-team-page{color:#172017}[data-theme="light"] .umbral-team-card{background:linear-gradient(145deg,#fffdf8,#f5f0e4)}[data-theme="light"] .umbral-team-biography p,[data-theme="light"] .umbral-team-founders>header p,[data-theme="light"] .umbral-team-advisors>header p{color:#536056}[data-theme="light"] .umbral-team-card aside p{color:#253127}
@media(max-width:900px){.umbral-team-advisor{grid-template-columns:minmax(220px,34%) minmax(0,1fr)}}
@media(max-width:720px){.umbral-team-page{padding:.8rem}.umbral-team-page>header{grid-template-columns:1fr;min-height:0;padding:2rem 1.35rem}.umbral-team-page>header>div{grid-column:1;grid-row:auto;border-left:0;border-top:1px solid rgba(212,175,106,.3)}.umbral-team-card,.umbral-team-advisor{grid-template-columns:1fr}.umbral-team-photo,.umbral-team-advisor .umbral-team-photo{height:auto;min-height:0;aspect-ratio:4/3}.umbral-team-founder .umbral-team-photo{aspect-ratio:4/5}.umbral-team-card>div{padding:1.35rem}}

/* V0.9.9.454B native member pages */

.embed-page-loading {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .8rem;
  color: var(--umbral-color-text-muted);
  text-align: center;
}
.embed-page-loading img,
.embed-page-error > img { width: 64px; height: 64px; object-fit: contain; animation: embed-load-spin 1.6s linear infinite; }
.embed-page-loading span { display: grid; gap: .25rem; }
.embed-page-loading strong { color: var(--umbral-color-text); }
.embed-page-loading i { width: min(320px, 70vw); height: 3px; overflow: hidden; border-radius: 99px; background: var(--umbral-color-border-subtle); }
.embed-page-loading i::after { content:""; display:block; width:42%; height:100%; background:var(--umbral-color-accent); animation:embed-load-progress 1.4s ease-in-out infinite; }
.embed-page-error > img { display:block; margin:0 auto .8rem; }
@keyframes embed-load-spin { to { transform:rotate(360deg); } }
@keyframes embed-load-progress { from { transform:translateX(-120%); } to { transform:translateX(280%); } }
@media (prefers-reduced-motion: reduce) { .embed-page-loading img,.embed-page-error > img,.embed-page-loading i::after { animation:none; } }

.embed-page-loading[data-transition-presentation="off"] :is(img, i, i::after) {
  animation: none !important;
}

.embed-page-loading[data-transition-presentation="off"] i::after {
  width: 100%;
  transform: none !important;
}
.embedded-page-view {
  --success: var(--umbral-color-success);
  --info: var(--umbral-color-info);
  --danger: var(--umbral-color-danger);
  --ink: var(--umbral-color-on-accent);
  --ag-bg: var(--bg);
  --ag-panel: var(--panel);
  --ag-panel-2: var(--panel-strong);
  --ag-line: var(--hairline);
  --ag-line-warm: var(--gold-dim);
  --ag-text: var(--cream);
  --ag-muted: var(--ghost);
  --ag-gold: var(--gold);
  --ag-gold-bright: var(--gold-bright);
  --ag-green: var(--success);
  --ag-blue: var(--info);
  --ag-red: var(--danger);
  --ag-serif: var(--serif);
  --ag-sans: var(--sans);
  --sg-bg: var(--bg);
  --sg-panel: var(--panel);
  --sg-panel2: var(--panel-strong);
  --sg-line: var(--hairline);
  --sg-gold: var(--gold);
  --sg-gold2: var(--gold-bright);
  --sg-text: var(--cream);
  --sg-muted: var(--ghost);
  --sg-green: var(--success);
  --sg-red: var(--danger);
  --sg-serif: var(--serif);
  --sg-sans: var(--sans);
}

.embed-section-hero { display:flex; align-items:flex-end; justify-content:space-between; gap:2rem; padding:clamp(1.5rem,4vw,3.5rem); border:1px solid var(--hairline); border-radius:24px; background:radial-gradient(circle at 88% 10%,var(--gold-glow),transparent 34%),linear-gradient(135deg,color-mix(in srgb,var(--panel) 94%,transparent),color-mix(in srgb,var(--forest) 18%,var(--panel))); }
.embed-section-hero > div > span { color:var(--gold); font-size:.68rem; font-weight:800; letter-spacing:.17em; text-transform:uppercase; }
.embed-section-hero h1 { margin:.45rem 0 .7rem; font:500 clamp(2.7rem,5vw,5.1rem)/.96 var(--serif); letter-spacing:-.045em; }
.embed-section-hero p { max-width:760px; margin:0; color:var(--soft); line-height:1.65; }
.embed-page-notice { min-height:1.4rem; margin:.6rem 0; color:var(--soft); font-size:.82rem; }
.embed-page-notice[data-tone="error"],.profile-status[data-tone="error"] { color:var(--danger); }
.profile-status[data-tone="success"] { color:var(--success); }

.embedded-agreements { max-width:1280px; margin-inline:auto; }
.agreement-page-loading,.agreement-error,.sign-loading,.sign-error { display:grid; min-height:60vh; place-content:center; gap:.8rem; text-align:center; color:var(--ghost); }
.agreement-page-loading span,.agreement-error-icon,.sign-loading span { width:34px; height:34px; margin:auto; border:1px solid var(--gold-dim); border-top-color:var(--gold); border-radius:50%; animation:embed-spin 1s linear infinite; }
@keyframes embed-spin { to { transform:rotate(360deg); } }
.agreement-member-head { margin-bottom:1rem; }
.agreement-head-meta { min-width:130px; color:var(--ghost); text-align:right; }
.agreement-head-meta strong { display:block; color:var(--cream); font:500 2rem var(--serif); }
.agreement-filterbar { display:flex; gap:.5rem; overflow:auto; margin:.8rem 0 1.2rem; padding:.4rem; border:1px solid var(--hairline); border-radius:999px; background:color-mix(in srgb,var(--panel) 80%,transparent); }
.agreement-filterbar button { min-height:44px; padding:.6rem 1rem; border:0; border-radius:999px; color:var(--ghost); background:transparent; cursor:pointer; white-space:nowrap; }
.agreement-filterbar button.active { color:var(--cream); background:var(--forest); box-shadow:inset 0 0 0 1px var(--gold-dim); }
.agreement-filterbar b { display:inline-grid; min-width:22px; min-height:22px; margin-left:.35rem; place-items:center; border-radius:999px; background:var(--gold-glow); color:var(--gold-bright); }
[data-theme="light"] .agreement-filterbar button.active,
[data-theme="light"] .agreement-filterbar button.active b { color: #fff; }
.agreement-group { padding:clamp(1rem,2vw,1.6rem); border:1px solid var(--hairline); border-radius:18px; background:color-mix(in srgb,var(--panel) 90%,transparent); }
.agreement-group-head { display:flex; align-items:baseline; gap:.7rem; padding-bottom:.8rem; border-bottom:1px solid var(--gold-dim); }
.agreement-group-head h2 { margin:0; font:500 1.6rem var(--serif); }
.agreement-group-head span { color:var(--gold); }
.agreement-table-wrap { overflow:auto; }
.agreement-table { width:100%; border-collapse:collapse; }
.agreement-table th { padding:1rem .7rem; color:var(--ghost); font-size:.72rem; letter-spacing:.08em; text-align:left; text-transform:uppercase; }
.agreement-table td { padding:1rem .7rem; border-top:1px solid var(--hairline); color:var(--soft); vertical-align:middle; }
.agreement-name { display:flex; align-items:center; gap:.7rem; }
.agreement-file-icon { display:grid; flex:0 0 34px; height:38px; place-items:center; border:1px solid var(--gold-dim); border-radius:6px; color:var(--gold); }
.agreement-name strong { display:block; color:var(--cream); }
.agreement-name small,.agreement-party small { display:block; margin-top:.25rem; color:var(--ghost); }
.agreement-status.action { color:var(--gold-bright); }.agreement-status.complete { color:var(--success); }.agreement-status.progress { color:var(--info); }
.agreement-actions { display:flex; justify-content:flex-end; gap:.45rem; }
.agreement-action,.agreement-error button,.sign-error button,.final-card button { display:inline-flex; min-height:44px; align-items:center; justify-content:center; padding:.6rem .8rem; border:1px solid var(--hairline); border-radius:999px; color:var(--cream); background:transparent; cursor:pointer; text-decoration:none; }
.agreement-action.primary { border-color:var(--gold); background:var(--gold); color:var(--ink); font-weight:800; }
.agreement-support-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin:0 0 1.15rem}.agreement-support-button{position:relative;display:grid;grid-template-columns:1fr auto;grid-template-areas:"title action" "copy action";gap:.3rem 1rem;min-height:104px;padding:1rem 1.1rem;border:1px solid color-mix(in srgb,var(--gold) 34%,var(--hairline));border-radius:15px;background:linear-gradient(145deg,color-mix(in srgb,var(--gold) 9%,var(--panel)),var(--panel));color:var(--cream);text-align:left;cursor:pointer;box-shadow:0 12px 30px rgba(0,0,0,.08);transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease}.agreement-support-button strong{grid-area:title;align-self:end;color:var(--gold-bright);font:700 .88rem/1.25 var(--sans)}.agreement-support-button span{grid-area:copy;align-self:start;color:var(--soft);font-size:.72rem;line-height:1.45}.agreement-support-button i{grid-area:action;align-self:center;display:grid;place-items:center;min-width:74px;min-height:36px;padding:.45rem .65rem;border:1px solid var(--gold-dim);border-radius:999px;color:var(--gold-bright);font:800 .58rem/1 var(--sans);font-style:normal;letter-spacing:.06em;text-align:center;text-transform:uppercase}.agreement-support-button:is(:hover,:focus-visible){transform:translateY(-2px);border-color:var(--gold);background:linear-gradient(145deg,color-mix(in srgb,var(--gold) 15%,var(--panel)),var(--panel));box-shadow:0 18px 38px rgba(0,0,0,.14)}.agreement-support-button:focus-visible{outline:2px solid var(--gold-bright);outline-offset:3px}
.agreement-empty { padding:3.5rem 1rem; color:var(--ghost); text-align:center; }.agreement-empty strong { display:block; margin-bottom:.4rem; color:var(--cream); font:500 1.5rem var(--serif); }

.embedded-agreement-signer { max-width:1500px; margin-inline:auto; }
.sign-shell { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(330px,.75fr); gap:1.2rem; }
.sign-header { grid-column:1/-1; display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; padding:1rem 0; }
.sign-header > div > span { color:var(--gold); font-size:.68rem; font-weight:800; letter-spacing:.16em; text-transform:uppercase; }
.sign-header h1 { margin:.35rem 0; font:500 clamp(2.1rem,4vw,4rem)/1 var(--serif); }.sign-header p { margin:0; color:var(--ghost); }
.sign-secure,.otp-secure { padding:.55rem .75rem; border:1px solid color-mix(in srgb,var(--success) 50%,transparent); border-radius:999px; color:var(--success); font-size:.78rem; }
.sign-progress { grid-column:1/-1; display:grid; grid-template-columns:repeat(3,1fr); position:relative; margin:.4rem 0; }.sign-progress::before { content:""; position:absolute; top:14px; right:8%; left:8%; height:1px; background:var(--hairline); }.sign-progress div { position:relative; z-index:1; color:var(--ghost); font-size:.72rem; text-align:center; }.sign-progress b { display:grid; width:29px; height:29px; margin:0 auto .45rem; place-items:center; border:1px solid var(--hairline); border-radius:50%; background:var(--bg); }.sign-progress .active,.sign-progress .done { color:var(--cream); }.sign-progress .active b { border-color:var(--gold); background:var(--gold); color:var(--ink); }.sign-progress .done b { border-color:var(--success); color:var(--success); }
.sign-document { min-height:650px; overflow:hidden; border:1px solid var(--hairline); border-radius:16px; background:var(--panel); }.sign-document-head { display:flex; height:50px; align-items:center; justify-content:space-between; padding:0 1rem; border-bottom:1px solid var(--hairline); }.sign-document-head span { color:var(--ghost); font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; }.sign-document-frame { display:block; width:100%; height:760px; border:0; background:#e6e2d9; }.sign-document footer { display:flex; justify-content:space-between; gap:.7rem; padding:.75rem 1rem; border-top:1px solid var(--hairline); color:var(--ghost); font-size:.72rem; }.sign-document footer a { color:var(--gold-bright); font-weight:800; }
.sign-panel { display:grid; align-content:start; gap:.8rem; }.sign-card,.otp-card,.final-card { padding:1.1rem; border:1px solid var(--hairline); border-radius:16px; background:color-mix(in srgb,var(--panel) 92%,transparent); }.sign-card h2,.otp-card h2 { margin:0 0 .4rem; font:500 1.4rem var(--serif); }.sign-card > p,.otp-card p { color:var(--ghost); line-height:1.55; }.sign-field { display:grid; gap:.4rem; margin:.8rem 0; color:var(--ghost); font-size:.78rem; }.sign-field input,.otp-row input { width:100%; min-height:46px; padding:.65rem .75rem; border:1px solid var(--hairline); border-radius:9px; color:var(--cream); background:var(--panel-strong); }.sign-check { display:flex; gap:.6rem; margin:.75rem 0; color:var(--soft); font-size:.78rem; line-height:1.45; }.sign-check input { margin-top:.2rem; accent-color:var(--gold); }.consent-copy { max-height:180px; overflow:auto; padding-left:.8rem; border-left:2px solid var(--gold); color:var(--ghost); font-size:.75rem; line-height:1.55; }
.method-tabs { display:grid; grid-template-columns:repeat(3,1fr); overflow:hidden; margin:.7rem 0; border:1px solid var(--hairline); border-radius:999px; }.method-tabs button { min-height:42px; border:0; color:var(--ghost); background:transparent; cursor:pointer; }.method-tabs button.active { color:var(--cream); background:var(--forest); }.typed-signature { display:flex; min-height:72px; align-items:center; padding:.7rem; border-bottom:1px solid var(--gold-dim); font:italic 2rem var(--serif); }.signature-canvas { display:block; width:100%; height:145px; border-radius:10px; background:#f4f0e7; touch-action:none; }.signature-canvas-actions { display:flex; justify-content:flex-end; }.signature-canvas-actions button,.sign-decline { min-height:40px; border:0; color:var(--gold-bright); background:transparent; cursor:pointer; }.signature-upload { display:block; padding:1.5rem .7rem; border:1px dashed var(--gold-dim); border-radius:10px; color:var(--ghost); text-align:center; cursor:pointer; }.signature-upload input { display:none; }.signature-preview { width:100%; max-height:100px; object-fit:contain; background:#f4f0e7; }
.sign-primary,.sign-secondary { width:100%; min-height:48px; border:1px solid var(--gold); border-radius:999px; cursor:pointer; font-weight:800; }.sign-primary { background:var(--gold); color:var(--ink); }.sign-secondary { color:var(--gold-bright); background:transparent; }.sign-primary:disabled { opacity:.45; cursor:not-allowed; }.sign-status { min-height:1.2rem; color:var(--ghost); font-size:.76rem; }.sign-status.error { color:var(--danger); }
.otp-shell { width:min(580px,100%); margin:6vh auto; }.otp-shell h1 { margin:1rem 0 .6rem; font:500 clamp(2.3rem,5vw,4rem)/1 var(--serif); }.otp-shell > p { color:var(--soft); line-height:1.65; }.otp-row { display:grid; grid-template-columns:1fr auto; gap:.5rem; }.otp-row .sign-primary { width:auto; padding-inline:1rem; }.otp-code { letter-spacing:.25em; text-align:center; }
.final-card { width:min(650px,100%); margin:6vh auto; padding:clamp(1.5rem,4vw,3rem); text-align:center; }.final-mark { display:grid; width:54px; height:54px; margin:auto; place-items:center; border-radius:50%; background:color-mix(in srgb,var(--success) 18%,transparent); color:var(--success); font-size:1.6rem; }.final-card h1 { font:500 clamp(2.2rem,5vw,4rem)/1 var(--serif); }.final-card p { color:var(--soft); line-height:1.65; }.final-actions { display:flex; justify-content:center; gap:.6rem; flex-wrap:wrap; }.final-actions a { padding:.7rem 1rem; border:1px solid var(--hairline); border-radius:999px; color:var(--gold-bright); text-decoration:none; }

.embed-profile { max-width:1400px; margin-inline:auto; }.profile-nav { position:sticky; top:calc(var(--topbar) + .5rem); z-index:5; display:flex; gap:.4rem; overflow:auto; margin:.8rem 0; padding:.4rem; border:1px solid var(--hairline); border-radius:999px; background:color-mix(in srgb,var(--bg) 92%,transparent); backdrop-filter:blur(18px); }.profile-nav button { flex:0 0 auto; min-height:44px; padding:.6rem .9rem; border:0; border-radius:999px; color:var(--ghost); background:transparent; cursor:pointer; }.profile-nav button.active { color:var(--cream); background:var(--forest); box-shadow:inset 0 0 0 1px var(--gold-dim); }.profile-main { min-width:0; }.profile-status { min-height:1.4rem; margin:.4rem 0; color:var(--soft); }.profile-panel { padding:clamp(1rem,2.5vw,2rem); border:1px solid var(--hairline); border-radius:20px; background:color-mix(in srgb,var(--panel) 90%,transparent); }.page-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; padding-bottom:1rem; border-bottom:1px solid var(--hairline); }.page-heading p { margin:0; color:var(--gold); font-size:.68rem; letter-spacing:.16em; text-transform:uppercase; }.page-heading h2 { margin:.25rem 0 0; font:500 clamp(1.8rem,3vw,3rem)/1 var(--serif); }.page-heading > span { color:var(--ghost); font-size:.76rem; }.form-section { padding:1.3rem 0; border-bottom:1px solid var(--hairline); }.identity-section { display:grid; grid-template-columns:150px minmax(0,1fr); gap:1.3rem; }.avatar-editor { display:flex; align-items:center; flex-direction:column; gap:.55rem; }.profile-avatar { display:grid; width:112px; height:112px; place-items:center; border-radius:50%; background:var(--forest) center/cover; color:white; font:500 2.3rem var(--serif); }.profile-avatar.has-image { color:transparent; }.image-action,.avatar-editor button { border:0; color:var(--gold-bright); background:transparent; cursor:pointer; }.field-grid,.narrative-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.9rem 1rem; }.embed-profile label { display:grid; gap:.35rem; color:var(--ghost); font-size:.76rem; }.embed-profile label span { color:var(--gold); }.embed-profile :is(input,textarea,select) { width:100%; padding:.7rem .75rem; border:1px solid var(--hairline); border-radius:9px; color:var(--cream); background:var(--panel-strong); }.embed-profile textarea { resize:vertical; line-height:1.55; }.narrative-grid label:last-child { grid-column:1/-1; }.security-section { display:grid; grid-template-columns:minmax(260px,1fr) minmax(200px,.65fr) minmax(200px,.65fr); align-items:end; gap:1rem; }.security-section p { margin:0; color:var(--gold); font-size:.68rem; letter-spacing:.16em; text-transform:uppercase; }.security-section h2 { margin:.25rem 0; font:500 1.6rem var(--serif); }.security-section div span { color:var(--ghost); font-size:.76rem; }.form-actions { display:flex; justify-content:flex-end; padding-top:1rem; }.form-actions button,.communications-card button { min-height:44px; padding:.65rem .9rem; border:1px solid var(--gold); border-radius:999px; color:var(--gold-bright); background:transparent; cursor:pointer; }.form-actions button { background:var(--gold); color:var(--ink); font-weight:800; }
.communications-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; margin-top:1rem; }.communications-card { padding:1rem; border:1px solid var(--hairline); border-radius:14px; background:var(--panel-strong); }.communications-card h3 { margin:.2rem 0 .5rem; font:500 1.4rem var(--serif); }.communications-card p { color:var(--ghost); line-height:1.55; }.communications-kicker { margin:0; color:var(--gold)!important; font-size:.68rem; letter-spacing:.14em; text-transform:uppercase; }.communications-wide { grid-column:1/-1; }.communications-preferences { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; }.communications-preferences fieldset { display:grid; grid-template-columns:1fr 1fr; gap:.6rem; border:1px solid var(--hairline); }.communications-check { display:flex!important; grid-column:1/-1; align-items:center; flex-direction:row; }.communications-check input { width:auto!important; }.communications-list { display:grid; gap:.4rem; color:var(--ghost); }.communications-list-row { display:flex; justify-content:space-between; gap:1rem; padding:.6rem 0; border-bottom:1px solid var(--hairline); }.communications-list-row strong { color:var(--cream); }.communications-actions { display:flex; gap:.5rem; flex-wrap:wrap; }.communications-card button.danger { border-color:var(--danger); color:var(--danger); }.communications-card output { display:none; margin-top:.6rem; padding:.7rem; border:1px dashed var(--gold); color:var(--gold-bright); font-size:1.4rem; letter-spacing:.2em; text-align:center; }.communications-card output[data-visible="true"] { display:block; }
.activity-list { margin-top:.8rem; }.activity-row { display:grid; grid-template-columns:110px minmax(0,1fr) 110px; gap:1rem; padding:1rem .5rem; border-bottom:1px solid var(--hairline); color:var(--cream); text-decoration:none; }.activity-row span,.activity-row small { color:var(--ghost); text-transform:capitalize; }.question-history { padding:1rem .5rem; border-bottom:1px solid var(--hairline); }.question-history header { display:flex; justify-content:space-between; color:var(--gold); }.question-history h3 { font:500 1.35rem var(--serif); }.question-history .answer { padding:1rem; border-left:2px solid var(--forest); color:var(--soft); line-height:1.65; }.question-history footer { margin-top:.6rem; color:var(--ghost); font-size:.72rem; }.empty-activity { padding:3rem; color:var(--ghost); text-align:center; }

.embed-help { --help-reader-scale:1; max-width:1400px; margin-inline:auto; }.help-hero { display:block; }.help-hero label { display:block; max-width:760px; margin-top:1.2rem; }.help-hero input { width:100%; min-height:48px; padding:.8rem 1rem; border:1px solid var(--hairline); border-radius:999px; color:var(--cream); background:var(--panel-strong); }.help-layout { display:grid; grid-template-columns:250px minmax(0,1fr); gap:clamp(1.5rem,4vw,4rem); padding-top:1rem; }.help-layout > nav { position:sticky; top:calc(var(--topbar) + 1rem); align-self:start; display:flex; max-height:calc(100vh - var(--topbar) - 2rem); overflow:auto; flex-direction:column; padding:.4rem; border:1px solid var(--hairline); border-radius:16px; background:color-mix(in srgb,var(--panel) 90%,transparent); }.help-layout > nav button { min-height:42px; padding:.55rem .7rem; border:0; border-radius:10px; color:var(--ghost); background:transparent; text-align:left; cursor:pointer; }.help-layout > nav button.active { color:var(--cream); background:var(--forest); }.help-articles { min-width:0; }.help-articles article { padding:clamp(1.2rem,2.5vw,2rem); margin-bottom:.8rem; border:1px solid var(--hairline); border-radius:18px; background:color-mix(in srgb,var(--panel) 88%,transparent); scroll-margin-top:calc(var(--topbar) + 1rem); }.help-articles h2 { margin:0 0 .8rem; font:500 clamp(2rem,3.5vw,3.3rem)/1 var(--serif); }.help-articles h3 { margin:1.5rem 0 .4rem; color:var(--gold); font:500 1.3rem var(--serif); }.help-articles p { max-width:82ch; color:var(--soft); line-height:1.75; }

@media (max-width:900px) { .sign-shell,.identity-section,.security-section,.help-layout { grid-template-columns:1fr; }.sign-document { min-height:0; }.sign-document-frame { height:62vh; min-height:470px; }.sign-document footer { display:grid; }.communications-grid,.communications-preferences,.field-grid,.narrative-grid { grid-template-columns:1fr; }.communications-wide,.narrative-grid label:last-child { grid-column:auto; }.help-layout > nav { position:static; max-height:none; flex-direction:row; overflow:auto; }.help-layout > nav button { flex:0 0 auto; }.avatar-editor { align-items:flex-start; } }
@media (max-width:850px){.agreement-support-actions{grid-template-columns:1fr}}
@media (max-width:650px) { .embed-section-hero,.sign-header,.page-heading { display:block; }.agreement-head-meta { margin-top:1rem; text-align:left; }.agreement-support-button{min-height:94px}.agreement-filterbar { border-radius:14px; }.agreement-table,.agreement-table tbody,.agreement-table tr,.agreement-table td { display:block; }.agreement-table thead { display:none; }.agreement-table tr { padding:1rem 0; border-top:1px solid var(--hairline); }.agreement-table td { padding:.3rem 0; border:0; }.agreement-table td[data-label]::before { content:attr(data-label); display:inline-block; width:88px; color:var(--ghost); font-size:.68rem; text-transform:uppercase; }.agreement-actions { justify-content:flex-start; margin-top:.5rem; }.profile-nav { border-radius:14px; }.activity-row { grid-template-columns:1fr; }.otp-row { grid-template-columns:1fr; }.otp-row .sign-primary { width:100%; }.sign-panel .sign-card:last-child { position:sticky; bottom:calc(.5rem + env(safe-area-inset-bottom)); z-index:5; box-shadow:0 -20px 35px var(--bg); } }
@media (prefers-reduced-motion:reduce) { .agreement-page-loading span,.sign-loading span { animation:none; } .embed-page-actions :is(a,button) { transition:none; } }

/* V0.9.9.470B focused member Help Center. */
.embed-help {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-block: clamp(.25rem, 1.5vw, 1rem) clamp(2rem, 6vw, 5rem);
}
.embed-help .help-articles { display: grid; width: 100%; gap: 0; }
.embed-help .help-articles > article {
  position: relative;
  margin: 0;
  padding: clamp(1.35rem, 4vw, 4rem) clamp(1.2rem, 5vw, 5.25rem) clamp(1.5rem, 4vw, 4.5rem);
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: clamp(18px, 2vw, 28px) clamp(18px, 2vw, 28px) 0 0;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  box-shadow: 0 26px 70px color-mix(in srgb, #000 20%, transparent);
}
.embed-help .help-reading-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
  margin: calc(-1 * clamp(1.35rem, 4vw, 4rem)) calc(-1 * clamp(1.2rem, 5vw, 5.25rem)) clamp(1.5rem, 3vw, 2.5rem);
  padding: .8rem clamp(1.2rem, 5vw, 5.25rem);
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--void) 68%, transparent);
}
.embed-help .help-reading-toolbar button {
  min-height: 40px;
  padding: .55rem .85rem;
  border: 1px solid color-mix(in srgb, var(--gold) 70%, var(--hairline));
  border-radius: 999px;
  color: var(--gold-bright);
  background: color-mix(in srgb, var(--gold) 8%, transparent);
  font-weight: 750;
  cursor: pointer;
}
.embed-help .help-reading-toolbar button:is(:hover, :focus-visible) { border-color: var(--gold); background: var(--gold-glow); }
.embed-help .help-reading-toolbar button:disabled { opacity: .42; cursor: default; }
.embed-help .help-text-controls { display: flex; align-items: center; gap: .35rem; }
.embed-help .help-text-controls button { min-width: 40px; padding-inline: .55rem; border-color: var(--hairline); color: var(--soft); background: var(--glass); }
.embed-help .help-article-kicker {
  max-width: none;
  margin: 0 0 .9rem;
  color: var(--gold-bright);
  font: 800 .68rem/1.2 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.embed-help .help-articles h2 {
  max-width: 18ch;
  margin: 0 0 1.15rem;
  color: var(--cream);
  font: 520 calc(clamp(2.35rem, 5.2vw, 4.9rem) * var(--help-reader-scale))/.98 var(--display);
  letter-spacing: -.045em;
}
.embed-help .help-articles h2[tabindex="-1"]:focus { outline: none; }
.embed-help .help-article-lead {
  max-width: 72ch;
  margin: 0 0 clamp(1.7rem, 3vw, 2.5rem);
  color: var(--cream);
  font-size: calc(clamp(1.08rem, 1.5vw, 1.3rem) * var(--help-reader-scale));
  line-height: 1.72;
}
.embed-help .help-articles h3 {
  max-width: 70ch;
  margin: clamp(1.7rem, 3vw, 2.5rem) 0 .65rem;
  color: var(--gold-bright);
  font: 600 calc(clamp(1.25rem, 2vw, 1.6rem) * var(--help-reader-scale))/1.2 var(--display);
}
.embed-help .help-articles article > p:not(.help-article-kicker):not(.help-article-lead),
.embed-help .help-articles article > ol,
.embed-help .help-articles article > ul {
  max-width: 78ch;
  color: var(--soft);
  font-size: calc(clamp(.98rem, 1.1vw, 1.08rem) * var(--help-reader-scale));
  line-height: 1.86;
}
.embed-help .help-articles li { margin: .45rem 0; padding-left: .25rem; }
.embed-help .help-note {
  max-width: 78ch;
  margin-top: 2rem;
  padding: 1.1rem 1.2rem;
  border-left: 3px solid var(--gold);
  background: color-mix(in srgb, var(--gold) 8%, transparent);
}
.embed-help .help-note strong { color: var(--cream); font-size: .9rem; }
.embed-help .help-note p { margin: .35rem 0 0; color: var(--soft); line-height: 1.7; }
.embed-help .help-tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 2rem; padding-top: 1.35rem; border-top: 1px solid var(--hairline); }
.embed-help .help-tool-actions > span { flex: 1 0 100%; color: var(--gold); font: 800 .64rem/1.2 var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.embed-help .help-tool-action { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: .7rem 1rem; border: 1px solid color-mix(in srgb, var(--gold) 62%, var(--hairline)); border-radius: 999px; color: var(--gold-bright); background: color-mix(in srgb, var(--gold) 8%, var(--panel)); font: 800 .72rem/1.2 var(--sans); text-align: center; text-decoration: none; cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.embed-help .help-tool-action:is(:hover, :focus-visible) { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 16%, var(--panel)); transform: translateY(-1px); }
[data-theme="light"] .embed-help .help-tool-action { color: #765316; background: #fffaf0; }
.help-article-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: clamp(1.2rem, 3vw, 2rem) clamp(1.2rem, 5vw, 5.25rem);
  border: 1px solid var(--hairline);
  border-top: 0;
  border-radius: 0 0 clamp(18px, 2vw, 28px) clamp(18px, 2vw, 28px);
  background: color-mix(in srgb, var(--panel-strong) 96%, transparent);
}
.help-article-actions > div > p { margin: 0; color: var(--gold); font: 800 .62rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.help-article-actions > div > h3 { margin: .3rem 0; color: var(--cream); font: 600 1.45rem/1.1 var(--display); }
.help-article-actions > div > span { color: var(--ghost); font-size: .82rem; }
.help-article-actions fieldset {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: .55rem;
  min-width: 0;
  margin: .25rem 0 0;
  padding: 1rem 0 0;
  border: 0;
  border-top: 1px solid var(--hairline);
}
.help-article-actions legend { float: left; margin: .75rem 1rem 0 0; color: var(--cream); font-weight: 750; }
.help-article-actions fieldset button {
  min-width: 82px;
  min-height: 42px;
  padding: .55rem .8rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--soft);
  background: transparent;
  font-weight: 750;
  cursor: pointer;
}
.help-article-actions fieldset button:is(:hover, :focus-visible, [aria-pressed="true"]) { border-color: var(--gold); color: var(--gold-bright); background: var(--gold-glow); }
.help-feedback-status { grid-column: 1 / -1; min-height: 1.2rem; margin: 0; color: var(--ghost); font-size: .78rem; }
.help-feedback-form { display:grid; grid-column:1 / -1; grid-template-columns:minmax(0,1fr) auto; gap:.45rem .75rem; align-items:end; }
.help-feedback-form label { grid-column:1 / -1; color:var(--ghost); font-size:.78rem; font-weight:750; }
.help-feedback-form textarea { width:100%; min-height:84px; resize:vertical; padding:.75rem; border:1px solid var(--hairline); border-radius:12px; color:var(--cream); background:var(--glass); font:inherit; }
.help-feedback-form button { min-height:44px; padding:.7rem 1rem; border:1px solid var(--gold); border-radius:999px; color:var(--ink); background:var(--gold); font-weight:800; cursor:pointer; }
.help-feedback-form button:disabled { cursor:not-allowed; opacity:.55; }
.embed-help .help-recommendations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-top: clamp(1.25rem, 3vw, 2.25rem);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.embed-help .help-recommendations > div { grid-column: 1 / -1; padding: 0 .15rem .25rem; }
.embed-help .help-recommendations > div span { color: var(--gold); font: 800 .64rem/1.2 var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.embed-help .help-recommendations h2 { margin: .35rem 0 0; color: var(--cream); font: 560 clamp(1.55rem, 3vw, 2.25rem)/1.1 var(--display); }
.embed-help .help-recommendation {
  display: grid;
  align-content: space-between;
  gap: .7rem;
  min-height: 150px;
  padding: 1.15rem;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  color: var(--soft);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  text-align: left;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.embed-help .help-recommendation span { color: var(--gold); font: 750 .58rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.embed-help .help-recommendation strong { color: var(--cream); font: 600 1.15rem/1.25 var(--display); }
.embed-help .help-recommendation small { color: var(--ghost); font-size: .72rem; font-weight: 750; }
.embed-help .help-recommendation:is(:hover, :focus-visible) { transform: translateY(-2px); border-color: var(--gold); background: var(--gold-glow); }
[data-theme="light"] .embed-help .help-articles > article,
[data-theme="light"] .help-article-actions,
[data-theme="light"] .embed-help .help-recommendation { box-shadow: 0 22px 55px rgba(27, 49, 35, .08); }
@media (max-width: 760px) {
  .help-article-actions { grid-template-columns: 1fr; }
  .embed-help .help-reading-toolbar { align-items: stretch; flex-wrap: wrap; }
  .embed-help .help-reading-toolbar > button { flex: 1 0 100%; }
  .embed-help .help-text-controls { justify-content: flex-end; }
  .help-article-actions fieldset { align-items: stretch; flex-wrap: wrap; }
  .help-article-actions legend { width: 100%; margin: .75rem 0 .25rem; }
  .help-article-actions fieldset button { flex: 1; }
  .help-feedback-form { grid-template-columns:1fr; }
  .help-feedback-form button { width:100%; }
  .embed-help .help-recommendations { grid-template-columns: 1fr; }
  .embed-help .help-tool-action { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .embed-help :is(.help-recommendation, .help-tool-action) { transition: none; }
  .embed-help :is(.help-recommendation, .help-tool-action):is(:hover, :focus-visible) { transform: none; }
}

/* V0.9.9.454B unified member canvases. */
.embedded-page-view { width:100%; max-width:none; min-width:0; }
.embed-profile { width:100%; max-width:none; margin-inline:0; }
.embed-help { width:min(1120px,100%); max-width:none; margin-inline:auto; }
.help-articles { width:100%; min-width:0; }
.help-connected-links { display:flex; flex-wrap:wrap; gap:.45rem; margin:1rem 0; padding:1rem; border:1px solid var(--hairline); border-radius:16px; background:color-mix(in srgb,var(--panel) 90%,transparent); }
.help-connected-links > span { width:100%; color:var(--gold); font-size:.64rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.help-topic-link { min-height:38px; padding:.5rem .75rem; border:1px solid var(--hairline); border-radius:999px; color:var(--ghost); background:transparent; cursor:pointer; }
.help-topic-link:is(:hover,.active) { border-color:var(--gold-dim); color:var(--cream); background:var(--forest); }
.help-articles p { max-width:96ch; }

/* V0.9.9.454B compact Profile and Communication Preferences. */
.embed-profile .profile-main { display: grid; gap: .5rem; }
.embed-profile .profile-status:empty { min-height: .35rem; margin: 0; }
.embed-profile .profile-panel { padding: clamp(1rem, 2vw, 1.55rem); border-radius: 16px; }
.profile-section-intro { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding: 0 0 .85rem; border-bottom: 1px solid var(--hairline); }
.profile-section-intro p, .activity-panel-title p { margin: 0; color: var(--gold); font: 800 .64rem/1.2 var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.profile-section-intro h2, .activity-panel-title h2 { margin: .28rem 0 0; color: var(--cream); font: 550 clamp(1.65rem, 3vw, 2.55rem)/1 var(--serif); }
.profile-section-intro > span, .activity-panel-title > span { max-width: 620px; color: var(--ghost); font-size: .74rem; line-height: 1.5; }
.embed-profile .form-section { padding: 1rem 0; }
.embed-profile .identity-section { grid-template-columns: 116px minmax(0, 1fr); gap: 1rem; }
.embed-profile .profile-avatar { width: 88px; height: 88px; font-size: 1.8rem; }
.embed-profile .field-grid, .embed-profile .narrative-grid { gap: .65rem .8rem; }
.embed-profile :is(input, textarea, select) { min-height: 42px; padding: .58rem .65rem; }
.embed-profile textarea { min-height: 92px; }
.embed-profile .narrative-grid label:last-child { grid-column: auto; }
.help-recommendations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-top: 1rem; padding: clamp(1rem, 2vw, 1.5rem); border: 1px solid var(--hairline); border-radius: 18px; background: color-mix(in srgb, var(--panel) 90%, transparent); }
.help-recommendations > div { grid-column: 1 / -1; }
.help-recommendations > div span { color: var(--gold); font: 800 .62rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.help-recommendations h2 { margin: .25rem 0; color: var(--cream); font: 550 1.55rem/1.1 var(--serif); }
.help-recommendation { display: grid; gap: .35rem; min-height: 88px; padding: .85rem; border: 1px solid var(--hairline); border-radius: 12px; color: var(--soft); background: var(--panel-strong); text-align: left; cursor: pointer; }
.help-recommendation span { color: var(--gold); font: 750 .58rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.help-recommendation strong { font-size: .86rem; line-height: 1.35; }
.help-recommendation:is(:hover, :focus-visible) { border-color: var(--gold); background: var(--gold-glow); }
.help-articles article[hidden], .help-recommendations[hidden] { display: none; }
.communications-panel .profile-section-intro { margin-bottom: .8rem; }
.communications-card { padding: .9rem; }
.communications-card h3 { font-size: 1.25rem; }
.communications-card > p { margin-block: .4rem .75rem; font-size: .75rem; }
.communications-preferences { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.communications-preferences > button { align-self: end; }
.communications-preferences fieldset { min-width: 0; padding: .65rem; border-radius: 10px; }
.communications-preferences fieldset legend { padding: 0 .3rem; color: var(--gold); font-size: .67rem; font-weight: 800; }
.communications-channel-choices { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: .45rem !important; }
.communications-channel-choices label { display: flex; min-height: 42px; align-items: center; flex-direction: row; gap: .45rem; padding: .55rem; border: 1px solid var(--hairline); border-radius: 9px; color: var(--soft); background: var(--glass); }
.communications-channel-choices input { width: auto !important; min-height: auto !important; accent-color: var(--gold); }
.quiet-hours { grid-template-columns: repeat(2, 1fr) !important; }
.activity-panel-title { display: grid; grid-template-columns: minmax(220px, .6fr) minmax(0, 1fr); align-items: end; gap: .35rem 1rem; padding: .2rem 0 .85rem; border-bottom: 1px solid var(--hairline); }
.activity-panel-title p { grid-column: 1 / -1; }
.activity-panel-title > span { justify-self: end; }
[data-theme="light"] .profile-share-buttons button { background: #fffdf8; }
@media (max-width: 1050px) {
  .communications-preferences { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .communications-channel-choices { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .profile-share-buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .profile-account-grid, .help-recommendations { grid-template-columns: 1fr; }
  .profile-section-intro, .profile-share-section, .activity-panel-title { display: grid; grid-template-columns: 1fr; align-items: start; }
  .activity-panel-title p { grid-column: auto; }
  .activity-panel-title > span { justify-self: start; }
  .embed-profile .identity-section, .communications-preferences { grid-template-columns: 1fr; }
  .communications-channel-choices { grid-template-columns: 1fr 1fr !important; }
  .profile-share-buttons { grid-template-columns: 1fr 1fr; }
}

/* V0.9.9.463B Earning Umbral Credit. */
.credit-overview {
  width: 100%;
  max-width: 1500px;
  margin-inline: auto;
  color: var(--cream);
}

.credit-overview svg {
  display: block;
  width: 100%;
  height: 100%;
}

.credit-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
  min-height: 500px;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 5.25rem);
  border: 1px solid color-mix(in srgb, var(--gold) 68%, transparent);
  border-radius: 28px;
  background:
    repeating-radial-gradient(ellipse at 8% 20%, transparent 0 44px, rgba(201, 162, 73, .12) 45px 46px, transparent 47px 72px),
    repeating-radial-gradient(ellipse at 92% 85%, transparent 0 52px, rgba(201, 162, 73, .1) 53px 54px, transparent 55px 84px),
    linear-gradient(135deg, #082219, #03130e 68%, #0b2c20);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .2);
}

.credit-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 68% 12%, rgba(216, 184, 104, .1), transparent 28%);
}

.credit-hero-copy h1 {
  max-width: 780px;
  margin: 0;
  color: #f4e6bc;
  font: 400 clamp(2.25rem, 3vw, 3.15rem)/1 var(--display);
  letter-spacing: -.025em;
}

.credit-hero-copy h2 {
  margin: 1.35rem 0 .65rem;
  color: #dbbc6d;
  font: 500 clamp(1.25rem, 2vw, 1.8rem)/1.1 var(--display);
}

.credit-hero-copy > p {
  max-width: 660px;
  margin: 0;
  color: #d8ded9;
  font-size: clamp(.96rem, 1.2vw, 1.08rem);
  line-height: 1.7;
}

.credit-hero-copy nav {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.6rem;
}

.credit-hero-copy nav button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.05rem;
  border: 1px solid #d0a94f;
  border-radius: 10px;
  color: #f4e6bc;
  background: rgba(2, 12, 9, .22);
  font-size: .78rem;
  font-weight: 800;
  font-family: var(--sans);
  cursor: pointer;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.credit-hero-copy nav button:first-child {
  color: #07150f;
  background: #d4ae52;
}

.credit-hero-copy nav button:is(:hover, :focus-visible) {
  color: #07150f;
  background: #ebce83;
  transform: translateY(-2px);
}

.credit-balance {
  padding: clamp(1.3rem, 2.5vw, 2rem);
  border: 1px solid #d0a94f;
  border-radius: 18px;
  background: rgba(2, 16, 11, .68);
  box-shadow: 0 24px 55px rgba(0, 0, 0, .22);
  backdrop-filter: blur(8px);
}

.credit-balance > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.credit-balance > div > span {
  display: grid;
  justify-items: center;
  min-width: 0;
  padding: 0 .8rem;
  text-align: center;
}

.credit-balance > div > span + span { border-left: 1px solid rgba(219, 188, 109, .58); }
.credit-balance svg { width: 42px; height: 42px; margin-bottom: .8rem; color: #dfb858; }
.credit-balance small { color: #dbe1dc; font-size: .68rem; line-height: 1.3; }
.credit-balance strong { margin-top: .45rem; color: #fff7df; font: 500 clamp(2rem, 3.5vw, 3.5rem)/1 var(--display); }
.credit-balance > p { margin: 1.5rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(219, 188, 109, .72); color: #f1deb0; font-size: .76rem; font-weight: 750; line-height: 1.5; text-align: center; }

.credit-ways > header h2,
.credit-ledger > header h2 {
  margin: 0;
  color: var(--cream);
  font: 400 clamp(1.65rem, 2.2vw, 2.15rem)/1.06 var(--display);
  font-weight: 400;
  letter-spacing: -.015em;
}

.credit-ways > header p,
.credit-ledger > header p {
  margin: .7rem 0 0;
  color: var(--ghost);
  font-size: .86rem;
  line-height: 1.7;
}

.credit-ways {
  padding: clamp(2rem, 4.5vw, 4.5rem) clamp(1rem, 3vw, 3rem);
  scroll-margin-top: calc(var(--topbar) + 1rem);
}

.credit-ways > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.credit-way-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.credit-way-grid article { display: grid; min-height: 270px; align-content: start; justify-items: center; padding: 1.4rem 1.1rem 1.2rem; border: 1px solid var(--gold-dim); border-radius: 16px; background: color-mix(in srgb, var(--panel) 94%, transparent); text-align: center; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.credit-way-grid article:hover { border-color: var(--gold); box-shadow: 0 18px 42px rgba(0, 0, 0, .12); transform: translateY(-3px); }
.credit-way-grid article > span { display: grid; width: 92px; height: 92px; place-items: center; padding: 18px; border: 1px solid color-mix(in srgb, var(--success) 38%, transparent); border-radius: 50%; color: var(--gold-bright); background: color-mix(in srgb, var(--success) 11%, var(--panel)); }
.credit-way-grid h3 { margin: 1rem 0 .45rem; color: var(--cream); font: 500 1.25rem/1.1 var(--display); }
.credit-way-grid p { margin: 0; color: var(--ghost); font-size: .72rem; line-height: 1.55; }
.credit-way-grid article > strong { width: 100%; margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--hairline); color: var(--gold-bright); font: 500 1rem/1.2 var(--display); }

.credit-milestones {
  display: grid;
  grid-template-columns: minmax(180px, .26fr) minmax(650px, 1fr);
  align-items: center;
  gap: 1.6rem;
  overflow-x: auto;
  margin-top: .9rem;
  padding: clamp(1.3rem, 2.5vw, 2rem);
  border: 1px solid color-mix(in srgb, var(--success) 42%, var(--hairline));
  border-radius: 17px;
  background: color-mix(in srgb, var(--success) 8%, var(--panel));
}

.credit-milestones h3 { margin: 0; color: var(--cream); font: 500 1.45rem/1.05 var(--display); }
.credit-milestones header p { margin: .45rem 0 0; color: var(--ghost); font-size: .72rem; line-height: 1.55; }
.credit-milestones ol { position: relative; display: grid; grid-template-columns: repeat(5, minmax(110px, 1fr)); gap: .5rem; min-width: 650px; margin: 0; padding: 0; list-style: none; }
.credit-milestones ol::before { content: ""; position: absolute; top: 24px; right: 9%; left: 9%; height: 1px; background: var(--gold); }
.credit-milestones li { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; }
.credit-milestones li > span { display: grid; width: 49px; height: 49px; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--forest); background: var(--cream); font: 500 1rem var(--display); box-shadow: 0 0 0 5px color-mix(in srgb, var(--panel) 82%, transparent); }
.credit-milestones li strong { margin-top: .65rem; color: var(--cream); font-size: .73rem; }
.credit-milestones li b { margin-top: .25rem; color: var(--gold-bright); font-size: .72rem; }

.credit-ledger {
  padding: clamp(1.6rem, 4vw, 3.8rem);
  border-top: 1px solid var(--hairline);
  scroll-margin-top: calc(var(--topbar) + 1rem);
}

.credit-ledger > header { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; }
.credit-ledger-filters { display: grid; grid-template-columns: repeat(3, minmax(90px, 1fr)); overflow: hidden; border: 1px solid var(--gold-dim); border-radius: 10px; }
.credit-ledger-filters button { min-height: 46px; padding: .65rem .85rem; border: 0; border-left: 1px solid var(--gold-dim); color: var(--cream); background: transparent; font-size: .76rem; font-weight: 750; cursor: pointer; }
.credit-ledger-filters button:first-child { border-left: 0; }
.credit-ledger-filters button.active { color: #f5e7bc; background: var(--forest); }
.credit-ledger-filters button:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--gold); outline-offset: -3px; }
.credit-ledger-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.8rem 0 1.2rem; padding: 1.1rem 0; border-block: 1px solid var(--hairline); }
.credit-ledger-summary > span { display: grid; grid-template-columns: 46px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: .15rem .8rem; padding: .2rem 1rem; }
.credit-ledger-summary > span + span { border-left: 1px solid var(--hairline); }
.credit-ledger-summary svg { grid-row: 1 / 3; width: 42px; height: 42px; padding: 9px; border-radius: 50%; color: var(--gold); background: color-mix(in srgb, var(--success) 10%, var(--panel)); }
.credit-ledger-summary small { color: var(--ghost); font-size: .7rem; }
.credit-ledger-summary strong { color: var(--cream); font: 500 1.6rem/1 var(--display); }
.credit-ledger-scroll {
  overflow-x: auto;
  border: 1px solid #ded8ca;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(20, 37, 31, .09);
}
.credit-ledger-table { width: 100%; min-width: 780px; border-collapse: collapse; }
.credit-ledger-table th { padding: 1rem .9rem; border-bottom: 1px solid #d8cfbb; color: #111814; background: #f6f3ec; font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.credit-ledger-table td { padding: 1.05rem .9rem; border-bottom: 1px solid #ebe6da; color: #111814; background: #fff; font-size: .76rem; vertical-align: middle; }
.credit-ledger-table th:first-child,
.credit-ledger-table td:first-child { padding-left: 1.15rem; }
.credit-ledger-table th:last-child,
.credit-ledger-table td:last-child { padding-right: 1.15rem; }
.credit-ledger-table tbody tr:nth-child(even) td { background: #fcfbf8; }
.credit-ledger-table tbody tr:last-child td { border-bottom: 0; }
.credit-ledger-table tbody tr { transition: background .16s ease; }
.credit-ledger-table tbody tr:hover td { background: #f5f1e7; }
.credit-ledger-table td:first-child strong { display: block; color: #14251f; font-weight: 750; }
.credit-ledger-table td:first-child small { display: block; margin-top: .2rem; color: #111814; font-size: .65rem; }
.credit-ledger-activity { display: flex; align-items: center; gap: .8rem; }
.credit-ledger-activity > span { display: grid; flex: 0 0 42px; height: 42px; place-items: center; padding: 9px; border: 1px solid #dce4da; border-radius: 50%; color: #a77d22; background: #edf2eb; }
.credit-ledger-activity strong { display: block; color: #14251f; font-size: .8rem; }
.credit-ledger-activity small { display: block; margin-top: .25rem; color: #111814; font-size: .66rem; }
.credit-ledger-table b { display: inline-flex; min-width: 48px; justify-content: center; padding: .32rem .5rem; border-radius: 999px; font-size: .72rem; }
.credit-ledger-table b.earned { color: #236b4d; background: #e7f1eb; }
.credit-ledger-table b.redeemed { color: #8b6517; background: #f5ecd6; }
.credit-ledger-table td:last-child strong { color: #14251f; font-weight: 800; }
.credit-ledger-empty { display: grid; min-height: 180px; place-content: center; justify-items: center; gap: .45rem; margin-top: 1rem; border: 1px dashed var(--hairline); border-radius: 14px; color: var(--ghost); text-align: center; }
.credit-ledger-empty[hidden], .credit-ledger-table tr[hidden], .credit-show-more[hidden] { display: none; }
.credit-ledger-empty svg { width: 46px; height: 46px; padding: 10px; border-radius: 50%; color: var(--gold); background: color-mix(in srgb, var(--success) 10%, var(--panel)); }
.credit-ledger-empty strong { color: var(--cream); font: 500 1.25rem var(--display); }
.credit-ledger-empty p { margin: 0; font-size: .72rem; }
.credit-show-more { display: block; min-height: 44px; margin: 1rem auto 0; padding: .65rem 1rem; border: 1px solid var(--gold-dim); border-radius: 999px; color: var(--gold-bright); background: transparent; font-size: .74rem; font-weight: 800; cursor: pointer; }
.credit-show-more:is(:hover, :focus-visible) { border-color: var(--gold); background: var(--gold-glow); }
.credit-ledger-status { min-height: 1rem; margin: .6rem 0 0; color: var(--ghost); font-size: .64rem; text-align: center; }

[data-theme="light"] .credit-way-grid article { background: rgba(255, 255, 255, .82); }
[data-theme="light"] .credit-way-grid article > span,
[data-theme="light"] .credit-ledger-summary svg,
[data-theme="light"] .credit-ledger-activity > span,
[data-theme="light"] .credit-ledger-empty svg { background: #e9efe6; }
[data-theme="light"] .credit-milestones { background: #eef1e8; }
[data-theme="light"] .credit-milestones li > span { background: #fffdf8; }
[data-theme="light"] .credit-hero {
  border-color: #d8c99e;
  background:
    repeating-radial-gradient(ellipse at 8% 20%, transparent 0 44px, rgba(148, 113, 34, .09) 45px 46px, transparent 47px 72px),
    repeating-radial-gradient(ellipse at 92% 85%, transparent 0 52px, rgba(148, 113, 34, .08) 53px 54px, transparent 55px 84px),
    linear-gradient(135deg, #fffdf8, #f6f1e5 68%, #faf7ef);
  box-shadow: 0 22px 58px rgba(77, 62, 26, .12);
}
[data-theme="light"] .credit-hero::after {
  background: radial-gradient(circle at 68% 12%, rgba(196, 154, 62, .16), transparent 30%);
}
[data-theme="light"] .credit-balance {
  border-color: #c9aa5e;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 20px 48px rgba(77, 62, 26, .12);
}
[data-theme="light"] .credit-balance > div > span + span { border-left-color: #d8c99e; }
[data-theme="light"] .credit-hero-copy nav button:not(:first-child) {
  color: #173c2e;
  background: rgba(255, 255, 255, .72);
}
[data-theme="light"] .credit-hero-copy h1,
[data-theme="light"] .credit-balance strong { color: #14251f !important; }
[data-theme="light"] .credit-hero-copy h2,
[data-theme="light"] .credit-hero svg { color: #9b7420 !important; }
[data-theme="light"] .credit-hero-copy > p,
[data-theme="light"] .credit-balance small { color: #111814 !important; }
[data-theme="light"] .credit-balance > p { color: #14251f !important; border-top-color: #d8c99e; }
[data-theme="light"] .credit-ways :is(h2, h3),
[data-theme="light"] .credit-ledger :is(h2, strong, td) { color: #14251f !important; }
[data-theme="light"] .credit-ways p,
[data-theme="light"] .credit-ledger :is(p, small, th) { color: #111814 !important; }
[data-theme="light"] .credit-way-grid article > strong,
[data-theme="light"] .credit-milestones li b,
[data-theme="light"] .credit-ledger svg { color: #a77d22 !important; }
[data-theme="light"] .credit-milestones :is(h3, li strong) { color: #14251f !important; }
[data-theme="light"] .credit-milestones li > span { color: #173c2e !important; }
[data-theme="light"] .credit-ledger-table b.earned { color: #236b4d !important; }
[data-theme="light"] .credit-ledger-table b.redeemed { color: #9b6f18 !important; }

.credit-ledger-table :is(td, th, strong, small) { text-shadow: none; }

@media (max-width: 1100px) {
  .credit-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .credit-balance { max-width: 720px; }
}

@media (max-width: 900px) {
  .credit-way-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credit-ways > header, .credit-ledger > header { align-items: start; flex-direction: column; }
  .credit-milestones { grid-template-columns: 1fr; }
  .credit-ledger-filters { width: 100%; }
}

@media (max-width: 620px) {
  .credit-hero { gap: 1.5rem; margin: -.8rem -.8rem 0; padding: 2rem 1.2rem; border-radius: 0 0 24px 24px; }
  .credit-hero-copy h1 { font-size: clamp(2.2rem, 10vw, 2.75rem); }
  .credit-hero-copy nav { display: grid; }
  .credit-hero-copy nav button { width: 100%; }
  .credit-balance { padding: 1rem .55rem; }
  .credit-balance > div > span { padding-inline: .35rem; }
  .credit-balance svg { width: 32px; height: 32px; }
  .credit-balance small { font-size: .57rem; }
  .credit-balance strong { font-size: 1.8rem; }
  .credit-way-grid { grid-template-columns: 1fr; }
  .credit-way-grid article { min-height: 240px; }
  .credit-ways { padding-inline: .25rem; }
  .credit-milestones { margin-inline: -.25rem; padding: 1rem; }
  .credit-ledger { padding-inline: 0; }
  .credit-ledger-summary { grid-template-columns: 1fr; gap: .65rem; }
  .credit-ledger-summary > span + span { border-top: 1px solid var(--hairline); border-left: 0; padding-top: .85rem; }
  .credit-ledger-filters { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .credit-hero-copy nav button,
  .credit-way-grid article,
  .credit-ledger-table tbody tr { transition: none; }
}

.embed-referrals{--rh-ink:var(--umbral-color-text);--rh-muted:var(--umbral-color-text-muted);--rh-line:var(--umbral-color-border-default);--rh-surface:var(--umbral-color-surface);--rh-green:var(--umbral-color-brand);--rh-gold:var(--umbral-color-accent-text);max-width:1500px;margin:0 auto;padding:clamp(1rem,2.7vw,2.5rem);color:var(--rh-ink)}
.hub-status{position:fixed;right:1.5rem;bottom:1.5rem;z-index:90;max-width:420px;padding:.8rem 1rem;border-radius:10px;background:var(--umbral-color-brand);color:var(--umbral-color-on-brand);box-shadow:0 14px 36px rgba(0,0,0,.2);opacity:0;pointer-events:none;transform:translateY(10px);transition:.2s}.hub-status.visible{opacity:1;transform:none}.hub-status.error{background:var(--umbral-color-danger);color:var(--umbral-color-on-danger)}.referral-hero{position:relative;min-height:340px;display:grid;grid-template-columns:1.35fr .65fr;align-items:center;gap:2rem;padding:clamp(2rem,5vw,4.5rem);border:1px solid var(--rh-line);border-radius:22px;background:linear-gradient(120deg,color-mix(in srgb,var(--rh-surface) 98%,transparent),color-mix(in srgb,var(--rh-green) 10%,var(--rh-surface)));overflow:hidden}.referral-hero-copy{position:relative;z-index:1;max-width:780px}.hub-kicker{margin:0 0 .55rem;color:var(--rh-gold);font-size:var(--umbral-font-size-supporting);font-weight:900;letter-spacing:.16em;text-transform:uppercase}.referral-hero h1{max-width:760px;margin:0;font-family:Georgia,serif;font-size:clamp(2.6rem,5vw,5.2rem);font-weight:500;line-height:1.03;letter-spacing:-.04em}.referral-hero-copy>p:not(.hub-kicker){max-width:680px;margin:1rem 0 0;color:var(--rh-muted);font-size:.9rem}.hub-head-actions{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1.4rem}.hub-head-actions button,.hub-head-actions a{min-height:42px;display:inline-flex;align-items:center;padding:.55rem .85rem;border:1px solid var(--rh-line);border-radius:9px;background:var(--rh-surface);color:var(--rh-ink);font:inherit;font-size:var(--umbral-font-size-supporting);font-weight:800;text-decoration:none;cursor:pointer}.hub-head-actions button{background:var(--rh-green);color:var(--umbral-color-on-brand)}.referral-hero-art{position:relative;width:220px;height:220px;margin:auto;border:1px solid color-mix(in srgb,var(--rh-gold) 45%,transparent);border-radius:50%}.referral-hero-art:before,.referral-hero-art:after{content:"";position:absolute;inset:17%;border:1px solid var(--rh-line);border-radius:50%}.referral-hero-art:after{inset:36%}.referral-hero-art span{position:absolute;inset:50% auto auto 50%;z-index:2;transform:translate(-50%,-50%);font-family:Georgia,serif;font-size:2.7rem;color:var(--rh-gold)}.referral-hero-art i{position:absolute;width:10px;height:10px;border-radius:50%;background:var(--rh-gold);box-shadow:0 0 0 6px color-mix(in srgb,var(--rh-gold) 15%,transparent)}.referral-hero-art i:nth-of-type(1){left:5%;top:43%}.referral-hero-art i:nth-of-type(2){right:18%;top:10%}.referral-hero-art i:nth-of-type(3){right:7%;bottom:25%}.hub-metric-rail{display:grid;grid-template-columns:repeat(4,1fr);margin:1rem 0;overflow:hidden;border:1px solid var(--rh-line);border-radius:16px;background:var(--rh-surface)}.hub-metric-rail article{display:grid;gap:.15rem;padding:1.2rem 1.4rem;border-right:1px solid var(--rh-line)}.hub-metric-rail article:last-child{border-right:0}.hub-metric-rail span{color:var(--rh-muted);font-size:var(--umbral-font-size-supporting);font-weight:850;letter-spacing:.11em;text-transform:uppercase}.hub-metric-rail strong{font-family:Georgia,serif;font-size:1.65rem;font-weight:500}.hub-metric-rail small{color:var(--rh-muted);font-size:var(--umbral-font-size-supporting)}.hub-panel{padding:clamp(1.25rem,2.8vw,2rem);border:1px solid var(--rh-line);border-radius:18px;background:var(--rh-surface)}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.2rem}.panel-head h2{margin:0;font-family:Georgia,serif;font-size:1.75rem;font-weight:500}.panel-head>span{color:var(--rh-muted);font-size:var(--umbral-font-size-supporting)}.live-mark{display:flex;align-items:center;gap:.4rem}.live-mark i{width:7px;height:7px;border-radius:50%;background:#4d9862}.invite-url{display:grid;grid-template-columns:1fr auto;gap:.6rem}.invite-url input{min-width:0;min-height:52px;padding:.75rem 1rem;border:1px solid var(--rh-line);border-radius:10px;background:color-mix(in srgb,var(--rh-surface) 92%,var(--rh-green));color:var(--rh-ink);font:inherit;font-size:.78rem}.invite-url button,.share-actions button,.share-empty button,.pending-claim button,.dialog-primary,.hub-load-error button{min-height:44px;padding:.6rem .95rem;border:1px solid var(--rh-green);border-radius:9px;background:var(--rh-green);color:var(--umbral-color-on-brand);font:inherit;font-size:var(--umbral-font-size-supporting);font-weight:850;cursor:pointer}.share-tools{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:1rem;margin-top:1rem}.share-code{display:grid}.share-code small{color:var(--rh-muted);font-size:var(--umbral-font-size-supporting)}.share-code strong{font-family:Georgia,serif;font-size:1.7rem;font-weight:500;letter-spacing:.06em}.qr-frame{width:72px;height:72px;padding:.35rem;border:1px solid var(--rh-line);border-radius:10px;background:#fff}.qr-frame img{width:100%;height:100%}.share-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:.4rem}.share-actions button{min-height:34px;padding:.4rem .6rem;background:transparent;color:var(--rh-ink);border-color:var(--rh-line)}.share-disclosure{margin:1rem 0 0;padding-top:1rem;border-top:1px solid var(--rh-line);color:var(--rh-muted);font-size:var(--umbral-font-size-supporting)}.share-empty{display:grid;grid-template-columns:52px 1fr auto;align-items:center;gap:1rem;padding:1rem;border-radius:12px;background:color-mix(in srgb,var(--rh-green) 7%,var(--rh-surface))}.share-empty>span{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:var(--rh-green);color:var(--umbral-color-on-brand);font-size:1.2rem}.share-empty strong{display:block}.share-empty p{margin:.2rem 0 0;color:var(--rh-muted);font-size:var(--umbral-font-size-supporting)}.hub-section{margin-top:1rem}.two-column{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.timeline-list{display:grid;gap:.5rem}.timeline-item{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.7rem;padding:.8rem;border:1px solid var(--rh-line);border-radius:10px}.status-dot{width:9px;height:9px;border-radius:50%;background:var(--rh-gold)}.status-dot.qualified,.status-dot.approved,.status-dot.rewarded,.status-dot.converted{background:#489460}.timeline-item strong{font-size:.75rem}.timeline-item p{margin:.1rem 0 0;color:var(--rh-muted);font-size:var(--umbral-font-size-supporting)}.timeline-item small{color:var(--rh-muted);font-size:var(--umbral-font-size-supporting);text-transform:capitalize}.how-list{display:grid;gap:1rem;margin:0;padding:0;list-style:none}.how-list li{display:grid;grid-template-columns:30px 1fr;gap:.75rem}.how-list li>span{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:color-mix(in srgb,var(--rh-green) 10%,var(--rh-surface));color:var(--rh-green);font-size:var(--umbral-font-size-supporting);font-weight:900}.how-list strong{font-size:.75rem}.how-list p{margin:.15rem 0 0;color:var(--rh-muted);font-size:var(--umbral-font-size-supporting)}.reward-ledger{overflow:auto}.reward-head,.reward-row{min-width:690px;display:grid;grid-template-columns:minmax(240px,1.5fr) 1fr .65fr .65fr;align-items:center;gap:1rem}.reward-head{padding:0 .8rem .6rem;color:var(--rh-muted);font-size:var(--umbral-font-size-supporting);font-weight:850;letter-spacing:.1em;text-transform:uppercase}.reward-row{padding:.85rem;border-top:1px solid var(--rh-line)}.reward-row>div{display:grid}.reward-row>div strong{font-size:var(--umbral-font-size-supporting)}.reward-row>div small{color:var(--rh-muted);font-size:var(--umbral-font-size-supporting)}.reward-row>strong{font-family:Georgia,serif;font-size:1rem;font-weight:500}.reward-type,.reward-status{width:max-content;padding:.28rem .48rem;border-radius:999px;background:color-mix(in srgb,var(--rh-green) 8%,var(--rh-surface));font-size:var(--umbral-font-size-supporting);text-transform:capitalize}.reward-type.credit{background:color-mix(in srgb,var(--rh-gold) 16%,var(--rh-surface))}.empty-list{display:grid;justify-items:center;padding:2.5rem 1rem;text-align:center;color:var(--rh-muted)}.empty-list>span{font-size:1.5rem;color:var(--rh-gold)}.empty-list strong{margin-top:.35rem;color:var(--rh-ink)}.empty-list p{margin:.25rem 0 0;font-size:var(--umbral-font-size-supporting)}.hub-privacy{display:flex;align-items:center;justify-content:space-between;gap:2rem;margin-top:1rem;padding:1.2rem 1.4rem;border:1px solid var(--rh-line);border-radius:14px;background:color-mix(in srgb,var(--rh-green) 6%,var(--rh-surface))}.hub-privacy>div{display:grid;grid-template-columns:auto auto;column-gap:.65rem}.hub-privacy>div>span{grid-row:1/3;color:var(--rh-gold)}.hub-privacy strong{font-size:.75rem}.hub-privacy p{margin:.15rem 0 0;color:var(--rh-muted);font-size:var(--umbral-font-size-supporting)}.hub-privacy a{white-space:nowrap;font-size:var(--umbral-font-size-supporting);font-weight:800}.pending-claim{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem;padding:.8rem 1rem;border-radius:11px;background:var(--rh-green);color:var(--umbral-color-on-brand);font-size:var(--umbral-font-size-supporting)}.pending-claim button{border-color:color-mix(in srgb,var(--rh-surface) 40%,transparent);background:transparent}.hub-dialog{width:min(560px,calc(100% - 2rem));padding:0;border:1px solid var(--rh-line);border-radius:18px;background:var(--rh-surface);color:var(--rh-ink);box-shadow:0 24px 80px rgba(0,0,0,.28)}.hub-dialog::backdrop{background:rgba(8,15,10,.58);backdrop-filter:blur(5px)}.dialog-content{position:relative;padding:2rem}.dialog-close{position:absolute;right:1rem;top:1rem;width:40px;height:40px;border:1px solid var(--rh-line);border-radius:10px;background:transparent;color:var(--rh-ink);font-size:1.3rem;cursor:pointer}.dialog-content h2{margin:.2rem 3rem .8rem 0;font-family:Georgia,serif;font-size:2rem;font-weight:500}.dialog-content>p:not(.hub-kicker){color:var(--rh-muted);font-size:.75rem}.dialog-policy-links a{font-weight:800}.dialog-consent{display:grid;grid-template-columns:auto 1fr;gap:.6rem;align-items:start;margin:1.2rem 0;font-size:var(--umbral-font-size-supporting)}.dialog-consent input{width:20px;height:20px;accent-color:var(--rh-green)}.dialog-primary:disabled{opacity:.45;cursor:not-allowed}.hub-load-error{padding:3rem;text-align:center}.hub-loading{display:flex;align-items:center;gap:.6rem;color:var(--rh-muted);font-size:var(--umbral-font-size-supporting)}.hub-loading span{width:18px;height:18px;border:2px solid var(--rh-line);border-top-color:var(--rh-gold);border-radius:50%;animation:rh-spin .8s linear infinite}@keyframes rh-spin{to{transform:rotate(360deg)}}
@media(max-width:900px){.referral-hero{grid-template-columns:1fr}.referral-hero-art{display:none}.hub-metric-rail{grid-template-columns:1fr 1fr}.hub-metric-rail article:nth-child(2){border-right:0}.hub-metric-rail article:nth-child(-n+2){border-bottom:1px solid var(--rh-line)}.two-column{grid-template-columns:1fr}.share-tools{grid-template-columns:1fr auto}.share-actions{grid-column:1/-1}.share-empty{grid-template-columns:auto 1fr}.share-empty button{grid-column:1/-1}.hub-privacy{align-items:flex-start;flex-direction:column}}
@media(max-width:560px){.embed-referrals{padding:.75rem}.referral-hero{padding:1.4rem}.referral-hero h1{font-size:2.5rem}.hub-metric-rail{grid-template-columns:1fr}.hub-metric-rail article{border-right:0!important;border-bottom:1px solid var(--rh-line)}.hub-metric-rail article:last-child{border-bottom:0}.invite-url{grid-template-columns:1fr}.share-tools{grid-template-columns:1fr}.qr-frame{display:none}.share-actions{grid-column:auto}.panel-head{align-items:flex-start;flex-direction:column}.hub-privacy a{white-space:normal}}
@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation:none!important;transition:none!important}}


.embed-referrals.is-enrollment-locked .hub-member-only{display:none}.hub-enrollment-gate[hidden]{display:none}.hub-enrollment-gate{width:100%;display:grid;justify-items:start;gap:.8rem;margin:1rem 0 0;padding:clamp(1.6rem,4vw,3.5rem);border:1px solid var(--rh-line);border-radius:20px;background:var(--rh-surface);box-shadow:0 18px 55px rgba(26,48,34,.1)}.hub-enrollment-gate .gate-mark{width:56px;height:56px;display:grid;place-items:center;border-radius:15px;background:var(--rh-green);color:var(--umbral-color-on-brand);font-size:1.4rem}.hub-enrollment-gate .hub-kicker{margin:.4rem 0 0}.hub-enrollment-gate h2{max-width:720px;margin:0;font-family:Georgia,serif;font-size:clamp(2rem,4vw,3.8rem);font-weight:500;line-height:1.05;letter-spacing:-.035em}.hub-enrollment-gate>p:not(.hub-kicker){max-width:680px;margin:0;color:var(--rh-muted);font-size:.78rem}.hub-enrollment-gate button{min-height:46px;margin-top:.4rem;padding:.65rem 1rem;border:1px solid var(--rh-green);border-radius:9px;background:var(--rh-green);color:var(--umbral-color-on-brand);font:inherit;font-size:var(--umbral-font-size-supporting);font-weight:850;cursor:pointer}.hub-enrollment-gate small{color:var(--rh-muted);font-size:var(--umbral-font-size-supporting)}
.invitation-studio{margin-top:1rem}.invitation-path-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem}.invitation-path-card{min-height:108px;padding:.85rem;border:1px solid var(--rh-line);border-radius:12px;background:color-mix(in srgb,var(--rh-surface) 97%,var(--rh-green));color:var(--rh-ink);font:inherit;text-align:left;cursor:pointer;transition:transform .18s ease,border-color .18s ease,background .18s ease}.invitation-path-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--rh-gold) 65%,var(--rh-line))}.invitation-path-card[aria-pressed="true"]{border-color:var(--rh-green);background:var(--rh-green);color:var(--umbral-color-on-brand)}.invitation-path-card strong{display:block;font-size:var(--umbral-font-size-supporting)}.invitation-path-card span{display:block;margin-top:.3rem;color:var(--rh-muted);font-size:var(--umbral-font-size-supporting);line-height:1.45}.invitation-path-card[aria-pressed="true"] span{color:var(--umbral-color-on-brand)}.invitation-workspace{display:grid;grid-template-columns:minmax(220px,.68fr) minmax(0,1.7fr);gap:1rem;margin-top:1rem}.invitation-guidance{padding:1.1rem;border-radius:13px;background:color-mix(in srgb,var(--rh-green) 7%,var(--rh-surface))}.invitation-guidance h3{margin:.1rem 0 1rem;font-family:Georgia,serif;font-size:1.4rem;font-weight:500}.invitation-guidance ul{display:grid;gap:.55rem;margin:0 0 1.3rem;padding-left:1rem;color:var(--rh-muted);font-size:var(--umbral-font-size-supporting);line-height:1.5}.invitation-editor{padding:1.1rem;border:1px solid var(--rh-line);border-radius:13px}.invitation-fields{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}.invitation-editor label{display:grid;gap:.35rem}.invitation-editor label>span{color:var(--rh-muted);font-size:var(--umbral-font-size-supporting);font-weight:850;letter-spacing:.08em;text-transform:uppercase}.invitation-editor input,.invitation-editor textarea{width:100%;padding:.72rem .78rem;border:1px solid var(--rh-line);border-radius:9px;background:var(--rh-surface);color:var(--rh-ink);font:inherit;font-size:var(--umbral-font-size-supporting);line-height:1.55;resize:vertical}.invitation-variants{display:flex;gap:.4rem;margin:.75rem 0}.invitation-variants button,.invitation-actions button{min-height:36px;padding:.45rem .72rem;border:1px solid var(--rh-line);border-radius:999px;background:transparent;color:var(--rh-ink);font:inherit;font-size:var(--umbral-font-size-supporting);font-weight:850;cursor:pointer}.invitation-variants button[aria-pressed="true"]{border-color:var(--rh-green);background:var(--rh-green);color:var(--umbral-color-on-brand)}.invitation-preview{display:grid;gap:.65rem}.invitation-actions{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.8rem}.invitation-actions button:nth-last-child(-n+3){border-color:var(--rh-green);background:var(--rh-green);color:var(--umbral-color-on-brand)}.invitation-disclosure{margin:.8rem 0 0;color:var(--rh-muted);font-size:var(--umbral-font-size-supporting)}.invitation-empty{padding:2rem;border-radius:12px;background:color-mix(in srgb,var(--rh-green) 6%,var(--rh-surface));text-align:center}.invitation-empty p{margin:.3rem 0 0;color:var(--rh-muted);font-size:var(--umbral-font-size-supporting)}
@media(max-width:900px){.invitation-path-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.invitation-workspace{grid-template-columns:1fr}.invitation-guidance{display:grid;grid-template-columns:1fr 1fr;column-gap:1.25rem}.invitation-guidance h3{grid-column:1/-1}}
@media(max-width:560px){.invitation-path-grid,.invitation-fields,.invitation-guidance{grid-template-columns:1fr}.invitation-guidance h3{grid-column:auto}.invitation-path-card{min-height:86px}.invitation-actions button{flex:1 1 calc(50% - .45rem)}}

/* V0.9.9.68B member referral growth cockpit */
.hub-growth-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.75fr);gap:1rem;margin:1rem 0}.hub-growth-pipeline,.next-action-card{min-height:300px}.growth-stage-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem}.growth-stage-list article{min-width:0;padding:.9rem;border:1px solid var(--rh-line);border-radius:13px;background:color-mix(in srgb,var(--rh-green) 4%,var(--rh-surface))}.growth-stage-list article>div{display:grid;grid-template-columns:1fr auto;gap:.25rem}.growth-stage-list article>div span{grid-column:1/-1;color:var(--rh-gold);font-size:var(--umbral-font-size-supporting);font-weight:900;letter-spacing:.12em}.growth-stage-list article strong{font-size:var(--umbral-font-size-supporting)}.growth-stage-list article b{font:500 1.35rem/1 Georgia,serif}.growth-stage-list article>i{display:block;height:4px;margin-top:.8rem;border-radius:999px;background:color-mix(in srgb,var(--rh-line) 70%,transparent);overflow:hidden}.growth-stage-list article>i span{display:block;width:var(--growth-progress);height:100%;border-radius:inherit;background:var(--rh-green);transition:width .45s ease}.growth-pipeline-note{margin:1rem 0 0;color:var(--rh-muted);font-size:var(--umbral-font-size-supporting);line-height:1.55}.next-action-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;overflow:hidden;background:color-mix(in srgb,var(--rh-green) 10%,var(--rh-surface))}.next-action-card:after{content:"";position:absolute;right:-80px;bottom:-100px;width:230px;height:230px;border:1px solid color-mix(in srgb,var(--rh-gold) 35%,transparent);border-radius:50%;box-shadow:0 0 0 32px color-mix(in srgb,var(--rh-gold) 7%,transparent),0 0 0 64px color-mix(in srgb,var(--rh-green) 5%,transparent);pointer-events:none}.next-action-signal{width:48px;height:48px;display:grid;place-items:center;margin:.4rem 0 1rem;border-radius:14px;background:var(--rh-green);color:var(--umbral-color-on-brand);font-size:1.2rem}.next-action-card h2{position:relative;z-index:1;max-width:500px;margin:0;font:500 clamp(1.45rem,2.6vw,2.25rem)/1.08 Georgia,serif;letter-spacing:-.025em}.next-action-card>p:not(.hub-kicker){position:relative;z-index:1;margin:.75rem 0 1.2rem;color:var(--rh-muted);font-size:var(--umbral-font-size-supporting);line-height:1.6}.next-action-card button{position:relative;z-index:1;min-height:43px;margin-top:auto;padding:.58rem .85rem;border:1px solid var(--rh-green);border-radius:9px;background:var(--rh-green);color:var(--umbral-color-on-brand);font:inherit;font-size:var(--umbral-font-size-supporting);font-weight:850;cursor:pointer}.next-action-card button:focus-visible{outline:3px solid color-mix(in srgb,var(--rh-gold) 32%,transparent);outline-offset:3px}
@media(max-width:1050px){.hub-growth-grid{grid-template-columns:1fr}.next-action-card{min-height:260px}.growth-stage-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.growth-stage-list{grid-template-columns:1fr}.hub-growth-pipeline,.next-action-card{min-height:0}}
@media(prefers-reduced-motion:reduce){.growth-stage-list article>i span{transition:none}}

/* Shared program treatment within the existing member shell. */
.embed-referrals .referral-hero{border-radius:24px;background:var(--umbral-color-surface-muted)}
.embed-referrals .referral-hero h1{font-size:clamp(2.5rem,4vw,4.4rem);line-height:1.1}
.embed-referrals .hub-kicker{color:var(--umbral-color-accent-text)}
.embed-referrals button,.embed-referrals input,.embed-referrals textarea{font-size:var(--umbral-font-size-control);min-height:44px}
.embed-referrals input,.embed-referrals textarea{font-size:1rem}
.embed-referrals :where(.hub-panel,.hub-enrollment-gate){border-radius:20px}
.embed-referrals .hub-metric-rail article{padding:24px}
.embed-referrals .hub-metric-rail strong{font-size:2rem;margin:8px 0}
.embed-referrals .hub-metric-rail article:nth-child(3){border-top:3px solid var(--umbral-color-brand)}
.embed-referrals .hub-metric-rail article:nth-child(4){border-top:3px solid var(--umbral-color-accent-text)}
.embed-referrals .hub-status{z-index:var(--umbral-layer-toast);width:min(420px,calc(100vw - 32px));max-width:calc(100vw - 32px);right:16px;bottom:16px}
.embed-referrals .hub-dialog{max-height:calc(100dvh - 32px);overflow-y:auto}
.embed-referrals .dialog-close{min-height:44px;width:44px}
.embed-referrals .invitation-path-card[aria-pressed="true"]{background:var(--umbral-color-brand);color:var(--umbral-color-on-brand)}

.embed-referrals #referral-enroll-error{color:var(--umbral-color-danger);font-size:var(--umbral-font-size-control)}

.umbral-member-card{--member-card-start:#07110d;--member-card-end:#020403;--member-card-accent:#d9b968;--member-card-text:#f6e8b7;--member-card-muted:#c9b87d;--member-card-border:#b99a4c;--member-card-glow:#2f8f63;--member-card-pattern-opacity:.24;--member-card-surface-opacity:.94;--member-card-pattern-scale:1;--member-card-pattern-rotation:0deg;--member-card-glow-x:82%;--member-card-glow-y:78%;--member-card-glow-size:64%;--member-card-glow-opacity:.42;position:relative;isolation:isolate;box-sizing:border-box;container-type:inline-size;width:100%;max-width:100%;aspect-ratio:85.60/53.98;min-width:0;overflow:hidden;border:1px solid var(--member-card-border);background-color:#07110d;background-image:linear-gradient(145deg,var(--member-card-start),var(--member-card-end));box-shadow:0 28px 65px rgba(0,0,0,.28);color:var(--member-card-text)}
.member-card-background,.member-card-pattern,.member-card-glow{position:absolute;pointer-events:none}.member-card-background{z-index:0;inset:-24%;background-position:center;background-repeat:no-repeat;background-size:cover;opacity:var(--member-card-bg-opacity);filter:saturate(var(--member-card-bg-saturation)) contrast(var(--member-card-bg-contrast));transform:rotate(var(--member-card-bg-rotation)) scale(var(--member-card-bg-scale));transform-origin:center}.member-card-pattern{z-index:1;inset:-12%;opacity:var(--member-card-pattern-opacity);mix-blend-mode:screen;transform:rotate(var(--member-card-pattern-rotation)) scale(var(--member-card-pattern-scale));transform-origin:center}.member-card-glow{z-index:2;left:var(--member-card-glow-x);top:var(--member-card-glow-y);width:var(--member-card-glow-size);aspect-ratio:1;border-radius:50%;background:var(--member-card-glow);filter:blur(55px);opacity:var(--member-card-glow-opacity);transform:translate(-50%,-50%)}
.umbral-member-card[data-pattern="contours"] .member-card-pattern{background:repeating-radial-gradient(ellipse at 82% 4%,transparent 0 18px,color-mix(in srgb,var(--member-card-accent) 42%,transparent) 19px 20px,transparent 21px 37px)}.umbral-member-card[data-pattern="topography"] .member-card-pattern{background:radial-gradient(ellipse at 72% 10%,transparent 0 12%,color-mix(in srgb,var(--member-card-accent) 35%,transparent) 12.3% 12.7%,transparent 13% 20%,color-mix(in srgb,var(--member-card-accent) 26%,transparent) 20.3% 20.7%,transparent 21% 30%,color-mix(in srgb,var(--member-card-accent) 20%,transparent) 30.3% 30.7%,transparent 31%)}.umbral-member-card[data-pattern="canopy"] .member-card-pattern{background:radial-gradient(circle at 12% 15%,var(--member-card-glow) 0 2%,transparent 3% 12%),radial-gradient(circle at 30% 35%,var(--member-card-accent) 0 1.2%,transparent 2% 11%),radial-gradient(circle at 80% 22%,var(--member-card-glow) 0 2%,transparent 3% 14%),radial-gradient(circle at 68% 78%,var(--member-card-accent) 0 1.5%,transparent 2.5% 12%);background-size:95px 95px,120px 120px,145px 145px,170px 170px}.umbral-member-card[data-pattern="aurora"] .member-card-pattern{background:conic-gradient(from 210deg at 18% 110%,transparent,var(--member-card-glow),transparent 34%,var(--member-card-accent),transparent 63%);filter:blur(16px)}.umbral-member-card[data-pattern="facets"] .member-card-pattern{background:linear-gradient(30deg,transparent 48%,color-mix(in srgb,var(--member-card-accent) 30%,transparent) 49% 51%,transparent 52%),linear-gradient(150deg,transparent 48%,color-mix(in srgb,var(--member-card-glow) 35%,transparent) 49% 51%,transparent 52%);background-size:70px 120px}.umbral-member-card[data-pattern="waves"] .member-card-pattern{background:repeating-linear-gradient(165deg,transparent 0 23px,color-mix(in srgb,var(--member-card-accent) 26%,transparent) 24px 25px,transparent 26px 43px)}.umbral-member-card[data-pattern="grid"] .member-card-pattern{background-image:linear-gradient(color-mix(in srgb,var(--member-card-accent) 20%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--member-card-accent) 20%,transparent) 1px,transparent 1px);background-size:28px 28px}.umbral-member-card[data-pattern="none"] .member-card-pattern{display:none}
.member-card-logo{position:absolute;z-index:5;left:var(--member-card-logo-x);top:var(--member-card-logo-y);width:var(--member-card-logo-width);height:var(--member-card-logo-height);transform:rotate(var(--member-card-logo-rotation));transform-origin:center}.member-card-logo img{display:block;width:100%;height:100%;object-fit:contain;object-position:left center;opacity:var(--member-card-logo-opacity);filter:brightness(0) saturate(100%) invert(86%) sepia(24%) saturate(872%) hue-rotate(357deg) brightness(94%)}
.member-card-corner-image{position:absolute;z-index:6;left:var(--member-card-corner-image-x);top:var(--member-card-corner-image-y);width:var(--member-card-corner-image-width);height:var(--member-card-corner-image-height);transform:rotate(var(--member-card-corner-image-rotation));transform-origin:center}.member-card-corner-image[hidden]{display:none}.member-card-corner-image img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;opacity:var(--member-card-corner-image-opacity)}
.member-card-identity,.member-card-credit,.member-card-since{position:absolute;z-index:4}.member-card-identity{left:7%;top:41%;display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:.7rem;row-gap:.18rem;max-width:86%}.member-card-identity strong{grid-column:1/-1;font:600 var(--member-card-name-size)/1.05 var(--display,Georgia,serif);letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.member-card-identity span{color:var(--member-card-accent);font:700 var(--member-card-meta-size)/1.2 var(--mono,monospace);letter-spacing:.12em}.member-card-identity small{grid-column:1/-1;min-width:0;overflow:hidden;color:var(--member-card-muted);font:700 var(--member-card-detail-size)/1.2 var(--sans,sans-serif);letter-spacing:.14em;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.member-card-credit{left:7%;bottom:6%;display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:end;column-gap:.65rem;row-gap:.1rem;max-width:62%}.member-card-credit span{grid-column:1/-1}.member-card-credit span,.member-card-since span{color:var(--member-card-muted);font:650 var(--member-card-detail-size)/1.2 var(--sans,sans-serif)}.member-card-credit strong{color:var(--member-card-accent);font:550 var(--member-card-credit-size)/1 var(--display,Georgia,serif)}.member-card-credit small{grid-column:1/-1;min-width:0;overflow:hidden;color:var(--member-card-muted);font-size:calc(var(--member-card-detail-size) * .82);text-overflow:ellipsis;white-space:nowrap}.member-card-since{right:7%;bottom:8%;text-align:right}.member-card-since strong{display:block;margin-top:.2rem;color:var(--member-card-text);font:750 var(--member-card-meta-size)/1.2 var(--sans,sans-serif)}
.umbral-member-card.is-editable [data-card-layer]{pointer-events:auto;cursor:grab}.umbral-member-card.is-editable [data-card-layer].is-selected{outline:1px solid #f3d77d;outline-offset:3px}.studio-resize-handle{display:none;position:absolute;right:-7px;bottom:-7px;width:14px;height:14px;border:2px solid #132a20;border-radius:3px;background:#f1d784;box-shadow:0 2px 8px rgba(0,0,0,.35);cursor:nwse-resize}.umbral-member-card.is-editable :is(.member-card-logo,.member-card-corner-image).is-selected .studio-resize-handle{display:block}
@media(max-width:620px){.member-card-identity strong{font-size:calc(var(--member-card-name-size) * .76)}.member-card-credit strong{font-size:calc(var(--member-card-credit-size) * .78)}.member-card-identity span,.member-card-since strong{font-size:calc(var(--member-card-meta-size) * .82)}.member-card-identity small,.member-card-credit span,.member-card-credit small,.member-card-since span{font-size:calc(var(--member-card-detail-size) * .78)}}
[data-theme="light"] .umbral-member-card .member-card-identity strong,[data-theme="light"] .umbral-member-card .member-card-since strong{color:var(--member-card-text)!important}[data-theme="light"] .umbral-member-card .member-card-identity span,[data-theme="light"] .umbral-member-card .member-card-credit strong{color:var(--member-card-accent)!important}[data-theme="light"] .umbral-member-card .member-card-identity small,[data-theme="light"] .umbral-member-card .member-card-credit span,[data-theme="light"] .umbral-member-card .member-card-credit small,[data-theme="light"] .umbral-member-card .member-card-since span{color:var(--member-card-muted)!important}

.umbral-reward-celebration {
  position: fixed;
  z-index: 2147482500;
  inset: 0;
  display: grid;
  place-items: start center;
  padding: clamp(1rem, 4vw, 2.4rem);
  pointer-events: none;
  font-family: var(--font-body, "Open Sans", sans-serif);
}

.umbral-reward-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: .9rem;
  width: min(620px, calc(100vw - 2rem));
  padding: 1rem 1.25rem;
  overflow: hidden;
  color: var(--soft, #f8f5e8);
  background: linear-gradient(135deg, rgba(30, 39, 25, .98), rgba(11, 17, 13, .96));
  border: 1px solid rgba(212, 175, 106, .62);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .46), inset 0 1px rgba(255, 255, 255, .12);
  opacity: 0;
  transform: translateY(-24px) scale(.96);
  transition: opacity .35s ease, transform .45s cubic-bezier(.22, 1, .36, 1);
  pointer-events: auto;
}

.umbral-reward-celebration.show .umbral-reward-banner { opacity: 1; transform: none; }
.umbral-reward-banner::after { content: ""; position: absolute; inset: auto -15% 0; height: 2px; background: linear-gradient(90deg, transparent, #d4af6a, #f0e0b8, transparent); }
.umbral-reward-banner strong { display: block; margin-bottom: .2rem; color: #f0e0b8; font-family: var(--font-display, Georgia, serif); font-size: clamp(1.05rem, 2.4vw, 1.35rem); }
.umbral-reward-banner p { margin: 0; color: inherit; font-size: .98rem; }
.umbral-reward-banner small { display: block; margin-top: .3rem; color: rgba(248, 245, 232, .66); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.umbral-reward-spark { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; color: #17140c; font-size: 1.2rem; background: radial-gradient(circle, #fff6cf, #d4af6a 72%); border-radius: 50%; box-shadow: 0 0 28px rgba(212, 175, 106, .55); }
.umbral-reward-close { position: absolute; top: .55rem; right: .65rem; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; color: inherit; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 50%; font: 600 1.2rem/1 sans-serif; cursor: pointer; }
.umbral-reward-close:hover { color: #17140c; background: #f0e0b8; border-color: #f0e0b8; }

.umbral-reward-burst { position: fixed; top: 80px; left: 50%; width: 1px; height: 1px; }
.umbral-reward-burst i { position: absolute; width: var(--reward-size); height: calc(var(--reward-size) * .56); background: var(--reward-color); border-radius: 2px; opacity: 0; animation: umbral-confetti var(--reward-duration) cubic-bezier(.12, .7, .22, 1) var(--reward-delay) both; }
@keyframes umbral-confetti { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--reward-x), var(--reward-y)) rotate(var(--reward-rotation)); } }

[data-theme="light"] .umbral-reward-banner { color: #183024; background: linear-gradient(135deg, rgba(255, 253, 246, .98), rgba(239, 235, 217, .98)); border-color: rgba(126, 95, 35, .45); box-shadow: 0 24px 70px rgba(51, 45, 27, .22), inset 0 1px #fff; }
[data-theme="light"] .umbral-reward-banner strong { color: #65501f; }
[data-theme="light"] .umbral-reward-banner small { color: rgba(24, 48, 36, .66); }
[data-theme="light"] .umbral-reward-close { background: rgba(24,48,36,.06); border-color: rgba(24,48,36,.16); }

@media (prefers-reduced-motion: reduce) {
  .umbral-reward-burst { display: none; }
  .umbral-reward-banner { transition: opacity .2s ease; transform: none; }
  .umbral-reward-celebration.show .umbral-reward-banner { animation: umbral-reward-glow 1.2s ease both; }
  @keyframes umbral-reward-glow { 50% { box-shadow: 0 0 0 8px rgba(212, 175, 106, .12), 0 18px 50px rgba(0, 0, 0, .24); } }
}

/* ============================================================
   UMBRAL · INVESTOR COMMAND: V2 "ATELIER"
   Deep-forest luxury: modern display type, mono instrumentation,
   luminous gold on botanical black. Every surface breathes.
   ============================================================ */

:root {
  --void: var(--umbral-color-canvas);
  --abyss: var(--umbral-color-canvas-subtle);
  --obsidian: var(--umbral-color-surface);
  --canopy: var(--umbral-color-surface-raised);
  --moss: var(--umbral-color-surface-muted);

  --cream: var(--umbral-color-text);
  --soft: var(--umbral-color-text-soft);
  --muted: var(--umbral-color-text-muted);
  --ghost: var(--umbral-color-text-subtle);
  --faint: var(--umbral-color-text-subtle);

  --logo-gold: var(--umbral-color-accent);
  --gold: var(--umbral-color-accent);
  --gold-bright: var(--umbral-color-accent-strong);
  --gold-deep: var(--umbral-color-accent-deep);
  --gold-dim: var(--umbral-color-accent-line);
  --gold-glow: var(--umbral-color-accent-soft);
  --gold-line: var(--umbral-color-border-default);

  --emerald: var(--umbral-color-success);
  --emerald-deep: #2e5231;
  --amber: var(--umbral-color-warning);

  --panel: color-mix(in srgb, var(--umbral-color-surface) 66%, transparent);
  --panel-strong: color-mix(in srgb, var(--umbral-color-surface) 93%, transparent);
  --glass: var(--umbral-color-surface-glass);
  --glass-hover: var(--umbral-color-surface-hover);
  --line: var(--umbral-color-border-default);
  --line-strong: var(--umbral-color-border-strong);
  --hairline: var(--umbral-color-border-subtle);

  --shadow: var(--umbral-shadow-dialog);
  --shadow-soft: var(--umbral-shadow-raised);
  --glow-gold: 0 0 42px rgba(216, 180, 118, .18);

  --display: var(--umbral-font-display);
  --sans: var(--umbral-font-body);
  --mono: var(--umbral-font-mono);

  --ease: var(--umbral-ease-enter);
  --ease-soft: var(--umbral-ease-standard);
  --topbar: 72px;
}

/* ============================================================
   V0.2B EDITORIAL INVESTOR EXPERIENCE
   ============================================================ */
@font-face {
  font-family: "Garet Book";
  src: url("/fonts/Garet-Book.ttf") format("truetype"), url("/fonts/Garet-Book.otf") format("opentype");
  font-display: swap;
  font-weight: 300 600;
}
@font-face {
  font-family: "Matcha Mint";
  src: url("/fonts/Matcha%20Mint.ttf") format("truetype"), url("/fonts/Matcha%20Mint.otf") format("opentype");
  font-display: swap;
}

:root {
  --display: "Matcha Mint", var(--umbral-font-display);
  --sans: "Garet Book", var(--umbral-font-body);
  --topbar: 72px;
  --forest: #153e2d;
}

body, button, input, textarea, select { font-family: var(--sans); }
h1, h2, h3, .document-header h1, .section-bar h2, .insight-heading + h2 { font-family: var(--display); }

[data-theme="light"] {
  --void: var(--umbral-color-canvas);
  --abyss: var(--umbral-color-canvas-subtle);
  --obsidian: var(--umbral-color-surface);
  --canopy: var(--umbral-color-surface-raised);
  --moss: var(--umbral-color-surface-muted);
  --cream: var(--umbral-color-text);
  --soft: var(--umbral-color-text-soft);
  --muted: var(--umbral-color-text-muted);
  --ghost: var(--umbral-color-text-subtle);
  --faint: var(--umbral-color-text-subtle);
  --gold: var(--umbral-color-accent);
  --gold-bright: var(--umbral-color-accent-strong);
  --gold-deep: var(--umbral-color-accent-deep);
  --panel: color-mix(in srgb, var(--umbral-color-surface) 86%, transparent);
  --panel-strong: var(--umbral-color-surface);
  --line: var(--umbral-color-border-default);
  --line-strong: var(--umbral-color-border-strong);
  --hairline: var(--umbral-color-border-subtle);
  --shadow: var(--umbral-shadow-dialog);
  --shadow-soft: var(--umbral-shadow-raised);
}
.topbar::after { display: none; }
.brand-button img { width: clamp(140px, 14vw, 190px); }
[data-theme="light"] .brand-button img { filter: none; }
.search-field { border-radius: 7px; }
.admin-link, .theme-toggle { border-radius: 7px; }
.theme-toggle { min-height: 40px; }

.user-menu-wrap { position: relative; margin-left: .15rem; }
.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 42px;
  max-width: 230px;
  padding: .34rem .65rem .34rem .38rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--soft);
  cursor: pointer;
}
.user-menu-toggle > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-toggle svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.user-avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: none;
  border-radius: 50%;
  background: var(--forest) center / cover;
  color: #fffdf7;
  font-size: .68rem;
  letter-spacing: .08em;
}
.user-menu {
  position: absolute;
  top: calc(100% + .6rem);
  right: 0;
  z-index: 190;
  display: grid;
  width: min(300px, calc(100vw - 24px));
  padding: .55rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-strong);
  box-shadow: var(--shadow-soft);
}
.user-menu-identity { display: grid; padding: .7rem .75rem .85rem; border-bottom: 1px solid var(--hairline); }
.user-menu-identity strong { font-family: var(--display); font-size: 1.08rem; }
.user-menu-identity span { color: var(--ghost); font-size: .72rem; overflow-wrap: anywhere; }
.user-menu a, .user-menu button {
  padding: .72rem .75rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.user-menu a:hover, .user-menu button:hover { background: var(--glass-hover); color: var(--gold-bright); }

.command-shell { --rail-width: 232px; grid-template-columns: var(--rail-width) minmax(0, 1fr) 320px; }
.dashboard.rail-collapsed .command-shell { grid-template-columns: 0 minmax(0, 1fr) 320px; }
.content-shell { background: color-mix(in srgb, var(--obsidian) 42%, transparent); }
.rail-library-switch {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.rail-library-switch button > span { color: var(--gold); font-size: 1rem; text-align: center; }
.rail-library-switch button[aria-pressed="true"] { border-color: transparent; background: var(--gold-glow); color: var(--soft); }
.rail-doc-row { grid-template-columns: 34px minmax(0, 1fr) 8px; padding-inline: .55rem; }
.rail-doc-main strong { font-size: .76rem; }
.rail-doc-main small { font-size: .64rem; }

.command-hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  min-height: 468px;
  padding: clamp(3rem, 6vw, 5.4rem) clamp(2rem, 5vw, 5rem);
}
.hero-copy { max-width: 760px; }
.command-hero h1 { margin-bottom: 1.5rem; font-size: clamp(3.4rem, 5.35vw, 5.8rem); font-weight: 400; line-height: .96; letter-spacing: -.018em; }
.command-hero h1 em { font-family: var(--display); font-style: italic; font-weight: 400; }
.hero-description { max-width: 59ch; margin: 0; color: var(--muted); font-size: clamp(.96rem, 1.25vw, 1.12rem); line-height: 1.7; }
.hero-instrument { right: clamp(2rem, 6vw, 6rem); opacity: .78; }
.hero-instrument svg { width: clamp(245px, 22vw, 370px); }
.hero-instrument small { color: var(--gold); font-size: .66rem; }
.hero-veil::after { opacity: .18; }
.dashboard[data-library="research"] .hero-veil { background: radial-gradient(circle at 78% 30%, rgba(51,112,68,.2), transparent 38%), linear-gradient(145deg, color-mix(in srgb, var(--canopy) 75%, transparent), transparent); }
.dashboard[data-library="property"] .hero-veil { background: radial-gradient(ellipse at 84% 20%, rgba(174,139,73,.2), transparent 42%), radial-gradient(ellipse at 8% 100%, rgba(51,112,68,.2), transparent 48%); }
.dashboard[data-library="saved"] .hero-veil { background: radial-gradient(circle at 22% 90%, rgba(174,139,73,.14), transparent 38%), radial-gradient(circle at 82% 10%, rgba(51,112,68,.16), transparent 42%); }

.deck-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; padding-block: 1.45rem; }
.deck-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: .9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: transparent;
  color: var(--soft);
  font-size: .84rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.deck-action:hover { border-color: var(--gold); background: var(--gold-glow); transform: translateY(-2px); }
.deck-action svg { width: 18px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.7; }
.library-section { padding-top: 2rem; }
.section-bar h2 { font-size: clamp(1.7rem, 2.4vw, 2.35rem); }
.document-list { border: 0; border-radius: 0; background: transparent; }
.document-section { display: grid; margin-bottom: clamp(1.4rem, 3vw, 2.6rem); overflow: hidden; border: 1px solid var(--hairline); border-radius: 12px; background: color-mix(in srgb, var(--obsidian) 62%, transparent); }
.document-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding: 1.2rem 1rem .9rem; border-bottom: 1px solid var(--hairline); }
.document-section-heading div { display: grid; gap: .22rem; }
.document-section-heading span { color: var(--ghost); font: 700 .62rem/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.document-section-heading h2 { margin: 0; color: var(--cream); font-size: clamp(1.35rem, 2.4vw, 2rem); font-weight: 500; }
.document-section-heading > strong { color: var(--gold-bright); font: 700 .78rem/1 var(--mono); }
.document-head, .document-row { grid-template-columns: 48px minmax(250px, 2.5fr) 118px 72px 48px 108px 62px; padding-inline: .55rem; }
.document-head { background: transparent; }
.document-row { border-bottom-color: var(--hairline); }
.doc-date, .doc-version { color: var(--ghost); font-size: .68rem; }
.doc-version { font-family: var(--mono); }
.doc-save { color: var(--ghost); font-size: 1.2rem; cursor: pointer; }
.doc-save.saved { color: var(--gold); }

.command-insights-shell {
  position: sticky;
  top: var(--topbar);
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--topbar));
  overflow: hidden;
  background: color-mix(in srgb, var(--obsidian) 72%, transparent);
}
.command-insights { position: static; height: auto; flex: 1; padding-bottom: .55rem; }
.insight-card { border-radius: 7px; box-shadow: none; }
.question-composer { margin: 0 1rem 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.question-composer p { margin: .45rem 0 .75rem; color: var(--ghost); font-size: .72rem; line-height: 1.5; }
.question-composer textarea { width: 100%; resize: vertical; padding: .7rem; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--soft); font-size: .8rem; }
.question-actions { display: flex; justify-content: space-between; gap: .5rem; margin-top: .65rem; }
.question-actions button, .help-trigger { min-height: 34px; padding: .45rem .7rem; border: 1px solid var(--line-strong); border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; }
#question-send { background: var(--forest); color: #fffdf7; }
#question-status[data-tone="success"] { color: var(--emerald); }
#question-status[data-tone="error"] { color: #bd5a4d; }
.milestone-list li { grid-template-columns: 12px minmax(0, 1fr); }
.milestone-list li strong { font-weight: 400; }
.milestone-list li em { grid-column: 2; }

.document-header { padding: 3.6rem clamp(1.5rem, 4vw, 4.2rem) 2rem; background: linear-gradient(180deg, color-mix(in srgb, var(--canopy) 45%, transparent), transparent); }
.document-header h1 { max-width: 24ch; font-size: clamp(2.8rem, 4.3vw, 4.6rem); }
.document-subtitle { margin-bottom: .75rem; }
.document-meta { margin: 0 0 1rem; color: var(--ghost); }
.document-meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; padding-top: 1rem; border-top: 1px solid var(--hairline); color: var(--ghost); font-size: .7rem; }
.document-meta-line span { display: flex; gap: .35rem; }
.document-meta-line strong { color: var(--muted); font-weight: 400; }
.document-meta-line button { min-height: 36px; padding: .45rem .75rem; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; }
#reader-save { margin-left: auto; color: var(--gold); }
#reader-question { background: var(--forest); color: #fffdf7; }
.reader-body { padding-inline: clamp(1.5rem, 4vw, 4.2rem); }
.reader-body > p:first-of-type::first-letter { float: none; margin: 0; font: inherit; color: inherit; }
.document-callout { border-radius: 6px; background: color-mix(in srgb, var(--moss) 45%, transparent); box-shadow: none; }

.financial-view { min-height: calc(100vh - var(--topbar)); padding: clamp(1.5rem, 3vw, 2.6rem); }
.financial-header { display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.financial-header p { margin: 0 0 .2rem; color: var(--gold); font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; }
.financial-header h1 { margin: 0; font-family: var(--display); font-size: clamp(2.3rem, 4vw, 4rem); font-weight: 400; }
.financial-workbook-meta { display: grid; justify-items: end; color: var(--ghost); font-size: .72rem; }
.financial-workbook-meta strong { color: var(--soft); font-family: var(--display); font-size: 1.05rem; }
.financial-catalog { margin-top: 1rem; }
.financial-workbook-row { display: grid; grid-template-columns: minmax(0, 1fr) 48px; align-items: stretch; border-bottom: 1px solid var(--hairline); }
.financial-workbook-row > button { border: 0; background: transparent; }
.financial-workbook-row > button:first-child { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: .8rem; min-height: 78px; padding: .75rem; color: var(--soft); text-align: left; cursor: pointer; }
.financial-workbook-row > .doc-save { cursor: pointer; }
.workbook-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 5px; background: var(--forest); color: white; font-weight: 700; }
.financial-workbook-row strong { display: block; font-weight: 500; }
.financial-workbook-row small { color: var(--ghost); }
.workbook-version { color: var(--ghost); font-family: var(--mono); font-size: .68rem; }
.financial-toolbar { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; border-bottom: 1px solid var(--line); }
.financial-toolbar > button, .financial-toolbar > a, .financial-sheet-tabs button { min-height: 40px; padding: .55rem .7rem; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); text-decoration: none; cursor: pointer; }
.financial-sheet-tabs { display: flex; flex: 1; overflow-x: auto; }
.financial-sheet-tabs button { flex: none; }
.financial-sheet-tabs button.active { border-bottom-color: var(--forest); color: var(--soft); }
.financial-grid-wrap { max-height: calc(100vh - 260px); min-height: 480px; overflow: auto; border: 1px solid var(--line); background: #fbfbf8; color: #151a16; }
.financial-grid { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; font: 12px/1.25 Arial, sans-serif; }
.financial-grid th, .financial-grid td { min-width: 92px; height: 26px; padding: 4px 7px; border-right: 1px solid #d9ddd9; border-bottom: 1px solid #d9ddd9; white-space: nowrap; }
.financial-grid thead th { position: sticky; top: 0; z-index: 4; background: #ecefeb; text-align: center; }
.financial-grid .row-number { position: sticky; left: 0; z-index: 3; min-width: 40px; width: 40px; background: #ecefeb; color: #667068; text-align: center; }
.financial-cell.input { color: #0000ff; }
.financial-cell.formula { color: #111; background-color: #fafafa; }
.financial-cell.link { color: #008000; }
.financial-legend { display: flex; gap: .55rem 1rem; align-items: center; padding: .65rem .2rem; color: var(--ghost); font-size: .68rem; }
.financial-legend span { width: 10px; height: 10px; }
.financial-legend .input { background: #5f8fff; }
.financial-legend .formula { background: #222; }
.financial-legend .link { background: #1c8a3c; }
.financial-empty { display: grid; place-items: center; min-height: 240px; padding: 2rem; color: var(--ghost); text-align: center; }

.help-popover { position: fixed; z-index: 500; width: 310px; padding: 1rem; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel-strong); color: var(--muted); box-shadow: var(--shadow-soft); }
.help-popover button { position: absolute; top: .4rem; right: .5rem; border: 0; background: none; color: var(--ghost); cursor: pointer; }
.help-popover p { margin: 0 1rem .8rem 0; font-size: .8rem; }
.help-popover a { color: var(--gold-bright); font-size: .74rem; }

@media (max-width: 1180px) {
  .command-shell, .dashboard.rail-collapsed .command-shell { grid-template-columns: var(--rail-width) minmax(0, 1fr); }
  .command-insights-shell { position: fixed; right: 0; bottom: 0; z-index: 90; width: min(350px, 92vw); height: calc(100vh - var(--topbar)); border-left: 1px solid var(--line); transform: translateX(calc(100% - 5px)); transition: transform .3s; }
  .command-insights-shell:focus-within, .command-insights-shell:hover { transform: translateX(0); }
  .command-hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 660px; }
  .hero-instrument { opacity: .25; }
}

@media (max-width: 880px) {
  .admin-link,
  #meeting-link { display: none; }
  .command-shell, .dashboard.rail-collapsed .command-shell { grid-template-columns: 1fr; }
  .rail-library-switch { grid-template-columns: repeat(5, minmax(110px, 1fr)); overflow-x: auto; }
  .command-hero { min-height: 410px; padding: 3.2rem 1.4rem; }
  .command-hero h1 { font-size: clamp(2.8rem, 9vw, 4.8rem); }
  .hero-instrument { right: -40px; }
  .deck-actions { grid-template-columns: 1fr; }
  .document-head { display: none; }
  .document-row { grid-template-columns: 44px minmax(0, 1fr) 40px; }
  .document-row > :not(.doc-number):not(.doc-title-cell):not(.doc-save) { display: none; }
  .financial-view { padding-inline: 1rem; }
}

@media (max-width: 680px) {
  .brand-button img { width: 112px; }
  .theme-toggle-text { display: none; }
  .theme-toggle { padding-inline: .6rem; }
  .user-menu-toggle { max-width: 120px; }
  .user-menu-toggle #user-chip { display: none; }
  .command-hero h1 { font-size: clamp(2.45rem, 12vw, 3.7rem); }
  .command-hero .hero-line { white-space: normal; }
  .hero-instrument { display: none; }
  .document-meta-line { gap: .55rem; }
  #reader-save { margin-left: 0; }
  .financial-header { align-items: start; flex-direction: column; }
  .financial-workbook-meta { justify-items: start; }
}

[data-theme="light"] {
  --void: #f3edda;
  --abyss: #ede6d0;
  --obsidian: #fdf8ea;
  --canopy: #f7f1df;
  --moss: #e6ecd8;

  --cream: #10120c;
  --soft: #10120c;
  --muted: #1b1d16;
  --ghost: #2c3025;
  --faint: #3d4334;

  --gold: #c59b2f;
  --gold-bright: #a77b13;
  --gold-deep: #8a620b;
  --gold-dim: rgba(197, 155, 47, .42);
  --gold-glow: rgba(214, 184, 91, .19);
  --gold-line: rgba(197, 155, 47, .3);

  --emerald: #3e6f3a;
  --emerald-deep: #b9ccab;
  --amber: #8b5f12;

  --panel: rgba(253, 248, 234, .74);
  --panel-strong: rgba(255, 252, 242, .95);
  --glass: rgba(20, 22, 12, .035);
  --glass-hover: rgba(20, 22, 12, .06);
  --line: rgba(60, 48, 22, .16);
  --line-strong: rgba(60, 48, 22, .36);
  --hairline: rgba(20, 22, 12, .09);

  --shadow: 0 32px 90px rgba(46, 40, 22, .2);
  --shadow-soft: 0 16px 42px rgba(46, 40, 22, .14);
  --glow-gold: 0 0 42px rgba(125, 92, 34, .1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100%;
  overflow-x: clip;
  background: var(--void);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--void); }
:focus-visible { outline: 1px solid var(--gold-bright); outline-offset: 4px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Thin luxe scrollbars for inner panes */
.reader-contents {
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) transparent;
}
.rail-document-list::-webkit-scrollbar,
.reader-contents::-webkit-scrollbar { width: 4px; }
.rail-document-list::-webkit-scrollbar-thumb,
.reader-contents::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 4px; }

/* ---------- Atmosphere layers ---------- */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -6;
  background:
    radial-gradient(ellipse 84% 52% at 72% -18%, rgba(216, 180, 118, .1), transparent 62%),
    radial-gradient(ellipse 50% 40% at 96% 74%, rgba(35, 78, 45, .3), transparent 64%),
    radial-gradient(ellipse 52% 38% at 4% 106%, rgba(216, 180, 118, .06), transparent 68%),
    linear-gradient(180deg, #040604 0%, #091009 46%, #050705 100%);
}

[data-theme="light"] .atmosphere {
  background:
    radial-gradient(ellipse 78% 48% at 76% -16%, rgba(125, 92, 34, .16), transparent 64%),
    radial-gradient(ellipse 48% 36% at 2% 104%, rgba(84, 122, 64, .16), transparent 68%),
    linear-gradient(180deg, #fdf8ea 0%, #f3edda 48%, #eae2c9 100%);
}

/* Drifting light with three slow bloom orbs */
.aurora { position: fixed; inset: 0; z-index: -5; pointer-events: none; overflow: clip; }
.aurora span {
  position: absolute;
  width: 56vmax;
  height: 56vmax;
  border-radius: 50%;
  opacity: .55;
}
.aurora span:nth-child(1) {
  top: -24vmax; right: -14vmax;
  background: radial-gradient(circle, rgba(216,180,118,.11) 12%, transparent 62%);
}
.aurora span:nth-child(2) {
  bottom: -28vmax; left: -16vmax;
  background: radial-gradient(circle, rgba(60,118,66,.15) 12%, transparent 60%);
}
.aurora span:nth-child(3) {
  top: 30%; left: 38%;
  width: 42vmax; height: 42vmax;
  background: radial-gradient(circle, rgba(216,180,118,.045) 12%, transparent 66%);
}
[data-theme="light"] .aurora { display: none; }

/* Topographic contour lines, drawn and drifting */
.contour-field {
  position: fixed;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .8;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 34%, black, transparent 88%);
}
.contour {
  stroke: var(--gold);
  stroke-width: 1;
  opacity: .07;
  stroke-dasharray: 8 14;
}
.contour.c2 { opacity: .05; stroke-dashoffset: 60; }
.contour.c3 { opacity: .065; stroke-dashoffset: 26; }
.contour.c4 { opacity: .045; stroke-dashoffset: 84; }
.contour.c5 { opacity: .06; stroke-dashoffset: 42; }
.contour.c6 { opacity: .04; stroke-dashoffset: 108; }
[data-theme="light"] .contour { opacity: .13; }
[data-theme="light"] .contour.c2, [data-theme="light"] .contour.c4, [data-theme="light"] .contour.c6 { opacity: .09; }

.grain {
  position: fixed;
  inset: -40%;
  z-index: -3;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.58'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
[data-theme="light"] .grain { opacity: .035; mix-blend-mode: multiply; }
@keyframes grain { 50% { transform: translate(2%, 1%); } }

/* Reading progress beam */
.reader-progress {
  position: fixed;
  z-index: 220;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold) 55%, var(--gold-bright));
  box-shadow: 0 0 20px rgba(216,180,118,.7), 0 0 4px rgba(245,228,184,.9);
  transition: width .12s linear;
}

/* ============================================================
   THE GATE
   ============================================================ */
.gate {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 2rem;
  overflow: auto;
  isolation: isolate;
}

body.auth-pending #gate,
body.auth-pending #dashboard { display: none !important; }
.auth-pending-screen {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.25rem;
  background: var(--bg);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.auth-pending-screen[hidden] { display: none; }
.auth-pending-screen.auth-exit { opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s ease; }
.auth-pending-mark { width: min(250px, 55vw); height: 66px; background: url("/LOGO/WORDS.png") center / contain no-repeat; }

.gate-backdrop {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: var(--forest);
}

.gate:not([hidden]) .gate-backdrop {
  background: var(--forest) url("/Backgrounds/Page01-v099495b.webp") center 46% / cover no-repeat;
  animation: backdrop-settle 2.4s var(--ease) both;
}
@keyframes backdrop-settle {
  from { transform: scale(1.05); opacity: .6; }
  to { transform: scale(1); opacity: 1; }
}

.gate-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 52% 42%, rgba(216,180,118,.13), transparent 28%),
    radial-gradient(circle at 50% 46%, rgba(6,9,6,.32), rgba(4,6,4,.9) 74%),
    linear-gradient(180deg, rgba(4,6,4,.44), rgba(4,6,4,.8));
  backdrop-filter: blur(3px);
}

[data-theme="light"] .gate-shade {
  background:
    radial-gradient(circle at 52% 42%, rgba(125,92,34,.14), transparent 30%),
    radial-gradient(circle at 50% 46%, rgba(253,248,234,.12), rgba(243,237,218,.82) 74%),
    linear-gradient(180deg, rgba(253,248,234,.4), rgba(234,226,201,.78));
}

/* Still god-rays behind the panel */
.gate-rays {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .38;
  background: conic-gradient(from 190deg at 52% 30%,
    transparent 0deg, rgba(216,180,118,.09) 8deg, transparent 17deg,
    transparent 26deg, rgba(216,180,118,.06) 33deg, transparent 42deg,
    transparent 58deg, rgba(216,180,118,.08) 66deg, transparent 76deg,
    transparent 360deg);
  animation: rays-in 2.6s var(--ease) both;
}
[data-theme="light"] .gate-rays { opacity: .2; }
@keyframes rays-in { from { opacity: 0; } }

.gate-panel {
  position: relative;
  width: min(540px, 100%);
  text-align: center;
  padding: clamp(2.2rem, 6vw, 4.4rem);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(13,19,13,.8), rgba(5,8,5,.88)),
    var(--panel-strong);
  box-shadow: var(--shadow), var(--glow-gold), inset 0 0 0 1px rgba(255,255,255,.035);
  backdrop-filter: blur(24px);
  animation: gate-arrive 1.1s var(--ease) both;
}

[data-theme="light"] .gate-panel {
  background:
    linear-gradient(180deg, rgba(255,252,242,.86), rgba(247,241,223,.92)),
    var(--panel-strong);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.85);
}

@keyframes gate-arrive {
  from { opacity: 0; transform: translateY(26px) scale(.985); filter: blur(10px); }
}

/* Ornamental corner brackets that draw themselves */
.panel-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  pointer-events: none;
  opacity: 0;
  animation: corner-in 1s var(--ease) .55s both;
}
.panel-corner::before, .panel-corner::after {
  content: "";
  position: absolute;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
}
.panel-corner::before { width: 100%; height: 1px; }
.panel-corner::after { width: 1px; height: 100%; }
.panel-corner.tl { top: 12px; left: 12px; }
.panel-corner.tr { top: 12px; right: 12px; transform: rotate(90deg); }
.panel-corner.br { bottom: 12px; right: 12px; transform: rotate(180deg); }
.panel-corner.bl { bottom: 12px; left: 12px; transform: rotate(270deg); }
@keyframes corner-in { from { opacity: 0; scale: .4; } to { opacity: .85; scale: 1; } }

.gate-panel > * { animation: rise-in .9s var(--ease) both; }
.gate-panel > *:nth-child(5) { animation-delay: .12s; }
.gate-panel > *:nth-child(6) { animation-delay: .18s; }
.gate-panel > *:nth-child(7) { animation-delay: .24s; }
.gate-panel > *:nth-child(8) { animation-delay: .3s; }
.gate-panel > *:nth-child(9) { animation-delay: .38s; }
.gate-panel > *:nth-child(10) { animation-delay: .46s; }
.gate-panel > *:nth-child(11) { animation-delay: .54s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }

.gate-logo,
.gate-form {
  width: min(100%, 440px);
}

.gate-form {
  margin-inline: auto;
}

.gate-logo {
  display: block;
  height: auto;
  object-fit: contain;
  max-height: 210px;
  margin: 0 auto .6rem;
  filter: drop-shadow(0 14px 34px rgba(0,0,0,.5));
}
[data-theme="light"] .gate-logo { filter: drop-shadow(0 10px 26px rgba(46,40,22,.22)); }

.gate-rule {
  display: flex;
  align-items: center;
  gap: .7rem;
  width: min(240px, 70%);
  margin: .4rem auto 1.4rem;
}
.gate-rule span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}
.gate-rule span:last-child { background: linear-gradient(90deg, var(--gold-dim), transparent); }
.gate-rule i {
  width: 7px;
  height: 7px;
  rotate: 45deg;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(216,180,118,.8);
  animation: diamond-pulse 3.4s ease-in-out infinite;
}
@keyframes diamond-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(216,180,118,.5); }
  50% { box-shadow: 0 0 18px rgba(216,180,118,.95); }
}

.gate-kicker {
  margin: 0 0 .8rem;
  color: var(--gold);
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 400;
  letter-spacing: .42em;
  text-transform: uppercase;
}

.gate h1 {
  margin: 0 0 .7rem;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(2.4rem, 6.4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: .005em;
  background: linear-gradient(120deg, var(--cream) 30%, var(--gold-bright) 52%, var(--cream) 72%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rise-in .9s var(--ease) both, title-shimmer 7s ease-in-out 1.6s infinite;
}
.gate h1.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@keyframes title-shimmer {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}

.gate-lede { margin: 0 auto 2rem; max-width: 34ch; color: var(--muted); font-size: .95rem; font-weight: 300; }

.gate form { margin: 0 0 1.8rem; }
.gate label {
  display: block;
  margin-bottom: .7rem;
  color: var(--ghost);
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .3em;
  text-align: left;
  text-transform: uppercase;
}

.password-field {
  position: relative;
  display: flex;
  gap: .5rem;
  padding: .45rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.password-field:focus-within {
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 4px var(--gold-glow), 0 0 36px rgba(216,180,118,.14);
}
[data-theme="light"] .password-field {
  background: rgba(255,255,255,.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.password-field input {
  flex: 1;
  min-width: 0;
  padding: .65rem .8rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--cream);
  font-family: var(--mono);
  letter-spacing: .14em;
}
.password-field input:focus { outline: none; }

.password-field button {
  position: relative;
  overflow: hidden;
  padding: .65rem 1.5rem;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(118deg, var(--gold-deep), var(--gold) 55%, var(--gold-deep));
  background-size: 200% 100%;
  color: #120d04;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-position .6s var(--ease), transform .3s var(--ease), box-shadow .4s var(--ease);
}
.password-field button:hover {
  background-position: 100% 0;
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(216,180,118,.32);
}
.password-field button:active { transform: translateY(0); }
.password-field button::after {
  content: "";
  position: absolute;
  inset: 0;
  translate: -110% 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%);
  transition: translate .7s var(--ease);
}
.password-field button:hover::after { translate: 110% 0; }
[data-theme="light"] .password-field button { color: #fdf8ea; background: linear-gradient(118deg, #55401c, #82602a 55%, #55401c); background-size: 200% 100%; }

.gate-input {
  width: 100%;
  margin: 0 0 1rem;
  padding: .8rem .95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  color: var(--cream);
  font-family: var(--mono);
  font-size: .9rem;
  letter-spacing: .06em;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.gate-input::placeholder { color: var(--faint); letter-spacing: .04em; }
.gate-input:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 4px var(--gold-glow);
}
[data-theme="light"] .gate-input { background: rgba(255,255,255,.62); box-shadow: inset 0 1px 0 rgba(255,255,255,.85); }

.gate-error {
  min-height: 1.2em;
  margin: .85rem 0 0;
  color: #e79c8a;
  font-size: .82rem;
  letter-spacing: .02em;
}
[data-theme="light"] .gate-error { color: #a33d24; }

.gate-request-access {
  display: inline-flex;
  margin: .25rem 0 1.4rem;
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
}
.gate-request-access:hover { text-decoration: underline; text-underline-offset: .3rem; }
.gate-request-access:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }
[data-theme="light"] .gate-request-access { color: #77551e; }

.gate-panel.shake { animation: shake .5s var(--ease); }
@keyframes shake { 25% { transform: translateX(-8px); } 50% { transform: translateX(7px); } 75% { transform: translateX(-3px); } }

.confidential {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin: 0;
  color: var(--ghost);
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
}

/* Unlock sequence */
.gate.unlocking { animation: gate-dissolve .75s var(--ease) .18s both; pointer-events: none; }
.gate.unlocking .gate-panel { animation: panel-ascend .7s var(--ease) both; }
@keyframes gate-dissolve { to { opacity: 0; visibility: hidden; } }
@keyframes panel-ascend { to { opacity: 0; transform: translateY(-34px) scale(1.03); filter: blur(14px); } }

/* ============================================================
   DASHBOARD SHELL
   ============================================================ */
.dashboard { min-height: 100vh; }

.dashboard.dashboard-enter .topbar { animation: rise-in .24s var(--ease) both; }
.dashboard.dashboard-enter .document-rail { animation: slide-right .28s var(--ease) .02s both; }
.dashboard.dashboard-enter .content-shell { animation: rise-in .3s var(--ease) .03s both; }
.dashboard.dashboard-enter .command-insights { animation: slide-left .28s var(--ease) .04s both; }
@keyframes slide-right { from { opacity: 0; transform: translateX(-24px); } }
@keyframes slide-left { from { opacity: 0; transform: translateX(24px); } }
.topbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line) 18%, var(--gold-line) 82%, transparent);
}
.rail-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rail-toggle:hover {
  color: var(--gold-bright);
  border-color: var(--gold-dim);
  background: var(--gold-glow);
}
.rail-toggle .rail-toggle-caret { transition: transform .45s var(--ease); transform-origin: 13px 12px; }
.rail-toggle[aria-pressed="true"] { color: var(--gold); border-color: var(--gold-dim); }
.rail-toggle[aria-pressed="true"] .rail-toggle-caret { transform: rotate(180deg); }

.brand-button {
  padding: .3rem 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: opacity .3s var(--ease), filter .3s var(--ease);
}
.brand-button:hover { filter: brightness(1.2); }
.brand-button img { width: 224px; }
[data-theme="light"] .brand-button img { filter: brightness(.26) sepia(.4); }

.search-field {
  display: flex;
  align-items: center;
  gap: .65rem;
  height: 42px;
  max-width: 460px;
  padding-inline: 1rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--glass);
  transition: border-color .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.search-field:focus-within {
  border-color: var(--line-strong);
  background: var(--glass-hover);
  box-shadow: 0 0 0 4px var(--gold-glow);
}
.search-field svg {
  width: 15px;
  flex: none;
  fill: none;
  stroke: var(--ghost);
  stroke-width: 1.7;
  stroke-linecap: round;
  transition: stroke .35s var(--ease);
}
.search-field:focus-within svg { stroke: var(--gold); }
.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  font-size: .86rem;
}
.search-field input::placeholder { color: var(--ghost); }
.search-field input:focus { outline: none; }
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-field kbd {
  flex: none;
  padding: .18rem .5rem;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  color: var(--ghost);
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .1em;
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.secure-dot {
  position: relative;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px rgba(133,184,120,.8);
}
.secure-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--emerald);
  animation: sonar 2.6s var(--ease-soft) infinite;
}
@keyframes sonar {
  from { opacity: .9; transform: scale(.4); }
  to { opacity: 0; transform: scale(1.7); }
}

.theme-toggle,
.lock-button {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .48rem .85rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--glass);
  color: var(--muted);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .06em;
  cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.admin-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .48rem .95rem;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  background: var(--gold-glow);
  color: var(--gold-bright);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.admin-link[hidden] { display: none; }
.admin-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.admin-link:hover { border-color: var(--line-strong); background: color-mix(in srgb, var(--gold) 16%, transparent); transform: translateY(-1px); }
.theme-toggle:hover,
.lock-button:hover {
  color: var(--gold-bright);
  border-color: var(--line-strong);
  background: var(--glass-hover);
  box-shadow: 0 0 22px rgba(216,180,118,.1);
}

.theme-toggle-icon {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.4px solid currentColor;
  overflow: hidden;
  transition: transform .5s var(--ease);
}
.theme-toggle:hover .theme-toggle-icon { transform: rotate(40deg); }
.theme-toggle-icon::before {
  content: "";
  position: absolute;
  inset: 0 50% 0 0;
  background: currentColor;
}

.lock-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

/* ---------- Command shell grid ---------- */
.command-shell {
  --rail-width: 384px;
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr) 332px;
  align-items: start;
  min-height: calc(100vh - var(--topbar));
  transition: grid-template-columns .55s var(--ease);
}

/* Collapsible rail slides out to the left and pops back. */
.dashboard.rail-collapsed .command-shell { grid-template-columns: 0 minmax(0, 1fr) 332px; }
.rail-library-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: color-mix(in srgb, var(--obsidian) 78%, transparent);
}
.rail-library-switch button[aria-pressed="true"] {
  border-color: var(--gold-dim);
  background: var(--gold-glow);
  color: var(--gold-bright);
}
.rail-header p {
  margin: 0;
  color: var(--ghost);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .32em;
  text-transform: uppercase;
}
.rail-header strong {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gold);
}

.rail-group { margin-bottom: .85rem; }

.rail-group-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .45rem .6rem .35rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.rail-group-heading span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: .52rem;
  letter-spacing: .14em;
}
.rail-group-heading strong {
  overflow: hidden;
  color: var(--ghost);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color .3s var(--ease);
}
.rail-group-heading em { color: var(--faint); font-family: var(--mono); font-size: .58rem; font-style: normal; }
.rail-group-heading:hover strong, .rail-group-heading.active strong { color: var(--gold); }

.rail-doc-row {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: start;
  gap: .55rem;
  width: 100%;
  padding: .72rem .7rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  animation: row-in .55s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 14ms);
  transition: background .28s var(--ease), transform .28s var(--ease);
}
@keyframes row-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; } }

.rail-doc-row:hover { background: var(--glass); transform: translateX(2px); }
.rail-doc-row.active { background: linear-gradient(90deg, var(--gold-glow), transparent 85%); }
.rail-doc-row.active::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 18%;
  bottom: 18%;
  width: 2px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(216,180,118,.7);
}

.rail-doc-number {
  padding-top: .08rem;
  color: var(--ghost);
  font-family: var(--mono);
  font-size: .76rem;
  transition: color .28s var(--ease);
}
.rail-doc-row:hover .rail-doc-number, .rail-doc-row.active .rail-doc-number { color: var(--gold); }

.rail-doc-main { display: grid; min-width: 0; }
.rail-doc-main strong {
  overflow: visible;
  color: var(--soft);
  font-size: .95rem;
  font-weight: 550;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: color .28s var(--ease);
}
.rail-doc-row:hover .rail-doc-main strong { color: var(--soft); }
.rail-doc-row.active .rail-doc-main strong { color: var(--gold-bright); }
.rail-doc-main small { margin-top: .18rem; color: var(--ghost); font-size: .72rem; letter-spacing: .02em; }

.rail-doc-state {
  margin-top: .42rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transition: box-shadow .3s var(--ease);
}
.rail-doc-state.read { background: var(--emerald); box-shadow: 0 0 8px rgba(133,184,120,.55); }
.rail-doc-state.progress { background: var(--amber); box-shadow: 0 0 8px rgba(227,185,95,.55); animation: state-breathe 2.8s ease-in-out infinite; }
.rail-doc-state.unread { background: transparent; border: 1px solid var(--faint); }
@keyframes state-breathe { 50% { box-shadow: 0 0 14px rgba(227,185,95,.85); } }
.rail-footer span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.rail-footer button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .3s var(--ease), letter-spacing .3s var(--ease);
}
.rail-footer button:hover { color: var(--gold-bright); letter-spacing: .26em; }

/* ============================================================
   CONTENT SHELL & LIBRARY
   ============================================================ */
.content-shell { min-width: 0; border-right: 1px solid var(--line); }

/* ---------- Hero ---------- */
.command-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  min-height: 420px;
  padding: 3.6rem clamp(1.4rem, 4vw, 3.4rem);
  overflow: clip;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 90% at 84% 10%, rgba(216,180,118,.1), transparent 56%),
    radial-gradient(ellipse 60% 80% at -6% 108%, rgba(46,82,49,.4), transparent 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--canopy) 68%, transparent), transparent 72%);
}
.hero-veil::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(from 210deg at 82% 18%,
    transparent 0deg, rgba(216,180,118,.05) 12deg, transparent 26deg,
    transparent 40deg, rgba(216,180,118,.035) 52deg, transparent 66deg,
    transparent 360deg);
}
.hero-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, var(--gold-line) 0 1px, transparent 1px 96px);
  opacity: .3;
  mask-image: linear-gradient(180deg, transparent, black 40%, transparent);
}

.hero-copy { position: relative; z-index: 1; max-width: none; }

.command-label {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 1.5rem;
  color: var(--gold);
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .34em;
  text-transform: uppercase;
}
.label-tick {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform-origin: left;
  animation: tick-grow 1.2s var(--ease) .3s both;
}
@keyframes tick-grow { from { transform: scaleX(0); } }

.command-hero h1 {
  margin: 0 0 1.7rem;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(2.45rem, 3.9vw, 3.7rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.035em;
  color: var(--cream);
  text-wrap: balance;
}
.command-hero .hero-line { display: block; white-space: nowrap; }
.command-hero h1 em {
  position: relative;
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(115deg, var(--gold-deep), var(--gold) 38%, var(--gold-bright) 55%, var(--gold) 72%, var(--gold-deep));
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: em-shimmer 8s ease-in-out infinite;
}

.hero-instrument {
  position: absolute;
  right: clamp(1.4rem, 3vw, 3rem);
  opacity: .4;
}
@keyframes em-shimmer {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.15rem;
  color: var(--ghost);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.hero-meta span { display: flex; align-items: center; }
.hero-meta span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 1.05rem;
  rotate: 45deg;
  background: var(--gold-dim);
}

/* Hero instrument with a living compass dial */
.hero-instrument {
  display: grid;
  justify-items: center;
  gap: .9rem;
}
.hero-instrument svg { width: clamp(150px, 15vw, 208px); overflow: visible; }
.hero-instrument small {
  color: var(--ghost);
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.dial-halo { fill: none; stroke: var(--gold-line); stroke-width: .6; }
.dial-track { fill: none; stroke: var(--hairline); stroke-width: 1; }
.dial-dash {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.1;
  stroke-dasharray: 2 8;
  opacity: .8;
}
.dial-node { fill: var(--gold-bright); filter: drop-shadow(0 0 5px rgba(216,180,118,.9)); }
.dial-dash-fine {
  fill: none;
  stroke: var(--gold-dim);
  stroke-width: .8;
  stroke-dasharray: 1 5;
}
.dial-spin { transform-origin: 100px 100px; animation: spin 30s linear infinite; }
.dial-spin-reverse { transform-origin: 100px 100px; animation: spin 44s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.dial-core {
  fill: rgba(216,180,118,.04);
  stroke: var(--gold-line);
  stroke-width: 1;
  animation: core-breathe 5s ease-in-out infinite;
}
@keyframes core-breathe {
  50% { fill: rgba(216,180,118,.09); }
}
.dial-needle {
  fill: var(--gold);
  opacity: .9;
  transform-origin: 100px 100px;
  animation: needle-sway 7s var(--ease-soft) infinite alternate;
  filter: drop-shadow(0 0 6px rgba(216,180,118,.5));
}
@keyframes needle-sway {
  from { transform: rotate(-24deg); }
  to { transform: rotate(31deg); }
}
.dial-pin { fill: var(--gold-bright); }

/* ---------- Section bars ---------- */
.featured-section, .library-section { padding: 2.4rem clamp(1.4rem, 4vw, 3.4rem); }
.featured-section { border-bottom: 1px solid var(--hairline); }

.section-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}
.section-bar p {
  margin: 0 0 .5rem;
  color: var(--gold);
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.section-bar h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  font-weight: 400;
  letter-spacing: .002em;
  color: var(--soft);
}
.library-bar #results-count {
  margin: 0;
  color: var(--ghost);
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.cta-button {
  position: relative;
  overflow: hidden;
  flex: none;
  padding: .72rem 1.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(216,180,118,.12), rgba(216,180,118,.04));
  color: var(--gold-bright);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), transform .3s var(--ease);
}
.cta-button:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 34px rgba(216,180,118,.22);
  transform: translateY(-2px);
}
.cta-button::after {
  content: "";
  position: absolute;
  inset: 0;
  translate: -120% 0;
  background: linear-gradient(105deg, transparent 30%, rgba(245,228,184,.28) 50%, transparent 70%);
  transition: translate .8s var(--ease);
}
.cta-button:hover::after { translate: 120% 0; }

/* ---------- Featured queue ---------- */
.featured-queue {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: .8rem;
}

.featured-card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: grid;
  align-content: end;
  gap: .3rem;
  min-height: 176px;
  padding: 1rem 1rem .95rem;
  overflow: clip;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: linear-gradient(170deg, var(--glass), transparent 65%);
  text-align: left;
  cursor: pointer;
  opacity: 0;
  animation: card-in .7s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms);
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease);
}
@keyframes card-in { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; } }

.featured-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(220px circle at var(--mx) var(--my), rgba(216,180,118,.13), transparent 65%);
  transition: opacity .4s var(--ease);
}
.featured-card:hover::before { opacity: 1; }
.featured-card:hover {
  border-color: var(--line-strong);
  background: linear-gradient(170deg, var(--glass-hover), transparent 70%);
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft), 0 0 0 1px var(--gold-line);
}

.featured-index {
  position: absolute;
  top: .1rem;
  right: .65rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 4.4rem;
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-dim);
  transition: color .45s var(--ease), -webkit-text-stroke-color .45s var(--ease);
}
.featured-card:hover .featured-index { color: var(--gold-glow); -webkit-text-stroke-color: var(--gold); }

.featured-card strong {
  position: relative;
  color: var(--soft);
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.32;
  transition: color .35s var(--ease);
}
.featured-card:hover strong { color: var(--gold-bright); }
.featured-card small {
  position: relative;
  color: var(--ghost);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.featured-card em {
  position: relative;
  color: var(--gold);
  font-family: var(--mono);
  font-size: .6rem;
  font-style: normal;
  letter-spacing: .08em;
}

/* ---------- Document list (diligence matrix) ---------- */
.document-list {
  overflow: clip;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: color-mix(in srgb, var(--obsidian) 44%, transparent);
}

.document-head,
.document-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 2.6fr) 96px minmax(0, 1.1fr) 108px 68px;
  gap: .9rem;
  align-items: center;
  width: 100%;
  padding: .8rem 1.15rem;
  text-align: left;
}

.document-head {
  padding-block: .7rem;
  border-bottom: 1px solid var(--hairline);
  background: var(--glass);
  color: var(--faint);
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.document-row {
  position: relative;
  min-height: 62px;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  cursor: pointer;
  opacity: 0;
  animation: row-in .5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 22ms);
  transition: background .3s var(--ease);
}
.document-row:last-child { border-bottom: 0; }
.document-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--gold-bright));
  box-shadow: 0 0 12px rgba(216,180,118,.55);
  transform: scaleY(0);
  transition: transform .35s var(--ease);
}
.document-row:hover { background: linear-gradient(90deg, var(--gold-glow), transparent 55%); }
.document-row:hover::before { transform: scaleY(1); }

.doc-number {
  color: var(--faint);
  font-family: var(--mono);
  font-size: .72rem;
  transition: color .3s var(--ease);
}
.document-row:hover .doc-number { color: var(--gold); }

.doc-title-cell { display: grid; gap: .12rem; min-width: 0; }
.doc-title {
  overflow: visible;
  color: var(--soft);
  font-size: .88rem;
  font-weight: 550;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: color .3s var(--ease);
}
.document-row:hover .doc-title { color: var(--gold-bright); }
.doc-subtitle {
  overflow: hidden;
  color: var(--ghost);
  font-size: .72rem;
  font-weight: 300;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.doc-section { color: var(--faint); font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; }
.doc-category {
  overflow: hidden;
  color: var(--muted);
  font-size: .7rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.doc-status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  justify-self: start;
  padding: .26rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.doc-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.doc-status.read { color: var(--emerald); border-color: rgba(133,184,120,.3); background: rgba(133,184,120,.07); }
.doc-status.read::before { background: var(--emerald); box-shadow: 0 0 8px rgba(133,184,120,.6); }
.doc-status.progress { color: var(--amber); border-color: rgba(227,185,95,.3); background: rgba(227,185,95,.07); }
.doc-status.progress::before { background: var(--amber); box-shadow: 0 0 8px rgba(227,185,95,.6); animation: state-breathe 2.8s ease-in-out infinite; }
.doc-status.unread { color: var(--ghost); }
.doc-status.unread::before { background: transparent; border: 1px solid var(--faint); }

.doc-read-time { color: var(--ghost); font-family: var(--mono); font-size: .64rem; }
.empty-state {
  display: grid;
  justify-items: center;
  gap: .9rem;
  padding: 3.4rem 1rem;
  color: var(--muted);
  text-align: center;
}
.empty-state p { margin: 0; font-family: var(--display); font-size: 1.15rem; font-style: italic; }
.empty-state button {
  padding: .55rem 1.3rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.empty-state button:hover { background: var(--gold-glow); color: var(--gold-bright); }

.mobile-categories { display: none; }

/* ============================================================
   COMMAND INSIGHTS (right)
   ============================================================ */
.command-insights {
  position: sticky;
  top: var(--topbar);
  display: flex;
  flex-direction: column;
  gap: .9rem;
  height: calc(100vh - var(--topbar));
  padding: 1.1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.command-insights::-webkit-scrollbar { display: none; }

.insight-card {
  position: relative;
  padding: 1.25rem 1.2rem;
  overflow: clip;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background:
    linear-gradient(165deg, var(--glass), transparent 60%),
    color-mix(in srgb, var(--obsidian) 52%, transparent);
  opacity: 0;
  animation: card-in .8s var(--ease) both;
  transition: border-color .4s var(--ease);
}
.insight-card:nth-child(2) { animation-delay: .1s; }
.insight-card:nth-child(3) { animation-delay: .2s; }
.insight-card:hover { border-color: var(--line); }
.insight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}

.insight-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: 1rem;
}
.insight-heading span {
  color: var(--ghost);
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.insight-heading strong {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--gold);
}

/* Engagement ring with an animated SVG gauge */
.engagement-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 148px;
  margin: .2rem auto .9rem;
}
.engagement-ring svg { width: 100%; transform: rotate(-90deg); overflow: visible; }
.ring-track { fill: none; stroke: var(--hairline); stroke-width: 5; }
.ring-fill {
  fill: none;
  stroke: url(#ring-gradient);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  filter: drop-shadow(0 0 6px rgba(216,180,118,.5));
  transition: stroke-dashoffset 1.6s var(--ease) .3s;
}
.ring-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .1rem;
  text-align: center;
}
.ring-value span {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--gold-bright);
}
.ring-value small {
  color: var(--ghost);
  font-family: var(--mono);
  font-size: .54rem;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.insight-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}
.insight-stats p {
  display: grid;
  gap: .1rem;
  margin: 0;
  padding: .6rem .4rem;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--glass);
  text-align: center;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.insight-stats p:hover { border-color: var(--gold-line); background: var(--glass-hover); }
.insight-stats strong { font-family: var(--display); font-size: 1.2rem; font-weight: 500; color: var(--soft); }
.insight-stats span {
  color: var(--ghost);
  font-family: var(--mono);
  font-size: .52rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* Progress card */
.sparkline {
  position: relative;
  height: 5px;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  background: var(--hairline);
  overflow: clip;
}
.sparkline span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 24%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-bright));
  box-shadow: 0 0 14px rgba(216,180,118,.5);
  animation: spark-fill 1.6s var(--ease) .4s both;
}
@keyframes spark-fill { from { width: 0; } }
.sparkline span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  translate: -100% 0;
  animation: spark-sheen 3.2s var(--ease-soft) 2s infinite;
}
@keyframes spark-sheen { 40%, 100% { translate: 100% 0; } }

.milestone-list {
  position: relative;
  display: grid;
  gap: .72rem;
  margin: 0;
  padding: 0 0 0 1.1rem;
  list-style: none;
}
.milestone-list::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-dim) 0 44%, var(--hairline) 56%);
}
.milestone-list li {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem;
  color: var(--ghost);
  font-size: .76rem;
}
.milestone-list li span {
  position: absolute;
  left: -1.1rem;
  top: .28em;
  width: 9px;
  height: 9px;
  translate: 0 0;
  border-radius: 50%;
  border: 1px solid var(--faint);
  background: var(--void);
}
.milestone-list li.complete { color: var(--muted); }
.milestone-list li.complete span {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 9px rgba(216,180,118,.6);
}
.milestone-list li.active { color: var(--gold-bright); font-weight: 550; }
.milestone-list li.active span {
  border-color: var(--gold-bright);
  background: var(--gold-glow);
  animation: milestone-pulse 2.4s ease-in-out infinite;
}
@keyframes milestone-pulse {
  50% { box-shadow: 0 0 0 5px rgba(216,180,118,.14); }
}
.milestone-list em {
  flex: none;
  color: var(--faint);
  font-family: var(--mono);
  font-size: .56rem;
  font-style: normal;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.milestone-list li.complete em { color: var(--emerald); }
.milestone-list li.active em { color: var(--amber); }

/* Activity card */
.activity-list { display: grid; gap: .2rem; }
.activity-list button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: .55rem;
  align-items: center;
  width: 100%;
  padding: .5rem .55rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .3s var(--ease);
}
.activity-list button:hover { background: var(--glass-hover); }
.activity-list span { color: var(--faint); font-family: var(--mono); font-size: .64rem; }
.activity-list strong {
  overflow: hidden;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color .3s var(--ease);
}
.activity-list button:hover strong { color: var(--gold-bright); }
.activity-list small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: .58rem;
  white-space: nowrap;
}
.activity-list button:first-child small { color: var(--emerald); }

/* Document-specific insight rail */
.reader-insight-category {
  margin: 0 0 .55rem;
  color: var(--gold);
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.reader-insight-title {
  margin: 0 0 1rem;
  color: var(--cream);
  font-family: var(--display);
  font-size: 1.32rem;
  font-weight: 500;
  line-height: 1.18;
}
.reader-insight-facts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: .85rem;
  border-top: 1px solid var(--hairline);
}
.reader-insight-facts .doc-status,
.reader-insight-time {
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.reader-insight-time { color: var(--ghost); }

.reader-insight-progress {
  height: 5px;
  overflow: clip;
  border-radius: 999px;
  background: var(--hairline);
}
.reader-insight-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-bright));
  box-shadow: 0 0 14px rgba(216,180,118,.5);
  transition: width .25s var(--ease-soft);
}
.reader-insight-note {
  margin: .75rem 0 0;
  color: var(--ghost);
  font-size: .72rem;
  line-height: 1.5;
}
.reader-related-list button { grid-template-columns: 30px minmax(0, 1fr) auto; }
.reader-related-list small,
.reader-related-list button:first-child small { color: var(--gold); }

/* ============================================================
   READER
   ============================================================ */
.reader-grid {
  display: block;
}

.reader-document { min-width: 0; }

.reader-toolbar {
  position: sticky;
  top: var(--topbar);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem clamp(1.2rem, 3.4vw, 2.6rem);
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--void) 68%, transparent);
  backdrop-filter: blur(22px);
}

.reader-toolbar button {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem .5rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 550;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.reader-toolbar button:hover { color: var(--gold-bright); }
.reader-toolbar button:disabled { opacity: .35; cursor: default; }
#reader-back:hover { transform: translateX(-3px); }
.reader-toolbar svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.reader-text-controls {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.reader-toolbar .reader-text-controls button {
  justify-content: center;
  min-width: 40px;
  min-height: 36px;
  padding: .35rem .55rem;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--glass);
  color: var(--soft);
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.reader-toolbar .reader-text-controls button:hover:not(:disabled) {
  border-color: var(--gold-dim);
  background: var(--gold-glow);
}

.document-header {
  position: relative;
  padding: 4rem clamp(1.2rem, 3.4vw, 2.6rem) 2.4rem;
  overflow: clip;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 76% 100% at 82% -12%, rgba(216,180,118,.09), transparent 58%),
    linear-gradient(180deg, color-mix(in srgb, var(--canopy) 55%, transparent), transparent 80%);
}

#reader-category {
  margin: 0 0 1rem;
  color: var(--gold);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  animation: rise-in .7s var(--ease) both;
}

.document-number {
  position: absolute;
  top: 2.2rem;
  right: clamp(1.2rem, 3.4vw, 2.6rem);
  font-family: var(--display);
  font-style: italic;
  font-size: 6.4rem;
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-dim);
  animation: number-in 1s var(--ease) .1s both;
}
@keyframes number-in { from { opacity: 0; transform: translateX(20px); } }

.document-header h1 {
  max-width: 22ch;
  margin: 0 0 .9rem;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.004em;
  color: var(--cream);
  text-wrap: balance;
  animation: rise-in .8s var(--ease) .08s both;
}

.document-subtitle {
  max-width: 62ch;
  margin: 0 0 1.9rem;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.6;
  animation: rise-in .8s var(--ease) .16s both;
}

.document-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: clip;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--hairline);
  animation: rise-in .8s var(--ease) .24s both;
}
.document-meta-grid p {
  margin: 0;
  padding: .68rem .9rem;
  background: color-mix(in srgb, var(--obsidian) 82%, transparent);
  color: var(--ghost);
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.document-meta-grid p:first-child { color: var(--gold); }

/* ---------- Reader body typography ---------- */
.reader-body {
  max-width: none;
  padding: 2.6rem clamp(1.2rem, 3.4vw, 2.6rem) 3rem;
  color: var(--soft);
  font-size: calc(1rem * var(--reader-scale, 1.15));
  font-weight: 300;
  line-height: 1.78;
  animation: rise-in .9s var(--ease) .2s both;
}

.reader-body > p:first-of-type::first-letter {
  float: left;
  margin: .08em .18em 0 0;
  font-family: var(--display);
  font-size: 3.3em;
  font-weight: 500;
  line-height: .82;
  color: var(--gold);
}

.reader-body p { margin: 0 0 1.15em; }
.reader-body strong { color: var(--cream); font-weight: 600; }
.reader-body em { color: var(--gold-bright); }
.reader-body .underline { text-decoration: underline; text-decoration-color: var(--gold-dim); text-underline-offset: 3px; }

.reader-body h2 {
  position: relative;
  margin: 2.6em 0 .8em;
  padding-top: 1.3em;
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .002em;
  color: var(--cream);
}
.reader-body > h2:first-child { margin-top: 0; }
.reader-body h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.reader-body h3 {
  margin: 2em 0 .6em;
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 500;
  color: var(--gold-bright);
}

.reader-body h4 {
  margin: 1.7em 0 .5em;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

.reader-body ul, .reader-body ol { margin: 0 0 1.3em; padding-left: 1.35em; }
.reader-body li { margin-bottom: .5em; }
.reader-body li::marker { color: var(--gold); }

.reader-body .related-diligence-link {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--gold-dim);
  text-decoration-thickness: .06em;
  text-underline-offset: .2em;
  transition: color .25s var(--ease), text-decoration-color .25s var(--ease);
}
.reader-body .related-diligence-link:hover,
.reader-body .related-diligence-link:focus-visible {
  color: var(--gold-bright);
  text-decoration-color: var(--gold);
}

.reader-body blockquote {
  position: relative;
  margin: 1.9em 0;
  padding: 1.1em 1.4em 1.1em 1.7em;
  border-left: 2px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, var(--gold-glow), transparent 78%);
  font-family: var(--display);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--cream);
}

.document-table-wrap {
  margin: 1.9em 0;
  overflow-x: visible;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: color-mix(in srgb, var(--obsidian) 55%, transparent);
}
.reader-body table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .84em; }
.reader-body th {
  padding: .75rem .95rem;
  border-bottom: 1px solid var(--line-strong);
  background: var(--glass);
  color: var(--gold);
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
.reader-body td {
  padding: .68rem .95rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--muted);
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}
.reader-body tr:last-child td { border-bottom: 0; }
.reader-body tbody tr { transition: background .25s var(--ease); }
.reader-body tbody tr:hover { background: var(--glass); }

.document-callout {
  border-color: var(--gold-dim);
  background: linear-gradient(135deg, var(--gold-glow), color-mix(in srgb, var(--obsidian) 58%, transparent));
}
.document-callout table { table-layout: auto; font-size: inherit; }
.document-callout th {
  padding: clamp(1.35rem, 3vw, 2.25rem);
  border: 0;
  background: transparent;
  color: var(--cream);
  font-family: var(--display);
  font-size: 1.22em;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .01em;
  text-align: left;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.research-eyebrow {
  margin: 2.2rem 0 .45rem !important;
  color: var(--gold) !important;
  font-family: var(--mono);
  font-size: .68em;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.research-workbook-sheet + .research-workbook-sheet { margin-top: 3.25rem; }
.research-workbook-table .research-sheet-title th {
  color: var(--cream);
  font-family: var(--display);
  font-size: 1.05em;
  letter-spacing: 0;
  text-transform: none;
}

/* Pagination */
.reader-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
  margin: 0 clamp(1.2rem, 3.4vw, 2.6rem) 3rem;
}
.reader-pagination button {
  display: grid;
  gap: .3rem;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--glass);
  text-align: left;
  cursor: pointer;
  transition: border-color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.reader-pagination button:last-child { text-align: right; }
.reader-pagination button:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: var(--glass-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.reader-pagination button:disabled { opacity: .38; cursor: default; }
.reader-pagination small {
  color: var(--gold);
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.reader-pagination strong {
  overflow: hidden;
  color: var(--soft);
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color .3s var(--ease);
}
.reader-pagination button:hover:not(:disabled) strong { color: var(--gold-bright); }

/* ---------- Reader aside ---------- */
.reader-aside {
  display: none;
}
.reader-aside::-webkit-scrollbar { display: none; }

.reader-aside-card {
  padding: 1.1rem 1.05rem;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background:
    linear-gradient(165deg, var(--glass), transparent 62%),
    color-mix(in srgb, var(--obsidian) 50%, transparent);
  animation: card-in .7s var(--ease) both;
}
.reader-aside-card:nth-child(2) { animation-delay: .08s; }
.reader-aside-card:nth-child(3) { animation-delay: .16s; }

.aside-label {
  margin: 0 0 .8rem;
  color: var(--ghost);
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.aside-progress {
  height: 4px;
  margin-bottom: .55rem;
  border-radius: 999px;
  background: var(--hairline);
  overflow: clip;
}
.aside-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-bright));
  box-shadow: 0 0 10px rgba(216,180,118,.55);
  transition: width .25s var(--ease-soft);
}
#aside-progress-label {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--gold);
}

.reader-contents { display: grid; gap: .1rem; max-height: 42vh; overflow-y: auto; }
.reader-contents button {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: .45rem;
  align-items: baseline;
  width: 100%;
  padding: .45rem .5rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .3s var(--ease);
}
.reader-contents button:hover { background: var(--glass-hover); }
.reader-contents button span { color: var(--faint); font-family: var(--mono); font-size: .58rem; transition: color .3s var(--ease); }
.reader-contents button strong {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 500;
  line-height: 1.35;
  transition: color .3s var(--ease);
}
.reader-contents button:hover strong { color: var(--soft); }
.reader-contents button.active { background: linear-gradient(90deg, var(--gold-glow), transparent 88%); }
.reader-contents button.active span { color: var(--gold); }
.reader-contents button.active strong { color: var(--gold-bright); }
.reader-contents button.active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 22%;
  bottom: 22%;
  width: 2px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(216,180,118,.6);
}
.aside-empty { margin: 0; color: var(--ghost); font-size: .78rem; font-style: italic; }

.related-list { display: grid; gap: .1rem; }
.related-list button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: .45rem;
  align-items: baseline;
  width: 100%;
  padding: .48rem .5rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .3s var(--ease);
}
.related-list button:hover { background: var(--glass-hover); }
.related-list button span { color: var(--faint); font-family: var(--mono); font-size: .6rem; }
.related-list button strong {
  overflow: hidden;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color .3s var(--ease);
}
.related-list button:hover strong { color: var(--gold-bright); }

/* Section jump-links inside the reader's right insight rail. */
.reader-contents-card .insight-contents {
  margin-top: .35rem;
  max-height: 34vh;
  gap: .12rem;
}
.reader-contents-card[hidden] { display: none; }

/* ============================================================
   PROPERTY PAGES (facts, source link, hero, gallery)
   ============================================================ */
.property-overview {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem;
  margin: 0 0 1.9em;
}
.property-fact {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1 1 170px;
  padding: .95rem 1.1rem;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: color-mix(in srgb, var(--obsidian) 55%, transparent);
}
.property-fact span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.property-fact strong {
  color: var(--cream);
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.property-fact small {
  margin-top: .1rem;
  color: var(--ghost);
  font-size: .8rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
/* The "existing elements" box carries the full amenity list, so give it more room. */
.property-fact--detail { flex: 3 1 340px; }
.property-source-link {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: .5rem;
  flex: 1 1 200px;
  padding: 1rem 1.2rem;
  border: 1px solid var(--gold-dim);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-glow), transparent 85%);
  color: var(--gold-bright);
  text-decoration: none;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.property-source-link:hover {
  border-color: var(--line-strong);
  background: linear-gradient(135deg, var(--gold-glow), color-mix(in srgb, var(--gold) 12%, transparent) 90%);
  transform: translateY(-2px);
}
.property-source-link span {
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.property-source-link em {
  font-family: var(--display);
  font-size: 1.02rem;
  font-style: normal;
  overflow-wrap: anywhere;
}
.property-source-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.property-hero {
  margin: 0 0 2.2em;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.property-shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: color-mix(in srgb, var(--obsidian) 70%, transparent);
  cursor: zoom-in;
  overflow: hidden;
}
.property-shot.is-broken { display: none; }
.property-hero-shot { aspect-ratio: 16 / 10; }
.property-hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease);
}
.property-hero:hover .property-hero-shot img { transform: scale(1.03); }

.property-gallery-block { margin-top: 2.8em; }
.property-gallery-note {
  margin: -.4em 0 1.3em !important;
  color: var(--ghost);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.property-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: .7rem;
}
.property-gallery .property-shot {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px solid var(--hairline);
}
.property-gallery .property-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease), opacity .4s var(--ease);
}
.property-gallery .property-shot:hover img { transform: scale(1.06); }
.property-gallery .property-shot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  transition: opacity .26s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--void) 88%, #000 12%);
  backdrop-filter: blur(14px) saturate(1.1);
}
.lightbox-stage {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  transform: scale(.97);
  transition: transform .3s var(--ease);
}
.lightbox.is-open .lightbox-stage { transform: scale(1); }
.lightbox-stage img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  object-fit: contain;
  background: var(--obsidian);
}
.lightbox-stage figcaption {
  color: var(--ghost);
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .22em;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: color-mix(in srgb, var(--obsidian) 70%, transparent);
  color: var(--soft);
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.lightbox-close svg,
.lightbox-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  color: var(--gold-bright);
  border-color: var(--gold-dim);
  background: var(--gold-glow);
}
.lightbox-close { top: clamp(1rem, 3vw, 1.8rem); right: clamp(1rem, 3vw, 1.8rem); }
.lightbox-prev { left: clamp(.6rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(.6rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.06); }
body.lightbox-open { overflow: hidden; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1400px) {
  .topbar-status { display: none; }
  .command-shell { --rail-width: 340px; grid-template-columns: var(--rail-width) minmax(0, 1fr) 306px; }
  .dashboard.rail-collapsed .command-shell { grid-template-columns: 0 minmax(0, 1fr) 306px; }
  .featured-queue { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
  .command-hero h1 { font-size: clamp(2.2rem, 3.6vw, 3.45rem); }
}

@media (max-width: 1120px) {
  .brand-button img { width: 164px; }
  .command-shell { --rail-width: 320px; grid-template-columns: var(--rail-width) minmax(0, 1fr); }
  .dashboard.rail-collapsed .command-shell { grid-template-columns: 0 minmax(0, 1fr); }
  .command-insights { display: none; }
}

@media (max-width: 980px) {
  :root { --topbar: 64px; }
  .topbar-status { display: none; }
  .brand-button { grid-column: 1; }
  .brand-button img { width: 132px; }
  .command-shell,
  .command-shell:has(.reader-view:not([hidden])),
  .dashboard.is-reading .command-shell { display: block; }
  .dashboard.is-reading .document-rail { max-height: 32vh; }
  .content-shell { border-right: 0; }
  .command-hero { grid-template-columns: 1fr; min-height: 360px; }
  .hero-instrument { display: none; }
  .reader-grid { grid-template-columns: 1fr; }
  .reader-document { border-right: 0; }
  .reader-aside {
    position: relative;
    top: 0;
    height: auto;
    border-top: 1px solid var(--line);
  }
  .mobile-categories {
    display: flex;
    gap: .5rem;
    margin: .4rem -1.1rem 1rem;
    padding: 0 1.1rem .45rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .mobile-categories::-webkit-scrollbar { display: none; }
  .mobile-category {
    flex: 0 0 auto;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    padding: .5rem .8rem;
    background: var(--glass);
    color: var(--muted);
    font-size: .64rem;
    letter-spacing: .04em;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
  }
  .mobile-category.active {
    border-color: var(--gold);
    background: var(--gold-glow);
    color: var(--gold-bright);
  }
}

@media (max-width: 720px) {
  :root { --topbar: 112px; }
  body { font-size: 15px; }
  .gate { padding: 1rem; }
  .gate-panel { padding: 2.2rem 1.35rem; border-radius: 16px; }
  .gate-logo { max-height: 168px; }
  .brand-button { grid-column: 1; grid-row: 1; }
  .brand-button img { width: 92px; }
  .top-search kbd { display: none; }
  .theme-toggle { gap: 0; padding: .42rem; }
  .theme-toggle-text { display: none; }
  .lock-button { gap: 0; padding: .42rem .55rem; }
  .lock-button span { display: none; }
  .lock-button svg { width: 18px; }
  .command-hero { min-height: 330px; padding: 3rem 1.15rem; }
  .command-label { font-size: .56rem; letter-spacing: .2em; }
  .label-tick { width: 32px; }
  .command-hero h1 {
    max-width: 14ch;
    font-size: clamp(1.95rem, 9.2vw, 2.65rem);
    line-height: 1.05;
  }
  .command-hero .hero-line { white-space: normal; }
  .hero-meta { font-size: .55rem; gap: .55rem .85rem; }
  .hero-meta span + span::before { margin-right: .75rem; }
  .featured-section, .library-section { padding: 1.35rem 1.05rem; }
  .section-bar { display: grid; align-items: flex-start; }
  .section-bar .cta-button { justify-self: start; }
  .featured-queue {
    display: flex;
    gap: .6rem;
    margin-inline: -1.05rem;
    padding: 0 1.05rem .5rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .featured-queue::-webkit-scrollbar { display: none; }
  .featured-card { flex: 0 0 184px; }
  .document-list { border-radius: 12px; }
  .document-head { display: none; }
  .document-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: .65rem;
    min-height: 76px;
    padding: .85rem .75rem;
  }
  .doc-section, .doc-category, .doc-read-time { display: none; }
  .doc-status {
    align-self: start;
    margin-top: .2rem;
    padding: .3rem;
    font-size: 0;
    gap: 0;
  }
  .doc-title { white-space: normal; }
  .doc-subtitle {
    display: -webkit-box;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .reader-toolbar { top: var(--topbar); padding-left: 1rem; padding-right: 1rem; }
  #reader-back { font-size: 0; gap: 0; }
  .reader-toolbar svg { width: 20px; }
  .document-header { padding: 3rem 1rem 2rem; }
  .document-number { top: 2.5rem; right: 1rem; font-size: 4.2rem; }
  .document-header h1 { padding-right: .75rem; font-size: clamp(2rem, 9.5vw, 3rem); }
  .document-meta-grid { grid-template-columns: 1fr; }
  .reader-body { padding-left: 1rem; padding-right: 1rem; }
  .document-table-wrap:not(.document-callout) table,
  .document-table-wrap:not(.document-callout) thead,
  .document-table-wrap:not(.document-callout) tbody,
  .document-table-wrap:not(.document-callout) tr,
  .document-table-wrap:not(.document-callout) td {
    display: block;
    width: 100%;
  }
  .document-table-wrap:not(.document-callout) thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
  }
  .document-table-wrap:not(.document-callout) tbody tr {
    padding: .55rem 0;
    border-bottom: 1px solid var(--hairline);
  }
  .document-table-wrap:not(.document-callout) tbody tr:last-child { border-bottom: 0; }
  .document-table-wrap:not(.document-callout) tbody td {
    display: grid;
    grid-template-columns: minmax(6.5rem, .42fr) minmax(0, 1fr);
    gap: .85rem;
    padding: .7rem .8rem;
    border: 0;
  }
  .document-table-wrap:not(.document-callout) tbody td::before {
    content: attr(data-label);
    color: var(--gold);
    font-family: var(--mono);
    font-size: .68em;
    font-weight: 600;
    letter-spacing: .08em;
    line-height: 1.45;
    text-transform: uppercase;
  }
  .research-workbook-table .research-sheet-columns { display: none !important; }
  .research-workbook-table .research-sheet-title,
  .research-workbook-table .research-sheet-title th {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
  }
  .document-callout table,
  .document-callout thead,
  .document-callout tr,
  .document-callout th { display: block; width: 100%; }
  .reader-pagination { grid-template-columns: 1fr; margin-left: 1rem; margin-right: 1rem; }
  .reader-pagination button:last-child { text-align: left; }
  .reader-aside { padding: 1rem; }
}

/* ============================================================
   MOTION & PRINT
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .grain, .gate-backdrop, .gate-rays, .aurora span, .contour { animation: none; }
  .ring-fill { transition: none; }
}

@media print {
  body { background: #fff; color: #111; }
  .atmosphere,
  .aurora,
  .contour-field,
  .grain,
  .reader-progress,
  .command-insights,
  .reader-toolbar,
  .reader-aside,
  .reader-pagination { display: none !important; }
  .command-shell, .reader-grid { display: block; }
  .content-shell, .reader-document { border: 0; }
  .document-header { padding: 1cm 0; border-color: #aaa; background: transparent; }
  .document-header h1, .reader-body h2, .reader-body h3, .reader-body h4 { color: #111; }
  .document-header #reader-category, .document-subtitle, .reader-body em { color: #705625; }
  .document-number { color: #ddd; -webkit-text-stroke: 0; }
  .document-meta-grid { border-color: #aaa; background: #aaa; }
  .document-meta-grid p { color: #333; background: #fff; }
  .reader-body { max-width: none; padding: 0; color: #222; font-size: 11pt; }
  .reader-body > p:first-of-type::first-letter { float: none; margin: 0; font: inherit; color: inherit; }
  .reader-body h2 { border-color: #bbb; break-after: avoid; }
  .document-table-wrap { overflow: visible; break-inside: avoid; border-color: #aaa; }
  .reader-body th, .reader-body td { color: #111; border-color: #aaa; background: transparent; }
}

/* V0.2B EDITORIAL INVESTOR EXPERIENCE
   ============================================================ */
@font-face {
  font-family: "Garet Book";
  src: url("/fonts/Garet-Book.ttf") format("truetype"), url("/fonts/Garet-Book.otf") format("opentype");
  font-display: swap;
  font-weight: 300 600;
}
@font-face {
  font-family: "Matcha Mint";
  src: url("/fonts/Matcha%20Mint.ttf") format("truetype"), url("/fonts/Matcha%20Mint.otf") format("opentype");
  font-display: swap;
}

:root {
  --display: "Matcha Mint", Georgia, serif;
  --sans: "Garet Book", Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  --topbar: 72px;
  --forest: #153e2d;
  --logo-gold: #d6b85b;
  --gold: #d6b85b;
  --gold-bright: #f0d989;
  --gold-deep: #b8871e;
  --gold-dim: rgba(214, 184, 91, .36);
  --gold-glow: rgba(214, 184, 91, .17);
  --gold-line: rgba(214, 184, 91, .22);
}

body, button, input, textarea, select { font-family: var(--sans); }
h1, h2, h3, .document-header h1, .section-bar h2, .insight-heading + h2 { font-family: var(--display); }

[data-theme="light"] {
  --void: #f7f4eb;
  --abyss: #eee9dc;
  --obsidian: #fffdf7;
  --canopy: #f3f1e8;
  --moss: #e8eee4;
  --cream: #10241a;
  --soft: #183126;
  --muted: #48584f;
  --ghost: #68736d;
  --faint: #7c8680;
  --gold: #c59b2f;
  --gold-bright: #a77b13;
  --gold-deep: #8a620b;
  --gold-dim: rgba(197, 155, 47, .42);
  --gold-glow: rgba(214, 184, 91, .19);
  --gold-line: rgba(197, 155, 47, .3);
  --panel: rgba(255, 253, 247, .86);
  --panel-strong: #fffdf7;
  --line: rgba(21, 62, 45, .16);
  --line-strong: rgba(21, 62, 45, .32);
  --hairline: rgba(21, 62, 45, .11);
  --shadow: 0 28px 70px rgba(39, 48, 38, .13);
  --shadow-soft: 0 14px 36px rgba(39, 48, 38, .1);
}

[data-theme="light"] .password-field button {
  border-color: #e0c56e;
  background: linear-gradient(135deg, #f2dda3, var(--logo-gold));
  color: #153e2d;
  box-shadow: 0 10px 24px rgba(150, 111, 16, .16);
}
[data-theme="light"] .password-field button:hover {
  border-color: #f0d989;
  filter: saturate(1.08) brightness(1.02);
}
.topbar::after { display: none; }
.brand-button img { width: clamp(140px, 14vw, 190px); }
[data-theme="light"] .brand-button img { filter: none; }
.search-field { border-radius: 7px; }
.admin-link, .theme-toggle { border-radius: 7px; }
.theme-toggle {
  min-height: 40px;
  border-color: var(--gold-dim);
  background: linear-gradient(135deg, rgba(240, 217, 137, .2), rgba(214, 184, 91, .08));
  color: var(--gold-bright);
}

.user-menu-wrap { position: relative; margin-left: .15rem; }
.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 42px;
  max-width: 230px;
  padding: .34rem .65rem .34rem .38rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--soft);
  cursor: pointer;
}
.user-menu-toggle > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-toggle svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.user-avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: none;
  border-radius: 50%;
  background: var(--forest) center / cover;
  color: #fffdf7;
  font-size: .68rem;
  letter-spacing: .08em;
}
.user-menu {
  position: absolute;
  top: calc(100% + .6rem);
  right: 0;
  z-index: 190;
  display: grid;
  width: min(300px, calc(100vw - 24px));
  padding: .55rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-strong);
  box-shadow: var(--shadow-soft);
}
.user-menu-identity { display: grid; padding: .7rem .75rem .85rem; border-bottom: 1px solid var(--hairline); }
.user-menu-identity strong { font-family: var(--display); font-size: 1.08rem; }
.user-menu-identity span { color: var(--ghost); font-size: .72rem; overflow-wrap: anywhere; }
.user-menu a, .user-menu button {
  padding: .72rem .75rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.user-menu a:hover, .user-menu button:hover { background: var(--glass-hover); color: var(--gold-bright); }

.command-shell { --rail-width: 320px; grid-template-columns: var(--rail-width) minmax(0, 1fr); }
.dashboard.rail-collapsed .command-shell { grid-template-columns: 0 minmax(0, 1fr); }
.content-shell { background: color-mix(in srgb, var(--obsidian) 42%, transparent); }
.rail-library-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.rail-library-switch button:hover { border-color: var(--line-strong); background: var(--glass-hover); color: var(--soft); transform: translateY(-1px); }
.rail-library-switch button > span { color: var(--gold); font-size: 1.25rem; line-height: 1; text-align: left; }
.rail-library-switch button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-glow); color: var(--soft); }
.dashboard[data-library="dashboard"] .rail-header-meta,
.dashboard[data-library="dashboard"] .rail-document-list { display: none; }
.rail-header-meta p { font-size: .72rem; }
.rail-header-meta strong { font-size: 1.05rem; }
.rail-doc-row { grid-template-columns: 34px minmax(0, 1fr) 8px; padding-inline: .55rem; }
.rail-doc-main strong { font-size: .88rem; line-height: 1.3; }
.rail-doc-main small { font-size: .72rem; }

.command-hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  min-height: 468px;
  padding: clamp(3rem, 6vw, 5.4rem) clamp(2rem, 5vw, 5rem);
}
.hero-copy { max-width: 100%; min-width: 0; }
.command-hero h1 { margin-bottom: 1.5rem; font-size: clamp(3.05rem, 4vw, 4.45rem); font-weight: 400; line-height: .98; letter-spacing: -.018em; }
.command-hero h1 em { font-family: var(--display); font-style: italic; font-weight: 400; }
.hero-description { max-width: 59ch; margin: 0; color: var(--muted); font-size: clamp(.96rem, 1.25vw, 1.12rem); line-height: 1.7; }
.hero-instrument { right: clamp(2rem, 6vw, 6rem); opacity: .78; }
.hero-instrument svg { width: clamp(245px, 22vw, 370px); }
.hero-instrument small { color: var(--gold); font-size: .66rem; }
.hero-veil::after { opacity: .18; }
.dashboard[data-library="research"] .hero-veil { background: radial-gradient(circle at 78% 30%, rgba(51,112,68,.2), transparent 38%), linear-gradient(145deg, color-mix(in srgb, var(--canopy) 75%, transparent), transparent); }
.dashboard[data-library="property"] .hero-veil { background: radial-gradient(ellipse at 84% 20%, rgba(174,139,73,.2), transparent 42%), radial-gradient(ellipse at 8% 100%, rgba(51,112,68,.2), transparent 48%); }
.dashboard[data-library="saved"] .hero-veil { background: radial-gradient(circle at 22% 90%, rgba(174,139,73,.14), transparent 38%), radial-gradient(circle at 82% 10%, rgba(51,112,68,.16), transparent 42%); }

.deck-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; padding-block: 1.45rem; }
.deck-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: .9rem 1rem;
  border: 1px solid #e0c56e;
  border-radius: 6px;
  background: linear-gradient(135deg, #f2dda3, var(--logo-gold));
  color: #153e2d;
  font-size: .84rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(150, 111, 16, .12);
  transition: filter .2s, box-shadow .2s, transform .2s;
}
.deck-action:hover { border-color: #f0d989; box-shadow: 0 14px 32px rgba(150, 111, 16, .22); filter: saturate(1.08) brightness(1.02); transform: translateY(-2px); }
.deck-action svg { width: 18px; flex: none; fill: none; stroke: #153e2d; stroke-width: 1.7; }
.library-section { padding-top: 2rem; }
.section-bar h2 { font-size: clamp(1.7rem, 2.4vw, 2.35rem); }
.document-list { border: 0; border-radius: 0; background: transparent; }
.document-head, .document-row { grid-template-columns: 48px minmax(250px, 2.5fr) 118px 72px 48px 108px 62px; padding-inline: .55rem; }
.document-head { background: transparent; }
.document-row { border-bottom-color: var(--hairline); }
.doc-date, .doc-version { color: var(--ghost); font-size: .68rem; }
.doc-version { font-family: var(--mono); }
.doc-save { color: var(--ghost); font-size: 1.2rem; cursor: pointer; }
.doc-save.saved { color: var(--gold); }

.command-insights-shell {
  position: sticky;
  top: var(--topbar);
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--topbar));
  overflow: hidden;
  background: color-mix(in srgb, var(--obsidian) 72%, transparent);
}
.command-insights { position: static; display: flex; height: auto; flex: 1; padding-bottom: .55rem; }
.insight-card { border-radius: 7px; box-shadow: none; }
.question-composer { margin: 0 1rem 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.question-composer p { margin: .45rem 0 .75rem; color: var(--ghost); font-size: .72rem; line-height: 1.5; }
.question-composer textarea { width: 100%; resize: vertical; padding: .7rem; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--soft); font-size: .8rem; }
.question-actions { display: flex; justify-content: space-between; gap: .5rem; margin-top: .65rem; }
.question-actions button, .help-trigger { min-height: 34px; padding: .45rem .7rem; border: 1px solid var(--line-strong); border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; }
#question-send { background: var(--forest); color: #fffdf7; }
#question-status[data-tone="success"] { color: var(--emerald); }
#question-status[data-tone="error"] { color: #bd5a4d; }
.milestone-list li { grid-template-columns: 12px minmax(0, 1fr); }
.milestone-list li strong { font-weight: 400; }
.milestone-list li em { grid-column: 2; }

.document-header { padding: 3.6rem clamp(1.5rem, 4vw, 4.2rem) 2rem; background: linear-gradient(180deg, color-mix(in srgb, var(--canopy) 45%, transparent), transparent); }
.document-header h1 { max-width: 24ch; font-size: clamp(2.8rem, 4.3vw, 4.6rem); }
.document-subtitle { margin-bottom: .75rem; }
.document-meta { margin: 0 0 1rem; color: var(--ghost); }
.document-meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; padding-top: 1rem; border-top: 1px solid var(--hairline); color: var(--ghost); font-size: .7rem; }
.document-meta-line span { display: flex; gap: .35rem; }
.document-meta-line strong { color: var(--muted); font-weight: 400; }
.document-meta-line button { min-height: 36px; padding: .45rem .75rem; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; }
#reader-save { margin-left: auto; color: var(--gold); }
#reader-question { background: var(--forest); color: #fffdf7; }
.reader-body { padding-inline: clamp(1.5rem, 4vw, 4.2rem); }
.reader-body > p:first-of-type::first-letter { float: none; margin: 0; font: inherit; color: inherit; }
.document-callout { border-radius: 6px; background: color-mix(in srgb, var(--moss) 45%, transparent); box-shadow: none; }

.financial-view { min-height: calc(100vh - var(--topbar)); padding: clamp(1.5rem, 3vw, 2.6rem); }
.financial-header { display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.financial-header p { margin: 0 0 .2rem; color: var(--gold); font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; }
.financial-header h1 { margin: 0; font-family: var(--display); font-size: clamp(2.3rem, 4vw, 4rem); font-weight: 400; }
.financial-workbook-meta { display: grid; justify-items: end; color: var(--ghost); font-size: .72rem; }
.financial-workbook-meta strong { color: var(--soft); font-family: var(--display); font-size: 1.05rem; }
.financial-catalog { margin-top: 1rem; }
.financial-workbook-row { display: grid; grid-template-columns: minmax(0, 1fr) 48px; align-items: stretch; border-bottom: 1px solid var(--hairline); }
.financial-workbook-row > button { border: 0; background: transparent; }
.financial-workbook-row > button:first-child { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: .8rem; min-height: 78px; padding: .75rem; color: var(--soft); text-align: left; cursor: pointer; }
.financial-workbook-row > .doc-save { cursor: pointer; }
.workbook-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 5px; background: var(--forest); color: white; font-weight: 700; }
.financial-workbook-row strong { display: block; font-weight: 500; }
.financial-workbook-row small { color: var(--ghost); }
.workbook-version { color: var(--ghost); font-family: var(--mono); font-size: .68rem; }
.financial-toolbar { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; border-bottom: 1px solid var(--line); }
.financial-toolbar > button, .financial-toolbar > a, .financial-sheet-tabs button { min-height: 40px; padding: .55rem .7rem; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); text-decoration: none; cursor: pointer; }
.financial-sheet-tabs { display: flex; flex: 1; overflow-x: auto; }
.financial-sheet-tabs button { flex: none; }
.financial-sheet-tabs button.active { border-bottom-color: var(--forest); color: var(--soft); }
.financial-grid-wrap { max-height: calc(100vh - 260px); min-height: 480px; overflow: auto; border: 1px solid var(--line); background: #fbfbf8; color: #151a16; }
.financial-grid { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; font: 12px/1.25 Arial, sans-serif; }
.financial-grid th, .financial-grid td { min-width: 92px; height: 26px; padding: 4px 7px; border-right: 1px solid #d9ddd9; border-bottom: 1px solid #d9ddd9; white-space: nowrap; }
.financial-grid thead th { position: sticky; top: 0; z-index: 4; background: #ecefeb; text-align: center; }
.financial-grid .row-number { position: sticky; left: 0; z-index: 3; min-width: 40px; width: 40px; background: #ecefeb; color: #667068; text-align: center; }
.financial-cell.input { color: #0000ff; }
.financial-cell.formula { color: #111; background-color: #fafafa; }
.financial-cell.link { color: #008000; }
.financial-legend { display: flex; gap: .55rem 1rem; align-items: center; padding: .65rem .2rem; color: var(--ghost); font-size: .68rem; }
.financial-legend span { width: 10px; height: 10px; }
.financial-legend .input { background: #5f8fff; }
.financial-legend .formula { background: #222; }
.financial-legend .link { background: #1c8a3c; }
.financial-empty { display: grid; place-items: center; min-height: 240px; padding: 2rem; color: var(--ghost); text-align: center; }

.help-popover { position: fixed; z-index: 500; width: 310px; padding: 1rem; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel-strong); color: var(--muted); box-shadow: var(--shadow-soft); }
.help-popover button { position: absolute; top: .4rem; right: .5rem; border: 0; background: none; color: var(--ghost); cursor: pointer; }
.help-popover p { margin: 0 1rem .8rem 0; font-size: .8rem; }
.help-popover a { color: var(--gold-bright); font-size: .74rem; }

@media (max-width: 1180px) {
  .command-shell, .dashboard.rail-collapsed .command-shell { grid-template-columns: var(--rail-width) minmax(0, 1fr); }
  .command-hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 660px; }
  .hero-instrument { opacity: .25; }
}

.question-modal { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 1rem; }
.question-modal[hidden] { display: none; }
.question-modal-backdrop { position: absolute; inset: 0; background: rgba(2,5,3,.7); backdrop-filter: blur(10px); }
.question-modal .question-composer { position: relative; z-index: 1; width: min(620px,100%); margin: 0; padding: 1.4rem; border-radius: 18px; box-shadow: 0 30px 90px rgba(0,0,0,.4); }
.question-modal .question-composer > header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.question-modal .question-composer > header span { color: var(--gold); font: 750 .58rem var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.question-modal .question-composer h2 { margin: .3rem 0 0; color: var(--cream); font: 500 1.7rem var(--display); }
.question-modal .question-composer > header button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: var(--glass); font-size: 1.25rem; cursor: pointer; }
.question-modal .question-composer textarea { min-height: 150px; }
body.question-modal-open { overflow: hidden; }

@media (max-width: 880px) {
  .brand-button { grid-column: 2; grid-row: 1; }
  .admin-link,
  #meeting-link { display: none; }
  .command-shell, .dashboard.rail-collapsed .command-shell { grid-template-columns: 1fr; }
  .rail-library-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .command-hero { min-height: 410px; padding: 3.2rem 1.4rem; }
  .command-hero h1 { font-size: clamp(2.8rem, 9vw, 4.8rem); }
  .hero-instrument { right: -40px; }
  .deck-actions { grid-template-columns: 1fr; }
  .document-head { display: none; }
  .document-row { grid-template-columns: 44px minmax(0, 1fr) 40px; }
  .document-row > :not(.doc-number):not(.doc-title-cell):not(.doc-save) { display: none; }
  .financial-view { padding-inline: 1rem; }
}

@media (max-width: 680px) {
  .brand-button img { width: 112px; }
  .theme-toggle-text { display: none; }
  .theme-toggle { padding-inline: .6rem; }
  .user-menu-toggle { max-width: 120px; }
  .user-menu-toggle #user-chip { display: none; }
  .command-hero h1 { font-size: clamp(2.45rem, 12vw, 3.7rem); }
  .command-hero .hero-line { white-space: normal; }
  .hero-instrument { display: none; }
  .document-meta-line { gap: .55rem; }
  #reader-save { margin-left: 0; }
  .financial-header { align-items: start; flex-direction: column; }
  .financial-workbook-meta { justify-items: start; }
}

/* V0.4.1B navigation, financial library, and typography refinements. */
@font-face {
  font-family: "Open Sans";
  src: url("/fonts/OpenSans-Variable.ttf?v=09966b") format("truetype");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("/fonts/OpenSans-Italic-Variable.ttf?v=09966b") format("truetype");
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --display: var(--umbral-font-display);
  --sans: var(--umbral-font-body);
  --mono: var(--umbral-font-mono);
}

html,
body,
body * {
  font-family: "Open Sans", Arial, sans-serif !important;
}

:root[data-theme="light"],
[data-theme="light"] {
  --cream: var(--umbral-color-text);
  --soft: var(--umbral-color-text-soft);
  --muted: var(--umbral-color-text-muted);
  --ghost: var(--umbral-color-text-muted);
  --faint: var(--umbral-color-text-subtle);
  --text: var(--umbral-color-text);
  --text-soft: var(--umbral-color-text-soft);
  --text-muted: var(--umbral-color-text-muted);
  color: var(--umbral-color-text);
}

[data-theme="light"] body,
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
  color: #171a18;
}

/* Wider, calmer left navigation. */
.command-shell {
  --rail-width: 340px;
  position: relative;
  grid-template-columns: var(--rail-width) minmax(0, 1fr) 320px;
}

.dashboard.rail-collapsed .command-shell {
  grid-template-columns: 0 minmax(0, 1fr) 320px;
}

.rail-brand .brand-button {
  display: grid;
  place-items: center;
  width: 90%;
  padding: .25rem 0;
}

.rail-brand .brand-button img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

.rail-menu-bar p {
  margin: 0 0 .18rem;
  color: var(--ghost);
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.rail-menu-bar h2 {
  margin: 0;
  color: var(--soft);
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.2;
}

.rail-library-switch {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}

.rail-footer a {
  color: var(--gold);
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.rail-header-meta p { font-size: .78rem; }
.rail-header-meta strong { font-size: 1.15rem; }
.rail-doc-row { min-height: 68px; }
.rail-doc-number { font-size: .76rem; font-weight: 700; }
.rail-doc-main strong { font-size: .96rem; font-weight: 650; line-height: 1.34; }
.rail-doc-main small { font-size: .78rem; line-height: 1.35; }
.rail-doc-state.available { background: var(--gold); }

[data-theme="light"] .document-rail,
[data-theme="light"] .rail-menu-bar h2,
[data-theme="light"] .rail-library-switch button,
[data-theme="light"] .rail-library-switch button[aria-pressed="true"],
[data-theme="light"] .rail-doc-row,
[data-theme="light"] .rail-doc-main strong,
[data-theme="light"] .rail-doc-main small,
[data-theme="light"] .rail-group-heading,
[data-theme="light"] .rail-header-meta p {
  color: #171a18;
}

[data-theme="light"] .rail-menu-bar p { color: #303833; }

/* Prevent the italic word from clipping at its trailing edge. */
.command-hero h1,
.command-hero .hero-line,
.command-hero h1 em {
  overflow: visible;
}

.command-hero h1 em {
  display: inline-block;
  padding-right: .16em;
  margin-right: -.16em;
}

/* Financials now opens with the same command language as every library. */
.financial-view { padding: 0; }

.financial-library-section {
  padding: clamp(1.5rem, 3vw, 2.8rem) clamp(1.4rem, 4vw, 3.4rem) 3rem;
}

.financial-header h2 {
  margin: 0;
  color: var(--soft);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 650;
}

/* Compact intelligence summary and more readable question composer. */
.intelligence-card { padding: .95rem 1rem; }
.intelligence-card .insight-heading { margin-bottom: .65rem; }
.intelligence-card .insight-stats p { padding: .48rem .3rem; }
.intelligence-card .insight-stats strong { font-size: 1.05rem; }
.intelligence-card .insight-stats span { font-size: .64rem; }

.question-composer .insight-heading span {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .15em;
}

.question-composer p { font-size: .82rem; }
.question-composer textarea { font-size: .92rem; }
.question-actions button { font-size: .86rem; font-weight: 650; }

@media (max-width: 1400px) {
  .command-shell {
    --rail-width: 330px;
    grid-template-columns: var(--rail-width) minmax(0, 1fr) 306px;
  }
  .dashboard.rail-collapsed .command-shell { grid-template-columns: 0 minmax(0, 1fr) 306px; }
}

@media (max-width: 1120px) {
  .command-shell {
    --rail-width: 320px;
    grid-template-columns: var(--rail-width) minmax(0, 1fr);
  }
  .dashboard.rail-collapsed .command-shell { grid-template-columns: 0 minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .financial-library-section { padding-inline: 1rem; }
}

/* V0.4.2B sitewide typography refinement. */
html { font-size: 17px; }
body { font-weight: 500; }
:where(p, li, td, dd, label, input, textarea, select, button) { font-weight: 500; }

.reader-body,
.document-list,
.financial-workbook,
.hero-description { font-size: 1.01rem; }

.reader-body p,
.reader-body li,
.document-row p,
.hero-description { font-weight: 500; }

[data-theme="light"] :where(body, p, li, td, th, label, input, textarea, select, .rail-doc-main strong, .rail-doc-main small) {
  color: #171a18;
}

@media (max-width: 760px) {
  html { font-size: 16px; }
}

/* V0.4.4.7B member dashboard actions. */
#member-dashboard-view {
  overflow: hidden;
}

.dashboard-actions {
  display: grid;
  gap: 8px;
  padding: 12px 14px 18px;
  overflow-y: auto;
}
.dashboard-actions[hidden] { display: none; }
.dashboard-actions > p {
  margin: 2px 2px 5px;
  color: var(--faint);
  font: 750 .58rem var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.dashboard-action {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 1px 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--glass);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.dashboard-action:hover {
  transform: translateY(-1px);
  border-color: var(--gold-dim);
  background: var(--glass-strong);
}
.dashboard-action > span {
  display: grid;
  place-items: center;
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: var(--gold);
}
.dashboard-action > span img { display: block; width: 15px; height: 20px; object-fit: contain; }
.dashboard-action strong { font-size: .73rem; line-height: 1.2; }
.dashboard-action small { color: var(--muted); font-size: .58rem; line-height: 1.25; }
.dashboard[data-library="dashboard"] .rail-header-meta { display: none; }

#member-dashboard-view .embed-credit-card {
  width: min(100%, 500px);
  max-width: 500px;
  min-width: 0;
  min-height: 0;
  justify-self: center;
  transform: none;
}

@media (min-width: 1201px) {
  #member-dashboard-view .embed-dash-hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  }
}

@media (max-width: 1200px) {
  #member-dashboard-view .embed-dash-hero {
    grid-template-columns: 1fr;
  }

  #member-dashboard-view .embed-credit-card {
    width: min(100%, 480px);
  }
}

.reader-body .property-gallery-shell {
  display: grid;
  gap: .75rem;
  margin: 0 0 2rem;
}

.reader-body .property-hero {
  position: relative;
  width: 100%;
  min-height: clamp(310px, 55vw, 620px);
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(218, 185, 120, .17);
  border-radius: 22px;
  background: #07100c;
  cursor: default;
}

.reader-body .property-hero img {
  width: 100%;
  height: clamp(310px, 55vw, 620px);
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.reader-body .property-hero:hover img { transform: scale(1.008); }

.reader-body .property-hero > button {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  color: #fff;
  background: rgba(5,10,7,.66);
  box-shadow: 0 10px 28px rgba(0,0,0,.24);
  font-size: 1.8rem;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}
.reader-body .property-hero [data-property-gallery-previous] { left: 1rem; }
.reader-body .property-hero [data-property-gallery-next] { right: 1rem; }
.reader-body .property-hero .property-gallery-fullscreen {
  top: auto;
  right: 1rem;
  bottom: 1rem;
  width: auto;
  height: auto;
  padding: .65rem .85rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  transform: none;
}

.reader-body .property-hero-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .65rem;
  padding: 2rem;
  background:
    radial-gradient(circle at 65% 25%, rgba(218, 185, 120, .18), transparent 30%),
    linear-gradient(145deg, #0a1e15, #050b08);
  color: var(--ghost);
  cursor: default;
}

.reader-body .property-hero-placeholder span {
  color: var(--gold);
  font: 700 .68rem/1 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.reader-body .property-hero-placeholder strong {
  color: var(--cream);
  font: 500 clamp(2rem, 5vw, 4.5rem)/1 var(--display);
  text-align: center;
}

.reader-body .property-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(120px, 21%);
  gap: .65rem;
  overflow-x: auto;
  padding: .1rem 0 .55rem;
  scroll-snap-type: x mandatory;
}

.reader-body .property-gallery .property-gallery-thumb {
  height: 112px;
  overflow: hidden;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #07100c;
  scroll-snap-align: start;
  cursor: pointer;
}

.reader-body .property-gallery .property-gallery-thumb:hover,
.reader-body .property-gallery .property-gallery-thumb.active { border-color: var(--gold); opacity: 1; }
.reader-body .property-gallery img { width: 100%; height: 100%; object-fit: cover; }

.reader-body .property-location-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 .75rem;
  padding: 1.2rem 1.35rem;
  border: 1px solid rgba(218, 185, 120, .13);
  border-radius: 16px;
  background:
    repeating-linear-gradient(35deg, transparent 0 28px, rgba(218, 185, 120, .035) 29px 30px),
    rgba(8, 21, 15, .75);
}
.reader-body .property-location-card > div { display: grid; gap: .35rem; }
.reader-body .property-location-card span { color: var(--ghost); font: 700 .6rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.reader-body .property-location-card strong { color: var(--cream); }
.reader-body .property-location-card a {
  padding: .65rem .8rem;
  border: 1px solid rgba(218, 185, 120, .22);
  border-radius: 10px;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 750;
  text-decoration: none;
}

.reader-body .property-routes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
  margin-bottom: 2rem;
}

.reader-body .property-route-card {
  display: grid;
  gap: .4rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 13px;
  background: rgba(255, 255, 255, .025);
}
.reader-body .property-route-card span { color: var(--ghost); font-size: .66rem; }
.reader-body .property-route-card strong { color: var(--cream); font: 500 1.4rem/1 var(--display); }
.reader-body .property-route-card small { color: #74c99b; font-size: .65rem; }

.reader-property-intelligence {
  width: min(100%, 980px);
  margin: 2.4rem 0 0;
  padding: 1.2rem;
  border: 1px solid rgba(218, 185, 120, .14);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(8, 22, 15, .88), rgba(4, 10, 7, .8));
}

.reader-property-intelligence-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  padding: .4rem .3rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}
.reader-property-intelligence-head span { color: var(--gold); font: 700 .62rem/1 var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.reader-property-intelligence-head h2 { margin: .4rem 0 !important; font-size: 1.7rem !important; }
.reader-property-intelligence-head p { margin: 0; color: var(--ghost); font-size: .72rem; }
.reader-rate-property { min-height: 46px; padding: .72rem 1.05rem; border: 1px solid var(--gold); border-radius: 999px; color: #142017; background: linear-gradient(125deg,var(--gold-bright),var(--gold)); box-shadow: 0 14px 34px rgba(218,185,120,.18); font-size: .78rem; font-weight: 850; cursor: pointer; }

.reader-property-ratings { display: grid; gap: .8rem; padding-top: .8rem; }
.reader-rating-group { padding: 1rem; border: 1px solid rgba(255,255,255,.055); border-radius: 16px; background: rgba(255,255,255,.018); }
.reader-rating-group > header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.reader-rating-group > header span { color: var(--gold); font: 700 .58rem/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.reader-rating-group > header h3 { margin: 0 !important; color: var(--cream); font-size: 1.2rem !important; }
.reader-rating-empty { margin: 0 !important; color: var(--ghost); font-size: .72rem !important; }
.reader-property-rating { overflow: hidden; border: 1px solid rgba(255, 255, 255, .06); border-radius: 14px; background: rgba(255, 255, 255, .02); }
.reader-property-rating > header { display: flex; justify-content: space-between; padding: .85rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.reader-property-rating > header span { color: var(--ghost); font-size: .72rem; }
.reader-property-rating > header strong { color: var(--gold); font: 500 1.25rem/1 var(--display); }
.reader-property-score { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .8rem; padding: .9rem 1rem; }
.reader-property-score > b { color: var(--cream); font: 500 2rem/1 var(--display); }
.reader-property-score > i { height: 7px; overflow: hidden; border-radius: 999px; background: linear-gradient(90deg, var(--gold) calc(var(--score) * 1%), rgba(255,255,255,.055) 0); }
.reader-property-categories { display: grid; padding: 0 1rem 1rem; }
.reader-property-categories > div { display: grid; grid-template-columns: minmax(120px, .75fr) 1fr 28px; align-items: center; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.reader-property-categories span { color: var(--muted); font-size: .65rem; }
.reader-property-categories i { height: 4px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .05); }
.reader-property-categories i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6bc194, var(--gold)); }
.reader-property-categories strong { color: var(--cream); font-size: .66rem; text-align: right; }
.reader-property-categories p { grid-column: 1 / -1; margin: .15rem 0 .4rem; color: var(--ghost); font-size: .64rem; line-height: 1.45; }
.reader-property-loading { color: var(--ghost); font-size: .72rem; }

.reader-body .property-map-frame { height: min(50vw, 430px); min-height: 280px; overflow: hidden; margin: 0 0 2rem; border: 1px solid rgba(218,185,120,.14); border-radius: 18px; background: #07100c; }
.reader-body .property-map-frame iframe { width: 100%; height: 100%; border: 0; filter: saturate(.82) contrast(1.05); }

.property-rating-dialog { width: min(92vw, 820px); max-height: 90vh; overflow: auto; padding: 0; border: 1px solid rgba(218,185,120,.28); border-radius: 24px; color: var(--soft); background: radial-gradient(circle at 85% 5%,rgba(218,185,120,.16),transparent 28%),linear-gradient(145deg,#102219,#050a07); box-shadow: 0 34px 110px rgba(0,0,0,.62); }
.property-rating-dialog::backdrop { background: rgba(2,7,4,.76); backdrop-filter: blur(12px); }
.property-rating-card { position: relative; display: grid; gap: 1.2rem; padding: clamp(1.25rem,3vw,2.3rem); }
.property-rating-card > header span { color: var(--gold); font: 750 .62rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.property-rating-card > header h2 { margin: .5rem 0; color: var(--cream); font: 500 clamp(2rem,4vw,3.2rem)/1 var(--display); }
.property-rating-card > header p { margin: 0; color: var(--muted); line-height: 1.55; }
.property-rating-close { position: absolute; top: 1rem; right: 1rem; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; color: var(--soft); background: rgba(255,255,255,.04); font-size: 1.35rem; cursor: pointer; }
.property-rating-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
.property-rating-fields label { display: grid; gap: .45rem; padding: .9rem; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: rgba(255,255,255,.025); }
.property-rating-fields label > span { display: flex; justify-content: space-between; gap: .7rem; }
.property-rating-fields strong { color: var(--cream); font-size: .78rem; }
.property-rating-fields output { color: var(--gold); font-weight: 850; }
.property-rating-fields small { min-height: 2.7em; color: var(--ghost); font-size: .62rem; line-height: 1.35; }
.property-rating-fields input { width: 100%; accent-color: var(--gold); }
.property-rating-rationale { display: grid; gap: .45rem; color: var(--soft); font-weight: 750; }
.property-rating-rationale textarea { min-height: 88px; padding: .8rem; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; color: var(--cream); background: rgba(255,255,255,.04); font: inherit; resize: vertical; }
.property-rating-status { min-height: 1.2rem; margin: 0; color: var(--gold); font-size: .72rem; }
.property-rating-card footer { display: flex; justify-content: flex-end; gap: .7rem; }
.property-rating-card footer button { min-height: 46px; padding: .7rem 1rem; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: var(--soft); background: transparent; font-weight: 800; cursor: pointer; }
.property-rating-card footer button[type="submit"] { border-color: var(--gold); color: #152218; background: var(--gold); }

[data-theme="light"] .reader-body .property-hero,
[data-theme="light"] .reader-body .property-gallery .property-shot {
  border-color: var(--umbral-color-border-subtle);
  background: var(--umbral-color-surface-raised);
}

[data-theme="light"] .reader-body .property-hero-placeholder {
  background:
    radial-gradient(circle at 65% 25%, rgba(143, 104, 41, .12), transparent 34%),
    linear-gradient(145deg, var(--umbral-color-surface), var(--umbral-color-surface-raised));
  color: var(--umbral-color-text-muted);
}

[data-theme="light"] .reader-body .property-hero-placeholder strong {
  color: var(--umbral-color-text);
}

[data-theme="light"] .reader-body .property-location-card {
  border-color: var(--umbral-color-border-subtle);
  background:
    repeating-linear-gradient(35deg, transparent 0 28px, rgba(143, 104, 41, .035) 29px 30px),
    var(--umbral-color-surface-raised);
  box-shadow: 0 12px 32px rgba(39, 48, 38, .07);
}

[data-theme="light"] .reader-body .property-location-card strong,
[data-theme="light"] .reader-body .property-route-card strong {
  color: var(--umbral-color-text);
}

[data-theme="light"] .reader-body .property-location-card span,
[data-theme="light"] .reader-body .property-route-card span {
  color: var(--umbral-color-text-muted);
}

[data-theme="light"] .reader-body .property-route-card {
  border-color: var(--umbral-color-border-subtle);
  background: var(--umbral-color-surface-raised);
}

[data-theme="light"] .reader-property-intelligence {
  border-color: var(--umbral-color-border-subtle);
  background: linear-gradient(145deg, var(--umbral-color-surface), var(--umbral-color-surface-raised));
  box-shadow: 0 18px 42px rgba(39, 48, 38, .08);
}

[data-theme="light"] .reader-rating-group { border-color: var(--umbral-color-border-subtle); background: rgba(255,255,255,.66); }
[data-theme="light"] .reader-rating-group > header h3 { color: var(--umbral-color-text); }
[data-theme="light"] .reader-body .property-map-frame { border-color: var(--umbral-color-border-subtle); background: var(--umbral-color-surface-raised); }

[data-theme="light"] .reader-property-intelligence-head,
[data-theme="light"] .reader-property-rating > header,
[data-theme="light"] .reader-property-categories > div {
  border-color: var(--umbral-color-border-subtle);
}

[data-theme="light"] .reader-property-rating {
  border-color: var(--umbral-color-border-subtle);
  background: var(--umbral-color-surface-raised);
}

[data-theme="light"] .reader-property-score > b,
[data-theme="light"] .reader-property-categories strong {
  color: var(--umbral-color-text);
}

[data-theme="light"] .reader-property-score > i,
[data-theme="light"] .reader-property-categories i {
  background-color: color-mix(in srgb, var(--umbral-color-text) 9%, transparent);
}

[data-theme="light"] .reader-property-categories span,
[data-theme="light"] .reader-property-categories p,
[data-theme="light"] .reader-property-intelligence-head p,
[data-theme="light"] .reader-property-rating > header span {
  color: var(--umbral-color-text-muted);
}

.property-library-summary { display: grid; grid-template-columns: minmax(0,1.35fr) repeat(2,minmax(180px,.65fr)); gap: .8rem; margin-bottom: 1rem; padding: clamp(1rem,2vw,1.4rem); border: 1px solid var(--hairline); border-radius: 20px; background: linear-gradient(135deg,var(--panel),color-mix(in srgb,var(--panel) 88%,var(--gold) 12%)); }
.property-library-summary > div { padding: .4rem; }
.property-library-summary > div > span { color: var(--gold); font-size: .65rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.property-library-summary h2 { margin: .3rem 0; font: 500 clamp(1.35rem,2.4vw,2rem)/1.1 var(--display); }
.property-library-summary p { margin: 0; color: var(--ghost); font-size: .82rem; line-height: 1.55; }
.property-library-summary > button { display: grid; align-content: center; gap: .24rem; padding: 1rem; color: inherit; background: var(--glass); border: 1px solid var(--hairline); border-radius: 15px; text-align: left; cursor: pointer; }
.property-library-summary > button:hover { border-color: var(--gold-dim); background: var(--gold-glow); }
.property-library-summary > button strong { color: var(--gold-bright); font: 500 2.25rem/1 var(--display); }
.property-library-summary > button span { font-weight: 800; }
.property-library-summary > button small { color: var(--ghost); line-height: 1.35; }

@media(max-width:800px) { .property-library-summary { grid-template-columns: 1fr; } }

.community-quick-rating-control { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .8rem 1rem; padding: clamp(1.1rem,3vw,2rem); border: 1px solid rgba(218,185,120,.25); border-radius: 18px; background: rgba(255,255,255,.035); }
.community-quick-rating-control output { grid-row: span 2; color: var(--gold); font: 500 clamp(3rem,8vw,5.4rem)/1 var(--display); }
.community-quick-rating-control strong { color: var(--cream); font-size: 1rem; }
.community-quick-rating-control input { width: 100%; accent-color: var(--gold); }
.community-quick-rating-control div { grid-column: 2; display: flex; justify-content: space-between; color: var(--ghost); font-size: .65rem; }

[data-theme="light"] .property-rating-dialog { color: var(--umbral-color-text); background: radial-gradient(circle at 85% 5%,rgba(181,139,65,.14),transparent 28%),linear-gradient(145deg,#fffdf5,#f0ecdd); border-color: rgba(126,95,35,.32); box-shadow: 0 34px 100px rgba(52,45,25,.25); }
[data-theme="light"] .property-rating-card > header h2,
[data-theme="light"] .property-rating-fields strong,
[data-theme="light"] .property-rating-rationale,
[data-theme="light"] .community-quick-rating-control strong { color: var(--umbral-color-text); }
[data-theme="light"] .property-rating-card > header p,
[data-theme="light"] .property-rating-fields small { color: var(--umbral-color-text-muted); }
[data-theme="light"] .property-rating-fields label,
[data-theme="light"] .community-quick-rating-control { border-color: var(--umbral-color-border-subtle); background: rgba(255,255,255,.7); }
[data-theme="light"] .property-rating-rationale textarea { color: var(--umbral-color-text); background: #fff; border-color: var(--umbral-color-border-subtle); }
[data-theme="light"] .property-rating-close,
[data-theme="light"] .property-rating-card footer button { color: var(--umbral-color-text); border-color: var(--umbral-color-border-subtle); background: rgba(255,255,255,.55); }

@media (max-width: 760px) {
  .reader-body .property-gallery { grid-auto-columns: 42%; }
  .reader-body .property-location-card { align-items: flex-start; flex-direction: column; }
  .reader-body .property-routes { grid-template-columns: 1fr; }
  .reader-property-intelligence-head { align-items: flex-start; flex-direction: column; }
  .property-rating-fields { grid-template-columns: 1fr; }
  .property-rating-card footer { flex-direction: column-reverse; }
}

@media (prefers-reduced-motion: reduce) {
  .reader-body .property-hero img { transition: none; }
}

.property-rail-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0 10px 10px;
  padding: 4px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
}

.property-rail-switch button {
  min-width: 0;
  min-height: 42px;
  padding: 6px 4px;
  border: 0;
  border-radius: 999px;
  color: var(--ghost);
  background: transparent;
  cursor: pointer;
}

.property-rail-switch button[aria-pressed="true"] {
  color: var(--cream);
  background: var(--forest);
  box-shadow: inset 0 0 0 1px var(--gold-dim);
}

.property-rail-switch span,
.property-rail-switch strong { display: block; }
.property-rail-switch span { overflow: hidden; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.property-rail-switch strong { margin-top: 2px; color: var(--gold-bright); font-size: .72rem; }

[data-theme="light"] .property-rail-switch button[aria-pressed="true"],
[data-theme="light"] .property-rail-switch button[aria-pressed="true"] strong {
  color: #fff;
}

.property-table-filter { grid-template-columns: minmax(220px, 1.25fr) repeat(3, minmax(140px, .72fr)); }
.property-table-filter button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-glow); }

@media (max-width: 759px) {
  .property-table-filter { grid-template-columns: 1fr; }
}
.property-rating-summary {
  display: block;
  width: fit-content;
  margin-top: .35rem;
  padding: .25rem .5rem;
  border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--hairline));
  border-radius: 999px;
  color: var(--gold-bright);
  background: var(--gold-glow);
  font: 750 .65rem/1.2 var(--mono);
}

/* V0.9.9.463B property card library */
.property-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.7vw, 1.45rem);
  padding: .25rem 0 1.5rem;
}

.property-library-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold) 24%, var(--hairline));
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .16);
  animation: rowIn .48s both;
  animation-delay: calc(var(--i, 0) * 42ms);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.property-library-card:hover,
.property-library-card:focus-within {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--gold) 70%, var(--hairline));
  box-shadow: 0 24px 62px rgba(0, 0, 0, .24);
}

.property-library-card-open {
  display: grid;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.property-library-card-open:focus-visible,
.property-library-card-save:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold) 70%, white);
  outline-offset: -3px;
}

.property-library-card-image {
  position: relative;
  display: grid;
  min-height: 225px;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 24% 18%, rgba(218, 185, 120, .24), transparent 30%),
    linear-gradient(145deg, #294333, #101b15);
}

.property-library-card-image::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(5, 10, 7, .72));
  content: "";
  pointer-events: none;
}

.property-library-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.property-library-card:hover .property-library-card-image img {
  transform: scale(1.035);
}

.property-library-card-placeholder {
  color: rgba(255, 250, 235, .76);
  font: 500 1.3rem/1 var(--display);
  letter-spacing: .22em;
  text-transform: uppercase;
}

.property-library-card:not(.image-unavailable) .property-library-card-placeholder {
  visibility: hidden;
}

.property-library-card-body {
  display: grid;
  gap: .64rem;
  padding: 1.15rem 1.15rem 1.2rem;
}

.property-library-card-eyebrow,
.property-library-card-footer {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.property-library-card-eyebrow {
  padding-right: 2.4rem;
  color: var(--gold-bright);
  font: 750 .64rem/1.2 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.property-library-card-eyebrow b {
  padding: .24rem .42rem;
  border: 1px solid color-mix(in srgb, var(--gold) 34%, transparent);
  border-radius: 999px;
}

.property-library-card-eyebrow em {
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-library-card-title {
  overflow: hidden;
  color: var(--cream);
  font: 500 clamp(1.25rem, 1.7vw, 1.6rem)/1.12 var(--display);
  text-overflow: ellipsis;
}

.property-library-card-location {
  overflow: hidden;
  color: var(--ghost);
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-library-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .38rem;
}

.property-library-card-fact {
  max-width: 100%;
  overflow: hidden;
  padding: .35rem .58rem;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--hairline));
  border-radius: 999px;
  color: var(--gold-bright);
  background: var(--gold-glow);
  font: 720 .6rem/1.25 var(--mono);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-library-card-footer {
  flex-wrap: wrap;
  padding-top: .74rem;
  border-top: 1px solid var(--hairline);
  color: var(--ghost);
  font-size: .66rem;
}

.property-library-card-footer i {
  font-style: normal;
}

.property-library-card-footer > b {
  margin-right: auto;
  font-weight: 650;
}

.property-library-card-footer > em {
  color: var(--gold-bright);
  font-style: normal;
  font-weight: 800;
}

.property-library-card-save {
  position: absolute;
  z-index: 3;
  top: calc(225px + 1rem);
  right: 1rem;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--hairline));
  border-radius: 50%;
  place-items: center;
  color: var(--gold-bright);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
  cursor: pointer;
}

.property-library-card-save.saved {
  color: #182419;
  background: var(--gold);
}

[data-theme="light"] .property-library-card {
  border-color: var(--umbral-color-border-subtle);
  background: var(--umbral-color-surface-raised);
  box-shadow: 0 16px 40px rgba(39, 48, 38, .09);
}

[data-theme="light"] .property-library-card:hover,
[data-theme="light"] .property-library-card:focus-within {
  border-color: color-mix(in srgb, var(--gold) 58%, var(--umbral-color-border-subtle));
  box-shadow: 0 22px 54px rgba(39, 48, 38, .15);
}

[data-theme="light"] .property-library-card-title {
  color: var(--umbral-color-text);
}

[data-theme="light"] .property-library-card-location,
[data-theme="light"] .property-library-card-footer {
  color: var(--umbral-color-text-muted);
}

[data-theme="light"] .property-library-card-save {
  background: rgba(255, 255, 255, .9);
}

[data-theme="light"] .property-library-card-save.saved {
  background: var(--gold);
}

@media (max-width: 1100px) {
  .property-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .property-library-grid { grid-template-columns: 1fr; }
  .property-library-card-image { min-height: 210px; }
  .property-library-card-save { top: calc(210px + 1rem); }
}

@media (prefers-reduced-motion: reduce) {
  .property-library-card,
  .property-library-card-image img { animation: none; transition: none; }
}
.rail-header .property-rail-switch {
  margin-top: .8rem;
  padding-top: .8rem;
  border-top: 1px solid var(--hairline);
}

/* Room 1 is the presentation source of truth for every authenticated surface. */
:root {
  --umbral-auth-topbar-height: 72px;
  --umbral-auth-rail-width: 320px;
  --umbral-auth-content-width: 1680px;
  --umbral-auth-page-padding: 24px;
  --umbral-auth-section-gap: 16px;
  --umbral-auth-logo-width: 160px;
  --umbral-auth-card-radius: 18px;
  --umbral-auth-control-radius: 8px;
  --umbral-auth-avatar-radius: 7px;
  --umbral-auth-border-width: 1px;
  --umbral-auth-shadow-strength: .18;
  --umbral-auth-control-height: 42px;
  --umbral-auth-control-font-size: 14px;
  --umbral-auth-nav-font-size: 13px;
  --umbral-auth-active-indicator-width: 3px;
  --umbral-auth-motion-enabled: 1;
  --umbral-auth-motion-scale: 1;
  --umbral-auth-motion-duration: 180ms;
  --umbral-auth-hover-lift: 2px;
  --umbral-auth-ambient-strength: .08;
  --umbral-auth-ambient-opacity: 8%;
  --umbral-auth-canvas-light: #f3f1e8;
  --umbral-auth-surface-light: #fffdf7;
  --umbral-auth-surface-raised-light: #ffffff;
  --umbral-auth-text-light: #1a241d;
  --umbral-auth-muted-light: #5f6f64;
  --umbral-auth-border-light: #ccd6cb;
  --umbral-auth-accent-light: #317146;
  --umbral-auth-accent-strong-light: #1d5d38;
  --umbral-auth-brand-light: #406f4d;
  --umbral-auth-canvas-dark: #07110c;
  --umbral-auth-surface-dark: #0d1a13;
  --umbral-auth-surface-raised-dark: #13251a;
  --umbral-auth-text-dark: #f4edd3;
  --umbral-auth-muted-dark: #aab8aa;
  --umbral-auth-border-dark: #294033;
  --umbral-auth-accent-dark: #d8b968;
  --umbral-auth-accent-strong-dark: #f0d892;
  --umbral-auth-brand-dark: #54845f;
  --umbral-auth-notification-background: #b53c35;
  --umbral-auth-canvas: var(--umbral-auth-canvas-dark);
  --umbral-auth-surface: color-mix(in srgb, var(--umbral-auth-surface-dark) 90%, transparent);
  --umbral-auth-surface-raised: color-mix(in srgb, var(--umbral-auth-surface-raised-dark) 94%, transparent);
  --umbral-auth-surface-hover: color-mix(in srgb, var(--umbral-auth-surface-raised-dark) 72%, transparent);
  --umbral-auth-border: var(--umbral-auth-border-dark);
  --umbral-auth-border-strong: color-mix(in srgb, var(--umbral-auth-border-dark) 76%, var(--umbral-auth-accent-dark));
  --umbral-auth-text: var(--umbral-auth-text-dark);
  --umbral-auth-muted: var(--umbral-auth-muted-dark);
  --umbral-auth-subtle: var(--umbral-color-text-subtle);
  --umbral-auth-accent: var(--umbral-auth-accent-dark);
  --umbral-auth-accent-strong: var(--umbral-auth-accent-strong-dark);
  --umbral-auth-accent-soft: color-mix(in srgb, var(--umbral-auth-accent-dark) 10%, transparent);
  --umbral-auth-brand: var(--umbral-auth-brand-dark);
  --umbral-auth-brand-strong: color-mix(in srgb, var(--umbral-auth-brand-dark) 70%, var(--umbral-auth-accent-dark));
  --umbral-auth-notification-text: #ffffff;
  --umbral-auth-shell-shadow: 0 18px 48px rgba(0, 0, 0, var(--umbral-auth-shadow-strength));
}

[data-theme="light"] {
  --umbral-auth-canvas: var(--umbral-auth-canvas-light);
  --umbral-auth-surface: color-mix(in srgb, var(--umbral-auth-surface-light) 94%, transparent);
  --umbral-auth-surface-raised: color-mix(in srgb, var(--umbral-auth-surface-raised-light) 97%, transparent);
  --umbral-auth-surface-hover: color-mix(in srgb, var(--umbral-auth-brand-light) 8%, var(--umbral-auth-surface-light));
  --umbral-auth-border: var(--umbral-auth-border-light);
  --umbral-auth-border-strong: color-mix(in srgb, var(--umbral-auth-border-light) 76%, var(--umbral-auth-accent-light));
  --umbral-auth-text: var(--umbral-auth-text-light);
  --umbral-auth-muted: var(--umbral-auth-muted-light);
  --umbral-auth-accent: var(--umbral-auth-accent-light);
  --umbral-auth-accent-strong: var(--umbral-auth-accent-strong-light);
  --umbral-auth-accent-soft: color-mix(in srgb, var(--umbral-auth-accent-light) 10%, transparent);
  --umbral-auth-brand: var(--umbral-auth-brand-light);
  --umbral-auth-brand-strong: color-mix(in srgb, var(--umbral-auth-brand-light) 74%, var(--umbral-auth-accent-light));
  --umbral-auth-shell-shadow: 0 16px 44px rgba(43, 54, 43, .11);
}

.umbral-auth-page {
  min-width: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 78% -12%, color-mix(in srgb, var(--umbral-auth-accent) var(--umbral-auth-ambient-opacity), transparent), transparent 62%),
    var(--umbral-auth-canvas);
  color: var(--umbral-auth-text);
}

.umbral-auth-page :is(.umbral-auth-actions,.umbral-auth-rail-nav,.topbar-actions) svg {
  width: var(--umbral-auth-icon-size, 20px);
  height: var(--umbral-auth-icon-size, 20px);
  stroke-width: var(--umbral-auth-icon-stroke-width, 1.8);
}
[data-umbral-icon-style="rounded"] .umbral-auth-page :is(.umbral-auth-actions,.umbral-auth-rail-nav,.topbar-actions) svg { stroke-linecap:round; stroke-linejoin:round; }
[data-umbral-icon-style="solid"] .umbral-auth-page :is(.umbral-auth-actions,.umbral-auth-rail-nav,.topbar-actions) svg { fill:currentColor; stroke-width:1; }

.umbral-auth-topbar,
.umbral-auth-page .topbar {
  min-width: 0;
  min-height: var(--umbral-auth-topbar-height);
  border-bottom: var(--umbral-auth-border-width) solid var(--umbral-auth-border);
  background: color-mix(in srgb, var(--umbral-color-surface-inverse) 90%, transparent);
  box-shadow: 0 1px rgba(255, 255, 255, .025);
  backdrop-filter: blur(26px) saturate(1.2);
}

.umbral-auth-brand,
.umbral-auth-page .topbar-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--umbral-auth-accent);
  text-decoration: none;
}

.umbral-auth-brand img,
.umbral-auth-page .topbar-brand img {
  display: block;
  width: min(100%, var(--umbral-auth-logo-width));
  max-height: 46px;
  object-fit: contain;
}

.umbral-auth-primary-nav {
  min-width: 0;
  color: var(--umbral-auth-muted);
  font-size: var(--umbral-auth-nav-font-size);
}

.umbral-auth-primary-nav :is(button, a) {
  min-height: var(--umbral-auth-control-height);
  color: inherit;
  transition:
    color var(--umbral-duration-fast) var(--umbral-ease-standard),
    background var(--umbral-duration-fast) var(--umbral-ease-standard),
    border-color var(--umbral-duration-fast) var(--umbral-ease-standard),
    transform var(--umbral-auth-motion-duration) var(--umbral-ease-enter);
}

.umbral-auth-primary-nav :is(button, a):hover {
  color: var(--umbral-auth-text);
  transform: translateY(calc(0px - var(--umbral-auth-hover-lift)));
}

.umbral-auth-primary-nav :is(.active, [aria-pressed="true"], [aria-current="page"]) {
  color: var(--umbral-auth-accent-strong);
}

.umbral-auth-actions,
.umbral-auth-page .topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: .55rem;
}

.umbral-auth-actions > :is(button, a),
.umbral-auth-actions .notification-bell,
.umbral-auth-page .topbar-actions > :is(button, a),
.umbral-auth-page .topbar-actions .notification-bell {
  min-height: var(--umbral-auth-control-height);
  font-size: var(--umbral-auth-control-font-size);
}

.umbral-auth-user {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: var(--umbral-auth-control-height);
  max-width: 230px;
  gap: .58rem;
  padding: .34rem .68rem .34rem .38rem;
  border: var(--umbral-auth-border-width) solid var(--umbral-auth-border-strong);
  border-radius: var(--umbral-auth-control-radius);
  background: var(--umbral-auth-surface);
  color: var(--umbral-auth-text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  cursor: pointer;
}

.umbral-auth-user:hover,
.umbral-auth-user[aria-expanded="true"] {
  border-color: var(--umbral-color-border-strong);
  background: var(--umbral-auth-surface-raised);
  transform: translateY(calc(0px - var(--umbral-auth-hover-lift)));
}

.umbral-auth-user .user-avatar {
  border-radius: var(--umbral-auth-avatar-radius);
  background:
    linear-gradient(145deg, var(--umbral-auth-brand-strong), var(--umbral-auth-brand));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  color: var(--umbral-color-on-brand);
}

.umbral-auth-user > span:not(.user-avatar) {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: .78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.umbral-auth-rail,
.umbral-auth-page .document-rail {
  min-width: 0;
  border-right: var(--umbral-auth-border-width) solid var(--umbral-auth-border);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--umbral-color-surface) 86%, transparent), color-mix(in srgb, var(--umbral-color-canvas) 94%, transparent));
  color: var(--umbral-auth-muted);
  backdrop-filter: blur(24px) saturate(1.08);
}

.umbral-auth-rail-nav {
  min-width: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--umbral-color-accent-line) transparent;
}

.umbral-auth-rail-nav :is(button, a) {
  color: var(--umbral-auth-muted);
}

.umbral-auth-rail-nav :is(button, a):hover {
  color: var(--umbral-auth-text);
  background: var(--umbral-auth-surface-hover);
}

.umbral-auth-rail-nav :is(button.active, button[aria-pressed="true"], a[aria-current="page"]) {
  border-color: var(--umbral-color-accent-line);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--umbral-auth-brand) 18%, transparent), var(--umbral-auth-accent-soft));
  color: var(--umbral-auth-accent-strong);
  box-shadow: inset var(--umbral-auth-active-indicator-width) 0 0 var(--umbral-auth-accent);
}

.umbral-auth-canvas {
  min-width: 0;
  width: 100%;
  max-width: var(--umbral-auth-content-width);
  background: transparent;
  color: var(--umbral-auth-text);
}

.umbral-auth-page :where(.admin-card, .umbral-card) {
  border-width: var(--umbral-auth-border-width);
  border-radius: var(--umbral-auth-card-radius);
  border-color: var(--umbral-auth-border);
  background: var(--umbral-auth-surface);
  color: var(--umbral-auth-text);
}

.umbral-auth-page :where(input, select, textarea) {
  min-height: var(--umbral-auth-control-height);
  border-color: var(--umbral-auth-border-strong);
  border-radius: var(--umbral-auth-control-radius);
  background: var(--umbral-auth-surface);
  color: var(--umbral-auth-text);
  font-size: var(--umbral-auth-control-font-size);
}

.umbral-auth-page :where(input, textarea)::placeholder {
  color: var(--umbral-auth-subtle);
}

.umbral-auth-page :where(.user-menu, .notification-panel) {
  border-color: var(--umbral-auth-border-strong);
  background: var(--umbral-auth-surface-raised);
  color: var(--umbral-auth-text);
  box-shadow: var(--umbral-shadow-dialog);
}

.umbral-auth-page .notification-count {
  color: var(--umbral-auth-notification-text) !important;
  border: 0 !important;
  background: var(--umbral-auth-notification-background);
  box-shadow: 0 4px 12px rgba(155, 25, 25, .28);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .22);
}

body.admin .admin-shell {
  grid-template-columns: var(--admin-rail-width, var(--umbral-auth-rail-width)) minmax(0, 1fr);
  min-height: calc(100vh - var(--umbral-auth-topbar-height));
}

body.admin .admin-sidebar {
  top: var(--umbral-auth-topbar-height);
  height: calc(100vh - var(--umbral-auth-topbar-height));
}

body.admin .admin-main {
  max-width: var(--umbral-auth-content-width);
  padding: var(--umbral-auth-page-padding);
}

.umbral-auth-page .command-shell {
  --rail-width: var(--umbral-auth-rail-width);
}

.umbral-auth-page :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--umbral-auth-accent-strong);
  outline-offset: 2px;
  box-shadow: var(--umbral-focus-ring);
}

[data-theme="light"] .umbral-auth-topbar,
[data-theme="light"] .umbral-auth-page .topbar {
  background: color-mix(in srgb, var(--umbral-color-surface) 94%, transparent);
  box-shadow: 0 1px rgba(21, 62, 45, .05);
}

[data-theme="light"] .umbral-auth-brand img,
[data-theme="light"] .umbral-auth-page .topbar-brand img {
  filter: brightness(.26) sepia(.38);
}

[data-theme="light"] .umbral-auth-rail,
[data-theme="light"] .umbral-auth-page .document-rail {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--umbral-auth-surface-light) 97%, transparent), color-mix(in srgb, var(--umbral-auth-canvas-light) 94%, transparent));
}

[data-theme="light"] .umbral-auth-user {
  box-shadow: 0 8px 22px rgba(39, 48, 38, .08);
}

@media (max-width: 900px) {
  body.admin .admin-shell {
    grid-template-columns: 1fr;
  }

  body.admin .admin-sidebar {
    top: auto;
    height: auto;
  }

  .umbral-auth-actions,
  .umbral-auth-page .topbar-actions {
    gap: .35rem;
  }

  .umbral-auth-user {
    max-width: 112px;
    padding-right: .45rem;
  }

  .umbral-auth-user > span:nth-child(2) {
    display: none;
  }

  .umbral-auth-rail,
  .umbral-auth-page .document-rail {
    border-right: 0;
    border-bottom: var(--umbral-auth-border-width) solid var(--umbral-auth-border);
  }
}

@media (prefers-reduced-motion: reduce) {
  .umbral-auth-page *,
  .umbral-auth-page *::before,
  .umbral-auth-page *::after {
    scroll-behavior: auto;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Explicit approved page blockers are separate from contained progress states. */
[data-page-blocking-loader] {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1rem !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: clamp(1.5rem, 6vw, 5rem) !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  color: var(--umbral-auth-text) !important;
  background: var(--umbral-auth-canvas) !important;
  box-shadow: none !important;
  text-align: center !important;
}
[data-page-blocking-loader][hidden] { display: none !important; }
[data-theme="light"] [data-page-blocking-loader] {
  color: var(--umbral-auth-text) !important;
  background: var(--umbral-auth-canvas) !important;
}
[data-page-blocking-loader]::before,
[data-page-blocking-loader]::after { display: none !important; content: none !important; }
[data-page-blocking-loader] > img {
  order: 1 !important;
  width: min(var(--umbral-loading-logo-size, 176px), 64vw) !important;
  height: auto !important;
  max-height: 27vh !important;
  object-fit: contain !important;
  animation: umbral-loader-breathe 2.2s ease-in-out infinite !important;
}
[data-page-blocking-loader] > span {
  order: 2 !important;
  display: grid !important;
  justify-items: center !important;
  gap: .35rem !important;
  color: var(--umbral-auth-muted) !important;
}
[data-theme="light"] [data-page-blocking-loader] > span { color: var(--umbral-auth-muted) !important; }
[data-page-blocking-loader] strong { margin: 0 !important; color: inherit !important; font-size: var(--umbral-loading-title-size, 1rem) !important; }
[data-page-blocking-loader] small { color: inherit !important; font-size: var(--umbral-loading-detail-size, .75rem) !important; }
[data-page-blocking-loader] > i { order: 3 !important; }
[data-page-blocking-loader] > button {
  order: 4 !important;
  min-height: 44px !important;
  padding: .68rem 1.1rem !important;
  border: 1px solid var(--umbral-auth-accent) !important;
  border-radius: var(--umbral-auth-control-radius) !important;
  color: var(--umbral-auth-accent-strong) !important;
  background: var(--umbral-auth-surface) !important;
  font: 750 var(--umbral-auth-control-font-size) var(--umbral-font-body) !important;
  cursor: pointer !important;
}
:root[data-umbral-loading-background="surface"] [data-page-blocking-loader] { background: var(--umbral-auth-surface) !important; }
:root[data-umbral-loading-logo-effect="spin"] [data-page-blocking-loader] > img { animation: umbral-loader-spin var(--umbral-loading-animation-duration, 1150ms) linear infinite !important; }
[data-page-blocking-loader][data-transition-presentation="off"] > img,
[data-page-blocking-loader][data-transition-presentation="off"] > i,
[data-page-blocking-loader][data-transition-presentation="off"] > i::after {
  animation: none !important;
  transform: none !important;
}

[data-load-progress]:not([data-page-blocking-loader]) {
  position: relative;
  inset: auto;
  z-index: auto;
  width: auto;
  height: auto;
  min-height: 0;
  max-width: 100%;
  overflow: visible;
  pointer-events: auto;
}

.umbral-admin-notice-region {
  position: fixed;
  top: calc(var(--umbral-auth-topbar-height) + 1rem);
  right: clamp(.8rem, 2vw, 1.5rem);
  z-index: 11000;
  width: min(420px, calc(100vw - 1.6rem));
  padding: .8rem 1rem;
  border: 1px solid color-mix(in srgb, var(--umbral-auth-accent) 42%, var(--umbral-auth-border));
  border-radius: var(--umbral-auth-control-radius);
  color: var(--umbral-auth-text);
  background: var(--umbral-auth-surface-raised);
  box-shadow: var(--umbral-shadow-dialog);
  font-size: .78rem;
  font-weight: 720;
  line-height: 1.45;
}
.umbral-admin-notice-region[hidden] { display: none !important; }
.umbral-admin-notice-region.error {
  border-color: color-mix(in srgb, var(--danger, #b42318) 54%, var(--umbral-auth-border));
  color: var(--danger, #b42318);
}
@keyframes umbral-loader-spin { to { transform: rotate(360deg); } }

/* V0.9.9.463B expandable shell search. */
.umbral-shell-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 42px;
  min-width: 0;
  height: var(--umbral-auth-control-height);
  transition: width var(--umbral-duration-fast) var(--umbral-ease-standard);
}

.umbral-shell-search.is-open { width: 220px; }

.umbral-shell-search-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--umbral-auth-border-strong);
  border-radius: 7px;
  background: var(--umbral-auth-surface);
  color: var(--umbral-auth-muted);
  cursor: pointer;
  transition: color var(--umbral-duration-fast) var(--umbral-ease-standard), border-color var(--umbral-duration-fast) var(--umbral-ease-standard), background var(--umbral-duration-fast) var(--umbral-ease-standard);
}

.umbral-shell-search-toggle:is(:hover, :focus-visible) {
  border-color: var(--umbral-auth-accent);
  background: var(--umbral-auth-surface-raised);
  color: var(--umbral-auth-accent-strong);
}

.umbral-shell-search-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.umbral-shell-search .search-field {
  width: 100%;
  max-width: none;
  min-height: 42px;
  margin: 0;
  border-radius: 7px;
}

.umbral-shell-search [data-shell-search-results] {
  position: absolute;
  top: calc(100% + .55rem);
  left: 0;
  z-index: 220;
  display: grid;
  width: min(340px, calc(100vw - 1.5rem));
  max-height: min(420px, 60vh);
  padding: .45rem;
  overflow-y: auto;
  border: 1px solid var(--umbral-auth-border-strong);
  border-radius: 10px;
  background: var(--umbral-auth-surface-raised);
  box-shadow: var(--umbral-shadow-dialog);
}

.umbral-shell-search [data-shell-search-results][hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .umbral-shell-search { transition: none; }
}

[data-umbral-loading-bar="off"] [data-page-blocking-loader]::after,
[data-umbral-loading-bar="off"] [data-page-blocking-loader] > i { display: none !important; }

/* V0.9.9.463B final Data Room presentation layer. */
.embedded-dashboard .embed-command-copy h1 {
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(1.55rem, 2.25vw, 2.2rem);
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* V0.9.9.463B member question and campaign sprint. */
.question-modal .question-composer {
  width: min(700px, 100%);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--gold-dim);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 4%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 34%),
    color-mix(in srgb, var(--panel) 96%, var(--forest) 4%);
  box-shadow: 0 32px 110px rgba(0, 0, 0, .46);
}

.question-modal .question-composer > header {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hairline);
}

.question-modal .question-composer h2 {
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  letter-spacing: -.025em;
}

.question-reference {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: .85rem;
  margin: 1rem 0 .75rem;
  padding: .85rem;
  border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--hairline));
  border-radius: 14px;
  background: var(--gold-glow);
}

.question-reference-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 12px;
  border-radius: 13px;
  color: var(--gold-bright);
  background: color-mix(in srgb, var(--forest) 82%, transparent);
}

.question-reference-mark svg,
.question-voice-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.question-reference > span:last-child { display: grid; min-width: 0; gap: .12rem; }
.question-reference small { color: var(--gold-bright); font: 800 .58rem/1.2 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.question-reference strong { overflow: hidden; color: var(--cream); font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.question-reference em { overflow: hidden; color: var(--ghost); font-size: .68rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.question-modal .question-composer .question-guidance { margin: 0 0 .85rem; color: var(--soft); font-size: .75rem; }
.question-field { display: grid; gap: .42rem; }
.question-field > span { color: var(--gold-bright); font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.question-modal .question-composer textarea { min-height: 168px; padding: .9rem 1rem; border-color: var(--hairline); border-radius: 12px; color: var(--cream); background: var(--panel-strong); line-height: 1.55; }
.question-modal .question-composer textarea:focus { border-color: var(--gold); outline: 3px solid var(--gold-glow); outline-offset: 2px; }
.question-modal .question-actions { align-items: stretch; margin-top: .8rem; }
.question-modal .question-actions button { min-height: 48px; border-radius: 12px; font-size: .75rem; font-weight: 800; }
#question-voice { display: inline-flex; min-width: 176px; align-items: center; gap: .55rem; color: var(--cream); background: var(--glass); }
.question-voice-icon { width: 22px; height: 22px; padding: 2px; color: var(--gold-bright); }
.question-voice-meter { display: inline-flex; height: 22px; align-items: center; gap: 3px; margin-left: auto; }
.question-voice-meter i { width: 3px; height: 15px; border-radius: 999px; background: var(--gold); opacity: .34; transform: scaleY(calc(.25 + var(--voice-level, 0))); transition: opacity .12s ease, transform .08s linear; }
.question-voice-meter i:nth-child(2), .question-voice-meter i:nth-child(4) { height: 10px; }
#question-voice[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-glow); }
#question-voice[data-hearing="true"] { box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 14%, transparent); }
#question-voice[data-hearing="true"] .question-voice-icon { color: #f4d98d; }
#question-voice[data-hearing="true"] .question-voice-meter i { opacity: 1; }
#question-send { min-width: 150px; border-color: color-mix(in srgb, var(--forest) 70%, var(--gold)); background: linear-gradient(135deg, var(--forest), color-mix(in srgb, var(--forest) 76%, var(--gold))); box-shadow: 0 10px 24px rgba(3, 24, 15, .2); }
#question-status { min-height: 1.3rem; margin: .65rem 0 0; }

[data-theme="light"] .question-modal .question-composer { background: radial-gradient(circle at 90% 4%, rgba(186, 144, 60, .14), transparent 34%), #fffdf8; }
[data-theme="light"] .question-reference { background: #f7f0df; }
[data-theme="light"] .question-reference strong,
[data-theme="light"] .question-field > span { color: #172019; }
[data-theme="light"] .question-reference em,
[data-theme="light"] .question-modal .question-composer .question-guidance { color: #35433a; }
[data-theme="light"] .question-modal .question-composer textarea { color: #172019; background: #fff; }
[data-theme="light"] #question-voice { color: #172019; background: #fffdf8; }

.embed-dash-grid > .embed-promotion-stack-kickstarter {
  grid-column: 1 / -1;
  margin: 0;
}

.embed-kickstarter-invitation {
  background-image:
    linear-gradient(90deg, rgba(8, 18, 13, .96) 0%, rgba(9, 27, 18, .84) 54%, rgba(5, 18, 12, .46) 100%),
    url('/assets/commerce/kickstarter-rainforest-hero.png');
  background-position: center 42%;
  background-size: cover;
}

@media (max-width: 620px) {
  .question-modal .question-composer { padding: 1.1rem; border-radius: 17px; }
  .question-reference { grid-template-columns: 42px minmax(0, 1fr); }
  .question-reference-mark { width: 42px; height: 42px; }
  .question-actions { display: grid; grid-template-columns: 1fr; }
  #question-voice, #question-send { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .question-voice-meter i { transition: none; }
}

.embedded-dashboard .embed-command-credit {
  font-size: clamp(.9rem, 1.2vw, 1.04rem) !important;
}

.embedded-dashboard .embed-steward-invitation,
.embedded-dashboard .embed-referral-invitation {
  grid-template-columns: minmax(0, 1fr) minmax(460px, 540px);
}

.embedded-dashboard .embed-steward-invitation > .embed-promotion-action,
.embedded-dashboard .embed-referral-invitation > .embed-promotion-action {
  width: 100%;
  min-height: 116px;
  padding: 1.15rem 1.3rem 1.15rem 1.5rem;
}

.embedded-dashboard .embed-steward-invitation > .embed-promotion-action strong,
.embedded-dashboard .embed-referral-invitation > .embed-promotion-action strong {
  display: block;
  min-width: 0;
  font: 750 clamp(1.15rem, 1.4vw, 1.22rem)/1.12 var(--display);
  letter-spacing: -.018em;
  white-space: nowrap;
}

.embedded-dashboard .embed-dash-panel {
  display: flex;
  flex-direction: column;
}

.embedded-dashboard .embed-accreditation-card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.embedded-dashboard .embed-panel-action,
.embedded-dashboard .embed-accreditation-card > .embed-panel-action {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  padding: .7rem .95rem;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  color: var(--gold-bright);
  background: transparent;
  font: 750 .7rem/1.2 var(--sans);
  text-decoration: none;
}

.embedded-dashboard .embed-panel-action:hover,
.embedded-dashboard .embed-accreditation-card > .embed-panel-action:hover {
  border-color: var(--gold);
  color: var(--cream);
  background: var(--gold-glow);
}

.embedded-dashboard .embed-panel-action:focus-visible,
.embedded-dashboard .embed-accreditation-card > .embed-panel-action:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.embedded-dashboard .embed-property-card {
  height: 100%;
}

.embedded-dashboard .embed-property-image > em,
.embedded-dashboard .embed-property-rating {
  display: none;
}

.embedded-dashboard .embed-property-copy {
  height: 100%;
  grid-template-rows: auto auto 1fr;
}

.embedded-dashboard .embed-property-facts {
  display: flex;
  align-self: end;
  flex-wrap: wrap;
  gap: .36rem;
  margin-top: .45rem;
}

.embedded-dashboard .embed-property-facts > i {
  display: inline-grid;
  gap: .1rem;
  max-width: 100%;
  padding: .38rem .5rem;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--hairline));
  border-radius: 999px;
  color: var(--soft);
  background: var(--gold-glow);
  font: 700 .57rem/1.15 var(--mono);
  text-align: left;
}

.embedded-dashboard .embed-property-facts > i b {
  color: var(--gold-bright);
  font-size: .48rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.embedded-dashboard .embed-dashboard-summary-primary,
.embedded-dashboard .embed-dashboard-summary-secondary {
  display: grid;
  grid-column: 1 / -1;
  gap: 1rem;
  align-items: stretch;
}

.embedded-dashboard .embed-dashboard-summary-primary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.embedded-dashboard .embed-dashboard-summary-secondary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.embedded-dashboard .embed-dashboard-summary-primary > div,
.embedded-dashboard .embed-dashboard-summary-secondary > div,
.embedded-dashboard .embed-dashboard-summary-primary .embed-dash-panel,
.embedded-dashboard .embed-dashboard-summary-secondary .embed-dash-panel {
  min-width: 0;
  height: 100%;
}

.embedded-dashboard .embed-dashboard-summary-secondary-middle {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 1320px) {
  .embedded-dashboard .embed-steward-invitation,
  .embedded-dashboard .embed-referral-invitation {
    grid-template-columns: 1fr;
  }

  .embedded-dashboard .embed-steward-invitation > .embed-promotion-action,
  .embedded-dashboard .embed-referral-invitation > .embed-promotion-action {
    max-width: 540px;
  }
}

@media (max-width: 980px) {
  .embedded-dashboard .embed-dashboard-summary-secondary {
    grid-template-columns: 1fr;
  }

  .embedded-dashboard .embed-dashboard-summary-secondary-middle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }
}

@media (max-width: 820px) {
  .embedded-dashboard .embed-steward-invitation,
  .embedded-dashboard .embed-referral-invitation,
  .embedded-dashboard .embed-dashboard-summary-primary,
  .embedded-dashboard .embed-dashboard-summary-secondary-middle {
    grid-template-columns: 1fr;
  }

  .embedded-dashboard .embed-steward-invitation > .embed-promotion-action,
  .embedded-dashboard .embed-referral-invitation > .embed-promotion-action {
    min-height: 92px;
  }
}

@media (max-width: 620px) {
  .embedded-dashboard .embed-command-copy h1 {
    font-size: clamp(1.28rem, 6.2vw, 1.7rem);
  }

  .embedded-dashboard .embed-steward-invitation > .embed-promotion-action strong,
  .embedded-dashboard .embed-referral-invitation > .embed-promotion-action strong {
    font-size: clamp(.76rem, 3.25vw, 1.08rem);
  }

  .embedded-dashboard .embed-steward-invitation > .embed-promotion-action,
  .embedded-dashboard .embed-referral-invitation > .embed-promotion-action {
    gap: .55rem;
    padding-inline: .9rem;
  }
}

.umbral-release-panel{box-sizing:border-box;display:flex!important;flex:0 0 auto!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;width:100%!important;min-height:52px!important;margin:auto 0 0!important;padding:10px 13px 11px!important;border:0!important;border-top:1px solid rgba(216,180,118,.14)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-align:center!important}
.umbral-release-panel>:is(button,span){display:block!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;font:700 12px/14px ui-monospace,SFMono-Regular,Menlo,monospace!important;letter-spacing:.045em!important;text-align:center!important;text-transform:uppercase!important}
.umbral-release-panel>[data-release-version]{color:#d6b85b!important;cursor:pointer}.umbral-release-panel>span:last-child{color:rgba(242,239,230,.62)!important}
.umbral-release-panel>[data-release-version]:is(:hover,:focus-visible){color:#f0d984!important;text-decoration:none!important}.umbral-release-panel>[data-release-version]:focus-visible{outline:2px solid #d6b85b!important;outline-offset:4px!important;border-radius:4px!important}
[data-theme="light"] .umbral-release-panel{border-top-color:rgba(21,62,45,.12)!important}[data-theme="light"] .umbral-release-panel>[data-release-version]{color:#a57d24!important}[data-theme="light"] .umbral-release-panel>span:last-child{color:#252c27!important}
@media(max-width:760px){.umbral-release-panel{min-height:48px!important;padding:8px 10px 9px!important}.umbral-release-panel>:is(button,span){font-size:10px!important;line-height:12px!important}}

/* Canonical reader shell. */

/* Migrated shell rules from styles.css, preserving entry-point cascade order. */
.topbar {
  grid-template-columns: 42px minmax(150px, 210px) minmax(180px, 460px) minmax(0, 1fr);
  padding-inline: 1.05rem;
  background: color-mix(in srgb, var(--obsidian) 88%, transparent);
  border-bottom: 1px solid var(--hairline);
}
.rail-toggle { border: 0; border-radius: 4px; background: transparent; }
.topbar-actions { gap: .55rem; }
.document-rail { background: color-mix(in srgb, var(--obsidian) 78%, transparent); }
.rail-header { gap: .8rem; padding: 1.05rem .55rem .8rem; }
.rail-library-switch button {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: .55rem;
  min-height: 48px;
  padding: .65rem .7rem;
  border-radius: 5px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 400;
  text-align: left;
}
.rail-header-meta { padding: .7rem .65rem 0; border-top: 1px solid var(--hairline); }
.rail-document-list { padding: .2rem .55rem 1rem; }
.rail-footer { min-width: 0; padding-inline: .75rem; }

@media (max-width: 880px) {
  .topbar { grid-template-columns: 42px minmax(100px, 1fr) auto; }
  .top-search { display: none; }
  .document-rail { position: relative; top: 0; height: auto; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .dashboard.rail-collapsed .document-rail { display: none; }
  .rail-library-switch button { display: flex; min-height: 42px; white-space: nowrap; }
  .rail-header-meta,
  .rail-document-list,
  .rail-footer { display: none; }
}

@media (max-width: 680px) {
  .topbar { padding-inline: .55rem; }
}

/* Approved page blockers and login validation own viewport loading. */
[data-page-blocking-loader],
.auth-pending-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  gap: 1rem;
  margin: 0;
  padding: clamp(1.5rem, 6vw, 5rem);
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0;
  color: var(--umbral-auth-text, var(--cream));
  background: var(--umbral-auth-canvas, var(--bg));
  box-shadow: none !important;
  text-align: center;
}
[data-page-blocking-loader][hidden],
.auth-pending-screen[hidden] { display: none !important; }
[data-page-blocking-loader] > img,
.auth-pending-screen > img {
  order: 1;
  width: min(var(--umbral-loading-logo-size, 176px), 64vw);
  max-height: 28vh;
  object-fit: contain;
}
[data-page-blocking-loader] > span,
.auth-pending-screen > span { order: 2; display: grid; justify-items: center; gap: .35rem; }
[data-page-blocking-loader] strong,
.auth-pending-screen strong { color: inherit; font: 550 var(--umbral-loading-title-size, 24px)/1.2 var(--display); letter-spacing: 0; text-transform: none; }
[data-page-blocking-loader] small,
.auth-pending-screen small { color: var(--umbral-auth-muted, var(--soft)); font-size: var(--umbral-loading-detail-size, 12px); font-weight: 600; letter-spacing: .04em; text-transform: none; }
[data-page-blocking-loader] > i,
.auth-pending-screen > i {
  order: 3;
  position: relative;
  display: block;
  width: var(--umbral-loading-indicator-width, 128px);
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 22%, transparent);
}
[data-page-blocking-loader] > i::after,
.auth-pending-screen > i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: var(--gold);
  animation: umbral-viewport-loader var(--umbral-loading-animation-duration, 1150ms) ease-in-out infinite alternate;
}
.reader-inline-state{display:grid;place-items:center;align-content:center;gap:.7rem;min-height:48vh;padding:2rem;text-align:center;color:var(--muted)}
.reader-inline-state img{width:72px;height:72px;object-fit:contain}.reader-inline-state strong{color:var(--cream);font:500 clamp(1.35rem,2.4vw,2rem)/1.15 var(--display)}.reader-inline-state span{font-size:.78rem}.reader-inline-state i{position:relative;width:min(240px,65vw);height:3px;overflow:hidden;border-radius:99px;background:color-mix(in srgb,var(--gold) 18%,transparent)}.reader-inline-state i::after{content:"";position:absolute;inset:0 auto 0 0;width:42%;background:var(--gold);animation:umbral-viewport-loader 1.15s ease-in-out infinite alternate}.reader-inline-error button{min-height:44px;padding:.7rem 1rem;border:1px solid var(--gold);border-radius:999px;background:transparent;color:var(--gold-bright);cursor:pointer}
@media(prefers-reduced-motion:reduce){.reader-inline-state i::after{animation:none;width:100%}}
.catalogue-inline-state{display:grid;place-items:center;align-content:center;gap:.65rem;min-height:42vh;padding:clamp(2rem,7vw,5rem);border:1px solid var(--hairline);border-radius:18px;background:color-mix(in srgb,var(--panel) 94%,transparent);color:var(--muted);text-align:center}.catalogue-inline-state strong{color:var(--cream);font:500 clamp(1.35rem,2.5vw,2rem)/1.15 var(--display)}.catalogue-inline-state span{max-width:48ch;font-size:.82rem;line-height:1.55}.catalogue-inline-state i{position:relative;width:min(240px,65vw);height:3px;overflow:hidden;border-radius:99px;background:color-mix(in srgb,var(--gold) 18%,transparent)}.catalogue-inline-state i::after{content:"";position:absolute;inset:0 auto 0 0;width:42%;background:var(--gold);animation:umbral-viewport-loader 1.15s ease-in-out infinite alternate}.catalogue-inline-error button{min-height:44px;padding:.72rem 1.1rem;border:1px solid var(--gold);border-radius:999px;background:transparent;color:var(--gold-bright);font:700 .76rem/1 var(--sans);cursor:pointer}.catalogue-inline-error button:is(:hover,:focus-visible){background:color-mix(in srgb,var(--gold) 12%,transparent);outline:2px solid var(--gold);outline-offset:3px}[data-theme="light"] .catalogue-inline-state strong{color:var(--forest)}
@media(prefers-reduced-motion:reduce){[data-catalogue-state="loading"] i::after{animation:none;width:100%}}
[data-transition-presentation="off"] :is(img, i, i::after),
[data-transition-presentation="off"].reader-inline-state :is(img, i, i::after) {
  animation: none !important;
}
[data-transition-presentation="off"].reader-inline-state i::after { width: 100%; transform: none !important; }
.auth-pending-screen > button {
  order: 4;
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-bright);
  background: transparent;
  font-weight: 800;
}
:root[data-umbral-loading-background="surface"] :is([data-page-blocking-loader],.auth-pending-screen) { background: var(--umbral-auth-surface, var(--panel)); }
:root[data-umbral-loading-title="off"] :is([data-page-blocking-loader],.auth-pending-screen) strong { display: none; }
:root[data-umbral-loading-detail="off"] :is([data-page-blocking-loader],.auth-pending-screen) small { display: none; }
:root[data-umbral-loading-logo-effect="breathe"] :is([data-page-blocking-loader],.auth-pending-screen) > img { animation: umbral-loader-breathe calc(var(--umbral-loading-animation-duration, 1150ms) + var(--umbral-loading-animation-duration, 1150ms)) ease-in-out infinite; }
:root[data-umbral-loading-logo-effect="soft_pulse"] :is([data-page-blocking-loader],.auth-pending-screen) > img { animation: umbral-loader-pulse var(--umbral-loading-animation-duration, 1150ms) ease-in-out infinite alternate; }
:root[data-umbral-loading-logo-effect="spin"] :is([data-page-blocking-loader],.auth-pending-screen) > img { animation: umbral-loader-spin var(--umbral-loading-animation-duration, 1150ms) linear infinite; }
:root[data-umbral-loading-logo-effect="none"] :is([data-page-blocking-loader],.auth-pending-screen) > img { animation: none; }
:root[data-umbral-loading-indicator="none"] :is([data-page-blocking-loader],.auth-pending-screen) > i,
:root[data-umbral-loading-bar="off"] :is([data-page-blocking-loader],.auth-pending-screen) > i { display: none; }
:root[data-umbral-loading-indicator="ring"] :is([data-page-blocking-loader],.auth-pending-screen) > i {
  width: 30px;
  height: 30px;
  border: 2px solid color-mix(in srgb, var(--gold) 24%, transparent);
  border-top-color: var(--gold);
  background: transparent;
  animation: umbral-loader-spin var(--umbral-loading-animation-duration, 1150ms) linear infinite;
}
:root[data-umbral-loading-indicator="ring"] :is([data-page-blocking-loader],.auth-pending-screen) > i::after { display: none; }
:root[data-umbral-loading-indicator="dots"] :is([data-page-blocking-loader],.auth-pending-screen) > i {
  width: 8px;
  height: 8px;
  overflow: visible;
  background: var(--gold);
  box-shadow: -14px 0 var(--gold), 14px 0 var(--gold);
  animation: umbral-loader-dots var(--umbral-loading-animation-duration, 1150ms) ease-in-out infinite;
}
:root[data-umbral-loading-indicator="dots"] :is([data-page-blocking-loader],.auth-pending-screen) > i::after { display: none; }
@keyframes umbral-viewport-loader { from { transform: translateX(0); } to { transform: translateX(138%); } }
@keyframes umbral-loader-breathe { 50% { transform: scale(1.025); opacity: .82; } }
@keyframes umbral-loader-pulse { to { opacity: .55; } }
@keyframes umbral-loader-spin { to { transform: rotate(360deg); } }
@keyframes umbral-loader-dots { 50% { transform: translateY(-2px); opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  :is([data-page-blocking-loader],.auth-pending-screen) > img,
  :is([data-page-blocking-loader],.auth-pending-screen) > i,
  :is([data-page-blocking-loader],.auth-pending-screen) > i::after { animation: none !important; }
}
.rail-document-list {
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) transparent;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: auto auto minmax(220px, 460px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(.65rem, 1.25vw, 1.2rem);
  height: var(--topbar);
  padding: 0 1.4rem;
  background: color-mix(in srgb, var(--void) 62%, transparent);
  backdrop-filter: blur(26px) saturate(1.3);
}

.rail-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 11px;
  background: var(--glass);
  color: var(--ghost);
  cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.top-search { margin-left: clamp(0rem, 1vw, .75rem); }

.topbar-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: .55rem;
  white-space: nowrap;
}
.dashboard.rail-collapsed .document-rail {
  transform: translateX(-102%);
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   DOCUMENT RAIL (left)
   ============================================================ */
.document-rail {
  position: sticky;
  top: var(--topbar);
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--topbar));
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--obsidian) 66%, transparent), transparent 40%);
  transition: transform .55s var(--ease), opacity .4s var(--ease);
}
/* Hold an intrinsic width so the rail slides out cleanly instead of squashing. */
.rail-header, .rail-footer { min-width: calc(var(--rail-width, 384px) - 1px); }
.rail-document-list { min-width: calc(var(--rail-width, 384px) - 1px); }

.rail-header {
  display: grid;
  gap: .85rem;
  padding: 1.05rem 1rem .9rem;
}
.rail-library-switch button {
  min-height: 44px;
  padding: .65rem .4rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ghost);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .02em;
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.rail-header-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-inline: .25rem;
}

.rail-document-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: .75rem .55rem 1rem;
}

.rail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.25rem;
  border-top: 1px solid var(--hairline);
}

@media (max-width: 980px) {
  .topbar { grid-template-columns: auto minmax(180px, 1fr) auto; gap: .65rem; }
  .rail-toggle { display: none; }
  .top-search { grid-column: 2; margin-left: 0; }
  .topbar-actions { grid-column: 3; }
  /* Rail stacks on top on small screens, so never keep it collapsed there. */
  .dashboard.rail-collapsed .document-rail { transform: none; opacity: 1; pointer-events: auto; }
  .rail-header,
  .rail-footer,
  .rail-document-list { min-width: 0; }
  .document-rail {
    position: relative;
    top: 0;
    height: auto;
    max-height: 52vh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .dashboard.is-reading .rail-document-list { max-height: 21vh; }
  .rail-document-list { max-height: 40vh; }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 46px 42px;
    align-content: center;
    padding: 0 .9rem;
    gap: .55rem;
  }
  .top-search { grid-column: 1 / -1; grid-row: 2; height: 38px; padding-inline: .8rem; max-width: none; }
  .topbar-actions { grid-column: 2; grid-row: 1; gap: .3rem; }
  .topbar-actions .admin-link { gap: 0; padding: .42rem .5rem; }
  .topbar-actions .admin-link span { display: none; }
  .document-rail { max-height: 46vh; }
  .rail-header { padding-inline: .85rem; }
}

@media print {
  .topbar,
  .document-rail { display: none !important; }
}

/* Migrated shell rules from v02b-overrides.css, preserving entry-point cascade order. */
.topbar {
  grid-template-columns: 42px minmax(150px, 210px) minmax(180px, 460px) minmax(0, 1fr);
  padding-inline: 1.05rem;
  background: color-mix(in srgb, var(--obsidian) 88%, transparent);
  border-bottom: 1px solid var(--hairline);
}
.rail-toggle { border: 0; border-radius: 4px; background: transparent; }
.topbar-actions { gap: .55rem; }
.document-rail { background: color-mix(in srgb, var(--obsidian) 78%, transparent); }
.rail-header { gap: 1rem; padding: 1.15rem .85rem .9rem; }
.rail-library-switch button {
  display: grid;
  grid-template-rows: 26px auto;
  align-content: center;
  justify-items: center;
  gap: .4rem;
  min-height: 82px;
  padding: .8rem .85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
  color: var(--muted);
  font-size: .94rem;
  font-weight: 500;
  text-align: center;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.rail-library-switch .rail-library-dashboard { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: .65rem; min-height: 64px; }
.rail-library-dashboard svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.rail-library-switch .rail-library-dashboard > span { color: inherit; font-size: .83rem; line-height: 1.2; text-align: center; }
.rail-header-meta { padding: .8rem .7rem 0; border-top: 1px solid var(--hairline); }
.rail-document-list { padding: .25rem .7rem 1rem; }
.rail-footer { min-width: 0; padding-inline: .75rem; }

@media (max-width: 880px) {
  .topbar { grid-template-columns: 42px minmax(100px, 1fr) auto; }
  .rail-toggle { display: grid; grid-column: 1; grid-row: 1; place-items: center; }
  .topbar-actions { grid-column: 3; grid-row: 1; }
  .top-search { display: none; }
  .document-rail { position: relative; top: 0; height: auto; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .dashboard.rail-collapsed .document-rail { display: none; }
  .rail-library-switch button { min-height: 72px; white-space: normal; }
  .rail-header-meta,
  .rail-document-list,
  .rail-footer { display: none; }
}

@media (max-width: 680px) {
  .topbar { padding-inline: .55rem; }
}

/* Migrated shell rules from v041b.css, preserving entry-point cascade order. */
/* The top bar now prioritizes search and account actions. */
.topbar {
  grid-template-columns: minmax(220px, 460px) minmax(0, 1fr);
}

.top-search {
  grid-column: 1;
  margin-left: 0;
}

.topbar-actions { grid-column: 2; }

.rail-brand,
.rail-menu-bar,
.rail-header,
.rail-footer,
.rail-document-list {
  min-width: calc(var(--rail-width) - 1px);
}

.rail-brand {
  display: grid;
  place-items: center;
  min-height: 116px;
  padding: 1.05rem 0 .7rem;
  border-bottom: 1px solid var(--hairline);
}

.rail-menu-bar {
  min-height: 72px;
  padding: .8rem 4.7rem .75rem 1rem;
  border-bottom: 1px solid var(--hairline);
}

.rail-toggle {
  position: fixed;
  top: calc(var(--topbar) + 132px);
  left: calc(var(--rail-width) - 58px);
  z-index: 135;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--soft);
  box-shadow: var(--shadow-soft);
}

.dashboard.rail-collapsed .rail-toggle {
  top: calc(var(--topbar) + 12px);
  left: 12px;
}

.rail-header {
  gap: .8rem;
  padding: .75rem .85rem .7rem;
}

.rail-library-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .65rem .8rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.rail-library-dashboard svg { display: none; }

.rail-footer {
  margin-top: auto;
}

.user-menu > a,
.user-menu > button {
  font-weight: 700;
}

.rail-header-meta {
  padding: .65rem .45rem 0;
}
.rail-document-list { padding-inline: .7rem; }

@media (max-width: 980px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; }
  .top-search { grid-column: 1; }
  .topbar-actions { grid-column: 2; }
  .rail-toggle,
  .dashboard.rail-collapsed .rail-toggle {
    position: absolute;
    top: 128px;
    right: 16px;
    left: auto;
    display: grid;
  }
  .rail-brand,
  .rail-menu-bar,
  .rail-header,
  .rail-footer,
  .rail-document-list { min-width: 0; }
  .document-rail { max-height: none; }
  .rail-header-meta { display: flex; }
  .rail-document-list {
    display: block;
    max-height: 38vh;
    overflow-y: auto;
  }
  .rail-footer { display: flex; }
}

@media (max-width: 680px) {
  .rail-brand { min-height: 98px; }
  .rail-menu-bar { min-height: 66px; }
  .rail-toggle,
  .dashboard.rail-collapsed .rail-toggle { top: 108px; }
  .rail-library-switch button { min-height: 46px; font-size: .94rem; }
}

/* Migrated shell rules from v042b.css, preserving entry-point cascade order. */
:where(.rail-library-switch button, .rail-doc-main strong, .rail-group-heading strong, .user-menu a, .user-menu button) { font-size: 1.01rem; font-weight: 700; }

.topbar {
  grid-template-columns: var(--rail-top-width, 340px) minmax(260px, 560px) minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

.topbar-brand {
  grid-column: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: .7rem 1.35rem;
  border-right: 1px solid var(--hairline);
}

.topbar-brand img {
  display: block;
  width: min(90%, 280px);
  max-height: calc(var(--topbar) - 18px);
  object-fit: contain;
  filter: none !important;
}

.top-search {
  grid-column: 2;
  width: calc(100% - clamp(2.8rem, 8vw, 6.8rem));
  max-width: 560px;
  margin-left: clamp(1.4rem, 4vw, 3.4rem);
}

.topbar-actions {
  grid-column: 3;
  padding-right: 1.25rem;
}

.rail-brand { display: none; }
.rail-toggle { top: calc(var(--topbar) + 28px); }
.rail-menu-bar { min-height: 84px; padding-top: 1.15rem; }

@media (max-width: 1180px) {
  .topbar { --rail-top-width: 320px; grid-template-columns: var(--rail-top-width) minmax(220px, 1fr) auto; }
  .top-search { width: calc(100% - 2rem); margin-left: 1rem; }
  .topbar-brand img { width: 88%; }}

@media (max-width: 1400px) {
  .topbar-actions .admin-link { padding-inline: .55rem; }
  .topbar-actions .admin-link span { display: none; }}

@media (max-width: 760px) {
  .topbar { grid-template-columns: minmax(120px, 1fr) auto; grid-template-rows: 56px 48px; height: 104px; }
  .topbar-brand { grid-column: 1; grid-row: 1; justify-items: start; padding-inline: .8rem; border-right: 0; }
  .topbar-brand img { width: 142px; max-height: 42px; }
  .topbar-actions { grid-column: 2; grid-row: 1; padding-right: .55rem; }
  .top-search { grid-column: 1 / -1; grid-row: 2; width: calc(100% - 1.1rem); max-width: none; margin: 0 .55rem .45rem; }
  .rail-menu-bar { min-height: 72px; }}

/* Migrated shell rules from v0447b.css, preserving entry-point cascade order. */
/* V0.4.4.7B unified dashboard and two-column data room layout. */
#dashboard .command-shell {
  --rail-width: 340px;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
}

#dashboard.rail-collapsed .command-shell {
  grid-template-columns: 0 minmax(0, 1fr);
}


@media (max-width: 1400px) {
  #dashboard .command-shell {
    --rail-width: 330px;
    grid-template-columns: var(--rail-width) minmax(0, 1fr);
  }

  #dashboard.rail-collapsed .command-shell {
    grid-template-columns: 0 minmax(0, 1fr);
  }}

@media (max-width: 1120px) {
  #dashboard .command-shell {
    --rail-width: 320px;
    grid-template-columns: var(--rail-width) minmax(0, 1fr);
  }

  #dashboard.rail-collapsed .command-shell {
    grid-template-columns: 0 minmax(0, 1fr);
  }}

@media (max-width: 980px) {
  #dashboard .command-shell,
  #dashboard.rail-collapsed .command-shell {
    display: block;
  }}

/* Final consolidated reader shell corrections. */
/* Shared typography and topbar alignment. */
:where(.rail-library-switch button, .rail-doc-main strong, .rail-group-heading strong, .user-menu a, .user-menu button) {
  font-size: 1.01rem;
  font-weight: 700;
}

.topbar {
  grid-template-columns: var(--rail-top-width, 340px) minmax(260px, 560px) minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

.topbar-brand {
  grid-column: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: .7rem 1.35rem;
  border-right: 1px solid var(--hairline);
}

.topbar-brand img {
  display: block;
  width: min(90%, 280px);
  max-height: calc(var(--topbar) - 18px);
  object-fit: contain;
  filter: none !important;
}

.top-search {
  grid-column: 2;
  width: calc(100% - clamp(2.8rem, 8vw, 6.8rem));
  max-width: 560px;
  margin-left: clamp(1.4rem, 4vw, 3.4rem);
}

.topbar-actions {
  grid-column: 3;
  padding-right: 1.25rem;
}

.rail-brand { display: none; }
.rail-toggle { top: calc(var(--topbar) + 28px); }
.rail-menu-bar { min-height: 84px; padding-top: 1.15rem; }

@media (max-width: 1180px) {
  .topbar { --rail-top-width: 320px; grid-template-columns: var(--rail-top-width) minmax(220px, 1fr) auto; }
  .top-search { width: calc(100% - 2rem); margin-left: 1rem; }
  .topbar-brand img { width: 88%; }
}

@media (max-width: 1400px) {
  .topbar-actions .admin-link { padding-inline: .55rem; }
  .topbar-actions .admin-link span { display: none; }
}

@media (max-width: 760px) {
  :root { --topbar: 104px; }
  .topbar { grid-template-columns: minmax(120px, 1fr) auto; grid-template-rows: 56px 48px; height: 104px; }
  .topbar-brand { grid-column: 1; grid-row: 1; justify-items: start; padding-inline: .8rem; border-right: 0; }
  .topbar-brand img { width: 142px; max-height: 42px; }
  .topbar-actions { grid-column: 2; grid-row: 1; padding-right: .55rem; }
  .top-search { grid-column: 1 / -1; grid-row: 2; width: calc(100% - 1.1rem); max-width: none; margin: 0 .55rem .45rem; }
  .rail-menu-bar { min-height: 72px; }
}

/* Unified dashboard and two-column data room layout. */
#dashboard .command-shell {
  --rail-width: 340px;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
}

#dashboard.rail-collapsed .command-shell {
  grid-template-columns: 0 minmax(0, 1fr);
}

@media (max-width: 1400px) {
  #dashboard .command-shell {
    --rail-width: 330px;
    grid-template-columns: var(--rail-width) minmax(0, 1fr);
  }

  #dashboard.rail-collapsed .command-shell {
    grid-template-columns: 0 minmax(0, 1fr);
  }
}

/* V0.9.9.447B final reader ownership. */
.topbar-brand { width: 100%; padding: .55rem .75rem; }
.topbar-brand img { width: 100%; max-width: none; max-height: calc(var(--topbar) - 12px); object-fit: contain; }
.rail-footer { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; gap: .16rem; width: 100%; min-width: 0; margin: auto 0 0; padding: .72rem .8rem .78rem; border: 0; border-top: 1px solid var(--hairline); border-radius: 0; background: transparent; text-align: center; }
.rail-footer > :is(button, span) { width: 100%; padding: 0; border: 0; color: var(--ghost); background: transparent; font: 700 var(--umbral-font-size-supporting)/1.12 var(--mono); letter-spacing: .055em; text-align: center; text-transform: uppercase; }
.rail-footer > button { color: var(--gold); cursor: pointer; }
.rail-footer > button:hover { color: var(--gold-bright); }
.rail-deck-link { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: .7rem; min-height: 58px; padding: .65rem .7rem; border-top: 1px solid color-mix(in srgb,var(--hairline) 70%,transparent); color: var(--soft); text-decoration: none; }
.rail-deck-link img { width: 24px; height: 34px; object-fit: contain; }
.rail-deck-link strong { font-size: .92rem; line-height: 1.25; }
.rail-deck-link > span { color: var(--gold); font-size: .78rem; }
.rail-deck-link:hover { background: var(--gold-glow); }
.deck-action { grid-template-columns: 38px minmax(0, 1fr) auto; gap: .8rem; }
.deck-action > img { width: 34px; height: 48px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,.24)); }
.reader-context-copy { flex: 1 1 320px; min-width: 220px; }
.reader-context-copy .document-subtitle { margin: 0 0 .3rem; }
.reader-context-copy .document-meta { margin: 0; }
.document-meta-line #reader-save { display: inline-flex; align-items: center; justify-content: center; min-width: 138px; min-height: 44px; padding: .7rem 1rem; line-height: 1; }
@media (max-width: 759px) { .topbar-brand img { width: 142px; } .reader-context-copy { flex-basis: 100%; } }

/* V0.9.9.448B reader scale, compact titles, and true full-width collapsed mode. */
.reader-body {
  font-size: calc(1rem * var(--reader-scale, 1.15));
}

.reader-body :is(p, li, td, th, blockquote) {
  font-size: 1em;
}

.document-header h1 {
  font-size: clamp(2rem, 3.6vw, 3.45rem);
}

.command-hero h1,
.dashboard[data-library="property"] .command-hero h1 {
  font-size: clamp(1.95rem, 3.5vw, 3.25rem);
  line-height: 1.08;
  padding-bottom: .08em;
  overflow: visible;
}

#dashboard.rail-collapsed .reader-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
}

#dashboard.rail-collapsed .reader-document {
  width: 100%;
  max-width: none;
}

#dashboard.rail-collapsed .reader-aside {
  display: none;
}

/* V0.9.9.58B contained document readers. */
@media screen {
  #dashboard :is(
    .reader-view[data-reader-collection="documents"],
    .reader-view[data-reader-collection="research"]
  ) {
    padding: clamp(.75rem, 2.2vw, 2rem) clamp(.7rem, 2.5vw, 2.4rem) clamp(2rem, 5vw, 5rem);
  }

  #dashboard :is(
    .reader-view[data-reader-collection="documents"],
    .reader-view[data-reader-collection="research"]
  ) .reader-grid {
    width: min(1120px, 100%);
    max-width: 1120px;
    margin-inline: auto;
  }

  #dashboard :is(
    .reader-view[data-reader-collection="documents"],
    .reader-view[data-reader-collection="research"]
  ) .reader-document {
    position: relative;
    width: 100%;
    max-width: 1120px;
    overflow: clip;
    border: 1px solid var(--hairline);
    border-radius: clamp(18px, 2vw, 28px);
    background: color-mix(in srgb, var(--panel) 94%, transparent);
    box-shadow: 0 26px 70px color-mix(in srgb, #000 20%, transparent);
  }

  #dashboard :is(
    .reader-view[data-reader-collection="documents"],
    .reader-view[data-reader-collection="research"]
  ) .reader-toolbar {
    top: var(--topbar);
  }

  @media (max-width: 680px) {
    #dashboard :is(
      .reader-view[data-reader-collection="documents"],
      .reader-view[data-reader-collection="research"]
    ) {
      padding-inline: .55rem;
    }
  }
}

/* Shared question and usefulness actions for every diligence reader. */
.content-support-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 0 clamp(1.2rem, 3.4vw, 2.6rem) clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--hairline);
  border-radius: clamp(16px, 2vw, 24px);
  background: color-mix(in srgb, var(--panel-strong) 96%, transparent);
}
.content-support-actions > div > p {
  margin: 0;
  color: var(--gold);
  font: 800 .62rem/1.2 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.content-support-actions > div > h3 {
  margin: .3rem 0;
  color: var(--cream);
  font: 600 1.45rem/1.1 var(--display);
}
.content-support-actions > div > span { color: var(--ghost); font-size: .82rem; }
.content-question-action {
  min-height: 48px;
  padding: .75rem 1.2rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--ink);
  background: var(--gold);
  font-weight: 850;
  cursor: pointer;
}
.content-support-actions fieldset {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: .55rem;
  min-width: 0;
  margin: .25rem 0 0;
  padding: 1rem 0 0;
  border: 0;
  border-top: 1px solid var(--hairline);
}
.content-support-actions legend {
  float: left;
  margin: .75rem 1rem 0 0;
  color: var(--cream);
  font-weight: 750;
}
.content-support-actions fieldset button {
  min-width: 82px;
  min-height: 42px;
  padding: .55rem .8rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--soft);
  background: transparent;
  font-weight: 750;
  cursor: pointer;
}
.content-support-actions fieldset button:is(:hover, :focus-visible, [aria-pressed="true"]) {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: var(--gold-glow);
}
.content-feedback-status {
  grid-column: 1 / -1;
  min-height: 1.2rem;
  margin: 0;
  color: var(--ghost);
  font-size: .78rem;
}
.content-feedback-form {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .45rem .75rem;
  align-items: end;
}
.content-feedback-form label {
  grid-column: 1 / -1;
  color: var(--ghost);
  font-size: .78rem;
  font-weight: 750;
}
.content-feedback-form textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  padding: .75rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  color: var(--cream);
  background: var(--glass);
  font: inherit;
}
.content-feedback-form button {
  min-height: 44px;
  padding: .7rem 1rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--ink);
  background: var(--gold);
  font-weight: 800;
  cursor: pointer;
}
.content-feedback-form button:disabled { cursor: not-allowed; opacity: .55; }
.content-support-actions--workbook { margin-top: 1.25rem; }

@media (max-width: 680px) {
  .content-support-actions { grid-template-columns: 1fr; margin-inline: .75rem; }
  .content-question-action { width: 100%; }
  .content-support-actions fieldset { flex-wrap: wrap; }
  .content-support-actions legend { flex: 1 0 100%; margin: 0 0 .4rem; }
  .content-feedback-form { grid-template-columns: 1fr; }
  .content-feedback-form button { width: 100%; }
}

.document-meta-line #reader-save {
  min-width: 150px;
  min-height: 48px;
  border-color: var(--gold);
  background: var(--gold);
  color: #152218;
  font-size: .9rem;
  font-weight: 800;
}

.user-menu-toggle.umbral-auth-user {
  padding-left: 1.15rem;
}

@media (max-width: 1120px) {
  #dashboard .command-shell {
    --rail-width: 320px;
    grid-template-columns: var(--rail-width) minmax(0, 1fr);
  }

  #dashboard.rail-collapsed .command-shell {
    grid-template-columns: 0 minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  #dashboard .command-shell,
  #dashboard.rail-collapsed .command-shell {
    display: block;
  }
}

/* Data room navigation refinement. */
.topbar {
  grid-template-columns: minmax(210px, 340px) auto minmax(240px, 560px) minmax(0, 1fr) !important;
}

.topbar-brand { grid-column: 1 !important; }

.topbar > .rail-toggle,
.dashboard.rail-collapsed .topbar > .rail-toggle {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  grid-column: 2;
  align-self: center;
  display: grid;
  width: 42px;
  height: 42px;
  margin-left: 1rem;
}

.top-search {
  grid-column: 3 !important;
  width: calc(100% - 2rem) !important;
  margin-left: 1rem !important;
}

.topbar-actions { grid-column: 4 !important; }
.rail-library-switch button { justify-content: center; text-align: center; }
.rail-library-dashboard svg { display: none; }
.rail-footer { margin-top: auto; }
.rail-footer a:hover { color: var(--gold-bright); }

@media (max-width: 980px) {
  :root { --topbar: 108px; }
  .topbar {
    grid-template-columns: minmax(120px, 1fr) auto auto !important;
    grid-template-rows: 58px 50px;
    height: 108px;
  }
  .topbar-brand { grid-column: 1 !important; grid-row: 1; }
  .topbar > .rail-toggle,
  .dashboard.rail-collapsed .topbar > .rail-toggle {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
  }
  .topbar-actions { grid-column: 3 !important; grid-row: 1; }
  .top-search {
    grid-column: 1 / -1 !important;
    grid-row: 2;
    width: calc(100% - 1.1rem) !important;
    max-width: none;
    margin: 0 .55rem .45rem !important;
  }
}

@media (max-width: 520px) {
  .topbar-brand img { width: 118px; }
  .topbar > .rail-toggle,
  .dashboard.rail-collapsed .topbar > .rail-toggle { width: 38px; height: 38px; }
}

/* Durable data room surface corrections. */
.rail-library-switch button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .65rem .8rem;
  font-family: var(--sans);
  font-size: 1.01rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.rail-library-switch .rail-library-dashboard {
  grid-column: 1 / -1;
  min-height: 50px;
  padding: .65rem .8rem;
}

.rail-library-switch .rail-library-dashboard > span {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: inherit;
}

.rail-document-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.rail-footer {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .5rem;
  width: 100%;
  min-width: 0;
  margin-top: auto;
  padding: .9rem 1rem;
  flex: 0 0 auto;
}

.rail-footer > a,
.rail-footer > span {
  display: block;
  width: 100%;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .1em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.rail-footer > a {
  color: var(--gold);
  text-decoration: none;
}

.rail-footer > span {
  color: var(--faint);
}

.user-menu > a,
.user-menu > button {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin: 0;
  padding: .72rem .75rem;
  border: 0;
  font-family: var(--sans);
  font-size: 1.01rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.rail-library-switch button:focus-visible,
.user-menu > :is(a, button):focus-visible {
  box-shadow: var(--umbral-focus-ring);
}

/* Effective shared accessibility floor for reader rail support links. */
.rail-footer > a,
.rail-footer > span {
  font-size: var(--umbral-font-size-supporting);
}

.rail-backdrop,
.mobile-rail-close {
  display: none;
}

.rail-backdrop[hidden] {
  display: none;
}

@media (max-width: 759px) {
  body.mobile-rail-open {
    overflow: hidden;
  }

  .rail-backdrop {
    position: fixed;
    inset: 0;
    z-index: calc(var(--umbral-layer-dialog) - 2);
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: color-mix(in srgb, var(--umbral-color-canvas) 72%, transparent);
    backdrop-filter: blur(3px);
    cursor: pointer;
  }

  #dashboard .command-shell,
  #dashboard.rail-collapsed .command-shell {
    display: block;
  }

  .document-rail {
    position: fixed;
    top: var(--topbar);
    bottom: 0;
    left: 0;
    z-index: calc(var(--umbral-layer-dialog) - 1);
    width: min(88vw, 340px);
    height: auto;
    max-height: none;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    background: var(--obsidian);
    box-shadow: var(--umbral-shadow-dialog);
    transition: transform var(--umbral-duration-fast) var(--umbral-ease-standard), opacity var(--umbral-duration-fast) var(--umbral-ease-standard), visibility 0s linear var(--umbral-duration-fast);
  }

  .dashboard.rail-collapsed .document-rail {
    transform: translateX(-105%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .dashboard:not(.rail-collapsed) .document-rail {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .mobile-rail-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: var(--umbral-control-height);
    margin: .75rem .75rem 0;
    border: 1px solid var(--line);
    border-radius: var(--umbral-radius-control);
    background: var(--glass);
    color: var(--ink);
    font-size: var(--umbral-font-size-control);
    font-weight: 700;
  }

  .rail-header,
  .rail-footer,
  .rail-document-list {
    min-width: 0;
  }

  .rail-document-list,
  .dashboard.is-reading .rail-document-list {
    max-height: none;
  }
}

/* V0.9.9.447B navigation and document polish. */
.topbar-brand { width: 100%; padding: .55rem .75rem; }
.topbar-brand img { width: 100%; max-width: none; max-height: calc(var(--topbar) - 12px); object-fit: contain; }
.rail-footer { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; gap: .16rem; width: 100%; min-width: 0; margin: auto 0 0; padding: .72rem .8rem .78rem; border: 0; border-top: 1px solid var(--hairline); border-radius: 0; background: transparent; text-align: center; }
.rail-footer > :is(button, span) { width: 100%; padding: 0; border: 0; color: var(--ghost); background: transparent; font: 700 var(--umbral-font-size-supporting)/1.12 var(--mono); letter-spacing: .055em; text-align: center; text-transform: uppercase; }
.rail-footer > button { color: var(--gold); cursor: pointer; }
.rail-footer > button:hover { color: var(--gold-bright); }
.rail-deck-link { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: .7rem; min-height: 58px; padding: .65rem .7rem; border-top: 1px solid color-mix(in srgb,var(--hairline) 70%,transparent); color: var(--soft); text-decoration: none; }
.rail-deck-link img { width: 24px; height: 34px; object-fit: contain; }
.rail-deck-link strong { font-size: .92rem; line-height: 1.25; }
.rail-deck-link > span { color: var(--gold); font-size: .78rem; }
.rail-deck-link:hover { background: var(--gold-glow); }
.deck-action { grid-template-columns: 38px minmax(0, 1fr) auto; gap: .8rem; }
.deck-action > img { width: 34px; height: 48px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,.24)); }
.reader-context-copy { flex: 1 1 320px; min-width: 220px; }
.reader-context-copy .document-subtitle { margin: 0 0 .3rem; }
.reader-context-copy .document-meta { margin: 0; }
.document-meta-line #reader-save { display: inline-flex; align-items: center; justify-content: center; min-width: 138px; min-height: 44px; padding: .7rem 1rem; line-height: 1; }

/* V0.9.9.61B compact reader controls. */
.reader-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
}
.reader-toolbar #reader-question {
  min-height: 40px;
  padding: .55rem .85rem;
  border: 1px solid color-mix(in srgb, var(--gold) 70%, var(--hairline));
  border-radius: 999px;
  color: var(--gold-bright);
  background: color-mix(in srgb, var(--gold) 8%, transparent);
  letter-spacing: .04em;
  text-transform: none;
}
.reader-toolbar #reader-question:is(:hover, :focus-visible) {
  border-color: var(--gold);
  background: var(--gold-glow);
}
.document-meta-line {
  gap: .55rem .9rem;
  padding-top: .8rem;
}
.reader-context-copy {
  flex: 1 0 100%;
  min-width: 0;
}
@media (max-width: 620px) {
  .reader-toolbar {
    align-items: flex-start;
    gap: .55rem;
  }
  .reader-toolbar-actions {
    flex-wrap: wrap;
  }
  .reader-toolbar #reader-question {
    flex: 1 0 100%;
  }
}
@media (max-width: 759px) { .topbar-brand img { width: 142px; } .reader-context-copy { flex-basis: 100%; } }

/* Property library chrome */
.rail-main-menu {
  display: grid;
  gap: .7rem;
  padding: .2rem .85rem .85rem;
  border-bottom: 1px solid var(--hairline);
}
.rail-main-menu .rail-collection-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rail-main-menu .rail-header-meta { display: flex; align-items: baseline; justify-content: space-between; padding-inline: .35rem; }
.rail-deck-link.rail-doc-row { grid-template-columns: minmax(0, 1fr) auto; min-height: 68px; border-top: 0; }
.rail-deck-external { align-self: center; color: var(--gold); font-size: .82rem; }

.dashboard[data-library="property"] .command-hero {
  min-height: clamp(210px, 28vw, 300px);
  padding-block: clamp(1.8rem, 4vw, 3.2rem);
}

.dashboard[data-library="property"] .command-hero h1 {
  margin-bottom: .8rem;
  font-size: clamp(2.45rem, 4.4vw, 4.8rem);
}

.rail-doc-row.rail-property-row {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding-block: .8rem;
}

.rail-property-row .rail-doc-main {
  width: 100%;
}

.rail-property-row .rail-doc-main strong {
  display: block;
  width: 100%;
  white-space: normal;
}

.rail-property-meta {
  display: flex;
  align-items: center;
  gap: .42rem;
  min-width: 0;
}

.rail-property-meta .rail-doc-state {
  position: static;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin: 0;
  border: 0;
  background: var(--emerald);
  box-shadow: 0 0 8px color-mix(in srgb, var(--emerald) 55%, transparent);
}

.rail-property-meta .rail-doc-number {
  flex: 0 0 auto;
  padding: 0;
  color: var(--gold);
  font-size: inherit;
}

@media (max-width: 759px) {
  .dashboard[data-library="property"] .command-hero {
    min-height: 220px;
  }
}

/* V0.9.9.445B data room refinement. */
.topbar-brand {
  padding: .45rem 1rem;
}

.topbar-brand img {
  width: 100%;
  max-width: 314px;
  max-height: calc(var(--topbar) - 14px);
}

.umbral-auth-user {
  padding-inline: .85rem;
}

.umbral-auth-user > #user-chip,
.umbral-auth-user > #admin-user-name {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: .84rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-action {
  grid-template-columns: 32px minmax(0, 1fr);
  min-height: 62px;
  padding: 10px 12px;
  border-color: var(--hairline);
  background: transparent;
}

.dashboard-action > span {
  width: 26px;
  height: 38px;
  border-radius: 0;
  background: transparent;
}

/* V0.9.9.454B top-level collection navigation. */
.topbar {
  grid-template-columns: minmax(170px, 290px) 44px minmax(360px, 1fr) minmax(190px, 340px) auto !important;
  gap: clamp(.45rem, .8vw, .85rem);
}
.top-collection-nav {
  grid-column: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .42rem;
  min-width: 0;
}
.top-collection-nav button {
  min-width: 0;
  min-height: 42px;
  padding: .58rem clamp(.55rem, .8vw, .9rem);
  border: 1px solid color-mix(in srgb, var(--gold) 24%, var(--hairline));
  border-radius: 999px;
  color: var(--soft);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  font: 800 clamp(.62rem, .68vw, .72rem)/1 var(--sans);
  letter-spacing: .035em;
  white-space: nowrap;
  cursor: pointer;
}
.top-collection-nav button:is(:hover, :focus-visible) {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: var(--gold-glow);
}
.top-collection-nav button[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--gold) 70%, var(--hairline));
  color: var(--cream);
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 18%, var(--panel)), color-mix(in srgb, var(--forest) 32%, var(--panel)));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 10%, transparent);
}
.top-search {
  grid-column: 4 !important;
  width: 100% !important;
  margin-left: 0 !important;
}
.topbar-actions { grid-column: 5 !important; }
.rail-collection-meta {
  display: none;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
  padding: .75rem 1.2rem .7rem;
  border-bottom: 1px solid var(--hairline);
}
.dashboard:is([data-library="documents"], [data-library="financial"], [data-library="research"], [data-library="property"], [data-library="saved"]) .rail-collection-meta { display: flex; }
.rail-collection-meta p,
.rail-collection-meta strong { margin: 0; }
.rail-collection-meta p { color: var(--ghost); font: 800 .62rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.rail-collection-meta strong { color: var(--gold-bright); font: 800 .74rem/1.2 var(--mono); }

@media (max-width: 1500px) {
  .top-search kbd,
  .topbar-actions .admin-link span,
  .topbar-actions .theme-toggle-text { display: none !important; }
}

@media (max-width: 1180px) {
  :root { --topbar: 72px; }
  .topbar {
    grid-template-columns: minmax(150px, 220px) 40px minmax(330px, 1fr) minmax(150px, 230px) auto !important;
    grid-template-rows: 72px;
    height: var(--topbar);
    gap: 0 .4rem;
  }
  .topbar-brand { grid-column: 1 !important; grid-row: 1; }
  .topbar > .rail-toggle,
  .dashboard.rail-collapsed .topbar > .rail-toggle { grid-column: 2; grid-row: 1; margin-left: 0; }
  .top-collection-nav { grid-column: 3; grid-row: 1; padding: 0; }
  .top-search { grid-column: 4 !important; grid-row: 1; width: 100% !important; margin: 0 !important; }
  .topbar-actions { grid-column: 5 !important; grid-row: 1; gap: .35rem; }
  .topbar-actions .admin-link { padding-inline: .55rem; }
  .topbar-actions .admin-link span,
  .topbar-actions .theme-toggle-text,
  .top-search kbd { display: none !important; }
}

@media (max-width: 900px) {
  :root { --topbar: 112px; }
  .topbar {
    grid-template-columns: minmax(140px, 1fr) auto auto !important;
    grid-template-rows: 58px 54px;
    height: var(--topbar);
  }
  .topbar-brand { grid-column: 1 !important; grid-row: 1; }
  .topbar > .rail-toggle,
  .dashboard.rail-collapsed .topbar > .rail-toggle { grid-column: 2; grid-row: 1; }
  .topbar-actions { grid-column: 3 !important; grid-row: 1; }
  .top-collection-nav {
    grid-column: 1 / 3;
    grid-row: 2;
    padding: 0 0 .5rem .55rem;
  }
  .top-search { grid-column: 3 !important; grid-row: 2; width: calc(100% - .55rem) !important; margin: 0 .55rem .5rem 0 !important; }
}

@media (max-width: 650px) {
  :root { --topbar: 160px; }
  .topbar { grid-template-rows: 56px 50px 54px; height: var(--topbar); }
  .top-collection-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
    grid-template-columns: repeat(4, minmax(105px, 1fr));
    padding: 0 .55rem .45rem;
    scrollbar-width: none;
  }
  .top-collection-nav::-webkit-scrollbar { display: none; }
  .top-search { grid-column: 1 / -1 !important; grid-row: 3; width: calc(100% - 1.1rem) !important; margin: 0 .55rem .5rem !important; }
}

.dashboard-action > span img {
  width: 24px;
  height: 36px;
  filter: drop-shadow(0 5px 10px rgba(174, 132, 51, .24));
}

.dashboard-action strong {
  font-size: .88rem;
  line-height: 1.25;
}

.dashboard-action small {
  font-size: .68rem;
  line-height: 1.35;
}

.rail-group {
  margin: 0;
  padding: .28rem 0;
}

.rail-group + .rail-group {
  border-top: 1px solid var(--hairline);
}

.rail-group-heading {
  display: block;
  padding: .72rem .7rem .38rem;
}

.rail-group-heading strong {
  display: block;
  overflow: visible;
  color: var(--gold);
  font-size: .73rem;
  font-weight: 750;
  letter-spacing: .13em;
  line-height: 1.25;
  white-space: normal;
  text-overflow: clip;
}

.rail-doc-row,
.rail-doc-row.rail-property-row {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  padding: .72rem .7rem;
  border-radius: 7px;
}

.rail-doc-row + .rail-doc-row {
  border-top: 1px solid color-mix(in srgb, var(--hairline) 70%, transparent);
}

.rail-doc-main {
  width: 100%;
}

.rail-doc-main strong {
  font-size: 1.04rem;
  font-weight: 650;
  line-height: 1.28;
}

.rail-doc-main small.rail-doc-meta {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-top: .3rem;
  color: var(--ghost);
  font-size: .74rem;
  line-height: 1.25;
}

.rail-doc-meta .rail-doc-state {
  position: static;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin: 0;
}

.rail-doc-meta .rail-doc-state.unread {
  border: 0;
  background: #c75f56;
  box-shadow: 0 0 8px rgba(199, 95, 86, .38);
}

.rail-footer {
  align-items: center;
  gap: .12rem;
  width: auto;
  min-width: 0;
  margin: 0 .65rem .55rem;
  padding: .5rem .65rem;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  text-align: center;
}

.rail-footer > a,
.rail-footer > span {
  width: 100%;
  font-size: var(--umbral-font-size-supporting);
  line-height: 1.08;
  letter-spacing: .055em;
  text-align: center;
}

.command-hero,
.dashboard[data-library="property"] .command-hero {
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(205px, 23vw, 255px);
  padding: clamp(1.65rem, 3vw, 2.7rem) clamp(1.4rem, 4vw, 3.4rem);
}

.command-hero h1,
.dashboard[data-library="property"] .command-hero h1 {
  max-width: 920px;
  margin-bottom: .7rem;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1;
}

.hero-description {
  max-width: 74ch;
  font-size: clamp(.88rem, 1.1vw, 1rem);
  line-height: 1.55;
}

.deck-actions {
  gap: 1rem;
  padding: 1.2rem clamp(1.4rem, 4vw, 3.4rem);
}

.deck-action {
  position: relative;
  min-height: 86px;
  overflow: hidden;
  padding: 1.15rem 1.25rem;
  border-color: color-mix(in srgb, var(--gold) 34%, var(--line));
  border-radius: 12px;
  background:
    radial-gradient(circle at 96% 5%, color-mix(in srgb, var(--gold) 13%, transparent), transparent 42%),
    linear-gradient(135deg, color-mix(in srgb, var(--panel) 86%, transparent), color-mix(in srgb, var(--forest) 14%, transparent));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .09);
  font-size: 1rem;
  font-weight: 750;
}

.deck-action::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -70%;
  width: 42%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .12), transparent);
  transform: skewX(-18deg);
  transition: left .45s ease;
}

.deck-action:hover::before {
  left: 130%;
}

.deck-action svg {
  width: 22px;
}

@media (max-width: 760px) {
  .topbar-brand img {
    width: min(100%, 170px);
  }

  .command-hero,
  .dashboard[data-library="property"] .command-hero {
    min-height: 210px;
    padding-block: 1.6rem;
  }

  .deck-actions {
    grid-template-columns: 1fr;
  }

  .deck-action {
    min-height: 68px;
  }
}

/* V0.9.9.447B final rail brand ownership */
.umbral-auth-page .topbar-brand img {
  width: 100%;
  max-width: none;
  height: calc(var(--topbar) - 12px);
  max-height: none;
  object-fit: contain;
}

@media (max-width: 760px) {
  .umbral-auth-page .topbar-brand img {
    width: min(100%, 170px);
    height: auto;
  }
}

.umbral-auth-page .rail-footer {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  width: 100%;
  min-width: 0;
  margin: auto 0 0;
  padding: .6rem .8rem .65rem;
  border: 0;
  border-top: 1px solid var(--hairline);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.umbral-auth-page .rail-footer {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: .12rem;
  width: 100%;
  min-width: 0;
  margin: auto 0 0;
  padding: .6rem .8rem .65rem;
  border: 0;
  border-top: 1px solid var(--hairline);
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.umbral-auth-page .rail-footer > :is(button, span) {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: var(--umbral-font-size-supporting);
  line-height: 1.08;
  letter-spacing: .045em;
  text-align: center;
}

/* V0.9.9.454B full-width Data Room canvas and contextual navigation. */
#dashboard .content-shell { width: 100%; max-width: none; min-width: 0; border-right: 0; }
#dashboard.rail-collapsed .content-shell { width: 100%; max-width: none; }
#dashboard .command-shell { width: 100%; max-width: none; }
.contextual-rail { display: grid; align-content: start; gap: .35rem; padding: .6rem; }
.contextual-rail-kicker { margin: .3rem .45rem .55rem; color: var(--gold); font: 800 .6rem/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.contextual-rail-item { display: grid; gap: .25rem; width: 100%; min-height: 62px; padding: .72rem .8rem; border: 1px solid transparent; border-radius: 11px; color: var(--soft); background: transparent; text-align: left; cursor: pointer; }
.contextual-rail-item strong { font-size: .78rem; }
.contextual-rail-item small { color: var(--ghost); font-size: .62rem; line-height: 1.35; }
.contextual-rail-item:is(:hover,.active) { border-color: var(--gold-dim); background: color-mix(in srgb, var(--forest) 22%, transparent); }
.contextual-rail-item.active strong { color: var(--gold-bright); }
.auth-pending-screen.needs-attention { gap: .8rem; }
#auth-session-retry { min-height: 42px; padding: .65rem 1rem; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold-bright); background: color-mix(in srgb, var(--gold) 8%, transparent); font-weight: 800; cursor: pointer; }
.deck-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.deck-action:is(button) { width: 100%; font: inherit; text-align: left; cursor: pointer; }
@media(max-width:1100px) { .deck-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width:650px) { .deck-actions { grid-template-columns: 1fr; } }

/* V0.9.9.492B first-class investor deck catalogue */
.document-deck-catalogue {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  padding: 0 0 clamp(1.2rem, 2.6vw, 1.8rem);
  border: 0;
}
.document-deck-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: .85rem;
  min-height: 104px;
  padding: 1rem;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 94%, var(--gold) 6%);
  box-shadow: 0 12px 28px rgba(20, 26, 20, .07);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}
.document-deck-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--gold) 68%, transparent);
  box-shadow: 0 18px 38px rgba(20, 26, 20, .12);
}
.document-deck-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold) 72%, white);
  outline-offset: 3px;
}
.document-deck-card > img { width: 38px; height: 54px; object-fit: contain; }
.document-deck-card > span { display: grid; gap: .16rem; min-width: 0; }
.document-deck-card small { color: var(--gold-strong, #9b7428); font-size: .66rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.document-deck-card strong { overflow: hidden; font-size: .98rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.document-deck-card em { color: var(--muted); font-size: .76rem; font-style: normal; }
.document-deck-card > svg { width: 18px; fill: none; stroke: var(--gold-strong, #9b7428); stroke-width: 1.8; }
[data-theme="dark"] .document-deck-card { color: #f7f2df; background: linear-gradient(145deg, rgba(28, 57, 40, .94), rgba(11, 28, 20, .96)); }
[data-theme="dark"] .document-deck-card em { color: rgba(255, 255, 255, .68); }
@media(max-width:1180px) { .document-deck-catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width:680px) { .document-deck-catalogue { grid-template-columns: 1fr; } }
@media(prefers-reduced-motion:reduce) { .document-deck-card { transition: none; } }

/* V0.9.9.453B focused member navigation and action surfaces. */
.rail-header { gap: .65rem; }
.rail-dashboard-switch { display: block; }
.rail-dashboard-switch .rail-library-dashboard {
  width: 100%;
  min-height: 58px;
  border-color: color-mix(in srgb, var(--gold) 46%, var(--hairline));
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 15%, var(--panel)), color-mix(in srgb, var(--forest) 28%, var(--panel)));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 8%, transparent), 0 12px 30px rgba(0, 0, 0, .1);
}
.rail-collection-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
  padding-top: .65rem;
  border-top: 1px solid var(--hairline);
}
.rail-collection-switch button { min-height: 46px; }
.top-search kbd { display: inline-flex; align-items: center; gap: .32rem; white-space: nowrap; }
.top-search kbd span { color: var(--ghost); font-size: .78em; }
.dashboard-action {
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 66px;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line));
  border-radius: 12px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--panel) 95%, var(--gold) 5%), color-mix(in srgb, var(--forest) 14%, var(--panel)));
  box-shadow: 0 9px 22px rgba(0, 0, 0, .08), inset 0 1px 0 color-mix(in srgb, var(--cream) 7%, transparent);
}
.dashboard-action:is(:hover, :focus-visible) {
  border-color: var(--gold);
  background: linear-gradient(145deg, color-mix(in srgb, var(--gold) 13%, var(--panel)), color-mix(in srgb, var(--forest) 24%, var(--panel)));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .14), var(--umbral-focus-ring);
}
.dashboard-action > span {
  width: 34px;
  height: 42px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--gold) 12%, var(--panel));
}
.dashboard-action strong { color: var(--cream); font-size: .9rem; }
.dashboard-action small { color: var(--soft); font-size: .69rem; }
[data-theme="light"] .dashboard-action {
  background: linear-gradient(145deg, #fffdf8, color-mix(in srgb, var(--forest) 8%, #fff));
  box-shadow: 0 8px 20px rgba(26, 48, 35, .08);
}
@media (max-width: 880px) {
  .rail-collection-switch { display: flex; overflow-x: auto; border-top: 0; padding-top: 0; }
  .rail-collection-switch button { flex: 0 0 auto; min-width: 120px; }
}

/* V0.9.9.456B Data Room shell polish. */
.dashboard {
  --rail-width: var(--umbral-auth-rail-width);
}

#dashboard .command-shell,
#dashboard.rail-collapsed .command-shell {
  --rail-width: var(--umbral-auth-rail-width);
}

.topbar {
  grid-template-columns: var(--rail-width) 48px minmax(170px, 220px) minmax(380px, 1fr) auto !important;
  gap: .6rem;
  padding: 0 .9rem 0 0;
  border-bottom: 1px solid var(--line);
}

.topbar-brand {
  grid-column: 1 !important;
  box-sizing: border-box;
  width: var(--rail-width);
  height: 100%;
  padding: .5rem 1rem;
  border-right: 1px solid var(--line);
}

.topbar > .rail-toggle,
.dashboard.rail-collapsed .topbar > .rail-toggle {
  grid-column: 2;
  margin-left: 0;
}

.top-search {
  grid-column: 3 !important;
  display: flex;
  width: 100% !important;
  max-width: 220px;
  min-height: 36px;
  margin: 0 !important;
  padding-inline: .72rem;
}

.top-search input {
  min-width: 0;
  font-size: .78rem;
}

.top-collection-nav {
  grid-column: 4;
  justify-self: start;
  width: min(100%, 580px);
  gap: .34rem;
}

.top-collection-nav button {
  min-height: 36px;
  padding: .48rem clamp(.58rem, .75vw, .82rem);
  border-color: color-mix(in srgb, var(--line) 82%, var(--gold) 18%);
  border-radius: 9px;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  font-family: var(--sans);
  font-size: clamp(.62rem, .65vw, .7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .025em;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--cream) 5%, transparent);
}

.top-collection-nav button[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--emerald) 72%, var(--line));
  color: var(--cream);
  background: color-mix(in srgb, var(--emerald) 24%, var(--panel));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--emerald) 18%, transparent);
}

.topbar-actions {
  grid-column: 5 !important;
}

.rail-dashboard-switch .rail-library-dashboard {
  border-color: var(--hairline);
  color: var(--soft);
  background: transparent;
  box-shadow: none;
}

.rail-dashboard-switch .rail-library-dashboard:is(:hover, :focus-visible) {
  border-color: color-mix(in srgb, var(--emerald) 58%, var(--hairline));
  color: var(--cream);
  background: color-mix(in srgb, var(--emerald) 10%, var(--panel));
}

.rail-dashboard-switch .rail-library-dashboard[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--emerald) 72%, var(--hairline));
  color: var(--cream);
  background: linear-gradient(135deg, color-mix(in srgb, var(--emerald) 24%, var(--panel)), color-mix(in srgb, var(--forest) 38%, var(--panel)));
  box-shadow: inset 3px 0 0 var(--emerald), 0 10px 24px rgba(0, 0, 0, .1);
}

[data-theme="light"] .rail-dashboard-switch .rail-library-dashboard {
  color: var(--forest);
  background: transparent;
}

[data-theme="light"] .rail-dashboard-switch .rail-library-dashboard[aria-pressed="true"] {
  color: #123d2a;
  background: color-mix(in srgb, var(--emerald) 13%, #fff);
}

.dashboard-action {
  opacity: 1;
  border-color: color-mix(in srgb, var(--line) 78%, var(--soft) 22%);
  color: var(--cream);
  background: color-mix(in srgb, var(--panel) 97%, var(--forest) 3%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .1), inset 0 1px 0 color-mix(in srgb, var(--cream) 8%, transparent);
}

.dashboard-action > span {
  background: transparent;
}

.dashboard-action > span img {
  filter: none;
  opacity: 1;
}

.dashboard-action strong {
  color: var(--cream);
}

.dashboard-action small {
  color: color-mix(in srgb, var(--soft) 92%, var(--cream) 8%);
}

[data-theme="light"] .dashboard-action {
  border-color: color-mix(in srgb, var(--forest) 16%, var(--line));
  color: #183b2b;
  background: #fff;
  box-shadow: 0 8px 18px rgba(26, 48, 35, .09), inset 0 1px 0 #fff;
}

[data-theme="light"] .dashboard-action strong {
  color: #183b2b;
}

[data-theme="light"] .dashboard-action small {
  color: #526c60;
}

.deck-action > span {
  color: var(--cream);
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: 0;
}

[data-theme="light"] .deck-action > span {
  color: #153e2d;
}

@media (max-width: 1180px) {
  :root { --topbar: 108px; }
  .topbar {
    grid-template-columns: var(--rail-width) 44px minmax(0, 1fr) auto !important;
    grid-template-rows: 56px 52px;
    height: var(--topbar);
    gap: 0 .5rem;
  }
  .topbar-brand { grid-column: 1 !important; grid-row: 1 / 3; }
  .topbar > .rail-toggle,
  .dashboard.rail-collapsed .topbar > .rail-toggle { grid-column: 2; grid-row: 1; }
  .topbar-actions { grid-column: 4 !important; grid-row: 1; }
  .top-search { grid-column: 2 / 3 !important; grid-row: 2; width: 100% !important; max-width: none; }
  .top-collection-nav { grid-column: 3 / 5; grid-row: 2; width: min(100%, 590px); }
}

@media (max-width: 900px) {
  :root { --topbar: 108px; }
  .topbar {
    grid-template-columns: minmax(140px, 1fr) auto auto !important;
    grid-template-rows: 56px 52px;
    padding-right: .55rem;
  }
  .topbar-brand {
    grid-column: 1 !important;
    grid-row: 1;
    width: auto;
    padding-inline: .8rem;
    border-right: 0;
  }
  .umbral-auth-page .topbar-brand img { width: min(100%, 220px); max-width: 220px; max-height: 42px; }
  .topbar > .rail-toggle,
  .dashboard.rail-collapsed .topbar > .rail-toggle { grid-column: 2; grid-row: 1; }
  .topbar-actions { grid-column: 3 !important; grid-row: 1; }
  .top-search { grid-column: 1 !important; grid-row: 2; width: calc(100% - .55rem) !important; max-width: 190px; margin: 0 0 .45rem .55rem !important; }
  .top-collection-nav { grid-column: 2 / 4; grid-row: 2; width: 100%; padding: 0 0 .45rem; }
}

@media (max-width: 520px) {
  :root { --topbar: 158px; }
  .topbar { grid-template-rows: 56px 48px 54px; }
  .top-search { grid-column: 1 / -1 !important; grid-row: 2; width: calc(100% - 1.1rem) !important; max-width: none; margin: 0 .55rem .4rem !important; }
  .top-collection-nav {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    overflow-x: auto;
    grid-template-columns: repeat(4, minmax(96px, 1fr));
    padding: 0 .55rem .45rem;
    scrollbar-width: none;
  }
  .top-collection-nav::-webkit-scrollbar { display: none; }
}

/* V0.9.9.463B one-row primary menu. */
.topbar {
  grid-template-columns: var(--rail-width) 44px minmax(170px, 220px) minmax(320px, 1fr) auto !important;
  grid-template-rows: var(--topbar);
  height: var(--topbar);
  gap: .55rem;
  padding-right: .75rem;
}

.topbar-brand {
  grid-column: 1 !important;
  grid-row: 1;
}

.topbar > .rail-toggle,
.dashboard.rail-collapsed .topbar > .rail-toggle {
  grid-column: 2;
  grid-row: 1;
}

.top-search {
  grid-column: 3 !important;
  grid-row: 1;
  width: 100% !important;
  max-width: 220px;
  margin: 0 !important;
}

.top-collection-nav {
  grid-column: 4;
  grid-row: 1;
  justify-self: center;
  width: min(100%, 470px);
}

.top-collection-nav button {
  height: 42px;
  min-height: 42px;
  border-radius: 7px;
  font-size: .78rem;
}

.topbar-actions {
  grid-column: 5 !important;
  grid-row: 1;
}

@media (min-width: 1361px) {
  .topbar-actions .admin-link span,
  .topbar-actions .theme-toggle-text { display: inline !important; }
}

@media (max-width: 1360px) {
  :root { --topbar: 72px; }
  .dashboard,
  #dashboard .command-shell,
  #dashboard.rail-collapsed .command-shell {
    --umbral-auth-rail-width: 240px;
    --rail-width: 240px;
  }
  .topbar {
    grid-template-columns: var(--rail-width) 40px minmax(116px, 140px) minmax(280px, 1fr) auto !important;
    grid-template-rows: var(--topbar);
    height: var(--topbar);
    gap: .35rem;
    padding-right: .55rem;
  }
  .topbar-brand { grid-column: 1 !important; grid-row: 1; }
  .topbar > .rail-toggle,
  .dashboard.rail-collapsed .topbar > .rail-toggle { grid-column: 2; grid-row: 1; }
  .top-search { grid-column: 3 !important; grid-row: 1; max-width: 170px; }
  .top-collection-nav { grid-column: 4; grid-row: 1; width: min(100%, 430px); padding: 0; }
  .topbar-actions { grid-column: 5 !important; grid-row: 1; gap: .25rem; }
  .top-search kbd,
  .topbar-actions .admin-link span,
  .topbar-actions .theme-toggle-text { display: none !important; }
  .topbar-actions .admin-link,
  .topbar-actions .theme-toggle { min-width: 38px; padding-inline: .48rem; }
  .topbar-actions .umbral-auth-user { max-width: 92px; padding-inline: .5rem; }
  .top-collection-nav button { padding-inline: .42rem; font-size: .72rem; }
}

@media (max-width: 900px) {
  :root { --topbar: 112px; }
  .dashboard,
  #dashboard .command-shell,
  #dashboard.rail-collapsed .command-shell {
    --umbral-auth-rail-width: 240px;
    --rail-width: 240px;
  }
  .topbar {
    grid-template-columns: minmax(190px, 1fr) 40px auto !important;
    grid-template-rows: 56px 56px;
    height: var(--topbar);
    gap: 0 .4rem;
    padding-right: .55rem;
  }
  .topbar-brand {
    grid-column: 1 !important;
    grid-row: 1;
    width: auto;
    border-right: 0;
  }
  .topbar > .rail-toggle,
  .dashboard.rail-collapsed .topbar > .rail-toggle { grid-column: 2; grid-row: 1; }
  .topbar-actions { grid-column: 3 !important; grid-row: 1; }
  .top-search {
    grid-column: 1 !important;
    grid-row: 2;
    width: calc(100% - .55rem) !important;
    max-width: 170px;
    margin: 0 0 .5rem .55rem !important;
  }
  .top-collection-nav {
    grid-column: 2 / 4;
    grid-row: 2;
    width: 100%;
    padding: 0 0 .5rem;
  }
}

@media (max-width: 650px) {
  :root { --topbar: 160px; }
  .topbar { grid-template-rows: 56px 50px 54px; height: var(--topbar); }
  .top-search {
    grid-column: 1 / -1 !important;
    grid-row: 2;
    width: calc(100% - 1.1rem) !important;
    max-width: none;
    margin: 0 .55rem .45rem !important;
  }
  .top-collection-nav {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    overflow-x: auto;
    grid-template-columns: repeat(4, minmax(96px, 1fr));
    padding: 0 .55rem .45rem;
    scrollbar-width: none;
  }
  .top-collection-nav::-webkit-scrollbar { display: none; }
}

/* V0.9.9.463B expandable Data Room menu search. */
.topbar {
  grid-template-columns: var(--rail-width) 44px 44px minmax(320px, 1fr) auto !important;
}

.topbar.shell-search-open {
  grid-template-columns: var(--rail-width) 44px 44px minmax(320px, 1fr) auto !important;
}

.top-search-shell {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
}

.topbar.shell-search-open .top-search-shell {
  z-index: 2;
  grid-column: 3 / 5;
  justify-self: stretch;
  width: 100%;
}

.topbar.shell-search-open .top-collection-nav {
  visibility: hidden;
  pointer-events: none;
}

.top-search-shell .top-search {
  grid-column: auto !important;
  grid-row: auto;
  width: 100% !important;
  max-width: none;
  margin: 0 !important;
}

@media (max-width: 1360px) {
  .topbar {
    grid-template-columns: var(--rail-width) 40px 42px minmax(280px, 1fr) auto !important;
  }
  .topbar.shell-search-open {
    grid-template-columns: var(--rail-width) 40px 42px minmax(280px, 1fr) auto !important;
  }
  .top-search-shell.is-open { width: 100%; }
}

@media (max-width: 900px) {
  .topbar,
  .topbar.shell-search-open {
    grid-template-columns: minmax(190px, 1fr) 40px auto !important;
    grid-template-rows: 56px 56px;
  }
  .top-search-shell {
    grid-column: 1;
    grid-row: 2;
    width: 42px;
    margin: 0 0 .5rem .55rem;
  }
  .top-search-shell.is-open { width: 170px; }
  .topbar.shell-search-open .top-search-shell {
    grid-column: 1 / -1;
    grid-row: 2;
    width: calc(100% - 1.1rem);
    margin-inline: .55rem;
  }
}

@media (max-width: 650px) {
  .topbar,
  .topbar.shell-search-open { grid-template-rows: 56px 50px 54px; }
  .top-search-shell {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0 .55rem .45rem;
  }
  .top-search-shell.is-open { width: calc(100% - 1.1rem); }
}

/* Laptop rail geometry stays aligned with the shared authenticated shell. */
@media (min-width: 901px) and (max-width: 1440px) {
  .dashboard,
  #dashboard .command-shell,
  #dashboard.rail-collapsed .command-shell {
    --umbral-auth-rail-width: 320px;
    --rail-width: var(--umbral-auth-rail-width);
  }

  .document-rail .dashboard-actions { align-content: start; }
  .document-rail .dashboard-action {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 3px 8px;
    min-height: 66px;
  }
  .document-rail .dashboard-action > span { width: 28px; }
  .document-rail .dashboard-action strong { font-size: .9rem; white-space: nowrap; }
  .document-rail .dashboard-action small { font-size: .7rem; white-space: nowrap; }
  .rail-library-switch .rail-library-dashboard > span { white-space: nowrap; }

  .document-deck-card strong { white-space: normal; overflow: visible; }
  .document-deck-card { grid-template-columns: 32px minmax(0, 1fr) 18px; gap: .6rem; }
  .document-deck-card > img { width: 30px; }
}

/* Public landing pages specialize the canonical shared geometry without workspace rails. */
.public-program-shell{margin:0;background:var(--umbral-auth-canvas);color:var(--umbral-auth-text);font-family:var(--umbral-font-body);--sans:var(--umbral-font-body);--serif:Georgia,serif}
.public-program-shell .program-topbar{position:sticky;inset:0 0 auto;z-index:var(--umbral-layer-navigation);display:flex;align-items:center;justify-content:space-between;gap:24px;height:80px;min-height:80px;padding:12px max(24px,calc((100vw - 1320px)/2));background:var(--umbral-color-surface);border-bottom:var(--umbral-border-default)}
.program-brand{flex-shrink:0}.program-brand img{display:block;width:140px;max-width:100%;height:auto}.program-header-links{display:flex;align-items:center;gap:28px;margin-inline:auto}.public-program-shell .program-header-links a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;font-size:var(--umbral-font-size-control);color:var(--umbral-color-text-muted)}.public-program-shell .program-header-links a:hover{color:var(--umbral-color-accent-text)}
.public-program-shell .topbar-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}.program-account-menu{position:relative}.program-account-menu summary{display:flex;align-items:center;min-height:44px;padding:10px 4px;cursor:pointer;font-size:var(--umbral-font-size-control);list-style:none}.program-account-menu summary::after{content:'⌄';margin-left:7px}.program-account-menu summary::-webkit-details-marker{display:none}.program-account-menu[open] summary::after{content:'⌃'}.program-account-menu .program-account{position:absolute;top:calc(100% + 12px);right:0;display:grid;width:min(280px,calc(100vw - 32px));padding:8px;border:var(--umbral-border-default);border-radius:var(--umbral-radius-control);background:var(--umbral-color-surface);box-shadow:var(--umbral-shadow-raised)}.public-program-shell .program-account a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:12px;color:var(--umbral-color-text);font-size:var(--umbral-font-size-control);text-decoration:none}.program-account a:hover{background:var(--umbral-color-surface-muted)}
.public-program-shell .program-content{margin:0;width:100%;min-width:0;padding:0}.public-program-shell :where(section[id],main[id]){scroll-margin-top:104px}
.program-skip{position:fixed;top:8px;left:8px;z-index:var(--umbral-layer-dialog);padding:12px;background:var(--umbral-color-surface);color:var(--umbral-color-text);transform:translateY(-180%)}.program-skip:focus{transform:none}.program-text-link{display:inline-flex;align-items:center;min-height:44px;color:var(--umbral-color-accent-text);font-size:var(--umbral-font-size-control);font-weight:600;text-underline-offset:5px}.public-program-shell .eyebrow{color:var(--umbral-color-accent-text);font-size:var(--umbral-font-size-supporting);font-weight:700;letter-spacing:.13em;text-transform:uppercase}.program-footer{display:flex;align-items:center;flex-wrap:wrap;gap:1.5rem;padding:48px max(24px,calc((100vw - 1320px)/2));border-top:var(--umbral-border-default);font-size:var(--umbral-font-size-supporting);color:var(--umbral-color-text-muted)}.program-footer p{flex:1;min-width:220px}.program-footer a{color:var(--umbral-color-text)}
.public-program-shell .program-topbar .program-primary{background:var(--umbral-color-brand);color:var(--umbral-color-on-brand)}
.public-program-shell .program-topbar .umbral-button-secondary{background:var(--umbral-color-surface);color:var(--umbral-color-text)}
@media(max-width:1100px){.program-header-links{gap:18px}.program-header-links a:last-child{display:none}.public-program-shell .program-topbar{gap:16px;padding-inline:24px}.public-program-shell .program-topbar .theme-toggle-text{display:none!important}}
@media(max-width:800px){.program-header-links{display:none}.public-program-shell .program-topbar{height:72px;min-height:72px}.program-brand img{width:120px}}
@media(max-width:580px){.public-program-shell .program-topbar{padding:10px 12px;gap:8px}.program-brand img{width:82px}.public-program-shell .topbar-actions{gap:8px}.program-topbar .umbral-button{padding-inline:10px}.program-topbar .program-primary{width:116px;min-height:44px;font-size:var(--umbral-font-size-control);line-height:1.15;text-align:center;padding:8px}.program-account-menu summary{padding-inline:0}.program-account-menu summary::after{margin-left:4px}}
.public-program-shell .program-topbar .program-primary{white-space:normal}.public-program-shell .program-topbar [data-theme-toggle]{min-width:44px}
@media(max-width:380px){.public-program-shell .program-topbar{flex-wrap:wrap;height:112px;min-height:112px;padding:8px 16px;gap:4px 12px}.public-program-shell .topbar-actions{display:contents}.program-topbar .program-primary{width:100%;min-height:44px}.program-account-menu .program-account{right:0}.public-program-shell :where(section[id],main[id]){scroll-margin-top:136px}}
@media(max-width:580px){.program-account-menu .program-account{position:fixed;top:72px;right:12px;width:min(280px,calc(100vw - 24px));max-height:calc(100dvh - 96px);overflow:auto}}
@media(max-width:380px){.program-account-menu .program-account{top:112px;max-height:calc(100dvh - 136px)}}

