/* Entity generators use the same compact genre switcher as Sites. */
:where(.augur-nexus, .augur-nexus-tool) .entity-genre-switcher {
    margin-bottom: 8px;
}

:where(.augur-nexus, .augur-nexus-tool) .entity-generator-choice {
    margin: 0 0 8px;
}

:where(.augur-nexus, .augur-nexus-tool) .entity-generator-choice select {
    width: 100%;
}

:where(.augur-nexus, .augur-nexus-tool) .entity-option-grid > .form-group:only-child {
    grid-column: 1 / -1;
}

:where(.augur-nexus, .augur-nexus-tool) .entity-genre-empty {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-height: 54px;
    padding: 10px;
    border: 1px dashed rgba(240, 200, 76, 0.35);
    border-radius: 7px;
    color: #cbbda7;
    background: rgba(8, 10, 18, 0.55);
}

:where(.augur-nexus, .augur-nexus-tool) .entity-genre-empty i {
    padding-top: 2px;
    color: #f0c84c;
}

:where(.augur-nexus, .augur-nexus-tool) .entity-genre-empty p {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
}
.augur-region-population {
    --region-control: #111617;
    --region-control-hover: #1d2425;
    --region-control-border: color-mix(in srgb, var(--nexus-accent-primary) 16%, rgba(190, 199, 196, .14));
}

.augur-region-population .window-header {
    border-bottom: 0;
    background: #090c0d;
    color: var(--nexus-text-primary);
}

.augur-region-population .window-content {
    padding: 0;
    overflow: hidden;
    background: var(--nexus-surface-base);
    color: var(--nexus-text-primary);
}

.augur-region-population__form {
    display: flex;
    flex-direction: column;
    gap: 9px;
    height: 100%;
    padding: 12px 14px 14px;
    overflow-y: auto;
    background:
        radial-gradient(circle at 15% 0, var(--nexus-accent-surface), transparent 30%),
        var(--nexus-surface-base);
    scrollbar-color: var(--nexus-accent-primary) transparent;
    font-family: var(--nexus-body-font);
}

.augur-region-population__hero {
    padding: 11px 12px 10px;
    border: 1px solid var(--nexus-border-subtle);
    border-left: 3px solid var(--nexus-accent-primary);
    border-radius: 2px;
    background: var(--nexus-surface-raised);
}

.augur-region-population__hero > p {
    margin: 0 0 2px;
    color: var(--nexus-accent-bright);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.augur-region-population__hero h2 {
    margin: 0;
    border: 0;
    color: var(--nexus-text-primary);
    font-family: var(--nexus-heading-font);
    font-size: 22px;
}

.augur-region-population__hero > span {
    display: block;
    margin-top: 2px;
    color: var(--nexus-text-secondary);
    font-size: 11px;
    line-height: 1.35;
}

.augur-region-population__providers,
.augur-region-population__stats {
    display: flex;
    gap: 8px;
}

.augur-region-population__providers {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 8px;
    color: var(--nexus-text-muted);
    font-size: 9px;
}

.augur-region-population__providers span {
    padding: 3px 6px;
    border: 1px solid var(--region-control-border);
    border-radius: 2px;
    background: var(--region-control);
}

.augur-region-population__stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.augur-region-population__stats > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 7px 3px;
    border: 1px solid var(--nexus-border-subtle);
    border-radius: 2px;
    background: var(--nexus-surface-raised);
}

.augur-region-population__stats strong { color: var(--nexus-accent-bright); font-family: var(--nexus-heading-font); font-size: 16px; }
.augur-region-population__stats span { color: var(--nexus-text-muted); font-size: 9px; }

.augur-region-population__notice,
.augur-region-population__error {
    padding: 8px;
    border: 1px solid var(--nexus-border-strong);
    border-radius: 2px;
    background: var(--nexus-accent-surface);
}

.augur-region-population fieldset {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--nexus-border-subtle);
    border-radius: 2px;
    background: color-mix(in srgb, var(--nexus-surface-raised) 78%, transparent);
}

