/* 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;
  }
}

.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 · 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; }
}

/* Umbral admin console, built on the tokens defined in styles.css */
body.admin {
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(216,180,118,.08), transparent 60%),
    var(--void);
  color: var(--soft);
  font-family: var(--sans);
}

.admin-main.pipeline-active { max-width: none; width: 100%; margin: 0; padding-inline: clamp(.75rem, 1.4vw, 1.5rem); }

.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.admin-kicker { margin: 0 0 .3rem; color: var(--gold); font-family: var(--mono); font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; }
.admin-head h1 { margin: 0; font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 500; }

/* KPI cards */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.kpi {
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: linear-gradient(165deg, var(--glass), transparent 70%), color-mix(in srgb, var(--obsidian) 52%, transparent);
}
.kpi .k-label { color: var(--gold); font-family: var(--mono); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; }
.kpi .k-value { margin-top: .5rem; font-family: var(--display); font-size: 2.2rem; font-weight: 500; color: var(--cream); line-height: 1; }
.kpi .k-sub { margin-top: .4rem; color: var(--ghost); font-size: .76rem; }

.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
@media (max-width: 900px) { .admin-grid-2 { grid-template-columns: 1fr; } }

/* The document library is long, so let it flow and scroll the page, grouped by section. */
#docs-table.admin-scroll { max-height: none; overflow: visible; padding-bottom: .4rem; }
.doc-section { margin-top: 1.4rem; }
.doc-section:first-child { margin-top: .2rem; }
.doc-section-head {
  display: flex; align-items: baseline; gap: .6rem; margin: 0 0 .4rem;
  padding: 0 .2rem .45rem; border-bottom: 1px solid var(--hairline);
}
.doc-section-head h3 { margin: 0; font-family: var(--display); font-size: 1.02rem; font-weight: 500; color: var(--cream); }
.doc-section-head .count { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; color: var(--gold); }
.doc-integrity-status{display:flex;align-items:center;gap:12px;margin:1rem 0;padding:14px 16px;border:1px solid color-mix(in srgb,var(--gold) 36%,var(--hairline));border-radius:16px;background:color-mix(in srgb,var(--glass) 72%,transparent)}
.doc-integrity-status>span{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:12px;background:#285b40;color:#fff;font-weight:900}
.doc-integrity-status>div{display:grid;gap:3px;min-width:0}.doc-integrity-status small{color:var(--ghost)}
.doc-integrity-status button{margin-left:auto;min-height:38px;border:0;border-radius:999px;background:var(--gold);color:#172219;padding:8px 14px;font-weight:850;cursor:pointer}
.doc-integrity-status.attention{border-color:#a74332;background:color-mix(in srgb,#a74332 12%,var(--glass))}.doc-integrity-status.attention>span{background:#a74332;color:#fff}
.doc-source-pill{display:inline-flex;max-width:220px;overflow:hidden;border-radius:999px;background:#285b40;color:#fff!important;padding:3px 8px;text-overflow:ellipsis;white-space:nowrap;font-size:.58rem;vertical-align:middle}
.doc-source-meta{display:block;margin-top:5px;color:var(--ghost);font-family:var(--mono);font-size:.58rem}
#tab-documents .doc-manager-actions{align-items:center;flex-wrap:wrap}#tab-documents .doc-manager-actions select{min-height:34px;max-width:160px;border:1px solid var(--hairline);border-radius:999px;background:var(--glass);color:var(--cream);padding:5px 9px}
.doc-recovery-vault{display:grid;gap:8px;margin-top:1.5rem;padding:18px;border:1px solid color-mix(in srgb,var(--gold) 32%,var(--hairline));border-radius:18px;background:color-mix(in srgb,var(--glass) 72%,transparent)}
.doc-recovery-vault>header,.doc-recovery-vault>article{display:flex;justify-content:space-between;gap:12px;align-items:center}.doc-recovery-vault h3{margin:0;font-family:var(--display);font-weight:500}.doc-recovery-vault header>span{color:var(--gold);font-family:var(--mono);font-size:.64rem}.doc-recovery-vault article{padding:11px 0;border-top:1px solid var(--hairline)}.doc-recovery-vault article>div{display:grid;gap:4px;margin-right:auto}.doc-recovery-vault small{color:var(--ghost)}
.doc-history-head{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:12px}.doc-history-head span{color:var(--gold);font-family:var(--mono)}.doc-history-head h3{margin:4px 0}.doc-history-head p{margin:0;color:var(--ghost);font-size:.68rem}.doc-history-row{display:grid;grid-template-columns:46px 1fr auto;gap:14px;align-items:center;padding:14px 12px;border-top:1px solid var(--hairline)}.doc-history-row>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#285b40;color:#fff;font-weight:900}.doc-history-row>div{display:grid;gap:4px}.doc-history-row small,.doc-history-row time{color:var(--ghost);font-size:.68rem}.doc-history-row p{margin:0;color:var(--cream)}
html[data-theme="light"] .doc-source-pill,html[data-theme="light"] .doc-history-row>span,html[data-theme="light"] .doc-integrity-status>span{color:#fff!important}
@media(max-width:760px){.doc-integrity-status{align-items:flex-start;flex-wrap:wrap}.doc-integrity-status button{width:100%;margin-left:0}.doc-history-row{grid-template-columns:42px 1fr}.doc-history-row time{grid-column:2}.doc-recovery-vault>article{align-items:flex-start;flex-wrap:wrap}}

/* Tables */
table.admin-t { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.admin-t th {
  position: sticky; top: 0;
  padding: .6rem .7rem;
  border-bottom: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--obsidian) 82%, transparent);
  color: var(--gold);
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
table.admin-t td { padding: .65rem .7rem; border-bottom: 1px solid var(--hairline); color: var(--muted); vertical-align: middle; }
table.admin-t tbody tr:hover, table.admin-t tbody tr:hover { background: var(--glass); }
table.admin-t tr:last-child td { border-bottom: 0; }
table.admin-t .num { font-family: var(--mono); color: var(--cream); }
.t-strong { color: var(--cream); font-weight: 600; }
.t-muted { color: var(--ghost); font-size: .78rem; }

.pill { display: inline-block; padding: .18rem .6rem; border-radius: 999px; font-family: var(--mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; }
.pill.read { background: rgba(133,184,120,.16); color: var(--emerald); }
.pill.progress { background: rgba(227,185,95,.16); color: var(--amber); }
.pill.unread { background: var(--glass); color: var(--ghost); }
.pill.admin { background: var(--gold-glow); color: var(--gold-bright); }
.pill.investor { background: var(--glass); color: var(--muted); }
.pill.inactive { background: rgba(220,120,100,.14); color: #e79c8a; }

.row-actions { display: flex; gap: .4rem; justify-content: flex-end; }

/* meter bar in tables */
.meter { position: relative; height: 6px; width: 100px; border-radius: 999px; background: var(--hairline); overflow: hidden; }
.meter > span { position: absolute; inset: 0; width: var(--w, 0%); border-radius: 999px; background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-bright)); }

/* Document visibility toggle */
.vis-toggle { position: relative; width: 44px; height: 24px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--glass); cursor: pointer; transition: background .25s, border-color .25s; }
.vis-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--ghost); transition: transform .25s var(--ease), background .25s; }
.vis-toggle[aria-pressed="true"] { background: var(--gold-glow); border-color: var(--gold-dim); }
.vis-toggle[aria-pressed="true"]::after { transform: translateX(20px); background: var(--gold-bright); }

.doc-filter { display: inline-flex; gap: .3rem; padding: 4px; border: 1px solid var(--hairline); border-radius: 11px; background: var(--glass); }
.doc-filter button { padding: .45rem .9rem; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ghost); font-size: .76rem; font-weight: 600; cursor: pointer; }
.doc-filter button.active { color: var(--gold-bright); border-color: var(--gold-dim); background: var(--gold-glow); }

/* Upgrades, complete backups, and recovery */
.upgrade-current {
  display: grid;
  grid-template-columns: minmax(150px, .55fr) minmax(150px, .55fr) minmax(320px, 2fr);
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.upgrade-current > div {
  min-width: 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--hairline);
  border-radius: 15px;
  background: linear-gradient(155deg, var(--glass), transparent), color-mix(in srgb, var(--obsidian) 54%, transparent);
}
.upgrade-current span, .upgrade-form label, .upgrade-confirm label {
  display: grid;
  gap: .38rem;
  color: var(--gold);
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.upgrade-current strong { display: block; margin-top: .35rem; color: var(--cream); font-family: var(--display); font-size: 1.25rem; font-weight: 500; }
.upgrade-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-bottom: 1.2rem; }
.upgrade-panel { padding-bottom: 1.2rem; }
.upgrade-panel.upgrade-danger { grid-column: 1 / -1; border-color: rgba(220,120,100,.32); }
.upgrade-form, .upgrade-confirm { display: grid; gap: .8rem; padding: .7rem 1.3rem 0; }
.upgrade-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.upgrade-form input, .upgrade-confirm input {
  width: 100%;
  min-width: 0;
  padding: .68rem .8rem;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: var(--cream);
  font: .86rem var(--sans);
  letter-spacing: 0;
  text-transform: none;
}
.upgrade-form input[type="file"] { padding: .55rem; color: var(--muted); }
.upgrade-form input:focus, .upgrade-confirm input:focus { outline: none; border-color: var(--line-strong); box-shadow: 0 0 0 3px var(--gold-glow); }
.upgrade-form .admin-btn, .upgrade-confirm .admin-btn { justify-self: start; }
.upgrade-summary {
  display: grid;
  gap: .35rem;
  margin: 1rem 1.3rem 0;
  padding: .85rem 1rem;
  border: 1px solid rgba(133,184,120,.3);
  border-radius: 11px;
  background: rgba(133,184,120,.08);
  color: var(--muted);
  font-size: .8rem;
}
.upgrade-summary[hidden] { display: none; }
.upgrade-summary strong { color: var(--emerald); font-size: .9rem; }
.upgrade-summary code { overflow-wrap: anywhere; color: var(--ghost); font-size: .68rem; }
.upgrade-package-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  margin: .35rem 0;
}
.upgrade-package-facts > div { min-width: 0; padding: .5rem .6rem; border-radius: 8px; background: color-mix(in srgb, var(--glass) 76%, transparent); }
.upgrade-package-facts dt { color: var(--ghost); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; }
.upgrade-package-facts dd { margin: .2rem 0 0; overflow-wrap: anywhere; color: var(--soft); font-variant-numeric: tabular-nums; }
.upgrade-confirm { margin-top: .7rem; border-top: 1px solid var(--hairline); padding-top: 1rem; }
.upgrade-danger .upgrade-confirm > p { margin: 0; color: #f0b4a5; line-height: 1.55; font-size: .82rem; }
.upgrade-progress { position: relative; min-width: 0; }
.upgrade-progress-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.upgrade-progress-head > div { min-width: 0; }
.upgrade-progress-head > div > span { color: var(--ghost); font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; }
#upgrade-progress-percent { color: var(--gold-bright); font-family: var(--font-display); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.upgrade-progress-track { position: relative; height: 7px; overflow: hidden; border-radius: 999px; background: var(--hairline); }
.upgrade-progress-track > span { position: absolute; inset: 0 auto 0 0; width: var(--progress, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); box-shadow: 0 0 16px rgba(227,185,95,.32); transition: width .35s var(--ease); }
.release-details { min-width: 230px; max-width: 440px; }
.release-details summary { color: var(--gold-bright); cursor: pointer; }
.release-details strong { display: block; margin-top: .8rem; color: var(--gold); }
.release-details ul { margin: .35rem 0 0; padding-left: 1.15rem; color: var(--muted); }
.release-details li { margin: .25rem 0; line-height: 1.4; }
.upgrade-progress p { margin: .3rem 0 .65rem; color: var(--muted); font-size: .8rem; }
.upgrade-progress p.error { color: #f0b4a5; }
#upgrade-progress-detail { margin: .55rem 0 0; color: var(--ghost); font-size: .7rem; line-height: 1.45; }
#upgrade-progress-timeline { display: grid; gap: .25rem; max-height: 7.5rem; margin: .65rem 0 0; padding: 0; overflow: auto; list-style: none; }
#upgrade-progress-timeline:empty { display: none; }
.upgrade-progress-step { display: grid; grid-template-columns: 2.2rem minmax(0,1fr) auto; gap: .5rem; align-items: center; color: var(--ghost); font-size: .68rem; line-height: 1.35; }
.upgrade-progress-step::before { content: attr(data-percent); color: var(--gold); font-variant-numeric: tabular-nums; }
.upgrade-progress-step strong { min-width: 0; overflow: hidden; color: var(--muted); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.upgrade-progress-step time { color: var(--ghost); font-variant-numeric: tabular-nums; }
.upgrade-progress-step.current strong { color: var(--soft); }
.upgrade-recovery-panel { display: grid; gap: .65rem; margin-top: .85rem; padding: .85rem; border: 1px solid rgba(220,120,100,.3); border-radius: 10px; background: rgba(220,120,100,.07); }
.upgrade-recovery-panel[hidden] { display: none; }
.upgrade-recovery-panel > strong { color: #f0b4a5; font-size: .82rem; }
.upgrade-recovery-panel > p { margin: 0; line-height: 1.45; }
.upgrade-recovery-panel label { display: grid; gap: .35rem; color: var(--ghost); font-size: .7rem; }
.upgrade-recovery-panel input { min-width: 0; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 7px; background: var(--glass); color: var(--soft); font: inherit; }
.upgrade-recovery-panel input:focus { outline: none; border-color: var(--line-strong); box-shadow: 0 0 0 3px var(--gold-glow); }
.upgrade-recovery-panel .admin-btn { justify-self: start; }
.upgrade-download { margin: 1rem 1.3rem 0; }
.upgrade-history-card { margin-bottom: 1.2rem; }
.upgrade-history-card .admin-scroll { max-height: 560px; }
.upgrade-status.complete, .upgrade-status.baseline { background: rgba(133,184,120,.16); color: var(--emerald); }
.upgrade-status.failed, .upgrade-status.rolled_back { background: rgba(220,120,100,.14); color: #e79c8a; }
.upgrade-status.validating, .upgrade-status.ready, .upgrade-status.backing_up, .upgrade-status.installing,
.upgrade-status.migrating, .upgrade-status.restoring, .upgrade-status.restarting { background: rgba(227,185,95,.16); color: var(--amber); }

@media (max-width: 900px) {
  .upgrade-current { grid-template-columns: 1fr 1fr; }
  .upgrade-progress { grid-column: 1 / -1; }
  .upgrade-grid { grid-template-columns: 1fr; }
  .upgrade-panel.upgrade-danger { grid-column: auto; }
}

@media (max-width: 560px) {
  .upgrade-current, .upgrade-fields { grid-template-columns: 1fr; }
  .upgrade-progress { grid-column: auto; }
  .upgrade-package-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .upgrade-progress-track > span { transition: none; }
}

/* Modals */
.admin-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.admin-modal[hidden] { display: none; }
.admin-modal-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--void) 78%, #000 22%); backdrop-filter: blur(8px); }
.admin-modal-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 1.5rem 1.6rem 1.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--canopy) 92%, transparent), var(--obsidian));
  box-shadow: var(--shadow);
}
.admin-modal-panel.wide { width: min(820px, 100%); }
.user-modal-panel { width: min(760px, 100%); max-height: calc(100svh - 2rem); }
.admin-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.admin-modal-head h2 { margin: 0; font-family: var(--display); font-size: 1.5rem; font-weight: 500; }
.admin-icon-btn { width: 34px; height: 34px; border: 1px solid var(--hairline); border-radius: 9px; background: transparent; color: var(--ghost); cursor: pointer; }
.admin-icon-btn:hover { color: var(--gold-bright); border-color: var(--gold-dim); }

