/* Fantasy - Gilded Dark
   Charcoal surfaces, aged ivory text, restrained brass structure, and
   classical headings. This preset changes presentation only. */
.augur-theme-fantasy {
    --nexus-surface-base: #090d0f;
    --nexus-surface-panel: rgba(9, 13, 15, .94);
    --nexus-surface-raised: rgba(13, 19, 22, .92);
    --nexus-surface-interactive: #151719;
    --nexus-surface-hover: #202426;
    --nexus-text-primary: #e7dfcf;
    --nexus-text-secondary: #b8ad9c;
    --nexus-text-muted: #8b877f;
    --nexus-border-subtle: color-mix(in srgb, var(--nexus-user-accent, #bf913f) 28%, transparent);
    --nexus-border-strong: color-mix(in srgb, var(--nexus-user-accent, #bf913f) 68%, transparent);
    --nexus-accent-primary: var(--nexus-user-accent, #bf913f);
    --nexus-accent-bright: color-mix(in srgb, var(--nexus-user-accent, #bf913f) 72%, white 28%);
    --nexus-heading-font: var(--font-h2, serif);
    --nexus-body-font: var(--font-primary, sans-serif);
    --nexus-radius-control: 3px;
    --nexus-radius-card: 4px;
    --nexus-shadow-panel: inset 0 0 22px rgba(0, 0, 0, .32);
    --nexus-focus-ring: 0 0 0 1px color-mix(in srgb, var(--nexus-user-accent, #bf913f) 22%, transparent);
    --nexus-accent-surface: color-mix(in srgb, var(--nexus-user-accent, #bf913f) 16%, #090d0f);
    --nexus-accent-surface-strong: color-mix(in srgb, var(--nexus-user-accent, #bf913f) 28%, #0d1011);
    --nexus-importance-accent: #e0b75f;
    --nexus-fantasy-blue: #8eacbe;
    --nexus-fantasy-green: #86ad5b;
    --nexus-fantasy-thread: #b790ca;
    --nexus-fantasy-thread-border: rgba(150, 102, 170, .46);
    --nexus-fantasy-thread-surface: rgba(31, 20, 35, .82);
}

.augur-nexus.npc-dossier.augur-theme-fantasy .window-header {
    border-bottom: 0;
    background: #090c0d;
    color: var(--nexus-text-primary);
}

.augur-nexus.npc-dossier.augur-theme-fantasy .window-content {
    background: var(--nexus-surface-base);
    color: var(--nexus-text-primary);
}

.augur-theme-fantasy .npc-dossier-shell {
    color: var(--nexus-text-primary);
    background-color: var(--nexus-surface-base);
    font-family: var(--nexus-body-font);
}

.augur-theme-fantasy .npc-dossier-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 35% 35%, transparent 0 25%, rgba(4, 8, 9, .22) 62%),
        linear-gradient(90deg, rgba(4, 7, 8, .14), rgba(2, 7, 9, .54));
    pointer-events: none;
}

.augur-theme-fantasy .npc-dossier-stage,
.augur-theme-fantasy .npc-life-stage,
.augur-theme-fantasy .faction-domain-stage { z-index: 2; }

.augur-theme-fantasy .npc-dossier-profile {
    border-color: var(--nexus-border-strong);
    border-radius: var(--nexus-radius-card);
    background: linear-gradient(160deg, rgba(13, 19, 22, .97), rgba(7, 10, 11, .96));
    box-shadow: var(--nexus-shadow-panel), 0 8px 22px rgba(0, 0, 0, .28);
}

.augur-theme-fantasy .npc-dossier-header { border-bottom-color: rgba(231, 223, 207, .76); }

.augur-theme-fantasy .npc-dossier-title h2,
.augur-theme-fantasy .npc-life-identity h2,
.augur-theme-fantasy .faction-domain-command-copy strong {
    color: var(--nexus-text-primary);
    font-family: var(--nexus-heading-font);
}

.augur-theme-fantasy .npc-dossier-title h2 { letter-spacing: .01em; }

.augur-theme-fantasy .npc-dossier-title p,
.augur-theme-fantasy .npc-life-identity > strong,
.augur-theme-fantasy .npc-life-featured-copy small,
.augur-theme-fantasy .npc-life-card-copy small,
.augur-theme-fantasy .faction-domain-command-copy small,
.augur-theme-fantasy .faction-domain-command-copy > span { color: var(--nexus-text-secondary); }

.augur-theme-fantasy .npc-dossier-portrait {
    border-color: var(--npc-accent, var(--nexus-accent-primary));
    background: var(--nexus-surface-base);
    color: var(--nexus-text-primary);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .025), 0 4px 12px rgba(0, 0, 0, .42);
}

.augur-theme-fantasy .faction-dossier-emblem,
.augur-theme-fantasy .ship-dossier-image {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.augur-theme-fantasy .npc-dossier-tabs button,
.augur-theme-fantasy .npc-dossier-secondary,
.augur-theme-fantasy .npc-dossier-action,
.augur-theme-fantasy .npc-dossier-compact-toggle {
    border-color: var(--nexus-border-strong);
    border-radius: var(--nexus-radius-control);
    background: var(--nexus-surface-interactive);
    color: var(--nexus-text-primary);
    box-shadow: none;
}

.augur-theme-fantasy .npc-dossier-tabs button:hover,
.augur-theme-fantasy .npc-dossier-secondary:hover,
.augur-theme-fantasy .npc-dossier-action:hover,
.augur-theme-fantasy .npc-dossier-compact-toggle:hover {
    border-color: var(--nexus-accent-bright);
    background: var(--nexus-surface-hover);
    color: var(--nexus-accent-bright);
}

.augur-theme-fantasy .npc-dossier-tabs button.active {
    border-color: var(--nexus-accent-bright);
    color: var(--nexus-accent-bright);
    background: linear-gradient(180deg, var(--nexus-accent-surface-strong), var(--nexus-accent-surface));
    box-shadow: inset 0 -2px var(--nexus-accent-bright);
}

.augur-theme-fantasy .npc-profile-section-heading,
.augur-theme-fantasy .npc-life-core-panel > h3,
.augur-theme-fantasy .npc-life-section > h3,
.augur-theme-fantasy .npc-life-world-group > h4,
.augur-theme-fantasy .faction-domain-collection h3 { color: var(--nexus-accent-bright); }

.augur-theme-fantasy .npc-profile-section-heading.is-thread,
.augur-theme-fantasy .npc-life-section.is-current-thread > h3 { color: var(--nexus-fantasy-thread); }

.augur-theme-fantasy .npc-trait-chip,
.augur-theme-fantasy .npc-trait-chip span,
.augur-theme-fantasy .npc-life-trait strong,
.augur-theme-fantasy .npc-life-card-copy strong,
.augur-theme-fantasy .npc-life-featured-copy strong { color: var(--nexus-text-primary); }

.augur-theme-fantasy .npc-trait-chip img,
.augur-theme-fantasy .npc-life-trait,
.augur-theme-fantasy .npc-dossier-chip-row span,
.augur-theme-fantasy .npc-dossier-custom-row span,
.augur-theme-fantasy .faction-ideology-card,
.augur-theme-fantasy .npc-life-core-panel,
.augur-theme-fantasy .npc-life-section,
.augur-theme-fantasy .npc-life-card,
.augur-theme-fantasy .npc-life-world-ties {
    border-color: var(--nexus-border-subtle);
    border-radius: var(--nexus-radius-card);
    background: linear-gradient(145deg, rgba(18, 25, 27, .9), rgba(8, 12, 14, .92));
    box-shadow: inset 0 0 14px rgba(0, 0, 0, .16);
}

.augur-theme-fantasy .npc-life-card:hover,
.augur-theme-fantasy .npc-life-featured-card:hover,
.augur-theme-fantasy .npc-profile-importance-card:hover {
    border-color: var(--nexus-accent-bright);
    background: linear-gradient(145deg, rgba(31, 32, 28, .96), rgba(13, 17, 18, .96));
    box-shadow: var(--nexus-focus-ring);
}

.augur-theme-fantasy .npc-dossier-chip-row em,
.augur-theme-fantasy .npc-dossier-custom-row em,
.augur-theme-fantasy .faction-ideology-topic,
.augur-theme-fantasy .npc-life-beliefs article > span,
.augur-theme-fantasy .npc-life-card-copy em,
.augur-theme-fantasy .npc-life-featured-copy em { color: var(--nexus-fantasy-blue); }

.augur-theme-fantasy .npc-dossier-chip-row strong,
.augur-theme-fantasy .npc-dossier-custom-row strong,
.augur-theme-fantasy .faction-ideology-title strong,
.augur-theme-fantasy .npc-life-beliefs article > strong { color: var(--nexus-text-primary); }

.augur-theme-fantasy .faction-ideology-separator,
.augur-theme-fantasy .faction-ideology-card p,
.augur-theme-fantasy .npc-life-beliefs article > p { color: var(--nexus-text-secondary); }

.augur-theme-fantasy .faction-current-thread,
.augur-theme-fantasy .npc-life-section.is-current-thread {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.augur-theme-fantasy .faction-current-thread-grid article,
.augur-theme-fantasy .npc-life-thread-grid article {
    border-color: var(--nexus-fantasy-thread-border);
    border-radius: var(--nexus-radius-card);
    background: var(--nexus-fantasy-thread-surface);
}

.augur-theme-fantasy .faction-current-thread-grid span,
.augur-theme-fantasy .npc-life-thread-grid span { color: var(--nexus-fantasy-thread); }

.augur-theme-fantasy .faction-current-thread-grid strong,
.augur-theme-fantasy .npc-life-thread-grid strong { color: var(--nexus-text-primary); }

.augur-theme-fantasy .faction-current-thread-reroll,
.augur-theme-fantasy .npc-life-thread-reroll {
    border-color: var(--nexus-fantasy-thread-border);
    border-radius: var(--nexus-radius-control);
    color: #d6bce1;
    background: #261a2a;
}

.augur-theme-fantasy .ship-domain-sidebar-assignment .faction-current-thread-reroll {
    border-color: var(--nexus-border-strong);
    color: var(--nexus-accent-bright);
    background: var(--nexus-accent-surface);
}

.augur-theme-fantasy .ship-domain-sidebar-assignment .faction-current-thread-reroll:hover,
.augur-theme-fantasy .ship-domain-sidebar-assignment .faction-current-thread-reroll:focus-visible {
    border-color: var(--nexus-accent-bright);
    color: var(--nexus-accent-bright);
    background: var(--nexus-accent-surface-strong);
    box-shadow: var(--nexus-focus-ring);
}

.augur-theme-fantasy .faction-domain-command-card,
.augur-theme-fantasy .faction-domain-collection,
.augur-theme-fantasy .faction-domain-small-card,
.augur-theme-fantasy .faction-profile-command-card {
    border-color: var(--nexus-border-subtle);
    border-radius: var(--nexus-radius-card);
    background: linear-gradient(145deg, rgba(18, 25, 27, .92), rgba(8, 12, 14, .94));
    color: var(--nexus-text-primary);
    box-shadow: inset 0 0 16px rgba(0, 0, 0, .18);
}

.augur-theme-fantasy .faction-domain-command-card.is-seat,
.augur-theme-fantasy .faction-profile-command-card {
    border-color: var(--nexus-border-strong);
    background: linear-gradient(145deg, rgba(38, 31, 20, .9), rgba(11, 14, 14, .95));
}

.augur-theme-fantasy button.faction-domain-command-card:hover,
.augur-theme-fantasy .faction-domain-small-card:hover,
.augur-theme-fantasy .faction-profile-command-card:hover {
    border-color: var(--nexus-accent-bright);
    background: linear-gradient(145deg, var(--nexus-accent-surface-strong), var(--nexus-accent-surface));
    box-shadow: var(--nexus-focus-ring);
}

.augur-theme-fantasy .faction-domain-command-card.is-empty,
.augur-theme-fantasy .faction-profile-command-card.is-empty,
.augur-theme-fantasy .npc-life-featured-empty,
.augur-theme-fantasy .npc-life-world-ties-empty,
.augur-theme-fantasy .npc-life-unconnected {
    border-color: var(--nexus-border-subtle);
    color: var(--nexus-text-muted);
    background: rgba(8, 12, 14, .66);
}

.augur-theme-fantasy .faction-domain-command-copy em,
.augur-theme-fantasy .faction-domain-command-card.is-empty em,
.augur-theme-fantasy .faction-domain-small-card em { color: var(--nexus-fantasy-blue); }

.augur-theme-fantasy .faction-domain-command-card.is-seat .faction-domain-command-copy em { color: var(--nexus-importance-accent); }

.augur-theme-fantasy .faction-domain-collection h3 span { color: var(--nexus-accent-bright); }

/* Compact creation affordance shared by Gilded Dark applications. */
.augur-theme-fantasy .nexus-create-button-round {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--nexus-border-strong);
    border-radius: 50%;
    color: var(--nexus-accent-bright);
    background: rgba(9, 13, 15, .92);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .48), inset 0 0 0 1px rgba(255, 255, 255, .025);
    font-size: 13px;
    cursor: pointer;
}

.augur-theme-fantasy .nexus-create-button-round:hover,
.augur-theme-fantasy .nexus-create-button-round:focus-visible {
    border-color: var(--nexus-accent-bright);
    color: var(--nexus-accent-bright);
    background: var(--nexus-accent-surface-strong);
    box-shadow: 0 5px 13px rgba(0, 0, 0, .58), var(--nexus-focus-ring);
    outline: none;
}

.augur-theme-fantasy .faction-domain-add.nexus-create-button-round {
    justify-self: end;
    align-self: end;
    margin-top: 9px;
}

.augur-theme-fantasy .faction-domain-create-leader {
    border-color: var(--nexus-border-subtle);
    border-radius: var(--nexus-radius-control);
    color: var(--nexus-text-primary);
    background: var(--nexus-surface-interactive);
}

.augur-theme-fantasy .faction-domain-create-leader:hover,
.augur-theme-fantasy .faction-domain-create-leader:focus-visible {
    border-color: var(--nexus-border-strong);
    color: var(--nexus-accent-bright);
    background: var(--nexus-accent-surface-strong);
    box-shadow: var(--nexus-focus-ring);
}
/* Category and opinion pills intentionally retain their data-driven colors. */


.augur-theme-fantasy .faction-ideology-topic,
.augur-theme-fantasy .npc-life-beliefs article > span {
    color: var(--nexus-accent-bright);
}
.augur-theme-fantasy .faction-domain-command-card.is-leader,
.augur-theme-fantasy .faction-domain-command-card.is-seat,
.augur-theme-fantasy .faction-profile-command-card {
    border-color: var(--nexus-border-strong);
    background: linear-gradient(145deg, rgba(18, 25, 27, .92), rgba(8, 12, 14, .94));
}
/* Faction borders stay subordinate to content; hover and focus rules remain
   intentionally brighter to preserve interaction feedback. */
.augur-theme-fantasy .faction-domain-command-card.is-leader,
.augur-theme-fantasy .faction-domain-command-card.is-seat,
.augur-theme-fantasy .faction-profile-command-card,
.augur-theme-fantasy .faction-domain-dossier.npc-dossier-profile {
    border-color: var(--nexus-border-subtle);
}
/* Finalized faction dossier hierarchy. */
.augur-theme-fantasy .faction-domain-dossier.npc-dossier-profile,
.augur-theme-fantasy .faction-domain-command-card,
.augur-theme-fantasy .faction-domain-collection,
.augur-theme-fantasy .faction-domain-small-card,
.augur-theme-fantasy .faction-profile-command-card {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
}

.augur-theme-fantasy .faction-domain-dossier .npc-dossier-header {
    border-bottom: 1px solid var(--nexus-border-subtle);
}

.augur-theme-fantasy .faction-domain-dossier .npc-dossier-tabs button,
.augur-theme-fantasy .faction-domain-dossier .npc-dossier-secondary,
.augur-theme-fantasy .faction-domain-dossier .npc-dossier-action,
.augur-theme-fantasy .faction-domain-dossier .npc-dossier-compact-toggle {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
}

.augur-theme-fantasy .faction-domain-dossier .npc-dossier-tabs button:hover,
.augur-theme-fantasy .faction-domain-dossier .npc-dossier-secondary:hover,
.augur-theme-fantasy .faction-domain-dossier .npc-dossier-action:hover,
.augur-theme-fantasy .faction-domain-dossier .npc-dossier-compact-toggle:hover {
    border-color: var(--nexus-border-strong);
    background: var(--nexus-surface-hover);
    color: var(--nexus-accent-bright);
}

.augur-theme-fantasy .faction-domain-dossier .npc-dossier-tabs button.active {
    border-color: var(--nexus-border-strong);
    background: linear-gradient(180deg, var(--nexus-accent-surface-strong), var(--nexus-accent-surface));
    box-shadow: inset 0 -1px var(--nexus-accent-primary);
}

.augur-theme-fantasy button.faction-domain-command-card:hover,
.augur-theme-fantasy .faction-domain-small-card:hover,
.augur-theme-fantasy .faction-profile-command-card:hover {
    border-color: var(--nexus-border-strong);
    box-shadow: var(--nexus-focus-ring);
}

.augur-theme-fantasy .faction-domain-command-copy em,
.augur-theme-fantasy .faction-domain-command-card.is-seat .faction-domain-command-copy em,
.augur-theme-fantasy .faction-domain-command-card.is-empty em,
.augur-theme-fantasy .faction-profile-command-copy em,
.augur-theme-fantasy .faction-profile-command-card.is-empty em {
    color: var(--nexus-accent-bright);
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.augur-theme-fantasy .faction-domain-command-link {
    color: var(--nexus-accent-primary);
}

.augur-theme-fantasy .faction-domain-command-link::before,
.augur-theme-fantasy .faction-domain-command-link::after {
    background: var(--nexus-border-subtle);
}

.augur-theme-fantasy .faction-domain-small-card.is-holding small.is-governed {
    color: var(--nexus-accent-bright);
}

.augur-theme-fantasy .nexus-create-button-round {
    border-color: var(--nexus-border-subtle);
    color: var(--nexus-accent-primary);
}

.augur-theme-fantasy .nexus-create-button-round:hover,
.augur-theme-fantasy .nexus-create-button-round:focus-visible {
    border-color: var(--nexus-border-strong);
}

.augur-theme-fantasy .faction-domain-dossier .npc-profile-section-heading.is-thread,
.augur-theme-fantasy .faction-domain-dossier .faction-current-thread-grid span {
    color: var(--nexus-accent-bright);
}

.augur-theme-fantasy .faction-domain-dossier .faction-current-thread-grid article {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: var(--nexus-accent-surface);
}

.augur-theme-fantasy .faction-domain-dossier .faction-current-thread-reroll {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    color: var(--nexus-accent-bright);
    background: var(--nexus-surface-interactive);
}

.augur-theme-fantasy .faction-domain-dossier .faction-current-thread-reroll:hover,
.augur-theme-fantasy .faction-domain-dossier .faction-current-thread-reroll:focus-visible {
    border-color: var(--nexus-border-strong);
    color: var(--nexus-accent-bright);
    background: var(--nexus-accent-surface-strong);
}
/* Finalized faction dossier text hierarchy. */
.augur-theme-fantasy .faction-domain-command-copy strong,
.augur-theme-fantasy .faction-profile-command-copy strong,
.augur-theme-fantasy .faction-domain-small-card strong {
    color: var(--nexus-text-primary);
}

.augur-theme-fantasy .faction-domain-command-copy small,
.augur-theme-fantasy .faction-domain-command-copy > span,
.augur-theme-fantasy .faction-profile-command-copy small,
.augur-theme-fantasy .faction-domain-small-card em {
    color: var(--nexus-text-secondary);
}

.augur-theme-fantasy .faction-domain-small-card.is-holding small.is-governed,
.augur-theme-fantasy .faction-domain-drop-hint,
.augur-theme-fantasy .faction-domain-drop-hint i {
    color: var(--nexus-accent-primary);
}
/* Finalized NPC dossier hierarchy. */
.augur-theme-fantasy .npc-life-dossier.npc-dossier-profile,
.augur-theme-fantasy .npc-life-featured,
.augur-theme-fantasy .npc-life-core-panel,
.augur-theme-fantasy .npc-life-trait,
.augur-theme-fantasy .npc-life-beliefs article,
.augur-theme-fantasy .npc-life-section,
.augur-theme-fantasy .npc-life-world-ties,
.augur-theme-fantasy .npc-life-card,
.augur-theme-fantasy .npc-profile-importance-card,
.augur-theme-fantasy .npc-life-dossier .npc-trait-chip img,
.augur-theme-fantasy .npc-life-dossier .faction-ideology-card,
.augur-theme-fantasy .npc-life-dossier .npc-dossier-chip-row span,
.augur-theme-fantasy .npc-life-dossier .npc-dossier-custom-row span,
.augur-theme-fantasy .npc-life-featured-empty,
.augur-theme-fantasy .npc-life-world-ties-empty,
.augur-theme-fantasy .npc-life-unconnected {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
}

.augur-theme-fantasy .npc-life-dossier .npc-dossier-header {
    border-bottom: 1px solid var(--nexus-border-subtle);
}

.augur-theme-fantasy .npc-life-dossier .npc-dossier-tabs button,
.augur-theme-fantasy .npc-life-dossier .npc-dossier-secondary,
.augur-theme-fantasy .npc-life-dossier .npc-dossier-action,
.augur-theme-fantasy .npc-life-dossier .npc-dossier-compact-toggle {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
}

.augur-theme-fantasy .npc-life-dossier .npc-dossier-tabs button:hover,
.augur-theme-fantasy .npc-life-dossier .npc-dossier-secondary:hover,
.augur-theme-fantasy .npc-life-dossier .npc-dossier-action:hover,
.augur-theme-fantasy .npc-life-dossier .npc-dossier-compact-toggle:hover {
    border-color: var(--nexus-border-strong);
    background: var(--nexus-surface-hover);
    color: var(--nexus-accent-bright);
}

.augur-theme-fantasy .npc-life-dossier .npc-dossier-tabs button.active {
    border-color: var(--nexus-border-strong);
    background: linear-gradient(180deg, var(--nexus-accent-surface-strong), var(--nexus-accent-surface));
    box-shadow: inset 0 -1px var(--nexus-accent-primary);
}

.augur-theme-fantasy .npc-life-card:hover,
.augur-theme-fantasy .npc-life-featured-card:hover,
.augur-theme-fantasy .npc-profile-importance-card:hover {
    border-color: var(--nexus-border-strong);
    background: linear-gradient(145deg, var(--nexus-accent-surface-strong), var(--nexus-accent-surface));
    box-shadow: var(--nexus-focus-ring);
}

.augur-theme-fantasy .npc-life-featured.is-manual,
.augur-theme-fantasy .npc-life-featured.is-drop-target,
.augur-theme-fantasy .npc-life-world-ties.is-connection-drop-target {
    border-color: var(--nexus-border-strong);
}

.augur-theme-fantasy .npc-profile-section-heading,
.augur-theme-fantasy .npc-profile-section-heading.is-importance,
.augur-theme-fantasy .npc-profile-section-heading.is-thread,
.augur-theme-fantasy .npc-life-featured > h3,
.augur-theme-fantasy .npc-life-featured > h3 span,
.augur-theme-fantasy .npc-life-core-panel > h3,
.augur-theme-fantasy .npc-life-section > h3,
.augur-theme-fantasy .npc-life-section > h3 span,
.augur-theme-fantasy .npc-life-world-group > h4,
.augur-theme-fantasy .npc-profile-importance-copy em,
.augur-theme-fantasy .npc-life-beliefs article > span,
.augur-theme-fantasy .npc-life-card-copy em,
.augur-theme-fantasy .npc-life-featured-copy em,
.augur-theme-fantasy .npc-life-dossier .faction-ideology-topic,
.augur-theme-fantasy .npc-life-dossier .npc-dossier-chip-row em,
.augur-theme-fantasy .npc-life-dossier .npc-dossier-custom-row em {
    color: var(--nexus-accent-bright);
}

.augur-theme-fantasy .npc-dossier-title h2,
.augur-theme-fantasy .npc-life-trait strong,
.augur-theme-fantasy .npc-life-beliefs article > strong,
.augur-theme-fantasy .npc-life-featured-copy strong,
.augur-theme-fantasy .npc-life-card-copy strong,
.augur-theme-fantasy .npc-profile-importance-copy strong,
.augur-theme-fantasy .npc-life-dossier .npc-trait-chip span,
.augur-theme-fantasy .npc-life-dossier .faction-ideology-title strong,
.augur-theme-fantasy .npc-life-dossier .npc-dossier-chip-row strong,
.augur-theme-fantasy .npc-life-dossier .npc-dossier-custom-row strong,
.augur-theme-fantasy .npc-life-thread-grid strong,
.augur-theme-fantasy .npc-life-dossier .faction-current-thread-grid strong {
    color: var(--nexus-text-primary);
}

.augur-theme-fantasy .npc-dossier-title p,
.augur-theme-fantasy .npc-life-featured-copy small,
.augur-theme-fantasy .npc-life-card-copy small,
.augur-theme-fantasy .npc-life-beliefs article > p,
.augur-theme-fantasy .npc-life-dossier .faction-ideology-card p {
    color: var(--nexus-text-secondary);
}

.augur-theme-fantasy .npc-life-section.is-current-thread {
    border-color: var(--nexus-border-subtle);
    background: linear-gradient(145deg, rgba(18, 25, 27, .9), rgba(8, 12, 14, .92));
}

.augur-theme-fantasy .npc-life-section.is-current-thread > h3,
.augur-theme-fantasy .npc-life-thread-grid span,
.augur-theme-fantasy .npc-life-dossier .npc-profile-section-heading.is-thread,
.augur-theme-fantasy .npc-life-dossier .faction-current-thread-grid span {
    color: var(--nexus-accent-bright);
}

.augur-theme-fantasy .npc-life-thread-grid article,
.augur-theme-fantasy .npc-life-dossier .faction-current-thread-grid article {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: var(--nexus-accent-surface);
}

.augur-theme-fantasy .npc-life-thread-reroll,
.augur-theme-fantasy .npc-life-dossier .faction-current-thread-reroll,
.augur-theme-fantasy .npc-life-featured-reset {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    color: var(--nexus-accent-bright);
    background: var(--nexus-surface-interactive);
}

.augur-theme-fantasy .npc-life-thread-reroll:hover,
.augur-theme-fantasy .npc-life-thread-reroll:focus-visible,
.augur-theme-fantasy .npc-life-dossier .faction-current-thread-reroll:hover,
.augur-theme-fantasy .npc-life-dossier .faction-current-thread-reroll:focus-visible,
.augur-theme-fantasy .npc-life-featured-reset:hover,
.augur-theme-fantasy .npc-life-featured-reset:focus-visible {
    border-color: var(--nexus-border-strong);
    color: var(--nexus-accent-bright);
    background: var(--nexus-accent-surface-strong);
}

.augur-theme-fantasy .npc-life-world-group + .npc-life-world-group {
    border-top-color: var(--nexus-border-subtle);
}

.augur-theme-fantasy .npc-life-world-ties-empty > i,
.augur-theme-fantasy .npc-life-unconnected > i {
    color: var(--nexus-accent-primary);
}
/* NPC dossier neutral surfaces. */
.augur-theme-fantasy .npc-life-featured,
.augur-theme-fantasy .npc-life-core-panel,
.augur-theme-fantasy .npc-life-section,
.augur-theme-fantasy .npc-life-world-ties {
    background: linear-gradient(145deg, rgba(18, 25, 27, .9), rgba(8, 12, 14, .92));
    box-shadow: inset 0 0 14px rgba(0, 0, 0, .16);
}

.augur-theme-fantasy .npc-life-trait,
.augur-theme-fantasy .npc-life-beliefs article,
.augur-theme-fantasy .npc-life-card,
.augur-theme-fantasy .npc-profile-importance-card,
.augur-theme-fantasy .npc-life-dossier .npc-trait-chip img,
.augur-theme-fantasy .npc-life-dossier .faction-ideology-card,
.augur-theme-fantasy .npc-life-dossier .npc-dossier-chip-row span,
.augur-theme-fantasy .npc-life-dossier .npc-dossier-custom-row span {
    background: linear-gradient(145deg, rgba(18, 25, 27, .92), rgba(8, 12, 14, .94));
    box-shadow: inset 0 0 12px rgba(0, 0, 0, .14);
}

.augur-theme-fantasy .npc-profile-importance-image,
.augur-theme-fantasy .npc-life-trait > i {
    color: var(--nexus-accent-primary);
}
/* NPC dossier final empty-state and information polish. */
.augur-theme-fantasy .npc-life-world-ties-empty strong {
    color: var(--nexus-text-primary);
}

.augur-theme-fantasy .npc-life-world-ties-empty small {
    color: var(--nexus-text-secondary);
}
/* Shared dossier custom information hierarchy. */
.augur-theme-fantasy .npc-life-dossier .npc-dossier-custom-row span,
.augur-theme-fantasy .faction-domain-dossier .npc-dossier-custom-row span,
.augur-theme-fantasy .location-embedded-dossier .npc-dossier-custom-row span {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: linear-gradient(145deg, rgba(18, 25, 27, .92), rgba(8, 12, 14, .94));
    box-shadow: inset 0 0 12px rgba(0, 0, 0, .14);
}

.augur-theme-fantasy .npc-life-dossier .npc-dossier-custom-row em,
.augur-theme-fantasy .faction-domain-dossier .npc-dossier-custom-row em,
.augur-theme-fantasy .location-embedded-dossier .npc-dossier-custom-row em {
    color: var(--nexus-accent-bright);
    font-size: 8px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .06em;
    line-height: 1.2;
    text-transform: uppercase;
}

.augur-theme-fantasy .npc-life-dossier .npc-dossier-custom-row strong,
.augur-theme-fantasy .faction-domain-dossier .npc-dossier-custom-row strong,
.augur-theme-fantasy .location-embedded-dossier .npc-dossier-custom-row strong {
    overflow: visible;
    color: var(--nexus-text-secondary);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.25;
    text-overflow: clip;
    white-space: normal;
}

.augur-theme-fantasy .npc-dossier-shell.is-compact .npc-life-dossier .npc-trait-chip img {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
/* Compact NPC personality restraint. */
.augur-theme-fantasy .npc-dossier-shell.is-compact .npc-life-dossier .npc-trait-chip img {
    width: 33px;
    height: 33px;
    filter: sepia(.22) saturate(.7) brightness(.88);
    opacity: .92;
}

.augur-theme-fantasy .npc-dossier-shell.is-compact .npc-life-dossier .npc-trait-chip span {
    color: var(--nexus-text-secondary);
}
/* NPC header actions keep the same vertical order in both dossier modes. */
.augur-theme-fantasy .npc-life-dossier .npc-dossier-header-actions {
    flex-direction: column;
    align-items: center;
}

.augur-theme-fantasy .npc-life-dossier .npc-dossier-action {
    order: 1;
}

.augur-theme-fantasy .npc-life-dossier .npc-dossier-compact-toggle {
    order: 2;
}

.augur-theme-fantasy .npc-life-trait img {
    filter: sepia(.22) saturate(.7) brightness(.88);
    opacity: .92;
}

.augur-theme-fantasy .npc-life-trait > i,
.augur-theme-fantasy .npc-dossier-shell.is-compact .npc-life-dossier .npc-trait-chip > i {
    color: var(--nexus-text-secondary);
}

.augur-theme-fantasy .npc-dossier-shell.is-compact .npc-life-dossier .npc-trait-chip > i {
    font-size: 25px;
}
/* New Person adopts the compact dossier hierarchy while a candidate is reviewed. */
.augur-theme-fantasy.npc-create-dialog .window-content {
    padding: 12px;
    background: rgba(6, 10, 12, .98);
}

.augur-theme-fantasy.npc-create-dialog .npc-create-form {
    gap: 10px;
}

.augur-theme-fantasy.npc-create-dialog .npc-create-generator,
.augur-theme-fantasy.npc-create-dialog .npc-create-scene-connection,
.augur-theme-fantasy.npc-create-dialog .npc-create-candidate-panel {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: linear-gradient(145deg, rgba(18, 25, 27, .9), rgba(8, 12, 14, .94));
}

.augur-theme-fantasy.npc-create-dialog .npc-create-generator {
    padding: 10px;
}

.augur-theme-fantasy.npc-create-dialog .npc-create-scene-connection:hover {
    border-color: var(--nexus-border-strong);
    background: var(--nexus-accent-surface);
}

.augur-theme-fantasy.npc-create-dialog .npc-create-scene-connection-copy strong {
    color: var(--nexus-text-primary);
}

.augur-theme-fantasy.npc-create-dialog .npc-create-scene-connection-copy small {
    color: var(--nexus-text-secondary);
}

.augur-theme-fantasy.npc-create-dialog .npc-create-form label > span {
    color: var(--nexus-accent-bright);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.augur-theme-fantasy.npc-create-dialog .npc-create-form input,
.augur-theme-fantasy.npc-create-dialog .npc-create-form select {
    min-height: 32px;
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    color: var(--nexus-text-primary);
    background: rgba(6, 10, 12, .9);
}

.augur-theme-fantasy.npc-create-dialog .npc-create-form input:focus,
.augur-theme-fantasy.npc-create-dialog .npc-create-form select:focus {
    border-color: var(--nexus-border-strong);
    box-shadow: var(--nexus-focus-ring);
}

.augur-theme-fantasy.npc-create-dialog .npc-create-form .npc-create-scene-connection input[type="checkbox"] {
    appearance: none;
    display: grid;
    place-content: center;
    width: 16px;
    height: 16px;
    min-height: 16px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--nexus-border-strong);
    border-radius: 2px;
    background: rgba(6, 10, 12, .96);
    box-shadow: none;
}

.augur-theme-fantasy.npc-create-dialog .npc-create-form .npc-create-scene-connection input[type="checkbox"]::before {
    content: "";
    width: 5px;
    height: 9px;
    border-right: 2px solid #15100a;
    border-bottom: 2px solid #15100a;
    transform: translateY(-1px) rotate(45deg) scale(0);
    transform-origin: center;
}

.augur-theme-fantasy.npc-create-dialog .npc-create-form .npc-create-scene-connection input[type="checkbox"]:checked {
    border-color: var(--nexus-accent-bright);
    background: var(--nexus-accent-primary);
}

.augur-theme-fantasy.npc-create-dialog .npc-create-form .npc-create-scene-connection input[type="checkbox"]:checked::before {
    transform: translateY(-1px) rotate(45deg) scale(1);
}

.augur-theme-fantasy.npc-create-dialog .npc-create-candidate-panel {
    padding: 12px;
}

.augur-theme-fantasy.npc-create-dialog .npc-create-candidate-panel .npc-dossier-header {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--nexus-border-subtle);
}

.augur-theme-fantasy.npc-create-dialog .npc-create-candidate-panel .npc-dossier-portrait {
    width: 64px;
    height: 64px;
    border-color: var(--npc-accent, var(--nexus-accent-primary));
}

.augur-theme-fantasy.npc-create-dialog .npc-create-candidate-panel .npc-dossier-title h2 {
    margin-top: 4px;
    color: var(--nexus-text-primary);
    font-size: 20px;
}

.augur-theme-fantasy.npc-create-dialog .npc-create-candidate-panel .npc-dossier-title p {
    color: var(--nexus-text-secondary);
    font-size: 11px;
}

.augur-theme-fantasy.npc-create-dialog .npc-create-candidate-panel .npc-dossier-section {
    padding-top: 10px;
}

.augur-theme-fantasy.npc-create-dialog .npc-create-candidate-panel .npc-trait-row {
    gap: 14px;
    margin-bottom: 10px;
}

.augur-theme-fantasy.npc-create-dialog .npc-create-candidate-panel .npc-trait-chip {
    width: 72px;
}

.augur-theme-fantasy.npc-create-dialog .npc-create-candidate-panel .npc-trait-chip img {
    width: 40px;
    height: 40px;
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: var(--nexus-accent-surface);
}

.augur-theme-fantasy.npc-create-dialog .npc-create-candidate-panel .faction-ideology-grid {
    grid-template-columns: minmax(0, 1fr);
}

.augur-theme-fantasy.npc-create-dialog .npc-create-candidate-panel .faction-ideology-card {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: linear-gradient(145deg, var(--nexus-accent-surface), rgba(8, 12, 14, .94));
}

.augur-theme-fantasy.npc-create-dialog.faction-create-dialog .npc-create-candidate-panel {
    border-color: var(--nexus-border-strong);
    border-radius: var(--nexus-radius-card);
}

.augur-theme-fantasy.npc-create-dialog.faction-create-dialog .npc-create-candidate-panel .faction-dossier-emblem {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.augur-theme-fantasy.npc-create-dialog.faction-create-dialog .npc-create-candidate-panel .faction-ideology-card {
    border-radius: var(--nexus-radius-card);
}

.augur-theme-fantasy.npc-create-dialog .npc-create-candidate-panel .npc-profile-section-heading {
    margin: 10px 0 7px;
    color: var(--nexus-accent-bright);
}

.augur-theme-fantasy.npc-create-dialog .npc-create-candidate-actions {
    gap: 6px;
}

.augur-theme-fantasy.npc-create-dialog .npc-create-candidate-actions button {
    min-height: 30px;
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: var(--nexus-surface-interactive);
    color: var(--nexus-text-primary);
}

.augur-theme-fantasy.npc-create-dialog .npc-create-candidate-actions button:hover,
.augur-theme-fantasy.npc-create-dialog .npc-create-candidate-actions button:focus-visible {
    border-color: var(--nexus-border-strong);
    background: var(--nexus-accent-surface-strong);
    color: var(--nexus-accent-bright);
}
/* Initial New Person actions use the same compact dossier controls as candidate review. */
.augur-theme-fantasy.npc-create-dialog .npc-create-form > footer {
    gap: 6px;
    padding-top: 2px;
}

.augur-theme-fantasy.npc-create-dialog .npc-create-form > footer button {
    min-height: 30px;
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: var(--nexus-surface-interactive);
    color: var(--nexus-text-primary);
}

.augur-theme-fantasy.npc-create-dialog .npc-create-form > footer button:last-child {
    border-color: var(--nexus-border-strong);
    background: linear-gradient(180deg, var(--nexus-accent-surface-strong), var(--nexus-accent-surface));
    color: var(--nexus-accent-bright);
}

.augur-theme-fantasy.npc-create-dialog .npc-create-form > footer button:hover,
.augur-theme-fantasy.npc-create-dialog .npc-create-form > footer button:focus-visible {
    border-color: var(--nexus-border-strong);
    background: var(--nexus-accent-surface-strong);
    color: var(--nexus-accent-bright);
}
/* Location editing shares the compact fantasy dossier language. */
.augur-theme-fantasy.location-data-editor .window-content {
    padding: 0;
    background: rgba(6, 10, 12, .98);
}

.augur-theme-fantasy.location-data-editor .location-data-editor-shell {
    padding: 12px;
    background:
        radial-gradient(circle at 18% 10%, var(--nexus-accent-surface), transparent 34%),
        linear-gradient(145deg, rgba(15, 21, 23, .96), rgba(6, 10, 12, .99));
    color: var(--nexus-text-primary);
}

.augur-theme-fantasy.location-data-editor .npc-data-editor-header {
    grid-template-columns: 64px minmax(0, 1fr) 28px;
    gap: 10px;
    margin-bottom: 10px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--nexus-accent-primary);
}

.augur-theme-fantasy.location-data-editor .npc-data-editor-portrait {
    width: 64px;
    height: 64px;
    border-color: var(--nexus-border-strong);
    border-radius: 50%;
    background: var(--nexus-accent-surface);
}

.augur-theme-fantasy.location-data-editor .npc-data-editor-header h3 {
    margin-top: 5px;
    color: var(--nexus-text-primary);
    font-size: 22px;
    line-height: 1;
}

.augur-theme-fantasy.location-data-editor .npc-data-editor-header p {
    margin-top: 5px;
    color: var(--nexus-text-secondary);
    font-size: 11px;
}

.augur-theme-fantasy.location-data-editor .npc-data-editor-actions {
    gap: 5px;
}

.augur-theme-fantasy.location-data-editor .npc-data-editor-icon-action {
    width: 28px;
    height: 28px;
    min-height: 28px;
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: var(--nexus-surface-interactive);
    color: var(--nexus-text-primary);
}

.augur-theme-fantasy.location-data-editor .npc-data-editor-icon-action:hover,
.augur-theme-fantasy.location-data-editor .npc-data-editor-icon-action:focus-visible {
    border-color: var(--nexus-border-strong);
    background: var(--nexus-accent-surface-strong);
    color: var(--nexus-accent-bright);
}

.augur-theme-fantasy.location-data-editor .npc-data-editor-fields {
    padding-right: 2px;
    scrollbar-width: thin;
}

.augur-theme-fantasy.location-data-editor .npc-data-custom-fields {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.augur-theme-fantasy.location-data-editor .location-data-current-thread {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--nexus-border-subtle);
}

.augur-theme-fantasy.location-data-editor .location-data-current-thread-help {
    margin: -2px 0 8px;
    color: var(--nexus-text-muted);
    font-size: 10px;
}

.augur-theme-fantasy.location-data-editor .location-data-current-thread-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.augur-theme-fantasy.location-data-editor .location-data-current-thread-grid label {
    display: grid;
    gap: 4px;
    min-width: 0;
    color: var(--nexus-accent-bright);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.augur-theme-fantasy.location-data-editor .location-data-current-thread-grid input {
    width: 100%;
    min-width: 0;
    height: 30px;
    border: 1px solid var(--nexus-border-subtle);
    border-radius: 2px;
    background: rgba(6, 10, 12, .86);
    color: var(--nexus-text-primary);
    font-size: 11px;
}

.augur-theme-fantasy.location-data-editor .location-data-current-thread-grid input:focus {
    border-color: var(--nexus-border-strong);
    box-shadow: var(--nexus-focus-ring);
    outline: none;
}

.augur-theme-fantasy.location-data-editor .location-data-current-thread-grid small {
    color: var(--nexus-text-muted);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: none;
}

.augur-theme-fantasy.location-data-editor .npc-data-custom-fields-header {
    margin-bottom: 7px;
}

.augur-theme-fantasy.location-data-editor .npc-data-custom-fields-header h5 {
    color: var(--nexus-accent-bright);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.augur-theme-fantasy.location-data-editor .npc-data-add-field,
.augur-theme-fantasy.location-data-editor .npc-data-custom-field-move {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: var(--nexus-surface-interactive);
    color: var(--nexus-text-primary);
}

.augur-theme-fantasy.location-data-editor .npc-data-add-field {
    min-height: 28px;
    padding: 0 8px;
    font-size: 10px;
}

.augur-theme-fantasy.location-data-editor .npc-data-custom-field-row input,
.augur-theme-fantasy.location-data-editor .npc-data-custom-field-row textarea {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: rgba(6, 10, 12, .86);
    color: var(--nexus-text-primary);
    font-size: 11px;
}

.augur-theme-fantasy.location-data-editor .npc-data-custom-field-row input:focus,
.augur-theme-fantasy.location-data-editor .npc-data-custom-field-row textarea:focus {
    border-color: var(--nexus-border-strong);
    box-shadow: var(--nexus-focus-ring);
    outline: none;
}

.augur-theme-fantasy.location-data-editor .npc-data-custom-field-delete {
    border-color: color-mix(in srgb, #b14e56 64%, var(--nexus-border-subtle));
    border-radius: 2px;
    background: rgba(63, 20, 24, .58);
    color: #e88a90;
}

.augur-theme-fantasy.location-data-editor .npc-data-add-field:hover,
.augur-theme-fantasy.location-data-editor .npc-data-add-field:focus-visible,
.augur-theme-fantasy.location-data-editor .npc-data-custom-field-move:hover,
.augur-theme-fantasy.location-data-editor .npc-data-custom-field-move:focus-visible {
    border-color: var(--nexus-border-strong);
    background: var(--nexus-accent-surface-strong);
    color: var(--nexus-accent-bright);
    outline: none;
}

.augur-theme-fantasy.location-data-editor .npc-data-editor-footer {
    justify-content: flex-end;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 0;
}

.augur-theme-fantasy.location-data-editor .npc-data-editor-footer button {
    min-width: 132px;
    min-height: 30px;
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: var(--nexus-surface-interactive);
    color: var(--nexus-text-primary);
}

.augur-theme-fantasy.location-data-editor .npc-data-editor-footer button:last-child {
    border-color: var(--nexus-border-strong);
    background: linear-gradient(180deg, var(--nexus-accent-surface-strong), var(--nexus-accent-surface));
    color: var(--nexus-accent-bright);
}

.augur-theme-fantasy.location-data-editor .npc-data-editor-footer button:hover,
.augur-theme-fantasy.location-data-editor .npc-data-editor-footer button:focus-visible {
    border-color: var(--nexus-border-strong);
    background: var(--nexus-accent-surface-strong);
    color: var(--nexus-accent-bright);
    outline: none;
}

/* Organization editing uses the same Gilded Dark hierarchy as the dossiers. */
.augur-theme-fantasy.faction-organization-data-editor .window-header {
    border-bottom: 0;
    background: #090c0d;
    color: var(--nexus-text-primary);
}

.augur-theme-fantasy.faction-organization-data-editor .window-content {
    padding: 0;
    background: var(--nexus-surface-base);
    color: var(--nexus-text-primary);
}

.augur-theme-fantasy .faction-organization-editor-shell {
    padding: 12px;
    background:
        radial-gradient(circle at 16% 8%, var(--nexus-accent-surface), transparent 32%),
        linear-gradient(145deg, rgba(15, 21, 23, .98), rgba(6, 10, 12, .99));
    color: var(--nexus-text-primary);
    font-family: var(--nexus-body-font);
}

.augur-theme-fantasy .faction-organization-editor-identity {
    gap: 12px;
    margin-bottom: 10px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--nexus-accent-primary);
}

.augur-theme-fantasy .faction-organization-editor-identity .npc-data-editor-portrait {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--nexus-accent-bright);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .48));
}

.augur-theme-fantasy .faction-organization-editor-identity .npc-data-editor-portrait img {
    object-fit: contain;
}

.augur-theme-fantasy .faction-organization-editor-identity .npc-person-editor-identity-copy > span {
    color: var(--nexus-accent-bright);
}

.augur-theme-fantasy .faction-organization-editor-identity h3 {
    color: var(--nexus-text-primary);
    font-family: var(--nexus-heading-font);
    font-size: 25px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .01em;
}

.augur-theme-fantasy .faction-organization-editor-identity p {
    color: var(--nexus-text-secondary);
    font-size: 11px;
}

.augur-theme-fantasy .faction-organization-editor-identity .npc-data-editor-icon-action {
    border-color: var(--nexus-border-subtle);
    border-radius: var(--nexus-radius-control);
    background: var(--nexus-surface-interactive);
    color: var(--nexus-text-primary);
    box-shadow: none;
}

.augur-theme-fantasy .faction-organization-editor-identity .npc-data-editor-icon-action:hover,
.augur-theme-fantasy .faction-organization-editor-identity .npc-data-editor-icon-action:focus-visible {
    border-color: var(--nexus-border-strong);
    background: var(--nexus-accent-surface-strong);
    color: var(--nexus-accent-bright);
    outline: none;
}

.augur-theme-fantasy .faction-organization-editor-color {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: linear-gradient(90deg, var(--nexus-accent-surface-strong), var(--nexus-surface-raised) 68%);
    box-shadow: var(--nexus-shadow-panel);
}

.augur-theme-fantasy .faction-organization-editor-color .faction-data-color-copy strong {
    color: var(--nexus-text-primary);
    font-family: var(--nexus-heading-font);
}

.augur-theme-fantasy .faction-organization-editor-color .faction-data-color-copy span {
    color: var(--nexus-text-secondary);
}

.augur-theme-fantasy .faction-organization-editor-color .faction-data-color-control {
    border-color: var(--nexus-border-subtle);
    border-radius: var(--nexus-radius-control);
    background: var(--nexus-surface-base);
    color: var(--nexus-text-secondary);
}

.augur-theme-fantasy .faction-organization-editor-color .faction-data-color-control:hover,
.augur-theme-fantasy .faction-organization-editor-color .faction-data-color-control:focus-within {
    border-color: var(--nexus-border-strong);
    box-shadow: var(--nexus-focus-ring);
}

.augur-theme-fantasy .faction-organization-editor-workspace {
    gap: 10px;
}

.augur-theme-fantasy .faction-organization-editor-column {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(13, 19, 22, .92), rgba(7, 10, 11, .9));
    box-shadow: var(--nexus-shadow-panel);
}

.augur-theme-fantasy .faction-organization-editor-column.is-ideology,
.augur-theme-fantasy .faction-organization-editor-column.is-custom {
    border-color: var(--nexus-border-subtle);
    background: linear-gradient(180deg, rgba(13, 19, 22, .92), rgba(7, 10, 11, .9));
}

.augur-theme-fantasy .faction-organization-editor-column .npc-person-editor-column-header {
    min-height: 60px;
    padding: 9px 10px;
    border-bottom-color: var(--nexus-border-subtle);
    background: var(--nexus-surface-raised);
}

.augur-theme-fantasy .faction-organization-editor-column.is-custom .npc-person-editor-column-header {
    border-bottom-color: var(--nexus-border-subtle);
    background: var(--nexus-surface-raised);
}

.augur-theme-fantasy .faction-organization-editor-column .npc-person-editor-column-header h4 {
    color: var(--nexus-accent-bright);
    font-family: var(--nexus-heading-font);
    font-size: 13px;
    letter-spacing: .04em;
}

.augur-theme-fantasy .faction-organization-editor-column.is-custom .npc-person-editor-column-header h4 {
    color: var(--nexus-accent-bright);
}

.augur-theme-fantasy .faction-organization-editor-column .npc-person-editor-column-header p,
.augur-theme-fantasy .faction-organization-editor-column .npc-person-editor-section-help,
.augur-theme-fantasy .faction-organization-editor-ideology header p,
.augur-theme-fantasy .faction-organization-editor-ideology .faction-ideology-editor-empty {
    color: var(--nexus-text-muted);
}

.augur-theme-fantasy .faction-organization-editor-column .npc-person-editor-section-title {
    color: var(--nexus-accent-bright);
    font-size: 10px;
}

.augur-theme-fantasy .faction-organization-editor-column .npc-person-editor-section-title.is-thread {
    border-top-color: var(--nexus-border-subtle);
    color: var(--nexus-accent-bright);
}

.augur-theme-fantasy .faction-organization-editor-column .npc-data-editor-row {
    min-height: 46px;
    margin-bottom: 7px;
    padding: 7px;
    border: 1px solid var(--nexus-border-subtle);
    border-radius: 2px;
    background: rgba(9, 13, 15, .76);
}

.augur-theme-fantasy .faction-organization-editor-column .npc-data-editor-row:nth-child(even) {
    background: rgba(13, 19, 22, .78);
}

.augur-theme-fantasy .faction-organization-editor-column .npc-data-editor-row label {
    color: var(--nexus-text-secondary);
    font-size: 10px;
}

.augur-theme-fantasy .faction-organization-editor-column .npc-data-field-visibility,
.augur-theme-fantasy .faction-organization-editor-column .npc-data-combo-toggle,
.augur-theme-fantasy .faction-organization-editor-column .npc-data-add-field,
.augur-theme-fantasy .faction-organization-editor-column .npc-data-custom-field-move {
    border-color: var(--nexus-border-subtle);
    border-radius: var(--nexus-radius-control);
    background: var(--nexus-surface-interactive);
    color: var(--nexus-text-primary);
}

.augur-theme-fantasy .faction-organization-editor-column .npc-data-field-visibility.is-hidden-field {
    border-color: var(--nexus-border-strong);
    color: var(--nexus-accent-bright);
}

.augur-theme-fantasy .faction-organization-editor-column .npc-data-field-visibility:hover,
.augur-theme-fantasy .faction-organization-editor-column .npc-data-field-visibility:focus-visible,
.augur-theme-fantasy .faction-organization-editor-column .npc-data-combo-toggle:hover,
.augur-theme-fantasy .faction-organization-editor-column .npc-data-combo-toggle:focus-visible,
.augur-theme-fantasy .faction-organization-editor-column .npc-data-add-field:hover,
.augur-theme-fantasy .faction-organization-editor-column .npc-data-add-field:focus-visible,
.augur-theme-fantasy .faction-organization-editor-column .npc-data-custom-field-move:hover,
.augur-theme-fantasy .faction-organization-editor-column .npc-data-custom-field-move:focus-visible {
    border-color: var(--nexus-border-strong);
    background: var(--nexus-accent-surface-strong);
    color: var(--nexus-accent-bright);
    outline: none;
}

.augur-theme-fantasy .faction-organization-editor-column .npc-data-editor-row input,
.augur-theme-fantasy .faction-organization-editor-column .npc-data-custom-field-row input,
.augur-theme-fantasy .faction-organization-editor-ideology select {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: rgba(6, 10, 12, .9);
    color: var(--nexus-text-primary);
    font-size: 11px;
}

.augur-theme-fantasy .faction-organization-editor-column .npc-data-editor-row input:focus,
.augur-theme-fantasy .faction-organization-editor-column .npc-data-custom-field-row input:focus,
.augur-theme-fantasy .faction-organization-editor-ideology select:focus {
    border-color: var(--nexus-border-strong);
    box-shadow: var(--nexus-focus-ring);
    outline: none;
}

.augur-theme-fantasy .faction-organization-editor-column .npc-data-combo-menu {
    border-color: var(--nexus-border-strong);
    border-radius: 2px;
    background: rgba(9, 13, 15, .99);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .56);
}

.augur-theme-fantasy .faction-organization-editor-column .npc-data-combo-menu button {
    border-radius: 2px;
    color: var(--nexus-text-secondary);
}

.augur-theme-fantasy .faction-organization-editor-column .npc-data-combo-menu button:hover,
.augur-theme-fantasy .faction-organization-editor-column .npc-data-combo-menu button:focus-visible,
.augur-theme-fantasy .faction-organization-editor-column .npc-data-combo-menu button.selected {
    background: var(--nexus-accent-surface-strong);
    color: var(--nexus-accent-bright);
}

.augur-theme-fantasy .faction-organization-editor-ideology {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.augur-theme-fantasy .faction-organization-editor-ideology h5 {
    color: var(--nexus-accent-bright);
    font-family: var(--nexus-heading-font);
}

.augur-theme-fantasy .faction-organization-editor-ideology .faction-ideology-editor-row {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: rgba(9, 13, 15, .76);
}

.augur-theme-fantasy .faction-organization-editor-ideology .faction-ideology-editor-row label > span {
    color: var(--nexus-accent-bright);
}

.augur-theme-fantasy .faction-organization-editor-ideology .faction-ideology-editor-row small {
    color: var(--nexus-text-muted);
}

.augur-theme-fantasy .faction-organization-editor-ideology .faction-ideology-editor-delete,
.augur-theme-fantasy .faction-organization-editor-column .npc-data-custom-field-delete {
    border-color: color-mix(in srgb, #b14e56 64%, var(--nexus-border-subtle));
    border-radius: var(--nexus-radius-control);
    background: rgba(63, 20, 24, .58);
    color: #e88a90;
}

.augur-theme-fantasy .faction-organization-editor-column.is-custom .npc-data-custom-fields {
    padding: 10px;
}

.augur-theme-fantasy.faction-organization-data-editor .npc-data-editor-footer {
    justify-content: flex-end;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--nexus-border-subtle);
}

.augur-theme-fantasy.faction-organization-data-editor .npc-data-editor-footer button {
    min-width: 132px;
    min-height: 30px;
    border-color: var(--nexus-border-subtle);
    border-radius: var(--nexus-radius-control);
    background: var(--nexus-surface-interactive);
    color: var(--nexus-text-primary);
}

.augur-theme-fantasy.faction-organization-data-editor .npc-data-editor-footer button:last-child {
    border-color: var(--nexus-border-strong);
    background: linear-gradient(180deg, var(--nexus-accent-surface-strong), var(--nexus-accent-surface));
    color: var(--nexus-accent-bright);
}

.augur-theme-fantasy.faction-organization-data-editor .npc-data-editor-footer button:hover,
.augur-theme-fantasy.faction-organization-data-editor .npc-data-editor-footer button:focus-visible {
    border-color: var(--nexus-border-strong);
    background: var(--nexus-accent-surface-strong);
    color: var(--nexus-accent-bright);
    outline: none;
}

/* Person editing follows the same accent-driven hierarchy as the dossiers. */
.augur-theme-fantasy.npc-person-data-editor .window-header {
    border-bottom: 0;
    background: #090c0d;
    color: var(--nexus-text-primary);
}

.augur-theme-fantasy.npc-person-data-editor .window-content {
    padding: 0;
    background: var(--nexus-surface-base);
    color: var(--nexus-text-primary);
}

.augur-theme-fantasy .npc-person-editor-shell {
    padding: 12px;
    background:
        radial-gradient(circle at 16% 8%, var(--nexus-accent-surface), transparent 32%),
        linear-gradient(145deg, rgba(15, 21, 23, .98), rgba(6, 10, 12, .99));
    color: var(--nexus-text-primary);
    font-family: var(--nexus-body-font);
}

.augur-theme-fantasy .npc-person-editor-identity {
    gap: 12px;
    margin-bottom: 10px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--nexus-accent-primary);
}

.augur-theme-fantasy .npc-person-editor-identity .npc-data-editor-portrait {
    border-color: var(--nexus-border-strong);
    background: var(--nexus-accent-surface);
    color: var(--nexus-accent-bright);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .42);
}

.augur-theme-fantasy .npc-person-editor-identity-copy > span {
    color: var(--nexus-accent-bright);
}

.augur-theme-fantasy .npc-person-editor-identity h3 {
    color: var(--nexus-text-primary);
    font-family: var(--nexus-heading-font);
    font-size: 25px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .01em;
}

.augur-theme-fantasy .npc-person-editor-identity p {
    color: var(--nexus-text-secondary);
    font-size: 11px;
}

.augur-theme-fantasy .npc-person-editor-identity .npc-data-editor-icon-action,
.augur-theme-fantasy .npc-person-editor-header-personality .npc-data-trait-edit-button {
    border-color: var(--nexus-border-subtle);
    border-radius: var(--nexus-radius-control);
    background: var(--nexus-surface-interactive);
    color: var(--nexus-text-primary);
    box-shadow: none;
}

.augur-theme-fantasy .npc-person-editor-identity .npc-data-editor-icon-action:hover,
.augur-theme-fantasy .npc-person-editor-identity .npc-data-editor-icon-action:focus-visible,
.augur-theme-fantasy .npc-person-editor-header-personality .npc-data-trait-edit-button:hover,
.augur-theme-fantasy .npc-person-editor-header-personality .npc-data-trait-edit-button:focus-visible {
    border-color: var(--nexus-border-strong);
    background: var(--nexus-accent-surface-strong);
    color: var(--nexus-accent-bright);
    outline: none;
}

.augur-theme-fantasy .npc-person-editor-header-personality {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: var(--nexus-surface-raised);
    box-shadow: var(--nexus-shadow-panel);
}

.augur-theme-fantasy .npc-person-editor-header-personality h4 {
    color: var(--nexus-accent-bright);
    font-family: var(--nexus-heading-font);
}

.augur-theme-fantasy .npc-person-editor-workspace {
    gap: 10px;
}

.augur-theme-fantasy .npc-person-editor-column,
.augur-theme-fantasy .npc-person-editor-column.is-character,
.augur-theme-fantasy .npc-person-editor-column.is-custom {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(13, 19, 22, .92), rgba(7, 10, 11, .9));
    box-shadow: var(--nexus-shadow-panel);
}

.augur-theme-fantasy .npc-person-editor-column .npc-person-editor-column-header,
.augur-theme-fantasy .npc-person-editor-column.is-custom .npc-person-editor-column-header {
    min-height: 60px;
    padding: 9px 10px;
    border-bottom-color: var(--nexus-border-subtle);
    background: var(--nexus-surface-raised);
}

.augur-theme-fantasy .npc-person-editor-column .npc-person-editor-column-header h4,
.augur-theme-fantasy .npc-person-editor-column.is-custom .npc-person-editor-column-header h4 {
    color: var(--nexus-accent-bright);
    font-family: var(--nexus-heading-font);
    font-size: 13px;
    letter-spacing: .04em;
}

.augur-theme-fantasy .npc-person-editor-column .npc-person-editor-column-header p,
.augur-theme-fantasy .npc-person-editor-column .npc-person-editor-section-help,
.augur-theme-fantasy .npc-person-editor-ideology header p,
.augur-theme-fantasy .npc-person-editor-ideology .faction-ideology-editor-empty {
    color: var(--nexus-text-muted);
}

.augur-theme-fantasy .npc-person-editor-column .npc-person-editor-section-title,
.augur-theme-fantasy .npc-person-editor-column .npc-person-editor-section-title.is-thread {
    color: var(--nexus-accent-bright);
    font-size: 10px;
}

.augur-theme-fantasy .npc-person-editor-column .npc-person-editor-section-title.is-thread {
    border-top-color: var(--nexus-border-subtle);
}

.augur-theme-fantasy .npc-person-editor-column .npc-data-editor-row {
    min-height: 46px;
    margin-bottom: 7px;
    padding: 7px;
    border: 1px solid var(--nexus-border-subtle);
    border-radius: 2px;
    background: rgba(9, 13, 15, .76);
}

.augur-theme-fantasy .npc-person-editor-column .npc-data-editor-row:nth-child(even) {
    background: rgba(13, 19, 22, .78);
}

.augur-theme-fantasy .npc-person-editor-column .npc-data-editor-row label {
    color: var(--nexus-text-secondary);
    font-size: 10px;
}

.augur-theme-fantasy .npc-person-editor-column .npc-data-field-visibility,
.augur-theme-fantasy .npc-person-editor-column .npc-data-combo-toggle,
.augur-theme-fantasy .npc-person-editor-column .npc-data-add-field,
.augur-theme-fantasy .npc-person-editor-column .npc-data-custom-field-move {
    border-color: var(--nexus-border-subtle);
    border-radius: var(--nexus-radius-control);
    background: var(--nexus-surface-interactive);
    color: var(--nexus-text-primary);
}

.augur-theme-fantasy .npc-person-editor-column .npc-data-field-visibility.is-hidden-field {
    border-color: var(--nexus-border-strong);
    color: var(--nexus-accent-bright);
}

.augur-theme-fantasy .npc-person-editor-column .npc-data-field-visibility:hover,
.augur-theme-fantasy .npc-person-editor-column .npc-data-field-visibility:focus-visible,
.augur-theme-fantasy .npc-person-editor-column .npc-data-combo-toggle:hover,
.augur-theme-fantasy .npc-person-editor-column .npc-data-combo-toggle:focus-visible,
.augur-theme-fantasy .npc-person-editor-column .npc-data-add-field:hover,
.augur-theme-fantasy .npc-person-editor-column .npc-data-add-field:focus-visible,
.augur-theme-fantasy .npc-person-editor-column .npc-data-custom-field-move:hover,
.augur-theme-fantasy .npc-person-editor-column .npc-data-custom-field-move:focus-visible {
    border-color: var(--nexus-border-strong);
    background: var(--nexus-accent-surface-strong);
    color: var(--nexus-accent-bright);
    outline: none;
}

.augur-theme-fantasy .npc-person-editor-column .npc-data-editor-row input,
.augur-theme-fantasy .npc-person-editor-column .npc-data-custom-field-row input,
.augur-theme-fantasy .npc-person-editor-ideology select {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: rgba(6, 10, 12, .9);
    color: var(--nexus-text-primary);
    font-size: 11px;
}

.augur-theme-fantasy .npc-person-editor-column .npc-data-editor-row input:focus,
.augur-theme-fantasy .npc-person-editor-column .npc-data-custom-field-row input:focus,
.augur-theme-fantasy .npc-person-editor-ideology select:focus {
    border-color: var(--nexus-border-strong);
    box-shadow: var(--nexus-focus-ring);
    outline: none;
}

.augur-theme-fantasy .npc-person-editor-column .npc-data-combo-menu {
    border-color: var(--nexus-border-strong);
    border-radius: 2px;
    background: rgba(9, 13, 15, .99);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .56);
}

.augur-theme-fantasy .npc-person-editor-column .npc-data-combo-menu button {
    border-radius: 2px;
    color: var(--nexus-text-secondary);
}

.augur-theme-fantasy .npc-person-editor-column .npc-data-combo-menu button:hover,
.augur-theme-fantasy .npc-person-editor-column .npc-data-combo-menu button:focus-visible,
.augur-theme-fantasy .npc-person-editor-column .npc-data-combo-menu button.selected {
    background: var(--nexus-accent-surface-strong);
    color: var(--nexus-accent-bright);
}

.augur-theme-fantasy .npc-person-editor-ideology {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.augur-theme-fantasy .npc-person-editor-ideology h5 {
    color: var(--nexus-accent-bright);
    font-family: var(--nexus-heading-font);
}

.augur-theme-fantasy .npc-person-editor-ideology .faction-ideology-editor-row {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: rgba(9, 13, 15, .76);
}

.augur-theme-fantasy .npc-person-editor-ideology .faction-ideology-editor-row label > span {
    color: var(--nexus-accent-bright);
}

.augur-theme-fantasy .npc-person-editor-ideology .faction-ideology-editor-row small {
    color: var(--nexus-text-muted);
}

.augur-theme-fantasy .npc-person-editor-ideology .faction-ideology-editor-delete,
.augur-theme-fantasy .npc-person-editor-column .npc-data-custom-field-delete {
    border-color: color-mix(in srgb, #b14e56 64%, var(--nexus-border-subtle));
    border-radius: var(--nexus-radius-control);
    background: rgba(63, 20, 24, .58);
    color: #e88a90;
}

.augur-theme-fantasy .npc-person-editor-column.is-custom .npc-data-custom-fields {
    padding: 10px;
}

.augur-theme-fantasy.npc-person-data-editor .npc-data-editor-footer {
    justify-content: flex-end;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--nexus-border-subtle);
}

.augur-theme-fantasy.npc-person-data-editor .npc-data-editor-footer button {
    min-width: 132px;
    min-height: 30px;
    border-color: var(--nexus-border-subtle);
    border-radius: var(--nexus-radius-control);
    background: var(--nexus-surface-interactive);
    color: var(--nexus-text-primary);
}

.augur-theme-fantasy.npc-person-data-editor .npc-data-editor-footer button:last-child {
    border-color: var(--nexus-border-strong);
    background: linear-gradient(180deg, var(--nexus-accent-surface-strong), var(--nexus-accent-surface));
    color: var(--nexus-accent-bright);
}

.augur-theme-fantasy.npc-person-data-editor .npc-data-editor-footer button:hover,
.augur-theme-fantasy.npc-person-data-editor .npc-data-editor-footer button:focus-visible {
    border-color: var(--nexus-border-strong);
    background: var(--nexus-accent-surface-strong);
    color: var(--nexus-accent-bright);
    outline: none;
}

/* Trait selection uses the shared accent instead of its legacy cyan palette. */
.augur-theme-fantasy.npc-trait-picker .window-header {
    border-bottom: 0;
    background: #090c0d;
    color: var(--nexus-text-primary);
}

.augur-theme-fantasy.npc-trait-picker .window-content {
    padding: 12px;
    background:
        radial-gradient(circle at 16% 8%, var(--nexus-accent-surface), transparent 34%),
        linear-gradient(145deg, rgba(15, 21, 23, .98), rgba(6, 10, 12, .99));
    color: var(--nexus-text-primary);
    font-family: var(--nexus-body-font);
}

.augur-theme-fantasy .npc-trait-picker-header {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--nexus-accent-primary);
}

.augur-theme-fantasy .npc-trait-picker-header h2 {
    color: var(--nexus-text-primary);
    font-family: var(--nexus-heading-font);
    font-size: 22px;
    font-weight: 700;
}

.augur-theme-fantasy .npc-trait-picker-header > span {
    border-color: var(--nexus-border-strong);
    border-radius: var(--nexus-radius-control);
    background: var(--nexus-accent-surface);
    color: var(--nexus-accent-bright);
}

.augur-theme-fantasy .npc-trait-picker-current,
.augur-theme-fantasy .npc-trait-picker-grid {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(13, 19, 22, .92), rgba(7, 10, 11, .9));
    box-shadow: var(--nexus-shadow-panel);
}

.augur-theme-fantasy .npc-trait-picker-current h3 {
    color: var(--nexus-accent-bright);
    font-family: var(--nexus-heading-font);
    font-size: 13px;
}

.augur-theme-fantasy .npc-trait-picker-grid {
    scrollbar-color: var(--nexus-border-strong) transparent;
    scrollbar-width: thin;
}

.augur-theme-fantasy .npc-trait-picker-message {
    border-color: var(--nexus-border-strong);
    border-radius: 2px;
    background: var(--nexus-accent-surface);
    color: var(--nexus-accent-bright);
}

.augur-theme-fantasy .npc-trait-option {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: rgba(9, 13, 15, .82);
    color: var(--nexus-text-primary);
    box-shadow: none;
}

.augur-theme-fantasy .npc-trait-option:hover,
.augur-theme-fantasy .npc-trait-option:focus-visible {
    border-color: var(--nexus-border-strong);
    background: var(--nexus-accent-surface);
    color: var(--nexus-accent-bright);
    box-shadow: var(--nexus-focus-ring);
    outline: none;
}

.augur-theme-fantasy .npc-trait-option.selected {
    border-color: var(--nexus-border-strong);
    background: var(--nexus-accent-surface-strong);
    color: var(--nexus-accent-bright);
    box-shadow: inset 0 0 0 1px var(--nexus-border-subtle), var(--nexus-focus-ring);
}

.augur-theme-fantasy .npc-trait-option img {
    border: 1px solid var(--nexus-border-subtle);
    border-radius: 2px;
    background: var(--nexus-surface-interactive);
}

.augur-theme-fantasy .npc-trait-option.selected img {
    border-color: var(--nexus-border-strong);
    background: var(--nexus-accent-surface);
}

.augur-theme-fantasy .npc-trait-picker-footer {
    gap: 6px;
    padding-top: 10px;
    border-top-color: var(--nexus-border-subtle);
    background: linear-gradient(180deg, rgba(9, 13, 15, .88), var(--nexus-surface-base));
}

.augur-theme-fantasy .npc-trait-picker-footer button {
    min-width: 128px;
    min-height: 30px;
    border-color: var(--nexus-border-subtle);
    border-radius: var(--nexus-radius-control);
    background: var(--nexus-surface-interactive);
    color: var(--nexus-text-primary);
}

.augur-theme-fantasy .npc-trait-picker-footer button:last-child {
    border-color: var(--nexus-border-strong);
    background: linear-gradient(180deg, var(--nexus-accent-surface-strong), var(--nexus-accent-surface));
    color: var(--nexus-accent-bright);
}

.augur-theme-fantasy .npc-trait-picker-footer button:hover,
.augur-theme-fantasy .npc-trait-picker-footer button:focus-visible {
    border-color: var(--nexus-border-strong);
    background: var(--nexus-accent-surface-strong);
    color: var(--nexus-accent-bright);
    outline: none;
}

/* Nexus Browser controls */
.nexus-browser-panel-shell.augur-theme-fantasy {
    --nexus-browser-control-surface: #111617;
    --nexus-browser-control-hover: #1d2425;
    --nexus-browser-control-border: color-mix(in srgb, var(--nexus-accent-primary) 16%, rgba(190, 199, 196, .14));
    --nexus-browser-control-border-hover: color-mix(in srgb, var(--nexus-accent-primary) 42%, rgba(220, 226, 222, .18));
}

.nexus-browser-panel-shell.augur-theme-fantasy .nexus-browser-search-bar input,
.nexus-browser-panel-shell.augur-theme-fantasy .nexus-browser-tab-select,
.nexus-browser-panel-shell.augur-theme-fantasy .nexus-browser-scene-filter,
.nexus-browser-panel-shell.augur-theme-fantasy .nexus-browser-filter-toggle,
.nexus-browser-panel-shell.augur-theme-fantasy .site-entry-clear {
    border-color: var(--nexus-browser-control-border);
    background: var(--nexus-browser-control-surface);
    color: var(--nexus-text-secondary);
    box-shadow: none;
}

.nexus-browser-panel-shell.augur-theme-fantasy .nexus-browser-search-bar input {
    color: var(--nexus-text-primary);
}

.nexus-browser-panel-shell.augur-theme-fantasy .nexus-browser-tab-select {
    color: var(--nexus-accent-bright);
}

.nexus-browser-panel-shell.augur-theme-fantasy .nexus-browser-search-bar input:hover,
.nexus-browser-panel-shell.augur-theme-fantasy .nexus-browser-search-bar input:focus,
.nexus-browser-panel-shell.augur-theme-fantasy .nexus-browser-tab-select:hover,
.nexus-browser-panel-shell.augur-theme-fantasy .nexus-browser-tab-select:focus-within,
.nexus-browser-panel-shell.augur-theme-fantasy .nexus-browser-filter-toggle:hover,
.nexus-browser-panel-shell.augur-theme-fantasy .nexus-browser-filter-toggle:focus-visible,
.nexus-browser-panel-shell.augur-theme-fantasy .site-entry-clear:hover,
.nexus-browser-panel-shell.augur-theme-fantasy .site-entry-clear:focus-visible {
    border-color: var(--nexus-browser-control-border-hover);
    background: var(--nexus-browser-control-hover);
    color: var(--nexus-accent-bright);
    box-shadow: var(--nexus-focus-ring);
    outline: none;
}

.nexus-browser-panel-shell.augur-theme-fantasy .nexus-browser-scene-filter:hover,
.nexus-browser-panel-shell.augur-theme-fantasy .nexus-browser-scene-filter.is-active,
.nexus-browser-panel-shell.augur-theme-fantasy .nexus-browser-filter-toggle.is-active {
    border-color: var(--nexus-border-strong);
    background: var(--nexus-accent-surface);
    color: var(--nexus-accent-bright);
}

.nexus-browser-panel-shell.augur-theme-fantasy .nexus-browser-filter-toggle:disabled {
    border-color: var(--nexus-browser-control-border);
    background: var(--nexus-browser-control-surface);
    color: var(--nexus-text-secondary);
    box-shadow: none;
    opacity: 0.42;
}

/* Nexus Placer */
.site-tabs-panel.augur-theme-fantasy {
    --nexus-placer-control-surface: #111617;
    --nexus-placer-control-raised: #171d1e;
    --nexus-placer-control-hover: #1d2425;
    --nexus-placer-control-border: color-mix(in srgb, var(--nexus-accent-primary) 16%, rgba(190, 199, 196, .14));
    --nexus-placer-control-border-hover: color-mix(in srgb, var(--nexus-accent-primary) 42%, rgba(220, 226, 222, .18));
}

.augur-nexus.site-tabs-panel.augur-theme-fantasy .window-header {
    border-bottom: 0;
    background: #090c0d;
    color: var(--nexus-text-primary);
}

.augur-nexus.site-tabs-panel.augur-theme-fantasy .window-content {
    background: var(--nexus-surface-base);
    color: var(--nexus-text-primary);
}

.site-tabs-panel.augur-theme-fantasy .nexus-site-panel {
    color: var(--nexus-text-primary);
    font-family: var(--nexus-body-font);
    scrollbar-color: var(--nexus-border-strong) transparent;
    scrollbar-width: thin;
}

.site-tabs-panel.augur-theme-fantasy .site-mode-button,
.site-tabs-panel.augur-theme-fantasy .site-tab-button,
.site-tabs-panel.augur-theme-fantasy .site-role-option {
    border-color: var(--nexus-placer-control-border);
    border-radius: 2px;
    background: var(--nexus-placer-control-surface);
    color: var(--nexus-text-secondary);
    box-shadow: none;
}

.site-tabs-panel.augur-theme-fantasy .site-mode-button:hover,
.site-tabs-panel.augur-theme-fantasy .site-mode-button:focus-visible,
.site-tabs-panel.augur-theme-fantasy .site-tab-button:hover,
.site-tabs-panel.augur-theme-fantasy .site-tab-button:focus-visible,
.site-tabs-panel.augur-theme-fantasy .site-role-option:hover,
.site-tabs-panel.augur-theme-fantasy .site-role-option:focus-visible {
    border-color: var(--nexus-placer-control-border-hover);
    background: var(--nexus-placer-control-hover);
    color: var(--nexus-accent-bright);
    outline: none;
}

.site-tabs-panel.augur-theme-fantasy .site-mode-button.active,
.site-tabs-panel.augur-theme-fantasy .site-tab-button.active,
.site-tabs-panel.augur-theme-fantasy .site-role-option.active {
    border-color: var(--nexus-border-strong);
    background: linear-gradient(180deg, var(--nexus-accent-surface-strong), var(--nexus-accent-surface));
    color: var(--nexus-accent-bright);
    box-shadow: inset 0 -1px var(--nexus-accent-primary);
}

.site-tabs-panel.augur-theme-fantasy .site-panel-section {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: linear-gradient(145deg, rgba(18, 25, 27, .9), rgba(8, 12, 14, .92));
    box-shadow: none;
}

.site-tabs-panel.augur-theme-fantasy .site-panel-section legend,
.site-tabs-panel.augur-theme-fantasy .site-advanced-section > summary {
    color: var(--nexus-accent-bright);
    font-family: var(--nexus-heading-font);
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.site-tabs-panel.augur-theme-fantasy .site-panel-section label {
    color: var(--nexus-text-secondary);
}

.site-tabs-panel.augur-theme-fantasy .site-panel-section select,
.site-tabs-panel.augur-theme-fantasy .site-panel-section input[type="text"],
.site-tabs-panel.augur-theme-fantasy .site-panel-section input[type="search"],
.site-tabs-panel.augur-theme-fantasy .site-linked-scene-name,
.site-tabs-panel.augur-theme-fantasy .picker-btn,
.site-tabs-panel.augur-theme-fantasy .site-entry-clear,
.site-tabs-panel.augur-theme-fantasy .site-mode-action {
    border-color: var(--nexus-placer-control-border);
    border-radius: 2px;
    background: var(--nexus-placer-control-surface);
    color: var(--nexus-text-primary);
    box-shadow: none;
}

.site-tabs-panel.augur-theme-fantasy .site-panel-section select:hover,
.site-tabs-panel.augur-theme-fantasy .site-panel-section select:focus,
.site-tabs-panel.augur-theme-fantasy .site-panel-section input[type="text"]:hover,
.site-tabs-panel.augur-theme-fantasy .site-panel-section input[type="text"]:focus,
.site-tabs-panel.augur-theme-fantasy .site-panel-section input[type="search"]:hover,
.site-tabs-panel.augur-theme-fantasy .site-panel-section input[type="search"]:focus,
.site-tabs-panel.augur-theme-fantasy .site-linked-scene-name:hover,
.site-tabs-panel.augur-theme-fantasy .site-linked-scene-name:focus-visible,
.site-tabs-panel.augur-theme-fantasy .picker-btn:hover,
.site-tabs-panel.augur-theme-fantasy .picker-btn:focus-visible,
.site-tabs-panel.augur-theme-fantasy .site-entry-clear:hover,
.site-tabs-panel.augur-theme-fantasy .site-entry-clear:focus-visible,
.site-tabs-panel.augur-theme-fantasy .site-mode-action:hover,
.site-tabs-panel.augur-theme-fantasy .site-mode-action:focus-visible {
    border-color: var(--nexus-placer-control-border-hover);
    background: var(--nexus-placer-control-hover);
    color: var(--nexus-accent-bright);
    box-shadow: var(--nexus-focus-ring);
    outline: none;
}

.site-tabs-panel.augur-theme-fantasy .site-panel-section select option {
    background: var(--nexus-surface-panel);
    color: var(--nexus-text-primary);
}

.site-tabs-panel.augur-theme-fantasy .site-panel-section select option:checked,
.site-tabs-panel.augur-theme-fantasy .site-panel-section select option:hover,
.site-tabs-panel.augur-theme-fantasy .site-panel-section select option:focus {
    background: var(--nexus-accent-surface-strong);
    box-shadow: 0 0 0 100px var(--nexus-accent-surface-strong) inset;
    color: var(--nexus-accent-bright);
}

.site-tabs-panel.augur-theme-fantasy .site-icon-preview,
.site-tabs-panel.augur-theme-fantasy .site-map-color-chip,
.site-tabs-panel.augur-theme-fantasy .picker-btn-thumb,
.site-tabs-panel.augur-theme-fantasy .site-room-count,
.site-tabs-panel.augur-theme-fantasy .site-scene-tab-summary,
.site-tabs-panel.augur-theme-fantasy .site-edit-selected,
.site-tabs-panel.augur-theme-fantasy .site-edit-empty {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: rgba(8, 12, 14, .78);
}

.site-tabs-panel.augur-theme-fantasy .site-room-count span,
.site-tabs-panel.augur-theme-fantasy .site-scene-tab-summary span,
.site-tabs-panel.augur-theme-fantasy .site-edit-selected-copy span,
.site-tabs-panel.augur-theme-fantasy .site-edit-empty span,
.site-tabs-panel.augur-theme-fantasy .site-linked-scene-name i {
    color: var(--nexus-text-muted);
}

.site-tabs-panel.augur-theme-fantasy .range-value,
.site-tabs-panel.augur-theme-fantasy .site-edit-empty i,
.site-tabs-panel.augur-theme-fantasy .site-panel-empty-icon,
.site-tabs-panel.augur-theme-fantasy .entity-genre-empty i {
    color: var(--nexus-accent-bright);
}

.site-tabs-panel.augur-theme-fantasy input[type="range"],
.site-tabs-panel.augur-theme-fantasy input[type="checkbox"] {
    accent-color: var(--nexus-accent-primary);
}

.site-tabs-panel.augur-theme-fantasy .site-color-swatch.active {
    border-color: var(--nexus-accent-bright);
    box-shadow: 0 0 0 1px var(--nexus-accent-primary);
}

.site-tabs-panel.augur-theme-fantasy .site-marker-style-editor {
    border-top-color: var(--nexus-border-subtle);
}

.site-tabs-panel.augur-theme-fantasy .site-visual-select .selected-option {
    border-color: var(--nexus-placer-control-border);
    border-radius: 2px;
    background: var(--nexus-placer-control-surface);
    color: var(--nexus-text-primary);
}

.site-tabs-panel.augur-theme-fantasy .site-visual-select .selected-option:hover,
.site-tabs-panel.augur-theme-fantasy .site-visual-select .selected-option:focus-visible {
    border-color: var(--nexus-placer-control-border-hover);
    background: var(--nexus-placer-control-hover);
    color: var(--nexus-accent-bright);
    outline: none;
}

.site-tabs-panel.augur-theme-fantasy .site-visual-select .option-image {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: var(--nexus-surface-base);
}

.site-tabs-panel.augur-theme-fantasy .site-visual-select .options-list {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: var(--nexus-surface-panel);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .4);
}

.site-tabs-panel.augur-theme-fantasy .site-visual-select .option-item {
    border-bottom-color: var(--nexus-border-subtle);
    color: var(--nexus-text-primary);
}

.site-tabs-panel.augur-theme-fantasy .site-visual-select .option-item:hover,
.site-tabs-panel.augur-theme-fantasy .site-visual-select .option-item:focus-visible,
.site-tabs-panel.augur-theme-fantasy .site-visual-select .option-item.selected {
    background: var(--nexus-accent-surface-strong);
    color: var(--nexus-accent-bright);
    outline: none;
}

.site-tabs-panel.augur-theme-fantasy .entity-genre-empty {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: rgba(8, 12, 14, .66);
    color: var(--nexus-text-secondary);
}

.site-tabs-panel.augur-theme-fantasy .entity-candidate-panel.npc-create-candidate-panel {
    padding: 12px;
    border: 1px solid var(--nexus-border-subtle);
    border-radius: 2px;
    background: linear-gradient(145deg, rgba(18, 25, 27, .9), rgba(8, 12, 14, .94));
}

.site-tabs-panel.augur-theme-fantasy .entity-placement-pane[data-entity-placement="npc"] .entity-option-grid label {
    color: var(--nexus-accent-bright);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.site-tabs-panel.augur-theme-fantasy .npc-create-candidate-panel .npc-dossier-header {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--nexus-border-subtle);
}

.site-tabs-panel.augur-theme-fantasy .npc-create-candidate-panel .npc-dossier-portrait {
    width: 64px;
    height: 64px;
    border-color: var(--npc-accent, var(--nexus-accent-primary));
}

.site-tabs-panel.augur-theme-fantasy .npc-create-candidate-panel .npc-dossier-title h2 {
    margin-top: 4px;
    color: var(--nexus-text-primary);
    font-size: 20px;
}

.site-tabs-panel.augur-theme-fantasy .npc-create-candidate-panel .npc-dossier-title p {
    color: var(--nexus-text-secondary);
    font-size: 11px;
}

.site-tabs-panel.augur-theme-fantasy .npc-create-candidate-panel .npc-dossier-section {
    padding-top: 10px;
    overflow: visible;
}

.site-tabs-panel.augur-theme-fantasy .npc-create-candidate-panel .npc-trait-row {
    gap: 14px;
    margin-bottom: 10px;
}

.site-tabs-panel.augur-theme-fantasy .npc-create-candidate-panel .npc-trait-chip {
    width: 72px;
}

.site-tabs-panel.augur-theme-fantasy .npc-create-candidate-panel .npc-trait-chip img {
    width: 40px;
    height: 40px;
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: var(--nexus-accent-surface);
}

.site-tabs-panel.augur-theme-fantasy .npc-create-candidate-panel .faction-ideology-grid {
    grid-template-columns: minmax(0, 1fr);
}

.site-tabs-panel.augur-theme-fantasy .npc-create-candidate-panel .faction-ideology-card {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: linear-gradient(145deg, var(--nexus-accent-surface), rgba(8, 12, 14, .94));
}

.site-tabs-panel.augur-theme-fantasy .npc-create-candidate-panel .npc-profile-section-heading {
    margin: 10px 0 7px;
    color: var(--nexus-accent-bright);
}

.site-tabs-panel.augur-theme-fantasy .entity-placement-pane[data-entity-placement="faction"] .entity-option-grid label {
    color: var(--nexus-accent-bright);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.site-tabs-panel.augur-theme-fantasy .entity-candidate-panel.faction-create-candidate-panel {
    padding: 12px;
    border: 1px solid var(--nexus-border-subtle);
    border-radius: 2px;
    background: linear-gradient(145deg, rgba(18, 25, 27, .9), rgba(8, 12, 14, .94));
}

.site-tabs-panel.augur-theme-fantasy .faction-create-candidate-panel .faction-dossier-header {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--nexus-border-subtle);
}

.site-tabs-panel.augur-theme-fantasy .faction-create-candidate-panel .faction-dossier-emblem {
    width: 72px;
    height: 72px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.site-tabs-panel.augur-theme-fantasy .faction-create-candidate-panel .npc-dossier-title h2 {
    margin-top: 5px;
    color: var(--nexus-text-primary);
    font-family: var(--nexus-heading-font);
    font-size: 20px;
}

.site-tabs-panel.augur-theme-fantasy .faction-create-candidate-panel .npc-dossier-title p {
    color: var(--nexus-text-secondary);
    font-size: 11px;
}

.site-tabs-panel.augur-theme-fantasy .faction-create-candidate-panel .npc-dossier-section {
    padding-top: 10px;
    overflow: visible;
}

.site-tabs-panel.augur-theme-fantasy .faction-create-candidate-panel .faction-ideology-grid {
    grid-template-columns: minmax(0, 1fr);
}

.site-tabs-panel.augur-theme-fantasy .faction-create-candidate-panel .faction-ideology-card,
.site-tabs-panel.augur-theme-fantasy .faction-create-candidate-panel .faction-current-thread-grid article {
    border-color: var(--nexus-border-subtle);
    border-radius: 2px;
    background: var(--nexus-accent-surface);
}

.site-tabs-panel.augur-theme-fantasy .faction-create-candidate-panel .faction-ideology-title strong,
.site-tabs-panel.augur-theme-fantasy .faction-create-candidate-panel .faction-current-thread-grid span {
    color: var(--nexus-accent-bright);
}

.site-tabs-panel.augur-theme-fantasy .faction-create-candidate-panel .faction-ideology-card p,
.site-tabs-panel.augur-theme-fantasy .faction-create-candidate-panel .npc-dossier-chip-row strong,
.site-tabs-panel.augur-theme-fantasy .faction-create-candidate-panel .npc-dossier-custom-row strong,
.site-tabs-panel.augur-theme-fantasy .faction-create-candidate-panel .faction-current-thread-grid strong {
    color: var(--nexus-text-primary);
}

.site-tabs-panel.augur-theme-fantasy .faction-create-candidate-panel .npc-profile-section-heading {
    margin: 10px 0 7px;
    color: var(--nexus-accent-bright);
}

.site-tabs-panel.augur-theme-fantasy .entity-placement-pane[data-entity-placement="location"] .entity-option-grid label {
    color: var(--nexus-accent-bright);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.site-tabs-panel.augur-theme-fantasy .entity-candidate-panel.location-candidate-panel {
    padding: 12px;
    border: 1px solid var(--nexus-border-subtle);
    border-radius: 2px;
    background: linear-gradient(145deg, rgba(18, 25, 27, .9), rgba(8, 12, 14, .94));
}

.site-tabs-panel.augur-theme-fantasy .location-candidate-panel .faction-dossier-header {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--nexus-border-subtle);
}

.site-tabs-panel.augur-theme-fantasy .location-candidate-panel .faction-dossier-emblem {
    width: 72px;
    height: 72px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.site-tabs-panel.augur-theme-fantasy .location-candidate-panel .faction-dossier-emblem img {
    object-fit: contain;
}

.site-tabs-panel.augur-theme-fantasy .location-candidate-panel .npc-dossier-title h2 {
    margin-top: 5px;
    color: var(--nexus-text-primary);
    font-family: var(--nexus-heading-font);
    font-size: 20px;
}

.site-tabs-panel.augur-theme-fantasy .location-candidate-panel .npc-dossier-title p {
    color: var(--nexus-text-secondary);
    font-size: 11px;
}

.site-tabs-panel.augur-theme-fantasy .site-action {
    border: 1px solid var(--nexus-placer-control-border);
    border-radius: 2px;
    color: var(--nexus-text-secondary);
    background: var(--nexus-placer-control-surface);
}

.site-tabs-panel.augur-theme-fantasy .site-action.place,
.site-tabs-panel.augur-theme-fantasy .site-action.edit,
.site-tabs-panel.augur-theme-fantasy .site-action.move {
    border-color: var(--nexus-border-strong);
    background: var(--nexus-accent-surface);
    color: var(--nexus-accent-bright);
}

.site-tabs-panel.augur-theme-fantasy .site-action.gesture,
.site-tabs-panel.augur-theme-fantasy .site-action.cancel {
    background: var(--nexus-placer-control-raised);
}

.site-tabs-panel.augur-theme-fantasy .site-action.delete {
    border-color: rgba(190, 72, 72, .5);
    background: rgba(78, 28, 31, .78);
    color: #efb0a7;
}

.site-tabs-panel.augur-theme-fantasy .site-scene-requires {
    border-radius: 2px;
}