.augur-region-population fieldset legend {
    padding: 0 6px;
    color: var(--nexus-accent-bright);
    font-family: var(--nexus-heading-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.augur-region-population fieldset label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
}

.augur-region-population fieldset label > span,
.augur-region-population__seed > span:first-child {
    color: var(--nexus-text-secondary);
    font-size: 10px;
    font-weight: 700;
}

.augur-region-population fieldset label small {
    color: var(--nexus-text-muted);
    font-size: 9px;
    line-height: 1.25;
}

.augur-region-population__social-fabric {
    grid-column: 1 / -1;
}

.augur-region-population fieldset input,
.augur-region-population fieldset select,
.augur-region-population__seed input,
.augur-region-population__seed button {
    height: 29px;
    border: 1px solid var(--region-control-border);
    border-radius: 2px;
    background: var(--region-control);
    color: var(--nexus-text-primary);
}

.augur-region-population fieldset input:hover,
.augur-region-population fieldset select:hover,
.augur-region-population__seed input:hover,
.augur-region-population__seed button:hover {
    border-color: var(--nexus-border-strong);
    background: var(--region-control-hover);
}

.augur-region-population fieldset input:focus,
.augur-region-population fieldset select:focus,
.augur-region-population__seed input:focus {
    border-color: var(--nexus-accent-primary);
    box-shadow: var(--nexus-focus-ring);
    outline: none;
}

.augur-region-population select option {
    background: var(--nexus-surface-panel);
    color: var(--nexus-text-primary);
}

.augur-region-population__plan {
    padding: 9px;
    border: 1px solid var(--nexus-border-subtle);
    border-radius: 2px;
    background: var(--nexus-surface-raised);
}

.augur-region-population__plan header {
    display: flex;
    justify-content: space-between;
}

.augur-region-population__plan ul { margin: 7px 0; padding-left: 20px; }
.augur-region-population__plan .warning { color: var(--nexus-accent-bright); }

.augur-region-population__progress > div {
    height: 10px;
    overflow: hidden;
    border: 1px solid var(--nexus-border-subtle);
    border-radius: 2px;
    background: var(--region-control);
}

.augur-region-population__progress > div > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--nexus-accent-primary), var(--nexus-accent-bright));
    transition: width 160ms ease;
}

.augur-region-population__progress p { margin: 5px 0 0; text-align: center; }
.augur-region-population__error { color: #ff8d83; border-color: #9d443d; }

.augur-region-population footer {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.augur-region-population footer button {
    min-height: 32px;
    margin: 0;
    border: 1px solid var(--region-control-border);
    border-radius: 2px;
    background: var(--region-control);
    color: var(--nexus-text-secondary);
}

.augur-region-population footer button:hover {
    border-color: var(--nexus-accent-primary);
    background: var(--region-control-hover);
    color: var(--nexus-accent-bright);
}

.augur-region-population footer .primary {
    flex: 1;
    border-color: var(--nexus-border-strong);
    background: var(--nexus-accent-surface);
    color: var(--nexus-accent-bright);
}

.augur-region-population footer .danger {
    border-color: #8d443c;
    color: #ef9d93;
}

.augur-region-population__seed {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
}

.augur-region-population__seed > span:last-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    gap: 6px;
}

.augur-region-population__seed input,
.augur-region-population__seed button {
    margin: 0;
}

.augur-region-population fieldset.augur-region-population__shape {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 8px 10px 6px;
}

.augur-region-population__shape-intro {
    margin: 0;
    padding: 0 2px 7px;
    color: var(--nexus-text-muted);
    font-size: 11px;
    line-height: 1.3;
}

.augur-region-population fieldset .augur-region-population__slider-control {
    display: grid;
    gap: 3px;
    padding: 7px 2px 6px;
    border-top: 1px solid color-mix(in srgb, var(--nexus-border-subtle) 72%, transparent);
}

.augur-region-population__control-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.augur-region-population fieldset .augur-region-population__control-heading > span {
    color: var(--nexus-text-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.augur-region-population__control-heading output {
    color: var(--nexus-accent-bright);
    font-size: 12px;
    font-weight: 800;
    text-align: right;
}

.augur-region-population fieldset .augur-region-population__slider-control > small {
    min-height: 11px;
    font-size: 11px;
    line-height: 1.3;
}

.augur-region-population fieldset .augur-region-population__slider-control > input[type="range"] {
    width: 100%;
    height: 16px;
    margin: 2px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    accent-color: var(--nexus-accent-primary);
    cursor: pointer;
}

.augur-region-population fieldset .augur-region-population__slider-control > input[type="range"]:focus {
    border: 0;
    box-shadow: none;
}

.augur-region-population__range-ticks {
    display: flex;
    justify-content: space-between;
    min-width: 0;
    color: var(--nexus-text-muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.augur-region-population__range-ticks > span {
    flex: 1 1 0;
    min-width: 0;
    color: inherit;
    text-align: center;
    transition: color 120ms ease;
}

.augur-region-population__range-ticks > span:first-child { text-align: left; }
.augur-region-population__range-ticks > span:last-child { text-align: right; }
.augur-region-population__range-ticks > span.is-selected { color: var(--nexus-accent-bright); }

.augur-region-population__powers {
    display: grid;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid var(--nexus-border-subtle);
    border-radius: 2px;
    background: color-mix(in srgb, var(--nexus-surface-raised) 78%, transparent);
}

.augur-region-population__powers > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--nexus-accent-bright);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.augur-region-population__powers > header nav,
.augur-region-population__powers article > nav {
    display: flex;
    align-items: center;
    gap: 3px;
}

.augur-region-population__powers > header button {
    width: auto;
    min-height: 26px;
    margin: 0;
    padding: 2px 7px;
    font-size: 10px;
    text-transform: none;
}

.augur-region-population__powers > header small,
.augur-region-population__powers > p {
    margin: 0;
    color: var(--nexus-text-muted);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: none;
}

.augur-region-population__powers > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
}

.augur-region-population__powers article {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    min-width: 0;
    min-height: 48px;
    border: 1px solid color-mix(in srgb, var(--power-color) 45%, var(--nexus-border-subtle));
    border-radius: 2px;
    background: color-mix(in srgb, var(--power-color) 8%, var(--nexus-surface-deep));
}

.augur-region-population__powers.is-drop-target {
    border-color: var(--nexus-accent-bright);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nexus-accent-bright) 45%, transparent);
}

.augur-region-population__powers article > img,
.augur-region-population__powers article > i {
    width: 28px;
    height: 32px;
    margin-left: 3px;
    object-fit: contain;
    color: var(--power-color);
    line-height: 32px;
    text-align: center;
}

.augur-region-population__powers article > span {
    display: grid;
    min-width: 0;
}

.augur-region-population__powers article strong,
.augur-region-population__powers article small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.augur-region-population__powers article strong { font-size: 11px; }
.augur-region-population__powers article small { color: var(--nexus-text-muted); font-size: 10px; }
.augur-region-population__powers article .augur-region-population__power-disposition {
    color: var(--nexus-accent-bright);
    font-weight: 700;
}
.augur-region-population__powers article > nav { padding-right: 3px; }
.augur-region-population__powers article button { width: 24px; height: 28px; margin: 0; padding: 0; }

.augur-region-population__seed {
    padding: 8px 10px;
    border: 1px solid var(--nexus-border-subtle);
    border-radius: 2px;
    background: color-mix(in srgb, var(--nexus-surface-raised) 78%, transparent);
}

.augur-region-population__seed > span:last-of-type {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.augur-region-population__seed > span:first-child {
    font-size: 11px;
}

.augur-region-population__seed input {
    font-size: 12px;
}

.augur-region-population__seed button {
    width: auto;
    padding: 0 10px;
    color: var(--nexus-accent-bright);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.augur-region-population__seed small {
    color: var(--nexus-text-muted);
    font-size: 11px;
    line-height: 1.25;
}

.augur-region-population__timeline-header {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 9px 10px;
    border: 1px solid var(--nexus-border-subtle);
    border-radius: 2px;
    background: var(--nexus-surface-raised);
}

.augur-region-population__timeline-header > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.augur-region-population__timeline-header span {
    color: var(--nexus-text-muted);
    font-size: 12px;
}

.augur-region-population__elapsed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px solid var(--nexus-border-subtle);
}

.augur-region-population__elapsed span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.augur-region-population__elapsed i,
.augur-region-population__elapsed strong {
    color: var(--nexus-accent-bright);
}

.augur-region-population__elapsed strong {
    font-family: var(--nexus-heading-font);
    font-variant-numeric: tabular-nums;
}

.augur-region-population__development-counts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
    gap: 5px;
}

.augur-region-population__development-counts > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 2px;
    border: 1px solid var(--nexus-border-subtle);
    border-radius: 2px;
    background: var(--nexus-surface-raised);
}