#user-form, #doc-form { display: grid; gap: .9rem; }
.admin-modal label { display: grid; gap: .4rem; color: var(--gold); font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; }

/* Rich text editor */
.rt-wrap { display: grid; gap: 0; border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.03); }
.rt-wrap:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 3px var(--gold-glow); }
.rt-toolbar { display: flex; flex-wrap: wrap; gap: .25rem; padding: .5rem .55rem; border-bottom: 1px solid var(--hairline); background: color-mix(in srgb, var(--obsidian) 70%, transparent); }
.rt-btn {
  min-width: 32px; height: 30px; padding: 0 .55rem; border: 1px solid transparent; border-radius: 7px;
  background: transparent; color: var(--ghost); font-family: var(--sans); font-size: .82rem; cursor: pointer;
  transition: color .18s, background .18s, border-color .18s;
}
.rt-btn:hover { color: var(--gold-bright); background: var(--gold-glow); }
.rt-btn.active { color: var(--gold-bright); border-color: var(--gold-dim); background: var(--gold-glow); }
.rt-btn b { font-weight: 700; }
.rt-btn i { font-style: italic; }
.rt-sep { width: 1px; margin: .2rem .3rem; background: var(--hairline); }
.rt-editor {
  min-height: 320px; max-height: 52vh; overflow: auto; padding: 1.1rem 1.3rem 1.6rem;
  color: var(--soft); font-family: var(--display); font-size: 1rem; line-height: 1.7; letter-spacing: .002em;
  text-transform: none;
}
.rt-editor *:not(h4) { text-transform: none; }
.rt-editor:focus { outline: none; }
.rt-editor h2 { margin: 1.3em 0 .5em; font-family: var(--display); font-size: 1.4rem; font-weight: 500; color: var(--cream); }
.rt-editor h2:first-child { margin-top: 0; }
.rt-editor h3 { margin: 1.1em 0 .4em; font-size: 1.15rem; font-weight: 500; color: var(--gold-bright); }
.rt-editor h4 { margin: 1em 0 .3em; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-family: var(--sans); }
.rt-editor p { margin: 0 0 .9em; }
.rt-editor ul, .rt-editor ol { margin: 0 0 1em; padding-left: 1.4em; }
.rt-editor li { margin-bottom: .35em; }
.rt-editor li::marker { color: var(--gold); }
.rt-editor strong { color: var(--cream); font-weight: 600; }
.rt-editor em { color: var(--gold-bright); }
.rt-editor blockquote { margin: 1em 0; padding: .5em 1.1em; border-left: 2px solid var(--gold); background: var(--gold-glow); font-style: italic; color: var(--cream); }
.rt-editor table { width: 100%; border-collapse: collapse; margin: 1em 0; font-family: var(--sans); font-size: .85em; }
.rt-editor th, .rt-editor td { padding: .5rem .7rem; border: 1px solid var(--hairline); text-align: left; }
.rt-note { display: flex; align-items: center; gap: .5rem; margin: .2rem 0 0; font-size: .74rem; color: var(--ghost); }
.rt-note .pill { flex: none; }
.admin-form-row { display: flex; gap: 1rem; align-items: end; }
.admin-modal label.inline { flex: 1; }
.admin-modal label.check { flex-direction: row; align-items: center; gap: .5rem; color: var(--muted); text-transform: none; font-family: var(--sans); font-size: .85rem; letter-spacing: 0; }
.admin-modal label.check input { width: auto; }
.admin-modal-actions { display: flex; justify-content: flex-end; gap: .7rem; margin-top: .5rem; }
.admin-form-error { min-height: 1.1em; margin: 0; color: #e79c8a; font-size: .8rem; }

.admin-toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translateX(-50%) translateY(10px);
  padding: .8rem 1.3rem; border-radius: 12px; border: 1px solid var(--gold-dim);
  background: color-mix(in srgb, var(--canopy) 90%, transparent); color: var(--gold-bright);
  font-size: .85rem; box-shadow: var(--shadow-soft); opacity: 0; transition: opacity .3s, transform .3s; z-index: 90;
}
.admin-toast[hidden] { display: none; }
.admin-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.admin-toast.error { border-color: rgba(220,120,100,.5); color: #f0b4a5; }

.admin-empty { padding: 2rem 1rem; text-align: center; color: var(--ghost); font-size: .9rem; }

/* ============================================================
   CRM: pipeline board, cards, KPIs, investor drawer, timeline
   ============================================================ */
.pipe-actions { display: flex; align-items: center; gap: .7rem; }
.pipe-search input {
  width: 220px; padding: .55rem .85rem; border: 1px solid var(--hairline); border-radius: 10px;
  background: var(--glass); color: var(--cream); font-size: .85rem;
}
.pipe-search input:focus { outline: none; border-color: var(--line-strong); box-shadow: 0 0 0 3px var(--gold-glow); }

/* Stage accent colours */
.stage-slate   { --sc: #8aa0b4; }
.stage-sky     { --sc: #6fb7d8; }
.stage-amber   { --sc: #e3b95f; }
.stage-violet  { --sc: #b090e0; }
.stage-gold    { --sc: #d8b476; }
.stage-emerald { --sc: #85b878; }
.stage-rose    { --sc: #e08a8a; }

/* Kanban board */
.kanban {
  display: grid; grid-template-columns: repeat(var(--stage-count), minmax(0, 1fr)); gap: .55rem;
  overflow-x: visible; padding: .3rem .1rem 1.4rem; align-items: start;
}
.kanban::-webkit-scrollbar { height: 10px; }
.kanban::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: 999px; }
.kan-col {
  display: flex; flex-direction: column; min-height: 160px;
  border: 1px solid var(--hairline); border-radius: 16px;
  background: color-mix(in srgb, var(--obsidian) 42%, transparent);
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.kan-col.drop-target { border-color: var(--sc); background: color-mix(in srgb, var(--sc) 12%, transparent); box-shadow: inset 0 0 0 1px var(--sc); }
.kan-col-head {
  display: flex; align-items: center; gap: .5rem; padding: .85rem 1rem .7rem;
  border-bottom: 1px solid var(--hairline); position: sticky; top: 0;
}
.kan-col-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sc); box-shadow: 0 0 10px color-mix(in srgb, var(--sc) 70%, transparent); flex: none; }
.kan-col-head h3 { margin: 0; font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--cream); flex: 1; }
.kan-col-head .col-count { font-family: var(--mono); font-size: .68rem; color: var(--ghost); }
.kan-col-sub { padding: 0 1rem .6rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .05em; color: var(--sc); }
.kan-list { display: flex; flex-direction: column; gap: .6rem; padding: .7rem; flex: 1; min-height: 40px; }
.kan-empty { padding: 1.2rem .5rem; text-align: center; color: var(--faint); font-size: .74rem; }

/* Investor card */
.inv-card {
  border: 1px solid var(--hairline); border-left: 3px solid var(--sc); border-radius: 12px;
  background: color-mix(in srgb, var(--canopy) 60%, transparent);
  padding: .8rem .85rem; cursor: grab; transition: transform .15s, border-color .2s, box-shadow .2s, background .2s;
}
.inv-card:hover { transform: translateY(-2px); border-color: var(--gold-dim); box-shadow: var(--shadow-soft); background: color-mix(in srgb, var(--canopy) 80%, transparent); }
.inv-card.dragging { opacity: .45; }
.inv-card-top { display: flex; align-items: flex-start; gap: .5rem; }
.inv-avatar { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; font-family: var(--display); font-size: .9rem; color: var(--void); background: linear-gradient(135deg, var(--sc), color-mix(in srgb, var(--sc) 55%, #fff)); }
.inv-id { min-width: 0; flex: 1; }
.inv-name { font-weight: 600; color: var(--cream); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-company { color: var(--ghost); font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prio { width: 8px; height: 8px; border-radius: 50%; margin-top: .35rem; flex: none; }
.prio.high { background: #e08a8a; box-shadow: 0 0 8px rgba(224,138,138,.6); }
.prio.medium { background: var(--amber); }
.prio.low { background: var(--ghost); opacity: .5; }
.inv-amount { margin: .55rem 0 .5rem; font-family: var(--display); font-size: 1.05rem; color: var(--gold-bright); }
.inv-amount small { font-family: var(--mono); font-size: .6rem; color: var(--ghost); letter-spacing: .1em; margin-left: .3rem; }
.inv-meta { display: flex; flex-wrap: wrap; gap: .35rem .7rem; font-size: .68rem; color: var(--ghost); }
.inv-meta .m { display: inline-flex; align-items: center; gap: .28rem; }
.inv-eng { margin-top: .55rem; display: flex; align-items: center; gap: .5rem; }
.inv-eng .bar { flex: 1; height: 5px; border-radius: 999px; background: var(--hairline); overflow: hidden; }
.inv-eng .bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); }
.inv-eng .val { font-family: var(--mono); font-size: .6rem; color: var(--ghost); }
.inv-flags { margin-top: .5rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.flag { font-family: var(--mono); font-size: .56rem; letter-spacing: .08em; text-transform: uppercase; padding: .18rem .5rem; border-radius: 999px; }
.flag.overdue { background: rgba(224,138,138,.16); color: #f0b4a5; }
.flag.hot { background: rgba(227,185,95,.16); color: var(--amber); }
.flag.due { background: var(--glass); color: var(--ghost); }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 85; }
.drawer[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--void) 72%, #000 28%); backdrop-filter: blur(6px); animation: fade .25s ease; }
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(560px, 100%);
  overflow-y: auto; padding: 1.6rem 1.7rem 3rem;
  border-left: 1px solid var(--line-strong);
  background: linear-gradient(200deg, color-mix(in srgb, var(--canopy) 92%, transparent), var(--obsidian));
  box-shadow: -30px 0 80px rgba(0,0,0,.5); animation: slidein .32s var(--ease);
}
.investor-workspace {
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border-left: 0;
  background: linear-gradient(160deg, color-mix(in srgb, var(--canopy) 94%, transparent), var(--obsidian));
}
.investor-workspace #drawer-body { min-height: 100%; }
.investor-workspace .dr-head {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 0;
  padding: 1.2rem clamp(1.2rem, 3vw, 3rem);
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--void) 88%, transparent);
  backdrop-filter: blur(22px);
}
.dr-layout {
  width: min(1500px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.8rem) clamp(1.2rem, 3vw, 3rem) 4rem;
}
.dr-profile-column, .dr-activity-column { min-width: 0; }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.dr-head { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1.1rem; }
.dr-avatar { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; font-family: var(--display); font-size: 1.5rem; color: var(--void); background: linear-gradient(135deg, var(--sc, var(--gold)), color-mix(in srgb, var(--sc, var(--gold)) 55%, #fff)); }
.dr-title { flex: 1; min-width: 0; }
.dr-title h2 { margin: 0; font-family: var(--display); font-size: 1.5rem; font-weight: 500; color: var(--cream); }
.dr-title p { margin: .15rem 0 0; color: var(--ghost); font-size: .82rem; }
.dr-close { width: 34px; height: 34px; border: 1px solid var(--hairline); border-radius: 9px; background: transparent; color: var(--ghost); cursor: pointer; flex: none; }
.dr-close:hover { color: var(--gold-bright); border-color: var(--gold-dim); }

.dr-stagebar { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 1.1rem; }
.dr-stage-btn { padding: .4rem .7rem; border: 1px solid var(--hairline); border-radius: 999px; background: transparent; color: var(--ghost); font-size: .72rem; font-weight: 600; cursor: pointer; transition: all .18s; }
.dr-stage-btn:hover { color: var(--cream); border-color: var(--line-strong); }
.dr-stage-btn.active { color: var(--void); background: var(--sc); border-color: var(--sc); }

.dr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1.2rem; }
.dr-field { display: grid; gap: .3rem; }
.dr-field label { font-family: var(--mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.dr-field input, .dr-field select { padding: .55rem .7rem; border: 1px solid var(--hairline); border-radius: 9px; background: rgba(255,255,255,.04); color: var(--cream); font-size: .86rem; font-family: var(--sans); }
.dr-field input:focus, .dr-field select:focus { outline: none; border-color: var(--line-strong); box-shadow: 0 0 0 3px var(--gold-glow); }
.dr-field.wide { grid-column: 1 / -1; }
.dr-save-row { display: flex; justify-content: flex-end; gap: .6rem; margin: -.4rem 0 1.3rem; }

.dr-section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 1.4rem 0 .7rem; }
.dr-section-title h3 { margin: 0; font-family: var(--display); font-size: 1.12rem; font-weight: 500; color: var(--cream); }
.dr-section-title .hint { color: var(--ghost); font-size: .72rem; }

/* Engagement mini-panel */
.eng-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; }
.eng-cell { padding: .7rem .5rem; border: 1px solid var(--hairline); border-radius: 11px; background: var(--glass); text-align: center; }
.eng-cell b { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--gold-bright); }
.eng-cell span { font-family: var(--mono); font-size: .54rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ghost); }
.eng-docs { margin-top: .7rem; display: grid; gap: .3rem; }
.eng-doc { display: flex; align-items: center; gap: .55rem; font-size: .78rem; color: var(--muted); }
.eng-doc .lbl { font-family: var(--mono); font-size: .62rem; color: var(--ghost); min-width: 34px; }
.eng-doc .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eng-doc .s { font-family: var(--mono); font-size: .66rem; color: var(--gold); }

/* Log interaction form */
.log-form { border: 1px solid var(--hairline); border-radius: 14px; padding: .9rem; background: color-mix(in srgb, var(--obsidian) 50%, transparent); display: grid; gap: .6rem; margin-bottom: 1rem; }
.log-kinds { display: flex; gap: .35rem; }
.log-kind { flex: 1; padding: .5rem; border: 1px solid var(--hairline); border-radius: 9px; background: transparent; color: var(--ghost); font-size: .74rem; cursor: pointer; transition: all .18s; }
.log-kind.active { color: var(--gold-bright); border-color: var(--gold-dim); background: var(--gold-glow); }
.log-form textarea { min-height: 62px; padding: .6rem .75rem; border: 1px solid var(--hairline); border-radius: 9px; background: rgba(255,255,255,.04); color: var(--cream); font-family: var(--sans); font-size: .86rem; resize: vertical; }
.log-form textarea:focus, .log-form input:focus { outline: none; border-color: var(--line-strong); box-shadow: 0 0 0 3px var(--gold-glow); }
.log-row { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.log-row input, .log-row select { padding: .5rem .65rem; border: 1px solid var(--hairline); border-radius: 9px; background: rgba(255,255,255,.04); color: var(--cream); font-size: .82rem; font-family: var(--sans); }
.log-row label { display: grid; gap: .25rem; font-family: var(--mono); font-size: .55rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

/* Timeline */
.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 34px 1fr; gap: .7rem; padding-bottom: 1rem; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 16px; top: 30px; bottom: -2px; width: 1px; background: var(--hairline); }
.tl-item:last-child::before { display: none; }
.tl-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: .95rem; border: 1px solid var(--hairline); background: var(--glass); z-index: 1; }
.tl-icon.call { color: var(--emerald); } .tl-icon.note { color: var(--gold); } .tl-icon.email { color: #6fb7d8; } .tl-icon.meeting { color: #b090e0; } .tl-icon.stage { color: var(--amber); }
.tl-body { min-width: 0; }
.tl-top { display: flex; align-items: baseline; gap: .5rem; }
.tl-kind { font-weight: 600; color: var(--cream); font-size: .84rem; text-transform: capitalize; }
.tl-when { font-family: var(--mono); font-size: .62rem; color: var(--ghost); }
.tl-del { margin-left: auto; border: 0; background: transparent; color: var(--faint); cursor: pointer; font-size: .8rem; opacity: 0; transition: opacity .15s, color .15s; }
.tl-item:hover .tl-del { opacity: 1; } .tl-del:hover { color: #e08a8a; }
.tl-summary { margin: .2rem 0 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.tl-tags { margin-top: .3rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.tl-tag { font-family: var(--mono); font-size: .58rem; padding: .12rem .5rem; border-radius: 999px; background: var(--glass); color: var(--ghost); }
.tl-tag.next { background: rgba(227,185,95,.14); color: var(--amber); }

@media (max-width: 720px) {
  .dr-grid, .eng-grid { grid-template-columns: 1fr 1fr; }
  .drawer-panel { width: 100%; }
}

@media (max-width: 640px) {
  .admin-form-row { display: grid; grid-template-columns: 1fr; align-items: stretch; }
  .admin-modal-actions {
    position: sticky;
    bottom: -1.7rem;
    padding: .8rem 0 1rem;
    background: var(--obsidian);
  }
}

@media (max-width: 1179px) {
  .kanban {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 280px;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }
  .kan-col { scroll-snap-align: start; }
}

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

/* 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; }
}

.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%; }
  }
}

.command-dashboard {
  --command-gold: #dab978;
  --command-green: #67bc91;
  --command-violet: #a393f1;
  --command-surface: color-mix(in srgb, var(--umbral-color-surface) 88%, transparent);
  --command-surface-raised: var(--umbral-color-surface-raised);
  --command-border: var(--umbral-color-border-subtle);
  --command-border-strong: var(--umbral-color-border-default);
  --command-text: var(--umbral-color-text);
  --command-muted: var(--umbral-color-text-muted);
  --command-subtle: var(--umbral-color-text-subtle);
  --command-grid-line: var(--umbral-color-border-subtle);
  min-height: calc(100vh - 120px);
  color: var(--command-text);
}

.command-opening,
.command-error {
  min-height: 58vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .75rem;
  text-align: center;
  color: var(--ghost);
}

.command-opening span {
  width: 54px;
  aspect-ratio: 1;
  border: 1px solid rgba(218, 185, 120, .24);
  border-top-color: var(--command-gold);
  border-radius: 50%;
  animation: command-spin 1s linear infinite;
}

.command-opening h1,
.command-error strong { margin: 0; color: var(--cream); font: 500 clamp(1.7rem, 4vw, 3rem)/1 var(--display); }
.command-opening p,
.command-error span { margin: 0; }
.command-error button { margin-top: .7rem; }

.command-hero {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  padding: clamp(2rem, 4.5vw, 4.4rem);
  border: 1px solid rgba(218, 185, 120, .18);
  border-radius: 26px;
  background:
    linear-gradient(115deg, rgba(3, 16, 11, .96), rgba(8, 18, 15, .78) 55%, rgba(26, 18, 12, .78)),
    radial-gradient(circle at 78% 28%, rgba(218, 185, 120, .22), transparent 28%);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .03);
}

.investor-command-hero {
  background:
    linear-gradient(115deg, rgba(9, 11, 27, .97), rgba(9, 22, 18, .82) 58%, rgba(28, 17, 12, .8)),
    radial-gradient(circle at 78% 28%, rgba(163, 147, 241, .22), transparent 30%);
}

.command-hero-copy { position: relative; z-index: 2; max-width: 790px; }
.command-hero-copy > span,
.command-panel header span {
  color: var(--command-gold);
  font: 700 .66rem/1 var(--mono);
  letter-spacing: .22em;
  text-transform: uppercase;
}

.command-hero-copy h1 {
  margin: .8rem 0 1rem;
  font: 500 clamp(2.4rem, 5.2vw, 5.7rem)/.94 var(--display);
  letter-spacing: -.035em;
}

.command-hero-copy h1 em { color: var(--command-gold); font-weight: 400; }
.command-hero-copy p { max-width: 650px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }

.command-hero-controls {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: end;
  gap: .65rem;
}

.command-period { display: grid; gap: .38rem; color: var(--ghost); font: 700 .61rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.command-period select,
.command-hero-controls > button {
  min-height: 42px;
  padding: .65rem .9rem;
  border: 1px solid rgba(218, 185, 120, .23);
  border-radius: 11px;
  background: rgba(255, 255, 255, .045);
  color: var(--cream);
  font: 700 .76rem/1 var(--sans);
}
.command-hero-controls > button { color: #151007; background: var(--command-gold); cursor: pointer; }

.command-constellation {
  position: absolute;
  width: 420px;
  height: 420px;
  top: -120px;
  right: -70px;
  border: 1px solid rgba(218, 185, 120, .1);
  border-radius: 50%;
  animation: command-turn 38s linear infinite;
}
.command-constellation::before,
.command-constellation::after {
  content: "";
  position: absolute;
  inset: 54px;
  border: 1px solid rgba(218, 185, 120, .08);
  border-radius: 50%;
}
.command-constellation::after { inset: 115px; }
.command-constellation i {
  position: absolute;
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--command-gold);
  box-shadow: 0 0 24px rgba(218, 185, 120, .8);
}
.command-constellation i:nth-child(1) { top: 30px; left: 195px; }
.command-constellation i:nth-child(2) { top: 196px; right: 25px; }
.command-constellation i:nth-child(3) { bottom: 38px; left: 110px; }
.command-constellation i:nth-child(4) { top: 115px; left: 38px; }
.command-constellation b { position: absolute; inset: 198px; border-radius: 50%; background: var(--command-gold); box-shadow: 0 0 50px rgba(218, 185, 120, .7); }

.command-metrics {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: .75rem;
  margin: .9rem 0;
}
.investor-metrics { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.command-metric {
  --command-span: 2;
  position: relative;
  grid-column: span var(--command-span);
  min-height: 142px;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  gap: .4rem;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .25s, border-color .25s, background .25s;
}
.command-metric::after {
  content: "";
  position: absolute;
  width: 100px;
  aspect-ratio: 1;
  right: -45px;
  top: -45px;
  border-radius: 50%;
  background: currentColor;
  opacity: .08;
  filter: blur(3px);
}
.command-metric:hover { transform: translateY(-4px); border-color: color-mix(in srgb, currentColor 40%, transparent); background: rgba(255, 255, 255, .055); }
.command-metric > span { color: var(--ghost); font: 700 .65rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.command-metric strong { color: var(--cream); font: 500 clamp(1.65rem, 2.7vw, 2.8rem)/1 var(--display); }
.command-metric small { color: var(--ghost); font-size: .7rem; }
.command-metric i { position: absolute; right: 1rem; bottom: 1rem; color: currentColor; font: 700 .58rem/1 var(--mono); letter-spacing: .1em; opacity: 0; transition: opacity .2s; }
.command-metric:hover i { opacity: 1; }
.command-metric.forest { color: var(--command-green); }
.command-metric.violet { color: var(--command-violet); }
.command-metric.amber { color: #e7a95e; }
.command-metric.teal { color: #5fb9b2; }
.command-metric.gold { color: var(--command-gold); }
.command-metric.rose { color: #d98591; }

.command-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, .75fr);
  gap: .9rem;
}

.command-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(12, 21, 17, .88), rgba(5, 11, 9, .76));
  box-shadow: 0 18px 60px rgba(0, 0, 0, .17);
}

.command-inbox-briefing > div:last-child { display: grid; }
.command-inbox-briefing-counts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .55rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--command-border); }
.command-inbox-briefing-counts span { display: grid; gap: .25rem; color: var(--command-muted); font-size: .72rem; }
.command-inbox-briefing-counts strong { color: var(--command-gold); font: 500 1.55rem/1 var(--display); }
.command-inbox-briefing-item { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .75rem; padding: .9rem 1.2rem; border-bottom: 1px solid var(--command-border); color: var(--command-text); text-decoration: none; }
.command-inbox-briefing-item > i { width: 8px; height: 8px; border-radius: 50%; background: transparent; border: 1px solid var(--command-muted); }
.command-inbox-briefing-item.unread > i { background: var(--command-gold); border-color: var(--command-gold); box-shadow: 0 0 12px color-mix(in srgb,var(--command-gold) 65%,transparent); }
.command-inbox-briefing-item span { display: grid; gap: .2rem; min-width: 0; }
.command-inbox-briefing-item strong { overflow: hidden; color: var(--command-text); text-overflow: ellipsis; white-space: nowrap; }
.command-inbox-briefing-item small,.command-inbox-briefing-item time { color: var(--command-muted); font-size: .68rem; }
.command-panel > header {
  min-height: 79px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}
.command-panel header h2 { margin: .35rem 0 0; color: var(--cream); font: 500 1.35rem/1 var(--display); }
.command-panel header > button { border: 0; background: transparent; color: var(--command-gold); font: 700 .67rem/1 var(--mono); cursor: pointer; }
.command-chart-panel { min-height: 390px; }
.command-chart { position: relative; padding: 1rem 1.2rem .65rem; }
.command-chart svg { display: block; width: 100%; height: 260px; overflow: visible; }
.command-grid path { fill: none; stroke: rgba(255, 255, 255, .055); }
.command-line { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 8px currentColor); }
.command-line.reads { color: var(--command-gold); stroke: var(--command-gold); }
.command-line.logins { color: var(--command-green); stroke: var(--command-green); }
.command-line.deck { color: var(--command-violet); stroke: var(--command-violet); }
.command-area { fill: url("#commandArea"); stroke: none; }
.command-chart-labels { display: flex; justify-content: space-between; color: var(--ghost); font: 600 .58rem/1 var(--mono); }
.command-legend { display: flex; gap: .55rem; align-items: center; color: var(--ghost); font-size: .65rem; }
.command-legend i { width: 7px; aspect-ratio: 1; border-radius: 50%; }
.command-legend .reads { background: var(--command-gold); }
.command-legend .logins { background: var(--command-green); }
.command-legend .deck { background: var(--command-violet); }

.command-assistants > div { display: grid; grid-template-columns: 1fr 1fr; }
.command-assistants button,
.command-assistants article {
  min-height: 178px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.command-assistants button { border-right: 1px solid rgba(255, 255, 255, .06); cursor: pointer; }
.command-assistants span { display: grid; gap: .38rem; }
.command-assistants small { color: var(--ghost); font: 700 .62rem/1 var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.command-assistants strong { color: var(--cream); font: 500 1.24rem/1.1 var(--display); }
.command-assistants em { color: var(--ghost); font-size: .69rem; line-height: 1.45; }
.command-orb { position: relative; flex: 0 0 46px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--command-violet) 14%, #1a1b3f 48%, #090b0c 72%); box-shadow: 0 0 30px rgba(163, 147, 241, .35); }
.command-orb.stuart { background: radial-gradient(circle at 35% 30%, #fff, var(--command-green) 14%, #102b22 48%, #090b0c 72%); box-shadow: 0 0 30px rgba(103, 188, 145, .28); }

.command-stage-bars { display: grid; gap: .75rem; padding: 1.2rem 1.35rem 1.4rem; }
.command-stage-bars > button {
  display: grid;
  grid-template-columns: minmax(125px, .8fr) minmax(100px, 1.5fr) 35px;
  align-items: center;
  gap: .75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}
.command-stage-bars i { height: 7px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .055); }
.command-stage-bars b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--command-green), var(--command-gold)); box-shadow: 0 0 13px rgba(103, 188, 145, .25); }
.command-stage-bars strong { color: var(--cream); text-align: right; }

.command-tasks > div,
.command-investors > div { padding: .35rem 1.35rem 1rem; }
.command-task {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.command-task > button { width: 24px; aspect-ratio: 1; border: 1px solid rgba(218, 185, 120, .35); border-radius: 50%; background: transparent; cursor: pointer; }
.command-task > button:hover { background: rgba(218, 185, 120, .2); }
.command-task span { min-width: 0; display: grid; gap: .25rem; }
.command-task strong { overflow: hidden; color: var(--cream); font-size: .82rem; white-space: nowrap; text-overflow: ellipsis; }
.command-task small,
.command-task time { color: var(--ghost); font-size: .67rem; }

.command-property-reviews > div { padding: .35rem 1.35rem 1rem; }
.command-property-review {
  width: 100%;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .85rem 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.command-property-review > i {
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--command-green);
  box-shadow: 0 0 14px color-mix(in srgb, var(--command-green) 48%, transparent);
}
.command-property-review span { min-width: 0; display: grid; gap: .25rem; }
.command-property-review strong { overflow: hidden; color: var(--cream); font-size: .82rem; white-space: nowrap; text-overflow: ellipsis; }
.command-property-review small,
.command-property-review time { color: var(--ghost); font-size: .67rem; }
.command-property-review:hover strong { color: var(--command-gold); }

.command-investors > div > button {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .85rem 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.command-investors i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; color: #10150f; background: var(--command-gold); font-style: normal; font-weight: 800; }
.command-investors span { min-width: 0; display: grid; gap: .2rem; }
.command-investors strong { color: var(--cream); }
.command-investors small,
.command-investors time { overflow: hidden; color: var(--ghost); font-size: .67rem; text-overflow: ellipsis; }

.command-empty { padding: 1.3rem; color: var(--ghost); font-size: .78rem; line-height: 1.6; }

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

@media (max-width: 1250px) {
  .command-metric { --command-span: 4; }
  .command-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .command-hero { grid-template-columns: 1fr; min-height: 390px; padding: 1.6rem; }
  .command-hero-controls { align-self: end; justify-self: start; }
  .command-metrics,
  .investor-metrics { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .command-metric { --command-span: 6; }
  .command-assistants > div { grid-template-columns: 1fr; }
  .command-assistants button { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .command-chart svg { height: 200px; }
}

[data-theme="light"] .command-dashboard {
  --command-gold: #8f6829;
  --command-green: #2f6940;
  --command-violet: #6552a4;
  --command-surface: color-mix(in srgb, var(--umbral-color-surface) 92%, transparent);
  --command-surface-raised: var(--umbral-color-surface-raised);
  --command-border: var(--umbral-color-border-subtle);
  --command-border-strong: var(--umbral-color-border-default);
  --command-text: var(--umbral-color-text);
  --command-muted: var(--umbral-color-text-muted);
  --command-subtle: var(--umbral-color-text-subtle);
  --command-grid-line: color-mix(in srgb, var(--umbral-color-brand) 14%, transparent);
}

[data-theme="light"] .command-opening,
[data-theme="light"] .command-error {
  color: var(--command-muted);
}

[data-theme="light"] .command-opening span {
  border-color: color-mix(in srgb, var(--command-gold) 22%, transparent);
  border-top-color: var(--command-gold);
}

[data-theme="light"] .command-hero {
  border-color: color-mix(in srgb, var(--umbral-color-brand) 18%, var(--command-border));
  background:
    radial-gradient(circle at 82% 18%, rgba(174, 139, 73, .2), transparent 30%),
    radial-gradient(circle at 10% 105%, rgba(47, 105, 64, .13), transparent 38%),
    linear-gradient(145deg, #fffdf7, #edf1e8 58%, #f5edda);
  box-shadow:
    0 26px 70px rgba(39, 48, 38, .12),
    inset 0 1px rgba(255, 255, 255, .82);
}

[data-theme="light"] .investor-command-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(101, 82, 164, .14), transparent 31%),
    radial-gradient(circle at 10% 105%, rgba(47, 105, 64, .13), transparent 38%),
    linear-gradient(145deg, #fffdf7, #eef1e9 58%, #f2ecdf);
}

[data-theme="light"] .command-hero-copy p {
  color: var(--command-muted);
}

[data-theme="light"] .command-hero-controls {
  color: var(--command-muted);
}

[data-theme="light"] .command-period select {
  border-color: var(--command-border-strong);
  background: rgba(255, 253, 247, .84);
  color: var(--command-text);
  box-shadow: 0 6px 18px rgba(39, 48, 38, .07);
}

[data-theme="light"] .command-hero-controls > button {
  border-color: var(--umbral-color-brand);
  background: linear-gradient(135deg, var(--umbral-color-brand-strong), var(--umbral-color-brand));
  color: var(--umbral-color-on-brand);
  box-shadow: 0 8px 20px rgba(21, 62, 45, .17);
}

[data-theme="light"] .command-constellation,
[data-theme="light"] .command-constellation::before,
[data-theme="light"] .command-constellation::after {
  border-color: rgba(139, 101, 38, .13);
}

[data-theme="light"] .command-constellation i,
[data-theme="light"] .command-constellation b {
  background: var(--command-gold);
  box-shadow: 0 0 24px rgba(143, 104, 41, .38);
}

[data-theme="light"] .command-metric {
  border-color: var(--command-border);
  background:
    linear-gradient(145deg, rgba(255, 253, 247, .96), rgba(239, 242, 233, .82));
  box-shadow:
    0 14px 34px rgba(39, 48, 38, .085),
    inset 0 1px rgba(255, 255, 255, .9);
}

[data-theme="light"] .command-metric:hover {
  border-color: color-mix(in srgb, currentColor 34%, var(--command-border));
  background: var(--umbral-color-surface);
  box-shadow: 0 18px 40px rgba(39, 48, 38, .12);
}

[data-theme="light"] .command-metric > span,
[data-theme="light"] .command-metric small {
  color: var(--command-subtle);
}

[data-theme="light"] .command-metric strong {
  color: var(--command-text);
}

[data-theme="light"] .command-panel {
  border-color: var(--command-border);
  background:
    linear-gradient(145deg, rgba(255, 253, 247, .96), rgba(243, 241, 232, .9));
  box-shadow: var(--umbral-shadow-raised);
}

[data-theme="light"] .command-panel > header {
  border-bottom-color: var(--command-border);
  background: rgba(255, 253, 247, .46);
}

[data-theme="light"] .command-panel header h2 {
  color: var(--command-text);
}

[data-theme="light"] .command-grid path {
  stroke: var(--command-grid-line);
}

[data-theme="light"] .command-line {
  filter: drop-shadow(0 2px 4px color-mix(in srgb, currentColor 22%, transparent));
}

[data-theme="light"] .command-chart-labels,
[data-theme="light"] .command-legend {
  color: var(--command-subtle);
}

[data-theme="light"] .command-assistants button {
  border-right-color: var(--command-border);
  background: transparent;
}

[data-theme="light"] .command-assistants button:hover {
  background: color-mix(in srgb, var(--umbral-color-brand) 5%, transparent);
}

[data-theme="light"] .command-assistants article {
  background: transparent;
}

[data-theme="light"] .command-assistants strong {
  color: var(--command-text);
}

[data-theme="light"] .command-assistants small,
[data-theme="light"] .command-assistants em {
  color: var(--command-subtle);
}

[data-theme="light"] .command-stage-bars i {
  background: color-mix(in srgb, var(--umbral-color-brand) 10%, transparent);
}

[data-theme="light"] .command-stage-bars > button {
  color: var(--command-muted);
}

[data-theme="light"] .command-stage-bars strong {
  color: var(--command-text);
}

[data-theme="light"] .command-task {
  border-bottom-color: var(--command-border);
}

[data-theme="light"] .command-task > button {
  border-color: color-mix(in srgb, var(--command-gold) 45%, transparent);
  background: rgba(255, 253, 247, .72);
}

[data-theme="light"] .command-task > button:hover {
  background: color-mix(in srgb, var(--command-gold) 15%, transparent);
}

[data-theme="light"] .command-task strong {
  color: var(--command-text);
}

[data-theme="light"] .command-task small,
[data-theme="light"] .command-task time {
  color: var(--command-subtle);
}

[data-theme="light"] .command-property-review {
  border-bottom-color: var(--command-border);
}

[data-theme="light"] .command-property-review strong {
  color: var(--command-text);
}

[data-theme="light"] .command-property-review small,
[data-theme="light"] .command-property-review time {
  color: var(--command-subtle);
}

[data-theme="light"] .command-investors > div > button {
  border-bottom-color: var(--command-border);
}

[data-theme="light"] .command-investors > div > button:hover {
  background: color-mix(in srgb, var(--umbral-color-brand) 5%, transparent);
}

[data-theme="light"] .command-investors strong {
  color: var(--command-text);
}

[data-theme="light"] .command-investors small,
[data-theme="light"] .command-investors time,
[data-theme="light"] .command-empty {
  color: var(--command-subtle);
}

/* V0.9.9.71B Command presentation */
.command-hero {
  min-height: 0;
  align-items: start;
  gap: 1rem;
  padding: clamp(1.1rem, 2.2vw, 2rem);
  border-radius: 24px;
}

.command-hero-copy {
  max-width: 720px;
}

.command-hero-copy h1 {
  max-width: 720px;
  margin: .45rem 0 0;
  font-size: clamp(2rem, 3.8vw, 3.7rem);
  line-height: .94;
}

.command-hero-copy p {
  max-width: 590px;
  font-size: .9rem;
  line-height: 1.55;
}

.command-hero-controls {
  align-self: start;
}

.command-constellation {
  width: 340px;
  height: 340px;
  top: -126px;
  right: -54px;
}

.command-metrics {
  gap: 12px;
  margin: 0;
}

.command-metric {
  min-height: 94px;
  gap: .28rem;
  padding: .9rem;
  border-radius: 15px;
}

.command-metric strong {
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
}

.command-layout {
  gap: 12px;
}

.command-panel {
  min-width: 0;
  border-radius: 18px;
}

.command-panel > header {
  min-height: 68px;
  padding: .95rem 1.1rem;
}

.command-chart-panel {
  width: 100%;
  min-width: 0;
  min-height: 0;
}

.command-chart {
  width: 100%;
  min-width: 0;
  padding-inline: 0;
}

.command-chart svg {
  width: 100%;
  min-width: 0;
  height: 250px;
}

.command-chart-labels {
  padding-inline: 1.2rem;
}

@media (max-width: 720px) {
  [data-theme="light"] .command-assistants button {
    border-right: 0;
    border-bottom: 1px solid var(--command-border);
  }

  .command-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .command-hero-controls {
    align-self: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .command-opening span,
  .command-constellation { animation: none; }
  .command-metric,
  .command-platform-pulse button,
  .command-tool-group button,
  .command-panel { transition: none; }
}

.command-news-studio { grid-column: 1; }
.command-review-queue { grid-column: 2; }
.command-news-row, .command-review-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: .9rem 1rem; color: inherit; background: transparent; border: 0; border-bottom: 1px solid var(--command-border); text-align: left; }
.command-news-row > span, .command-review-row > span { display: grid; gap: .2rem; min-width: 0; }
.command-news-row strong, .command-review-row strong { color: var(--command-text); }
.command-news-row small, .command-review-row small { color: var(--command-gold); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.command-news-row em { overflow: hidden; color: var(--command-muted); font-size: .8rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.command-news-row button, .command-review-row em { flex: 0 0 auto; color: var(--command-gold); font-size: .72rem; font-style: normal; font-weight: 800; }
.command-news-dialog { width: min(760px, calc(100vw - 2rem)); padding: 0; color: var(--command-text); background: var(--command-panel); border: 1px solid var(--command-border); border-radius: 20px; box-shadow: 0 35px 100px rgba(0,0,0,.45); }
.command-news-dialog { --command-news-dialog-surface:#0d1a13; --command-news-dialog-field:#14251b; background:var(--command-news-dialog-surface); color:#f4edd3; }
.command-news-dialog::backdrop { background: rgba(2,4,3,.76); backdrop-filter: blur(10px); }
.command-news-dialog form { display: grid; gap: 1rem; padding: 1.25rem; }
.command-news-dialog header, .command-news-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.command-news-dialog header span { color: var(--command-gold); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.command-news-dialog h2 { margin: .2rem 0 0; font-family: var(--font-display); font-weight: 500; }
.command-news-dialog label { display: grid; gap: .38rem; color: var(--command-muted); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.command-news-dialog input, .command-news-dialog textarea, .command-news-dialog select { width: 100%; padding: .75rem .85rem; color: #f4edd3; background: var(--command-news-dialog-field); border: 1px solid #3f5949; border-radius: 10px; font: 500 .9rem/1.4 var(--font-body); letter-spacing: 0; text-transform: none; }
.command-news-dialog input:focus, .command-news-dialog textarea:focus, .command-news-dialog select:focus { outline:3px solid rgba(218,185,120,.23); border-color:#dab978; }
.command-news-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.command-news-dialog button { padding: .65rem 1rem; color: #f4edd3; background: #1a2d21; border: 1px solid #3f5949; border-radius: 999px; font-weight: 800; cursor: pointer; }
.command-news-dialog button[type="submit"] { color: #161207; background: var(--command-gold); }
.command-news-dialog button.danger { color: #ffb4aa; }
.command-news-dialog [data-news-error] { margin: 0; color: #ffb4aa; }
.command-platform-pulse { position:relative; z-index:2; grid-column:1/-1; min-width:0; padding:0; border:0; border-radius:18px; background:transparent; }
.command-platform-pulse > header { display:flex; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.command-platform-pulse > header span { color:var(--command-gold); font:700 .66rem/1 var(--mono); letter-spacing:.2em; text-transform:uppercase; }
.command-platform-pulse > header h2 { margin:.35rem 0; color:var(--command-text); font:500 clamp(1.5rem,2.6vw,2.4rem)/1.05 var(--display); }
.command-platform-pulse > header p { margin:0; color:var(--command-muted); }
.command-platform-pulse > div { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; }
.command-platform-pulse button { position:relative; min-width:0; min-height:74px; overflow:hidden; display:grid; grid-template-columns:28px minmax(0,1fr); align-items:center; gap:.65rem; padding:.65rem .7rem; border:1px solid var(--command-border); border-radius:13px; background:color-mix(in srgb,var(--command-surface-raised) 84%,transparent); color:var(--command-gold); text-align:left; cursor:pointer; transition:transform .2s,border-color .2s,box-shadow .2s,background .2s; }
.command-platform-pulse button:hover { transform:translateY(-2px); border-color:currentColor; background:color-mix(in srgb,var(--command-surface-raised) 94%,currentColor 6%); box-shadow:0 12px 26px rgba(0,0,0,.16); }
.command-platform-pulse .admin-nav-icon { width:28px; height:28px; padding:6px; border-radius:9px; background:color-mix(in srgb,currentColor 15%,transparent); stroke:currentColor; }
.command-platform-pulse button > i { font:700 .58rem/1 var(--mono); font-style:normal; opacity:.7; }
.command-platform-pulse button > span { min-width:0; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.18rem .45rem; align-items:baseline; }
.command-platform-pulse button small { overflow:hidden; color:var(--command-muted); font:700 .58rem/1.2 var(--mono); letter-spacing:.05em; text-overflow:ellipsis; text-transform:uppercase; white-space:nowrap; }
.command-platform-pulse button strong { color:var(--command-text); font:600 1rem/1 var(--display); }
.command-platform-pulse button em { grid-column:1/-1; overflow:hidden; color:var(--command-muted); font-size:.62rem; font-style:normal; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
.command-platform-pulse button > b { position:absolute; right:.8rem; bottom:.7rem; font-size:.8rem; }
.command-platform-pulse button.forest { color:var(--command-green); }.command-platform-pulse button.violet { color:var(--command-violet); }.command-platform-pulse button.amber { color:#e7a95e; }.command-platform-pulse button.teal { color:#5fb9b2; }.command-platform-pulse button.rose { color:#d98591; }
[data-theme="light"] .command-news-dialog { --command-news-dialog-surface:#fffdf7; --command-news-dialog-field:#ffffff; color:#18231b; border-color:#9eaa9e; box-shadow:0 35px 100px rgba(35,45,36,.28); }
[data-theme="light"] .command-news-dialog label, [data-theme="light"] .command-news-dialog h2 { color:#24362a; }
[data-theme="light"] .command-news-dialog input, [data-theme="light"] .command-news-dialog textarea, [data-theme="light"] .command-news-dialog select { color:#18231b; background:#ffffff; border-color:#9eaa9e; }
[data-theme="light"] .command-news-dialog button { color:#203126; background:#f0ede2; border-color:#9eaa9e; }
@media(max-width:1320px){.command-platform-pulse > div{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media(max-width:820px){.command-platform-pulse > div{grid-template-columns:repeat(2,minmax(0,1fr));}.command-chart svg{height:210px;}}
@media(max-width:480px){.command-platform-pulse > div{grid-template-columns:1fr;}.command-platform-pulse button{min-height:68px;}}

@media (max-width: 900px) {
  .command-news-studio, .command-review-queue { grid-column: 1 / -1; }
  .command-news-form-grid { grid-template-columns: 1fr; }
}

.command-progressive-grid {
  display: grid;
  gap: 12px;
}

.command-section,
.command-tool-directory {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: clamp(.85rem, 1.6vw, 1.2rem);
  border: 1px solid var(--command-border);
  border-radius: 20px;
  background: var(--command-surface);
}

.command-section > header,
.command-tool-directory > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.command-section > header span,
.command-tool-directory > header span {
  color: var(--command-gold);
  font: 700 .63rem/1 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.command-section > header h2,
.command-tool-directory > header h2 {
  margin: .35rem 0 0;
  color: var(--command-text);
  font: 500 clamp(1.25rem, 2vw, 1.85rem)/1.08 var(--display);
}

.command-section > header small,
.command-tool-directory > header p {
  margin: 0;
  color: var(--command-muted);
  font-size: .72rem;
}

.command-section-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.command-section-grid > :is(.command-panel, .command-section-error, .command-inline-loading) {
  --command-span: 6;
  grid-column: span var(--command-span);
  min-width: 0;
}

.command-section-grid > :is(.command-platform-pulse, .command-chart-panel, .command-section-error, .command-inline-loading) {
  --command-span: 12;
}

.command-inline-loading,
.command-section-error {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: .35rem;
  padding: 1rem;
  border: 1px dashed var(--command-border);
  border-radius: 14px;
  color: var(--command-muted);
  background: color-mix(in srgb, var(--command-surface-raised) 72%, transparent);
}

.command-section-error button {
  justify-self: start;
  min-height: 40px;
  margin-top: .35rem;
  padding: .55rem .8rem;
  border: 1px solid var(--command-gold);
  border-radius: 999px;
  color: var(--command-text);
  background: transparent;
  cursor: pointer;
}

.command-tool-grid,
.command-tool-group,
.command-tool-group > div { display: grid; gap: 7px; }
.command-tool-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.command-tool-group { --command-span: 3; grid-column: span var(--command-span); min-width:0; align-content: start; }
.command-tool-group h3 { margin: 0; color: var(--command-muted); font: 700 .66rem/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.command-tool-group button {
  min-width:0;
  min-height: 44px;
  display: grid;
  grid-template-columns:28px minmax(0,1fr) auto;
  align-items: center;
  gap: .55rem;
  padding: .45rem .55rem;
  border: 1px solid var(--command-border);
  border-radius: 12px;
  color: var(--command-text);
  background: var(--command-surface-raised);
  text-align: left;
  cursor: pointer;
  transition:transform .18s,border-color .18s,background .18s;
}
.command-tool-group button:hover { transform:translateY(-1px); border-color:color-mix(in srgb,var(--command-gold) 48%,var(--command-border)); background:color-mix(in srgb,var(--command-surface-raised) 90%,var(--command-gold) 10%); }
.command-tool-group .admin-nav-icon { width:28px; height:28px; padding:6px; border-radius:8px; color:var(--command-gold); background:color-mix(in srgb,var(--command-gold) 12%,transparent); stroke:currentColor; }
.command-tool-group button > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.command-tool-group button small { color: var(--command-muted); white-space: nowrap; }

@media (max-width: 1100px) {
  .command-tool-group { --command-span: 6; }
}

@media (max-width: 680px) {
  .command-section-grid > .command-panel { --command-span: 12; }
  .command-tool-group { --command-span: 12; }
  .command-section > header,
  .command-tool-directory > header { align-items: start; flex-direction: column; }
  .command-chart svg { height:180px; }
  .command-hero { border-radius:18px; }
}

.command-dashboard :is(
  .command-metric,
  .command-platform-pulse button,
  .command-tool-group button,
  .command-hero-controls button,
  .command-section-error button,
  .command-panel button,
  select
):focus-visible {
  outline: 3px solid var(--umbral-color-focus, var(--command-gold));
  outline-offset: 3px;
}

[data-theme="disco"] .command-dashboard {
  --command-gold: #ffd166;
  --command-green: #48f0b2;
  --command-violet: #b899ff;
  --command-surface: rgba(35, 16, 58, .88);
  --command-surface-raised: #321a50;
  --command-border: rgba(123, 236, 255, .24);
  --command-border-strong: rgba(255, 94, 205, .52);
  --command-text: #fff8ff;
  --command-muted: #d9c9ea;
  --command-subtle: #baa7cf;
  --command-grid-line: rgba(117, 236, 255, .16);
}

[data-theme="disco"] .command-hero {
  border-color:rgba(255,94,205,.42);
  background:
    radial-gradient(circle at 84% 12%,rgba(64,238,255,.22),transparent 28%),
    radial-gradient(circle at 12% 105%,rgba(80,242,176,.18),transparent 36%),
    linear-gradient(145deg,#1d0b31,#36134d 54%,#161532);
  box-shadow:0 28px 80px rgba(12,3,26,.45),inset 0 1px rgba(255,255,255,.08);
}

[data-theme="disco"] .command-platform-pulse button {
  border-color:rgba(125,232,255,.24);
  background:linear-gradient(145deg,rgba(70,30,97,.86),rgba(35,21,69,.92));
  box-shadow:inset 0 1px rgba(255,255,255,.05);
}

[data-theme="disco"] .command-platform-pulse button:nth-child(4n+1),
[data-theme="disco"] .command-tool-group:nth-child(4n+1) .admin-nav-icon { color:#ff63ce; }
[data-theme="disco"] .command-platform-pulse button:nth-child(4n+2),
[data-theme="disco"] .command-tool-group:nth-child(4n+2) .admin-nav-icon { color:#70eaff; }
[data-theme="disco"] .command-platform-pulse button:nth-child(4n+3),
[data-theme="disco"] .command-tool-group:nth-child(4n+3) .admin-nav-icon { color:#4df0ae; }
[data-theme="disco"] .command-platform-pulse button:nth-child(4n),
[data-theme="disco"] .command-tool-group:nth-child(4n) .admin-nav-icon { color:#ffd166; }

[data-theme="disco"] .command-metric,
[data-theme="disco"] .command-panel,
[data-theme="disco"] .command-section,
[data-theme="disco"] .command-tool-directory {
  border-color:var(--command-border);
  background:linear-gradient(145deg,rgba(48,23,74,.92),rgba(24,20,54,.9));
}

[data-theme="disco"] .command-constellation {
  animation: none;
  border-color:rgba(112,234,255,.18);
}

/* 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; }

.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 administrator shell. */

/* Migrated shared shell rules from admin-experience.css. */
.admin-tabs { scrollbar-width: thin; }

@media (max-width: 1200px) {
  .admin-topbar { overflow-x: auto; }
}

/* Migrated shared shell rules from admin-prospecting.css. */
.admin-topbar { flex-wrap: wrap; }
.admin-tabs { max-width: min(100%, 900px); overflow-x: auto; scrollbar-width: thin; }
.admin-tabs button { white-space: nowrap; padding-inline: .82rem; }

/* Shared topbar, navigation, controls, cards, and fields. */
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: .85rem clamp(1rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--void) 82%, transparent);
  backdrop-filter: blur(24px) saturate(1.2);
}
.admin-brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.admin-brand img { width: 128px; }
[data-theme="dark"] .admin-brand img { filter: none; }
.admin-brand span {
  padding-left: .8rem;
  border-left: 1px solid var(--line-strong);
  color: var(--gold);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.admin-tabs { display: flex; gap: .3rem; margin: 0 auto; padding: 4px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--glass); }
.admin-tabs button {
  padding: .55rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ghost);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.admin-tabs button:hover { color: var(--soft); }
.admin-tabs button.active { color: var(--gold-bright); border-color: var(--gold-dim); background: var(--gold-glow); }

.admin-actions { display: flex; align-items: center; gap: .7rem; }
.admin-who { color: var(--ghost); font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; }
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.1rem;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  background: linear-gradient(118deg, var(--gold-deep), var(--gold) 60%);
  color: #140d03;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), filter .2s var(--ease);
}
.admin-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.admin-btn.ghost { background: var(--glass); border-color: var(--hairline); color: var(--muted); }
.admin-btn.ghost:hover { color: var(--gold-bright); border-color: var(--line-strong); }
.admin-btn.small { padding: .4rem .85rem; font-size: .72rem; }
.admin-btn.danger { background: transparent; border-color: rgba(220,120,100,.4); color: #e79c8a; }
.admin-btn.danger:hover { background: rgba(220,120,100,.12); }

.admin-main { max-width: 1320px; margin: 0 auto; padding: clamp(1.4rem, 3vw, 2.6rem); }

.admin-card {
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: color-mix(in srgb, var(--obsidian) 46%, transparent);
}
.admin-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem .6rem; }
.admin-card-head h2 { margin: 0; font-family: var(--display); font-size: 1.2rem; font-weight: 500; color: var(--cream); }
.admin-hint { color: var(--ghost); font-size: .72rem; }
.admin-scroll { max-height: 480px; overflow: auto; padding: .3rem 1.3rem 1.2rem; }

.mini-btn { padding: .32rem .7rem; border: 1px solid var(--hairline); border-radius: 8px; background: transparent; color: var(--ghost); font-size: .72rem; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.mini-btn:hover { color: var(--gold-bright); border-color: var(--gold-dim); background: var(--gold-glow); }
.mini-btn.danger:hover { color: #e79c8a; border-color: rgba(220,120,100,.4); background: rgba(220,120,100,.1); }

.admin-modal input, .admin-modal select, .admin-modal textarea {
  padding: .7rem .85rem;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: var(--cream);
  font-family: var(--sans);
  font-size: .92rem;
  letter-spacing: .01em;
}
.admin-modal textarea { font-family: var(--mono); font-size: .8rem; line-height: 1.5; resize: vertical; }
.admin-modal input:focus, .admin-modal select:focus, .admin-modal textarea:focus { outline: none; border-color: var(--line-strong); box-shadow: 0 0 0 3px var(--gold-glow); }

/* Legacy workspace shell foundations, retained ahead of the final command shell. */
.admin-topbar { min-height: 72px; padding-block: .7rem; gap: 1.2rem; }
.admin-brand { min-width: 230px; }
.admin-workspaces { display: flex; gap: .25rem; margin: 0 auto; padding: 4px; border: 1px solid var(--hairline); border-radius: 14px; background: var(--glass); }
.admin-workspaces button { padding: .65rem 1.15rem; border: 0; border-radius: 10px; background: transparent; color: var(--ghost); font: 700 .82rem/1 var(--sans); cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.admin-workspaces button:hover { color: var(--cream); transform: translateY(-1px); }
.admin-workspaces button.active { color: #152218; background: linear-gradient(125deg, #f2d994, #cfaa59); box-shadow: 0 8px 24px rgba(205, 166, 82, .18); }

.admin-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: calc(100vh - 72px); }
.admin-sidebar { position: sticky; top: 72px; align-self: start; height: calc(100vh - 72px); display: flex; flex-direction: column; padding: 1.35rem 1rem 1rem; border-right: 1px solid var(--hairline); background: color-mix(in srgb, var(--void) 91%, transparent); backdrop-filter: blur(24px); }
.admin-sidebar-label { padding: 0 .8rem .8rem; color: var(--gold); font: 700 .65rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.admin-sidebar .admin-tabs { display: block; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.admin-sidebar .admin-tabs > div { display: grid; gap: .35rem; }
.admin-sidebar .admin-tabs > div[hidden] { display: none; }
.admin-sidebar .admin-tabs button { width: 100%; padding: .8rem .85rem; border: 1px solid transparent; border-radius: 10px; text-align: left; font-size: .89rem; font-weight: 700; }
.admin-sidebar .admin-tabs button.active { color: var(--gold-bright); border-color: var(--gold-dim); background: linear-gradient(90deg, var(--gold-glow), transparent); }
.admin-sidebar-foot { margin-top: auto; padding: 1rem .8rem .35rem; border-top: 1px solid var(--hairline); display: grid; gap: .2rem; }
.admin-sidebar-foot span { color: var(--gold); font: 700 .68rem/1 var(--mono); letter-spacing: .14em; }
.admin-sidebar-foot small { color: var(--ghost); font-size: .69rem; }
.admin-main { width: 100%; max-width: 1500px; padding: clamp(1.4rem, 2.5vw, 2.5rem); }

[data-theme="light"] .admin-sidebar { --work-canvas: #f5f4ed; background: rgba(247,246,239,.93); }

@media (max-width: 1450px) {
  .admin-actions .admin-btn.ghost { display: none; }
  .admin-brand { min-width: auto; }
  .admin-brand span { display: none; }
}

@media (max-width: 900px) {
  .admin-topbar { flex-wrap: wrap; }
  .admin-workspaces { order: 3; width: 100%; overflow-x: auto; }
  .admin-actions { margin-left: auto; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: sticky; top: 118px; z-index: 30; height: auto; padding: .55rem; border-right: 0; border-bottom: 1px solid var(--hairline); }
  .admin-sidebar-label, .admin-sidebar-foot { display: none; }
  .admin-sidebar .admin-tabs > div { display: flex; overflow-x: auto; }
  .admin-sidebar .admin-tabs > div[hidden] { display:none; }
  .admin-sidebar .admin-tabs button { width: auto; white-space: nowrap; }
}

@media (max-width: 620px) {
  .admin-workspaces button { padding-inline: .8rem; }
}

@media (min-width: 901px) {
  .admin-topbar { flex-wrap: nowrap; }
  .admin-workspaces { flex: 0 1 auto; gap: .12rem; margin-inline: auto; }
  .admin-workspaces button { padding: .62rem .72rem; font-size: .84rem; }
  .admin-actions { flex: 0 0 auto; margin-left: 0; }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .admin-workspaces button { padding-inline: .55rem; font-size: .78rem; }
  .admin-who, .admin-actions .theme-toggle-text { display: none; }
}

/* Final administrator command shell. */
:root {
  --admin-topbar: var(--topbar, 72px);
  --admin-content-offset: var(--admin-topbar);
  --admin-rail-width: 272px;
  --admin-control-radius: var(--umbral-radius-control);
  --admin-forest: var(--umbral-color-brand);
  --admin-forest-bright: var(--umbral-color-brand-strong);
  --admin-shell-glass: color-mix(in srgb, var(--obsidian) 76%, transparent);
}

body.admin {
  min-width: 0;
  background:
    radial-gradient(980px 560px at 78% -12%, rgba(216, 180, 118, .075), transparent 62%),
    var(--void);
}

.umbral-data-room-shell .admin-shell { background: var(--umbral-auth-canvas); }
.umbral-data-room-shell .admin-main {
  max-width: var(--umbral-auth-content-width);
  padding: var(--umbral-auth-page-padding);
}

@media (min-width: 901px) {
  .admin-topbar {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .admin-topbar .admin-workspaces {
    position: relative;
    grid-column: 2;
    left: auto;
    justify-self: center;
    transform: none;
    width: max-content;
    max-width: min(100%, 760px);
  }
  .admin-actions { grid-column: 3; justify-self: end; }
}

.admin-workspace-load-progress {
  position: relative;
  overflow: hidden;
  display: grid;
  place-content: center;
  place-items: center;
  gap: 1.15rem;
  width: 100%;
  min-height: calc(100dvh - var(--admin-content-offset));
  padding: clamp(2rem, 6vw, 5rem);
  background: var(--umbral-auth-canvas);
  color: var(--umbral-color-text);
  text-align: center;
}

.admin-session-recovery {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .75rem;
  width: 100%;
  min-height: calc(100dvh - var(--admin-content-offset));
  padding: clamp(2rem, 6vw, 5rem);
  background: var(--umbral-auth-canvas);
  color: var(--umbral-auth-text);
  text-align: center;
}

.admin-session-recovery span {
  max-width: 38rem;
  color: var(--umbral-auth-muted);
}

.admin-workspace-load-error {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin: clamp(1rem, 2.4vw, 2.5rem);
  padding: 1rem 1.15rem;
  border: 1px solid var(--umbral-color-border-subtle);
  border-radius: var(--umbral-auth-card-radius);
  background: var(--umbral-color-surface);
  color: var(--umbral-color-text);
  box-shadow: var(--umbral-shadow-raised);
}

.admin-workspace-inline-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: .85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--umbral-color-danger) 55%, var(--umbral-color-border-default));
  border-radius: var(--admin-control-radius);
  background: color-mix(in srgb, var(--umbral-color-danger) 10%, var(--umbral-color-surface));
  color: var(--umbral-color-text);
}

.admin-workspace-inline-status span { display: grid; gap: .15rem; color: var(--umbral-color-text-muted); }
.admin-workspace-inline-status strong { color: var(--umbral-color-text); }

.admin-tab[data-inline-load-state] > :not(.admin-workspace-load-progress):not(.admin-workspace-load-error) {
  display: none !important;
}

.admin-main:has(> .admin-tab[data-inline-load-state]:not([hidden])) {
  max-width: none;
  padding: 0;
}

.admin-tab[data-inline-load-state]:not([hidden]) {
  min-height: calc(100dvh - var(--admin-content-offset));
}

.milestone-inline-edit {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(260px, 2fr) 130px 110px 150px;
  gap: .65rem;
  align-items: end;
}
.milestone-inline-edit label { display: grid; gap: .35rem; color: var(--ghost); font-size: .72rem; }
.milestone-inline-edit input,
.milestone-inline-edit textarea,
.milestone-inline-edit select {
  padding: .65rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--soft);
  background: var(--glass);
  font: inherit;
}
.milestone-edit-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: .6rem; }
.admin-workspace-load-progress::after,
.admin-workspace-load-error::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--umbral-color-accent), transparent);
  transform: translateX(-100%);
  animation: admin-load-progress 1.4s ease-in-out infinite;
}
.admin-workspace-load-progress img {
  width: clamp(64px, 8vw, 92px);
  height: clamp(64px, 8vw, 92px);
  object-fit: contain;
  animation: admin-load-logo 1.6s linear infinite;
}
.admin-workspace-load-error img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  animation: admin-load-logo 1.6s linear infinite;
}
.admin-workspace-load-progress span {
  display: grid;
  gap: .3rem;
  max-width: min(34rem, 82vw);
  color: var(--umbral-color-text-muted);
}
.admin-workspace-load-error span { color: var(--umbral-color-text-muted); }
.admin-workspace-load-progress strong {
  margin: 0;
  color: var(--umbral-color-text);
  font-size: clamp(1rem, 2vw, 1.25rem);
}
.admin-workspace-load-error strong { display: block; margin-bottom: .2rem; }
@keyframes admin-load-progress { 55%,100% { transform: translateX(100%); } }
@keyframes admin-load-logo { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  body.admin { --admin-content-offset: calc(var(--admin-topbar) + 58px); }
  .admin-workspaces { position: static; left: auto; transform: none; max-width: none; }
  .admin-workspace-load-error { grid-template-columns: 44px 1fr; }
  .admin-workspace-load-error .admin-btn { grid-column: 1 / -1; justify-self: start; }
  .admin-workspace-inline-status { align-items: stretch; flex-direction: column; }
  .admin-workspace-inline-status .admin-btn { align-self: start; }
}

@media (max-width: 760px) {
  .milestone-inline-edit { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-workspace-load-progress::after,
  .admin-workspace-load-error::after,
  .admin-workspace-load-progress img,
  .admin-workspace-load-error img { animation: none; }
}

.admin-tab[data-transition-presentation="off"] .admin-workspace-load-progress::after,
.admin-tab[data-transition-presentation="off"] .admin-workspace-load-progress img {
  animation: none !important;
}
.admin-tab[data-transition-presentation="off"] .admin-workspace-load-progress::after { transform: none; }

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(150px, 230px) minmax(430px, 1fr) auto;
  align-items: center;
  gap: clamp(.7rem, 1.4vw, 1.35rem);
  width: 100%;
  height: var(--admin-topbar);
  min-height: var(--admin-topbar);
  padding: 0 clamp(1rem, 2.3vw, 2rem);
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--obsidian) 88%, transparent);
  backdrop-filter: blur(26px) saturate(1.25);
  box-shadow: none;
}

.admin-brand {
  min-width: 0;
  height: 100%;
  padding: .25rem 0;
  gap: .75rem;
  overflow: hidden;
}

.admin-brand img {
  display: block;
  width: clamp(118px, 11vw, 164px);
  height: auto;
  flex: none;
}

.admin-brand span {
  min-width: 0;
  overflow: hidden;
  color: var(--gold);
  font-size: .62rem;
  letter-spacing: .2em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-workspaces {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  scrollbar-width: none;
}

.admin-workspaces::-webkit-scrollbar,
.admin-sidebar .admin-tabs::-webkit-scrollbar,
.admin-sidebar .admin-tabs > div::-webkit-scrollbar {
  display: none;
}

.admin-workspaces button {
  position: relative;
  flex: 0 0 auto;
  min-width: 76px;
  min-height: 44px;
  height: 100%;
  padding: 0 clamp(.65rem, 1vw, 1rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ghost);
  font-size: .84rem;
  font-weight: 650;
  letter-spacing: .025em;
  box-shadow: none;
  transform: none;
}

.admin-workspaces button::after {
  content: "";
  position: absolute;
  right: .7rem;
  bottom: 0;
  left: .7rem;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: transparent;
}

.admin-workspaces button:hover {
  color: var(--cream);
  background: color-mix(in srgb, var(--admin-forest) 12%, transparent);
  transform: none;
}

.admin-workspaces button.active {
  color: var(--gold-bright);
  background: linear-gradient(180deg, transparent 22%, color-mix(in srgb, var(--admin-forest) 34%, transparent));
  box-shadow: none;
}

.admin-workspaces button.active::after {
  background: var(--gold);
  box-shadow: 0 0 14px rgba(216, 180, 118, .24);
}

.admin-actions {
  min-width: 0;
  justify-content: flex-end;
  gap: .55rem;
}

.admin-actions .admin-btn,
.admin-actions .theme-toggle,
.admin-actions .notification-bell {
  min-height: 40px;
  border-radius: var(--admin-control-radius);
}

.admin-who {
  max-width: 128px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-shell {
  display: grid;
  grid-template-columns: var(--admin-rail-width) minmax(0, 1fr);
  align-items: start;
  min-width: 0;
  min-height: calc(100dvh - var(--admin-topbar));
}

.admin-sidebar {
  position: sticky;
  top: var(--admin-topbar);
  align-self: start;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: calc(100dvh - var(--admin-topbar));
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, var(--admin-shell-glass), color-mix(in srgb, var(--void) 91%, transparent));
  backdrop-filter: blur(24px) saturate(1.1);
}

.admin-sidebar-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 1rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--gold);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-align: center;
}

.admin-sidebar-brand {
  display: grid;
  place-items: center;
  width: calc(100% - 1.4rem);
  min-height: 92px;
  margin: .7rem;
  padding: 1rem .7rem;
  border-bottom: 1px solid var(--hairline);
}
.admin-sidebar-brand img { display: block; width: 100%; height: auto; object-fit: contain; }

.admin-workspaces {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: .28rem;
  border: 1px solid var(--hairline);
  border-radius: 15px;
  background: color-mix(in srgb, var(--glass) 84%, transparent);
}
.admin-workspaces button { position: relative; border-radius: 11px; font-size: .96rem; }
.admin-workspaces button + button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24%;
  width: 1px;
  height: 52%;
  background: var(--hairline);
}
.admin-workspaces button.active::before,
.admin-workspaces button.active + button::before { opacity: 0; }

.admin-sidebar .admin-tabs {
  flex: 1 1 auto;
  display: block;
  min-height: 0;
  margin: 0;
  padding: .8rem .7rem;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.admin-sidebar .admin-tabs > div {
  display: grid;
  gap: .38rem;
  width: 100%;
}

.admin-sidebar .admin-tabs > div[hidden] {
  display: none;
}

.admin-sidebar .admin-tabs button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 54px;
  padding: .7rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--admin-control-radius);
  background: transparent;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 620;
  line-height: 1.2;
  text-align: left;
  box-shadow: none;
}

.admin-sidebar .admin-tabs button:hover {
  border-color: var(--hairline);
  background: var(--glass);
  color: var(--cream);
}

.admin-sidebar .admin-tabs button.active {
  border-color: var(--gold-dim);
  background: linear-gradient(90deg, color-mix(in srgb, var(--admin-forest-bright) 48%, transparent), var(--gold-glow));
  color: var(--gold-bright);
  box-shadow: inset 3px 0 0 var(--gold);
}

.admin-sidebar .admin-tabs button:has(.admin-nav-icon) {
  gap: .72rem;
}

.admin-nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.finance-workspace-shell:not([hidden]) {
  display: block !important;
  width: 100%;
  min-width: 0;
  min-height: calc(100vh - var(--admin-topbar-height, 76px));
  padding: 0 !important;
  overflow: visible;
}

#admin-finance-workspace {
  width: 100%;
  min-width: 0;
  min-height: calc(100vh - var(--admin-topbar-height, 76px));
}
.admin-topbar .admin-workspaces { margin-left: 0; }
.admin-sidebar-foot { border: 0 !important; border-top: 1px solid var(--hairline) !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; text-align: center; }
.admin-sidebar-foot span, .admin-sidebar-foot small { justify-content: center; }
.admin-sidebar-foot em { display: none !important; }

.admin-sidebar-foot {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  gap: .25rem;
  width: 100%;
  min-height: 72px;
  margin: auto 0 0;
  padding: .85rem 1rem;
  border-top: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--obsidian) 72%, transparent);
  text-align: center;
}

.admin-sidebar-foot span {
  color: var(--gold);
  font-size: .66rem;
  letter-spacing: .16em;
}

.document-library-manager .doc-section tbody tr { cursor: grab; }
.document-library-manager .doc-section tbody tr.dragging { opacity: .45; }
.doc-manager-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.doc-manager-actions select { max-width: 150px; }

.admin-sidebar-foot small {
  color: var(--ghost);
  font-size: .68rem;
}

.admin-main {
  min-width: 0;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: clamp(1.35rem, 2.4vw, 2.5rem);
  overflow: visible;
}

.admin-main:has(> .admin-tab-full-canvas:not([hidden])) {
  width: 100%;
  max-width: none;
  padding: 0;
}

.admin-topbar :is(button, a):focus-visible,
.admin-sidebar .admin-tabs button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

[data-theme="light"] .admin-topbar {
  background: color-mix(in srgb, var(--obsidian) 94%, transparent);
  border-bottom-color: var(--line);
}

[data-theme="light"] .admin-sidebar {
  background: linear-gradient(180deg, rgba(255, 253, 247, .96), rgba(243, 241, 232, .92));
}

[data-theme="light"] .admin-workspaces button.active {
  color: var(--admin-forest);
  background: linear-gradient(180deg, transparent 20%, rgba(21, 62, 45, .1));
}

[data-theme="light"] .admin-sidebar .admin-tabs button.active {
  border-color: rgba(174, 139, 73, .42);
  background: linear-gradient(90deg, rgba(21, 62, 45, .13), rgba(174, 139, 73, .1));
  color: var(--admin-forest);
}

[data-theme="light"] .admin-sidebar-foot {
  background: rgba(255, 253, 247, .82);
}

@media (max-width: 1320px) {
  .admin-topbar {
    grid-template-columns: auto minmax(390px, 1fr) auto;
    gap: .7rem;
  }

  .admin-brand span,
  .admin-who {
    display: none;
  }

  .admin-workspaces button {
    min-width: 68px;
    padding-inline: .62rem;
    font-size: .78rem;
  }
}

/* V0.9.9.463B exact Data Room lower-left panel parity. */
body.umbral-data-room-shell.umbral-auth-page .admin-sidebar-foot {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 2.04px;
  width: 100%;
  min-height: 51.81px;
  margin: auto 0 0;
  padding: 10.2px 13.6px 11.05px;
  border: 0 !important;
  border-top: 1px solid rgba(216, 180, 118, .12) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
}

body.umbral-data-room-shell.umbral-auth-page .admin-sidebar-foot > :is(button, span) {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12.75px;
  font-weight: 700;
  line-height: 13.77px;
  letter-spacing: .57375px;
  text-align: center;
  text-transform: uppercase;
}

body.umbral-data-room-shell.umbral-auth-page .admin-sidebar-foot > button:first-child {
  color: #d6b85b !important;
}

body.umbral-data-room-shell.umbral-auth-page .admin-sidebar-foot > span:last-child {
  color: var(--ghost) !important;
}

[data-theme="light"] body.umbral-data-room-shell.umbral-auth-page .admin-sidebar-foot {
  border-top-color: rgba(21, 62, 45, .11) !important;
}

[data-theme="light"] body.umbral-data-room-shell.umbral-auth-page .admin-sidebar-foot > button:first-child {
  color: #c59b2f !important;
}

[data-theme="light"] body.umbral-data-room-shell.umbral-auth-page .admin-sidebar-foot > span:last-child {
  color: #171a18 !important;
}

/* V0.9.9.463B persistent Admin Dashboard shortcut. */
body.umbral-data-room-shell.umbral-auth-page .admin-dashboard-shortcut {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .7rem;
  justify-content: center;
  width: calc(100% - 20px);
  min-height: 42px;
  margin: 8px 10px;
  padding: .65rem .8rem;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
}

body.umbral-data-room-shell.umbral-auth-page .admin-dashboard-shortcut:is(:hover, :focus-visible) {
  border-color: var(--hairline);
  background: var(--glass);
  color: var(--cream);
}

body.umbral-data-room-shell.umbral-auth-page .admin-dashboard-shortcut.active {
  border-color: color-mix(in srgb, var(--emerald) 72%, var(--hairline));
  background: linear-gradient(135deg, color-mix(in srgb, var(--emerald) 24%, var(--panel)), color-mix(in srgb, var(--admin-forest) 20%, var(--panel)));
  color: var(--cream);
  box-shadow: inset 3px 0 0 var(--emerald);
}

@media (max-width: 900px) {
  body.admin {
    --admin-topbar: 120px;
  }

  .admin-topbar {
    grid-template-columns: minmax(118px, 1fr) auto;
    grid-template-rows: 68px 52px;
    align-content: stretch;
    gap: 0 .75rem;
    height: var(--admin-topbar);
    min-height: var(--admin-topbar);
    padding: 0 .85rem;
  }

  .admin-brand {
    grid-column: 1;
    grid-row: 1;
  }

  .admin-brand img {
    width: 126px;
  }

  .admin-actions {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    overflow: visible;
  }

  .admin-workspaces {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    width: calc(100% + 1.7rem);
    height: 52px;
    margin-left: -.85rem;
    padding: 0 .85rem;
    border-top: 1px solid var(--hairline);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 1.25rem;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent);
    mask-image: linear-gradient(to right, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent);
  }

  .admin-workspaces button {
    min-width: auto;
    height: 52px;
    padding-inline: .9rem;
    scroll-snap-align: center;
  }

  .admin-shell {
    display: block;
    min-height: calc(100dvh - var(--admin-topbar));
  }

  .admin-sidebar {
    position: sticky;
    top: var(--admin-topbar);
    z-index: 35;
    width: 100%;
    height: 58px;
    padding: 0;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-sidebar-label,
  .admin-sidebar-foot {
    display: none;
  }

  .admin-sidebar .admin-tabs {
    display: block;
    width: 100%;
    height: 58px;
    padding: .45rem .7rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 1.25rem;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent);
    mask-image: linear-gradient(to right, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent);
  }

  .admin-sidebar .admin-tabs > div {
    display: flex;
    align-items: center;
    gap: .38rem;
    width: max-content;
    min-width: 100%;
    height: 100%;
  }

  .admin-sidebar .admin-tabs > div[hidden] {
    display: none;
  }

  .admin-sidebar .admin-tabs button {
    flex: 0 0 auto;
    justify-content: center;
    width: auto;
    min-height: 40px;
    padding: .55rem .9rem;
    white-space: nowrap;
    scroll-snap-align: center;
    box-shadow: none;
  }

  .admin-workspaces::-webkit-scrollbar,
  .admin-sidebar .admin-tabs::-webkit-scrollbar {
    display: block;
    height: 4px;
  }

  .admin-workspaces::-webkit-scrollbar-thumb,
  .admin-sidebar .admin-tabs::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--gold-dim);
  }

  .admin-sidebar .admin-tabs button.active {
    box-shadow: inset 0 -2px 0 var(--gold);
  }

  .admin-main {
    max-width: none;
    padding: clamp(1rem, 3.5vw, 1.6rem);
  }

}

@media (max-width: 640px) {
  body.admin {
    --admin-topbar: 112px;
  }

  .admin-topbar {
    grid-template-rows: 60px 52px;
    padding-inline: .65rem;
  }

  .admin-brand img {
    width: 106px;
  }

  .admin-actions {
    gap: .3rem;
  }

  .admin-actions .theme-toggle-text {
    display: none;
  }

  .admin-actions .admin-btn,
  .admin-actions .theme-toggle,
  .admin-actions .notification-bell {
    min-height: 38px;
    padding: .42rem .62rem;
  }

  .admin-workspaces {
    width: calc(100% + 1.3rem);
    margin-left: -.65rem;
    padding-inline: .65rem;
  }

  .admin-workspaces button {
    padding-inline: .78rem;
  }

  .admin-main {
    padding: .9rem;
  }
}

@media (min-width: 901px) {
  .umbral-data-room-shell .admin-topbar {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .umbral-data-room-shell .admin-topbar .admin-workspaces {
    position: relative;
    grid-column: 2;
    left: auto;
    justify-self: center;
    width: max-content;
    max-width: min(100%, 760px);
    transform: none;
  }

  .umbral-data-room-shell .admin-topbar .admin-actions {
    grid-column: 3;
    justify-self: end;
  }
}

/* V0.9.9.463B unified Admin shell menu. */
.admin-topbar {
  grid-template-columns: var(--admin-rail-width) 44px 44px minmax(360px, 1fr) auto !important;
  grid-template-rows: var(--admin-topbar);
  height: var(--admin-topbar);
  min-height: var(--admin-topbar);
  gap: .55rem;
  padding: 0 .75rem 0 0;
}

.admin-topbar.shell-search-open {
  grid-template-columns: var(--admin-rail-width) 44px 44px minmax(360px, 1fr) auto !important;
}

.admin-topbar-brand {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: var(--admin-rail-width);
  height: 100%;
  padding: .5rem 1rem;
  border-right: 1px solid var(--line);
  text-decoration: none;
}

.admin-topbar-brand img {
  display: block;
  width: 100%;
  max-width: none;
  max-height: calc(var(--admin-topbar) - 12px);
  object-fit: contain;
}

.admin-shell { grid-template-columns: var(--admin-rail-width) minmax(0, 1fr); }
.admin-sidebar { width: var(--admin-rail-width); }

.admin-rail-toggle {
  position: static;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  width: 40px;
  height: 40px;
  margin: 0;
}

.admin-top-search-shell {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
}

.admin-topbar.shell-search-open .admin-top-search-shell {
  z-index: 2;
  grid-column: 3 / 5;
  justify-self: stretch;
  width: 100%;
}

.admin-topbar.shell-search-open .admin-workspaces {
  visibility: hidden;
  pointer-events: none;
}

.admin-top-search-shell .admin-top-search {
  width: 100%;
  max-width: none;
}

.umbral-data-room-shell .admin-topbar .admin-workspaces {
  position: static;
  grid-column: 4 !important;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(7, minmax(76px, 1fr));
  gap: .34rem;
  width: min(100%, 720px);
  height: 42px;
  max-width: none;
  overflow-x: auto;
  overflow-y: hidden;
}

.umbral-data-room-shell .admin-topbar .admin-workspaces button {
  height: 42px;
  min-height: 42px;
  min-width: 0;
  padding: .48rem .62rem;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--gold) 18%);
  border-radius: 7px;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  color: var(--soft);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .025em;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--cream) 5%, transparent);
}

.umbral-data-room-shell .admin-topbar .admin-workspaces button::after { display: none; }

.umbral-data-room-shell .admin-topbar .admin-workspaces button:is(:hover, :focus-visible) {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: var(--gold-glow);
}

.umbral-data-room-shell .admin-topbar .admin-workspaces button.active {
  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);
}

.umbral-data-room-shell .admin-topbar .admin-actions {
  grid-column: 5 !important;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  gap: .55rem;
}

.admin-data-room-link { border-radius: 7px; }
.admin-data-room-link svg { fill: none; stroke: currentColor; }
.admin-sidebar-brand { display: none; }

.admin-shell-search-results button {
  display: grid;
  gap: .15rem;
  width: 100%;
  min-height: 48px;
  padding: .58rem .7rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--umbral-auth-text);
  text-align: left;
  cursor: pointer;
}

.admin-shell-search-results button:is(:hover, :focus-visible) { background: var(--umbral-auth-surface-hover); }
.admin-shell-search-results button strong { font-size: .78rem; }
.admin-shell-search-results button small { color: var(--umbral-auth-muted); font-size: .64rem; text-transform: capitalize; }
.admin-shell-search-empty { padding: .7rem; color: var(--umbral-auth-muted); font-size: .74rem; }

body.admin.admin-rail-collapsed .admin-shell { grid-template-columns: 0 minmax(0, 1fr); }
body.admin.admin-rail-collapsed .admin-sidebar {
  transform: translateX(-102%);
  opacity: 0;
  pointer-events: none;
}
body.admin.admin-rail-collapsed .admin-main { max-width: none; }

@media (max-width: 1360px) {
  body.admin { --admin-rail-width: 240px; }
  .admin-topbar {
    grid-template-columns: var(--admin-rail-width) 40px 42px minmax(280px, 1fr) auto !important;
    gap: .35rem;
    padding-right: .55rem;
  }
  .admin-topbar.shell-search-open {
    grid-template-columns: var(--admin-rail-width) 40px 42px minmax(280px, 1fr) auto !important;
  }
  .admin-top-search-shell.is-open { width: 100%; }
  .umbral-data-room-shell .admin-topbar .admin-workspaces { grid-template-columns: repeat(7, minmax(70px, 1fr)); }
  .umbral-data-room-shell .admin-topbar .admin-workspaces button { padding-inline: .42rem; font-size: .72rem; }
  .admin-actions .admin-data-room-link span,
  .admin-actions .theme-toggle-text { display: none; }
  .admin-actions .admin-data-room-link,
  .admin-actions .theme-toggle { min-width: 38px; padding-inline: .48rem; }
  .admin-actions .umbral-auth-user { max-width: 92px; padding-inline: .5rem; }
}

@media (max-width: 900px) {
  body.admin { --admin-topbar: 112px; }
  .admin-topbar,
  .admin-topbar.shell-search-open {
    grid-template-columns: minmax(190px, 1fr) 40px auto !important;
    grid-template-rows: 56px 56px;
    height: var(--admin-topbar);
    min-height: var(--admin-topbar);
    gap: 0 .4rem;
    padding-right: .55rem;
  }
  .admin-topbar-brand {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    padding-inline: .8rem;
    border-right: 0;
  }
  .admin-topbar-brand img { width: min(100%, 220px); max-width: 220px; max-height: 42px; }
  .admin-rail-toggle { grid-column: 2; grid-row: 1; }
  .umbral-data-room-shell .admin-topbar .admin-actions { grid-column: 3 !important; grid-row: 1; }
  .admin-top-search-shell {
    grid-column: 1;
    grid-row: 2;
    width: 42px;
    margin: 0 0 .5rem .55rem;
  }
  .admin-top-search-shell.is-open { width: 170px; }
  .admin-topbar.shell-search-open .admin-top-search-shell {
    grid-column: 1 / -1;
    grid-row: 2;
    width: calc(100% - 1.1rem);
    margin-inline: .55rem;
  }
  .umbral-data-room-shell .admin-topbar .admin-workspaces {
    grid-column: 2 / 4 !important;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
    padding: 0 0 .5rem;
  }
  body.admin.admin-rail-collapsed .admin-sidebar { display: none; }
}

@media (max-width: 650px) {
  body.admin { --admin-topbar: 160px; }
  .admin-topbar,
  .admin-topbar.shell-search-open {
    grid-template-rows: 56px 50px 54px;
    height: var(--admin-topbar);
    min-height: var(--admin-topbar);
  }
  .admin-top-search-shell {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0 .55rem .45rem;
  }
  .admin-top-search-shell.is-open { width: calc(100% - 1.1rem); }
  .umbral-data-room-shell .admin-topbar .admin-workspaces {
    grid-column: 1 / -1 !important;
    grid-row: 3;
    width: 100%;
    padding: 0 .55rem .45rem;
  }
}

/* V0.9.9.463B exact Data Room menu parity. */
.umbral-data-room-shell .admin-topbar {
  --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);
  border-bottom: 1px solid var(--umbral-auth-border);
  background: color-mix(in srgb, var(--umbral-color-surface-inverse) 90%, transparent);
}

[data-theme="light"] .umbral-data-room-shell .admin-topbar {
  --cream: #10241a;
  --soft: #183126;
  --muted: #48584f;
  --ghost: #68736d;
  --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);
  border-bottom-color: var(--umbral-auth-border);
  background: color-mix(in srgb, var(--umbral-color-surface) 94%, transparent);
  box-shadow: 0 1px rgba(21, 62, 45, .05);
}

.umbral-data-room-shell .admin-topbar-brand {
  padding: 8.5px 17px;
}

[data-theme] .umbral-data-room-shell .admin-topbar-brand img {
  width: 100%;
  max-width: none;
  height: calc(var(--admin-topbar) - 12px);
  max-height: none;
  object-fit: contain;
  filter: none;
}

.umbral-data-room-shell .admin-rail-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--soft);
  box-shadow: var(--shadow-soft);
}

.umbral-data-room-shell .admin-topbar .admin-workspaces {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.umbral-data-room-shell .admin-topbar .admin-actions {
  gap: 9.35px;
  padding-right: 21.25px;
}

.umbral-data-room-shell .admin-topbar .admin-actions .theme-toggle {
  height: 42px;
  min-height: 42px;
  border-color: var(--gold-dim);
  background: linear-gradient(135deg, rgba(240, 217, 137, .2), rgba(214, 184, 91, .08));
  color: var(--gold-bright);
}

@media (max-width: 1360px) {
  .umbral-data-room-shell .admin-topbar {
    gap: 5.95px;
    padding-right: 9.35px;
  }

  .umbral-data-room-shell .admin-topbar .admin-workspaces {
    gap: 5.78px;
  }

  .umbral-data-room-shell .admin-topbar .admin-workspaces button {
    padding-inline: 7.14px;
    font-size: 12.24px;
  }
}

@media (max-width: 900px) {
  [data-theme] .umbral-data-room-shell .admin-topbar-brand img {
    width: min(100%, 220px);
    height: auto;
    max-height: 42px;
  }

  .umbral-data-room-shell .admin-topbar .admin-actions {
    padding-right: 0;
  }
}

/* V0.9.9.463B Admin changelog and identity polish. */
body.umbral-data-room-shell.umbral-auth-page .admin-sidebar-foot > button {
  appearance: none;
  font-family: inherit;
  cursor: pointer;
}

body.umbral-data-room-shell.umbral-auth-page .admin-sidebar-foot > button:is(:hover, :focus-visible),
body.umbral-data-room-shell.umbral-auth-page .admin-sidebar-foot > button[aria-pressed="true"] {
  color: var(--gold-bright) !important;
}

body.umbral-data-room-shell.umbral-auth-page .admin-sidebar-foot > button:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.admin-changelog-tab > .embedded-page-view {
  padding: 0;
}

.umbral-data-room-shell .admin-topbar .admin-actions .umbral-auth-user {
  padding-left: .68rem;
}