.augur-region-population__development-counts strong {
    color: var(--nexus-accent-bright);
    font-family: var(--nexus-heading-font);
}

.augur-region-population__development-counts span {
    color: var(--nexus-text-muted);
    font-size: 9px;
    opacity: 0.78;
}

.augur-region-population__chronicle {
    display: flex;
    flex: 1;
    min-height: 180px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--nexus-border-subtle);
    border-radius: 2px;
    background: color-mix(in srgb, var(--nexus-surface-raised) 78%, transparent);
}

.augur-region-population__chronicle header {
    padding: 8px 10px;
    border-bottom: 1px solid var(--nexus-border-subtle);
    color: var(--nexus-accent-bright);
    font-family: var(--nexus-heading-font);
}

.augur-region-population__chronicle ol {
    flex: 1;
    margin: 0;
    padding: 8px 10px;
    overflow-y: auto;
    list-style: none;
}

.augur-region-population__chronicle li {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--nexus-border-subtle);
}

.augur-region-population__chronicle li > span { color: var(--nexus-accent-bright); font-size: 11px; }
.augur-region-population__chronicle li > p { margin: 0; line-height: 1.35; }
.augur-region-population__chronicle li.empty { display: block; color: var(--nexus-text-muted); }

.nexus-deletion-progress .window-content {
    padding: 14px;
}

.nexus-deletion-progress__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nexus-deletion-progress__status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.nexus-deletion-progress__track {
    height: 14px;
    overflow: hidden;
    border: 1px solid var(--color-border-light-2);
    border-radius: 7px;
    background: rgb(0 0 0 / 40%);
}

.nexus-deletion-progress__track > span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #8b322f, #d06a58);
    transition: width 160ms ease;
}

.nexus-deletion-progress__details {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--color-text-light-2);
    font-size: var(--font-size-12);
}

.nexus-deletion-progress__notice {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #d7b579;
    font-size: var(--font-size-12);
}
