:root {
    color-scheme: dark;
    --bg: #101214;
    --surface: #171a1d;
    --surface-2: #1d2125;
    --surface-3: #24292e;
    --border: #343a40;
    --border-strong: #4a525a;
    --text: #eef1f3;
    --muted: #9ba4ad;
    --faint: #69737c;
    --teal: #54b8aa;
    --teal-dark: #235f59;
    --blue: #75aaf0;
    --green: #63c88b;
    --amber: #dda94b;
    --red: #e17474;
    --red-dark: #713737;
    --sidebar-width: 228px;
    --topbar-height: 72px;
    --radius: 6px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

body {
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
    letter-spacing: 0;
}

button,
select {
    cursor: pointer;
}

button:disabled,
input:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    letter-spacing: 0;
}

h1 {
    margin-bottom: 0;
    font-size: 1.3rem;
    line-height: 1.2;
}

h2 {
    margin-bottom: 0;
    font-size: 1.65rem;
    line-height: 1.25;
}

h3 {
    margin-bottom: 0;
    font-size: 1rem;
}

.mono,
.terminal,
code {
    font-family: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    border-right: 1px solid var(--border);
    background: #131619;
}

.brand {
    display: flex;
    min-height: var(--topbar-height);
    align-items: center;
    gap: 11px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid var(--teal-dark);
    border-radius: var(--radius);
    background: #173936;
    color: #b9eee6;
    font-size: 0.8rem;
    font-weight: 800;
}

.brand strong,
.brand span {
    display: block;
}

.brand strong {
    font-size: 0.92rem;
}

.brand span {
    color: var(--muted);
    font-size: 0.72rem;
}

.primary-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    padding: 14px 10px;
}

.nav-item {
    width: 100%;
    min-height: 40px;
    padding: 8px 11px;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 3px;
    background: transparent;
    color: var(--muted);
    text-align: left;
}

.nav-item:hover {
    background: var(--surface-2);
    color: var(--text);
}

.nav-item.is-active {
    border-left-color: var(--teal);
    background: #1a2525;
    color: #c9f3ed;
    font-weight: 650;
}

.sidebar-footer {
    padding: 12px 10px 14px;
    border-top: 1px solid var(--border);
}

.auth-button {
    display: flex;
    width: 100%;
    min-height: 38px;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: left;
}

.auth-button:hover {
    border-color: var(--border-strong);
}

/* Everything that only has data behind the admin token stays out of the
   document until the token is accepted. This is presentation, not security:
   the API refuses these routes regardless. It exists so a visitor is not
   shown a console of panels that all read "Locked". */
body:not(.admin-unlocked) [data-admin] {
    display: none !important;
}

/* Locked, the sign-in button is the only thing left to do on the page, so
   it should not read as disabled chrome. */
body:not(.admin-unlocked) .auth-button {
    border-color: var(--teal-dark);
    color: var(--text);
}

.version-label {
    display: block;
    padding: 8px 10px 0;
    color: var(--faint);
    font-size: 0.7rem;
}

.topbar {
    position: fixed;
    inset: 0 0 auto var(--sidebar-width);
    z-index: 20;
    display: flex;
    height: var(--topbar-height);
    align-items: center;
    gap: 16px;
    padding: 10px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(16, 18, 20, 0.96);
    backdrop-filter: blur(12px);
}

.page-heading {
    min-width: 0;
    flex: 1;
}

.eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--faint);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.service-pills {
    display: flex;
    gap: 8px;
}

.service-pill {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 7px;
    padding: 4px 9px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--muted);
    font-size: 0.75rem;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--faint);
}

.status-ok,
.status-unlocked {
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(99, 200, 139, 0.12);
}

.status-warning {
    background: var(--amber);
}

.status-critical,
.status-locked,
.status-offline {
    background: var(--red);
}

.status-info {
    background: var(--blue);
}

.status-pending {
    background: var(--faint);
}

.workspace {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    padding: calc(var(--topbar-height) + 28px) clamp(18px, 3vw, 44px) 52px;
}

.view {
    display: none;
    width: 100%;
    max-width: 1460px;
    margin: 0 auto;
}

.view.is-active {
    display: block;
}

.section-heading {
    display: flex;
    min-height: 54px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.timestamp,
.result-count,
.connection-label,
.lock-note {
    color: var(--muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.host-metric-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.host-metric-grid .metric strong {
    font-size: clamp(1rem, 1.8vw, 1.45rem);
    overflow-wrap: anywhere;
}

.metric {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.metric span,
.metric strong {
    display: block;
}

.metric span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 650;
    text-transform: uppercase;
}

.metric strong {
    margin-top: 7px;
    color: var(--text);
    font-size: 1.9rem;
    font-variant-numeric: tabular-nums;
}

.overview-grid,
.operation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.panel-heading {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.host-summary-panel,
.host-panel {
    margin-bottom: 18px;
}

.host-summary-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
}

.host-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.host-errors {
    margin: 0;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    color: var(--amber);
    font-size: 0.82rem;
}

.host-journal-toolbar {
    display: grid;
    grid-template-columns: minmax(190px, 0.4fr) minmax(240px, 1fr);
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.host-journal-toolbar label {
    color: var(--muted);
    font-size: 0.72rem;
}

.host-journal-toolbar input,
.host-journal-toolbar select {
    margin-top: 5px;
}

.host-journal {
    height: min(48vh, 520px);
    min-height: 300px;
    border-radius: 0 0 var(--radius) var(--radius);
    color: #b8d3bd;
}

.resource-monitor-panel {
    overflow: hidden;
}

.resource-chart-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
}

.resource-chart-card {
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    background: #111518;
}

.resource-chart-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.resource-chart-heading span {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.resource-chart-heading strong {
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

.resource-chart-card small {
    display: block;
    color: var(--faint);
    font-size: 0.68rem;
}

.resource-chart {
    display: block;
    width: 100%;
    height: 112px;
    margin: 8px 0 5px;
    border: 1px solid #252b30;
    border-radius: 4px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.025), transparent);
}

.resource-chart line {
    stroke: #2b3237;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.resource-chart-line {
    fill: none;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.resource-chart-line.cpu {
    stroke: var(--green);
}

.resource-chart-line.memory {
    stroke: var(--amber);
}

.resource-chart-line.network {
    stroke: var(--blue);
}

.resource-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--border);
}

.resource-detail-grid > div {
    min-width: 0;
    padding: 12px 15px;
    border-right: 1px solid var(--border);
}

.resource-detail-grid > div:last-child {
    border-right: 0;
}

.resource-detail-grid span,
.resource-detail-grid strong {
    display: block;
    overflow-wrap: anywhere;
}

.resource-detail-grid span {
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
}

.resource-detail-grid strong {
    margin-top: 4px;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.status-list {
    margin: 0;
    padding: 5px 16px 10px;
}

.status-list div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid #282d31;
}

.status-list div:last-child {
    border-bottom: 0;
}

.status-list dt {
    color: var(--muted);
}

.status-list dd {
    margin: 0;
    text-align: right;
}

.health-counts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 18px 16px;
}

.health-counts div {
    min-width: 0;
    text-align: center;
}

.health-counts strong,
.health-counts span {
    display: block;
}

.health-counts strong {
    font-size: 1.7rem;
    font-variant-numeric: tabular-nums;
}

.health-counts span {
    color: var(--muted);
    font-size: 0.72rem;
}

.critical {
    color: var(--red);
}

.warning {
    color: var(--amber);
}

.muted {
    color: var(--blue);
}

.health-summary {
    min-height: 48px;
    margin: 0;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.82rem;
}

.quick-panel {
    margin-top: 18px;
}

.operator-summary-panel {
    margin-bottom: 18px;
}

.operator-summary-grid,
.operation-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.operator-summary-grid > div,
.operation-status-grid > div {
    min-width: 0;
    padding: 15px 16px;
    border-right: 1px solid var(--border);
}

.operator-summary-grid > div:last-child,
.operation-status-grid > div:last-child {
    border-right: 0;
}

.operator-summary-grid span,
.operator-summary-grid strong,
.operator-summary-grid small,
.operation-status-grid span,
.operation-status-grid strong {
    display: block;
    overflow-wrap: anywhere;
}

.operator-summary-grid span,
.operation-status-grid span,
.recent-saves > span {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.operator-summary-grid strong,
.operation-status-grid strong {
    margin-top: 5px;
    font-size: 1rem;
}

.operator-summary-grid small {
    margin-top: 3px;
    color: var(--faint);
    font-size: 0.72rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-action {
    min-height: 58px;
    padding: 15px 16px;
    border: 0;
    border-right: 1px solid var(--border);
    background: transparent;
    text-align: left;
}

.quick-action:last-child {
    border-right: 0;
}

.quick-action:hover {
    background: var(--surface-2);
}

.quick-action strong {
    display: block;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.toolbar-wrap {
    flex-wrap: wrap;
}

.segmented,
.subnav {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.segmented button,
.subnav button {
    min-height: 32px;
    padding: 5px 12px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--muted);
    font-size: 0.8rem;
}

.segmented button:hover,
.subnav button:hover {
    color: var(--text);
}

.segmented button.is-active,
.subnav button.is-active {
    background: var(--surface-3);
    color: var(--text);
    box-shadow: inset 0 0 0 1px var(--border-strong);
}

.subnav {
    margin-bottom: 16px;
}

.search-field {
    min-width: min(100%, 260px);
    flex: 1;
}

input,
select,
textarea {
    width: 100%;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #111416;
}

textarea {
    min-height: 108px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #64707a;
}

select {
    width: auto;
    min-width: 120px;
}

.button,
.text-button,
.icon-button {
    border: 0;
    background: transparent;
}

.button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 650;
    white-space: nowrap;
    text-decoration: none;
}

.button.compact {
    min-height: 32px;
    padding: 4px 10px;
    font-size: 0.78rem;
}

.button-primary {
    border-color: #347a72;
    background: var(--teal-dark);
    color: #e3fffa;
}

.button-primary:hover {
    background: #2b716a;
}

.button-secondary {
    border-color: var(--border);
    background: var(--surface-2);
    color: var(--text);
}

.button-secondary:hover {
    border-color: var(--border-strong);
    background: var(--surface-3);
}

.button-danger {
    border-color: #8c4949;
    background: var(--red-dark);
    color: #ffe9e9;
}

.button-danger:hover {
    background: #874040;
}

.text-button {
    padding: 3px 0;
    color: var(--blue);
    font-size: 0.78rem;
}

.text-button:hover {
    color: #a8c9f5;
}

.icon-button {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted);
}

.icon-button:hover {
    color: var(--text);
}

.menu-button {
    display: none;
    align-content: center;
    gap: 4px;
}

.menu-button span {
    display: block;
    width: 16px;
    height: 1px;
    background: currentColor;
}

.table-frame {
    width: 100%;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.table-frame.borderless {
    border: 0;
    border-radius: 0 0 var(--radius) var(--radius);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

th,
td {
    padding: 10px 12px;
    border-bottom: 1px solid #2b3035;
    text-align: left;
    vertical-align: top;
}

th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #1d2125;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 750;
    text-transform: uppercase;
    white-space: nowrap;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr[data-record-id] {
    cursor: pointer;
}

tbody tr[data-record-id]:hover {
    background: #1c2225;
}

td.numeric {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.empty-state {
    padding: 28px 16px !important;
    color: var(--muted);
    text-align: center;
}

.empty-state.large {
    min-height: 180px;
    display: grid;
    place-items: center;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.loading-row::after {
    content: "Loading...";
}

.pagination {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    color: var(--muted);
    font-size: 0.78rem;
}

.health-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.health-strip > div {
    display: grid;
    grid-template-columns: auto auto 1fr;
    min-height: 54px;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border-right: 1px solid var(--border);
}

.health-strip > div:last-child {
    border-right: 0;
}

.health-strip span:last-child {
    color: var(--muted);
    font-size: 0.75rem;
}

.severity-badge,
.tag {
    display: inline-block;
    padding: 2px 7px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.68rem;
    white-space: nowrap;
}

.severity-critical {
    border-color: #7f4444;
    background: #3b2525;
    color: #ffaaaa;
}

.severity-warning {
    border-color: #765d32;
    background: #342c1f;
    color: #f1c66e;
}

.severity-info {
    border-color: #3c5d82;
    background: #202c3a;
    color: #a9cdf7;
}

.player-profile {
    margin-top: 18px;
}

.player-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--border);
}

.player-summary div {
    min-width: 0;
    padding: 12px;
    background: var(--surface);
}

.player-summary span,
.player-summary strong {
    display: block;
    overflow-wrap: anywhere;
}

.player-summary span {
    color: var(--muted);
    font-size: 0.68rem;
    text-transform: uppercase;
}

.player-summary strong {
    margin-top: 4px;
}

.player-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
    gap: 18px;
}

.profile-section {
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.profile-section h3 {
    padding: 11px 13px;
    border-bottom: 1px solid var(--border);
}

.definition-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 8px 13px 13px;
    gap: 0 16px;
}

.definition-grid div {
    display: flex;
    min-width: 0;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #282d31;
}

.definition-grid dt {
    color: var(--muted);
}

.definition-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.description-block {
    margin: 0;
    padding: 13px;
    color: #c7cdd2;
    white-space: pre-wrap;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 13px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

label {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 650;
}

label input,
label select,
label textarea {
    display: block;
    margin-top: 5px;
    color: var(--text);
    font-weight: 400;
}

.gear-slot {
    margin-bottom: 18px;
    border-top: 1px solid var(--border);
}

.gear-slot > h3 {
    padding: 13px 0 9px;
    color: var(--teal);
    text-transform: capitalize;
}

.gear-item {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 90px 90px minmax(160px, 0.7fr);
    gap: 12px;
    padding: 11px 12px;
    border-bottom: 1px solid #2b3035;
    background: var(--surface);
}

.gear-item:first-of-type {
    border-radius: var(--radius) var(--radius) 0 0;
}

.gear-item:last-child {
    border-bottom: 0;
    border-radius: 0 0 var(--radius) var(--radius);
}

.gear-item small {
    color: var(--muted);
}

/* Best in each slot: slot, item, level, score on one line. */
.gear-loadout .gear-item {
    grid-template-columns: 130px minmax(180px, 1fr) 70px 80px;
}

.terminal-shell {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #080a0b;
}

.terminal-toolbar {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.line-count {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
}

.line-count input {
    width: 82px;
    min-height: 32px;
    margin: 0;
}

.terminal {
    width: 100%;
    height: min(65vh, 680px);
    min-height: 420px;
    margin: 0;
    overflow: auto;
    padding: 14px;
    background: #080a0b;
    color: #d7e0db;
    font-size: 0.82rem;
    line-height: 1.35;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.log-terminal {
    color: #b8d3bd;
}

#game-terminal .ansi-bold { font-weight: 700; }
#game-terminal .ansi-dim { opacity: 0.7; }
#game-terminal .ansi-italic { font-style: italic; }
#game-terminal .ansi-underline { text-decoration: underline; }
#game-terminal .ansi-fg-black { --ansi-fg: #7b858a; color: #7b858a; }
#game-terminal .ansi-fg-red { --ansi-fg: #ef7d7d; color: #ef7d7d; }
#game-terminal .ansi-fg-green { --ansi-fg: #79d89d; color: #79d89d; }
#game-terminal .ansi-fg-yellow { --ansi-fg: #e8c66d; color: #e8c66d; }
#game-terminal .ansi-fg-blue { --ansi-fg: #80adea; color: #80adea; }
#game-terminal .ansi-fg-magenta { --ansi-fg: #cd94dc; color: #cd94dc; }
#game-terminal .ansi-fg-cyan { --ansi-fg: #6fd0ce; color: #6fd0ce; }
#game-terminal .ansi-fg-white { --ansi-fg: #e7ebed; color: #e7ebed; }
#game-terminal .ansi-fg-bright-black { --ansi-fg: #9ca5a9; color: #9ca5a9; }
#game-terminal .ansi-fg-bright-red { --ansi-fg: #ff9b9b; color: #ff9b9b; }
#game-terminal .ansi-fg-bright-green { --ansi-fg: #9aebb6; color: #9aebb6; }
#game-terminal .ansi-fg-bright-yellow { --ansi-fg: #f4db8b; color: #f4db8b; }
#game-terminal .ansi-fg-bright-blue { --ansi-fg: #a6c8f4; color: #a6c8f4; }
#game-terminal .ansi-fg-bright-magenta { --ansi-fg: #e5b0f0; color: #e5b0f0; }
#game-terminal .ansi-fg-bright-cyan { --ansi-fg: #9be5e2; color: #9be5e2; }
#game-terminal .ansi-fg-bright-white { --ansi-fg: #ffffff; color: #ffffff; }
#game-terminal .ansi-bg-black { --ansi-bg: #141719; background: #141719; }
#game-terminal .ansi-bg-red { --ansi-bg: #6a3030; background: #6a3030; }
#game-terminal .ansi-bg-green { --ansi-bg: #28583b; background: #28583b; }
#game-terminal .ansi-bg-yellow { --ansi-bg: #665329; background: #665329; }
#game-terminal .ansi-bg-blue { --ansi-bg: #304b70; background: #304b70; }
#game-terminal .ansi-bg-magenta { --ansi-bg: #583663; background: #583663; }
#game-terminal .ansi-bg-cyan { --ansi-bg: #285a5a; background: #285a5a; }
#game-terminal .ansi-bg-white { --ansi-bg: #b8bec1; background: #b8bec1; }
#game-terminal .ansi-bg-bright-black { --ansi-bg: #9ca5a9; background: #9ca5a9; }
#game-terminal .ansi-bg-bright-red { --ansi-bg: #ff9b9b; background: #ff9b9b; }
#game-terminal .ansi-bg-bright-green { --ansi-bg: #9aebb6; background: #9aebb6; }
#game-terminal .ansi-bg-bright-yellow { --ansi-bg: #f4db8b; background: #f4db8b; }
#game-terminal .ansi-bg-bright-blue { --ansi-bg: #a6c8f4; background: #a6c8f4; }
#game-terminal .ansi-bg-bright-magenta { --ansi-bg: #e5b0f0; background: #e5b0f0; }
#game-terminal .ansi-bg-bright-cyan { --ansi-bg: #9be5e2; background: #9be5e2; }
#game-terminal .ansi-bg-bright-white { --ansi-bg: #ffffff; background: #ffffff; }
/* An exact 256-colour or true colour, from the span's inline property. */
#game-terminal .ansi-fg-rgb { color: var(--ansi-fg); }
#game-terminal .ansi-bg-rgb { background: var(--ansi-bg); }
/* Reverse video swaps the two colours; an invert filter gave each
   colour's complement instead. Unset, they are the terminal's own. */
#game-terminal .ansi-inverse { color: var(--ansi-bg, var(--terminal-bg, #080a0b)); background: var(--ansi-fg, #d7e0db); }

.terminal-input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.terminal-input-row input {
    margin: 0;
    font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

.operation-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.operation-status-panel {
    margin-bottom: 18px;
}

.operation-status-grid {
    border-bottom: 1px solid var(--border);
}

.status-text-ok {
    color: var(--green);
}

.status-text-critical {
    color: var(--red);
}

.recent-saves {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 16px;
}

.recent-saves > span {
    flex: 0 0 auto;
}

.recent-save-list {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-wrap: wrap;
    gap: 4px 16px;
}

.recent-save-item {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 3px 0;
    border: 0;
    background: transparent;
    color: var(--text);
}

.recent-save-item:hover strong {
    color: var(--blue);
}

.recent-save-item span {
    color: var(--faint);
    font-size: 0.7rem;
}

.form-panel {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 0 16px 16px;
}

.form-panel .panel-heading {
    margin: 0 -16px;
}

.form-panel .button {
    align-self: flex-start;
}

.backup-panel {
    margin-top: 18px;
}

.panel-heading-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-subtitle {
    display: block;
    margin-top: 2px;
    color: var(--faint);
    font-size: 0.7rem;
}

.activity-panel {
    margin-top: 18px;
}

.activity-toolbar {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(220px, 1fr);
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.activity-toolbar select {
    width: 100%;
}

.activity-feed {
    max-height: 460px;
    overflow-y: auto;
}

.activity-row {
    display: grid;
    grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
    gap: 14px;
    padding: 10px 16px;
    border-bottom: 1px solid #282d31;
}

.activity-row:last-child {
    border-bottom: 0;
}

.activity-row-meta {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.activity-row time {
    color: var(--faint);
    font-size: 0.7rem;
    white-space: nowrap;
}

.activity-row p {
    margin: 0;
    overflow-wrap: anywhere;
    color: #d7dce0;
    font-size: 0.82rem;
}

.activity-badge {
    color: var(--blue);
    font-size: 0.68rem;
    font-weight: 750;
    text-transform: uppercase;
}

.activity-badge.wizinfo {
    color: var(--amber);
}

.dialog {
    width: min(920px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.dialog::backdrop {
    background: rgba(3, 5, 6, 0.78);
}

.compact-dialog {
    width: min(470px, calc(100vw - 28px));
}

.dialog form {
    padding: 0 18px 18px;
}

.dialog-heading {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
}

.dialog form .dialog-heading {
    margin: 0 -18px 18px;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 18px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.checkbox-row input {
    width: 16px;
    min-height: 16px;
    margin: 0;
}

.form-error {
    min-height: 20px;
    margin: 10px 0 0;
    color: var(--red);
    font-size: 0.78rem;
}

.detail-dialog {
    width: min(1000px, calc(100vw - 28px));
}

.detail-body {
    max-height: calc(100vh - 110px);
    overflow: auto;
    padding: 18px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.detail-section {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.detail-section.full {
    grid-column: 1 / -1;
}

.detail-section h3 {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}

.detail-section .definition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.map-dialog {
    width: min(1240px, calc(100vw - 28px));
}

.map-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.74rem;
}

.map-canvas {
    position: relative;
    width: 100%;
    height: min(72vh, 760px);
    overflow: hidden;
    cursor: grab;
    background-color: #0b0e10;
    background-image: linear-gradient(#1c2226 1px, transparent 1px), linear-gradient(90deg, #1c2226 1px, transparent 1px);
    background-size: 32px 32px;
}

.map-canvas.is-dragging {
    cursor: grabbing;
}

#area-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform-origin: 0 0;
    user-select: none;
}

.map-room rect {
    fill: #1b2527;
    stroke: #4f8983;
    stroke-width: 1.5;
}

.map-room.has-mob rect {
    fill: #322223;
    stroke: #9b5b5b;
}

.map-room.has-object rect {
    fill: #20293a;
    stroke: #587fb4;
}

.map-room:hover rect {
    stroke: #e8c676;
    stroke-width: 2.5;
}

.map-room text {
    pointer-events: none;
    fill: #d8dfe2;
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 9px;
}

.map-room .map-vnum {
    fill: #8a969e;
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 7px;
}

.map-exit {
    stroke: #5e6971;
    stroke-width: 2;
}

.toast-region {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    display: flex;
    width: min(380px, calc(100vw - 36px));
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    padding: 11px 13px;
    border: 1px solid var(--border-strong);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
    background: #202429;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
    color: var(--text);
    font-size: 0.8rem;
    pointer-events: auto;
}

.toast.success {
    border-left-color: var(--green);
}

.toast.error {
    border-left-color: var(--red);
}

.toast.warning {
    border-left-color: var(--amber);
}

.sidebar-scrim {
    display: none;
}

@media (max-width: 1000px) {
    :root {
        --sidebar-width: 210px;
    }

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

    .host-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .host-two-column {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .resource-chart-grid {
        grid-template-columns: 1fr;
    }

    .operator-summary-grid,
    .operation-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .operator-summary-grid > div:nth-child(2),
    .operation-status-grid > div:nth-child(2) {
        border-right: 0;
    }

    .operator-summary-grid > div:nth-child(-n + 2),
    .operation-status-grid > div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border);
    }

    .quick-actions,
    .health-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-action:nth-child(2),
    .health-strip > div:nth-child(2) {
        border-right: 0;
    }

    .quick-action:nth-child(-n + 2),
    .health-strip > div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border);
    }

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

    .player-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-section.full {
        grid-column: auto;
    }

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

    .gear-item {
        grid-template-columns: minmax(200px, 1fr) 80px 80px;
    }

    .gear-item > :last-child {
        grid-column: 1 / -1;
    }

    .gear-loadout .gear-item {
        grid-template-columns: 110px minmax(0, 1fr) 60px 70px;
    }

    .gear-loadout .gear-item > :last-child {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    .sidebar {
        width: min(82vw, 290px);
        transform: translateX(-102%);
        transition: transform 180ms ease;
    }

    body.nav-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-scrim {
        position: fixed;
        inset: 0;
        z-index: 25;
        background: rgba(0, 0, 0, 0.62);
    }

    body.nav-open .sidebar-scrim {
        display: block;
    }

    .topbar {
        left: 0;
        gap: 10px;
        padding: 8px 12px;
    }

    .menu-button {
        display: grid;
    }

    .service-pill {
        padding: 4px 7px;
        font-size: 0;
    }

    .service-pill .status-dot {
        margin: 0;
    }

    #refresh-view {
        display: none;
    }

    .workspace {
        margin-left: 0;
        padding: calc(var(--topbar-height) + 20px) 14px 40px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .overview-grid,
    .operation-grid,
    .filter-grid,
    .host-summary-list,
    .host-journal-toolbar {
        grid-template-columns: 1fr;
    }

    .host-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resource-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resource-detail-grid > div:nth-child(2) {
        border-right: 0;
    }

    .resource-detail-grid > div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border);
    }

    .operator-summary-grid,
    .operation-status-grid,
    .activity-toolbar,
    .activity-row {
        grid-template-columns: 1fr;
    }

    .operator-summary-grid > div,
    .operation-status-grid > div,
    .operator-summary-grid > div:nth-child(2),
    .operation-status-grid > div:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .operator-summary-grid > div:last-child,
    .operation-status-grid > div:last-child {
        border-bottom: 0;
    }

    .recent-saves {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .activity-row {
        gap: 5px;
    }

    .health-strip {
        grid-template-columns: 1fr;
    }

    .health-strip > div {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .health-strip > div:last-child {
        border-bottom: 0;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .quick-action {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .quick-action:last-child {
        border-bottom: 0;
    }

    .toolbar {
        align-items: stretch;
    }

    .toolbar-wrap {
        flex-direction: column;
    }

    .segmented,
    .subnav {
        width: 100%;
    }

    .segmented button,
    .subnav button {
        flex: 1;
    }

    .search-field,
    select {
        width: 100%;
        min-width: 0;
    }

    .player-search {
        display: grid;
        grid-template-columns: 1fr;
    }

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

    .definition-grid,
    .detail-section .definition-grid {
        grid-template-columns: 1fr;
    }

    .terminal {
        min-height: 360px;
        height: 62vh;
    }

    .terminal-toolbar {
        flex-wrap: wrap;
    }

    .line-count {
        width: 100%;
        margin-left: 0;
    }

    .line-count input {
        flex: 1;
    }

    .gear-item {
        grid-template-columns: 1fr 1fr;
    }

    .gear-item > :first-child,
    .gear-item > :last-child {
        grid-column: 1 / -1;
    }

    .gear-loadout .gear-item {
        grid-template-columns: 1fr 1fr;
    }

    .gear-loadout .gear-item > :last-child {
        grid-column: auto;
    }

    .map-meta {
        flex-direction: column;
        gap: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Directions view: the same route cards the player client shows. */
.routes-intro { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.routes-results { display: flex; flex-direction: column; gap: 10px; }
.route-card { border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); padding: 12px 14px; }
.route-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.route-head h3 { margin: 0; font-size: 14px; }
.route-badge { flex: none; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--muted); }
.route-verified, .route-computed { color: var(--teal); border-color: var(--teal-dark); }
.route-repaired { color: var(--amber); border-color: var(--amber); }
.route-drifted { color: var(--red); border-color: var(--red-dark); }
.route-dest { margin: 4px 0 8px; font-size: 12px; color: var(--muted); }
.route-commands { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.5; color: var(--text); background: var(--terminal-bg); border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; white-space: pre-wrap; word-break: break-word; }
.route-tags { display: inline-flex; gap: 6px; flex: none; }
.route-kind { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 999px; border: 1px dashed var(--border-strong); color: var(--faint); }
.route-steps, .route-note { margin: 8px 0 0; font-size: 11px; line-height: 1.6; color: var(--faint); }
.route-note { color: var(--muted); }

/* Routes: the Mudlet separator toggle, and copying a set of directions.
   Mudlet reads a single semicolon as literal text, so directions pasted
   from here ran as one long nonsense command until the toggle existed. */
.routes-mudlet {
    /* The label's text is wrapped in one span on purpose. Left bare it
       is three flex items -- text, <code>, text -- so the gap opens up
       inside the sentence and each piece wraps on its own. */
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin: 0.5rem 0 0.25rem;
    font-size: 0.85rem;
    opacity: 0.85;
    cursor: pointer;
}

/* In the dashboard this label sits in a four-column filter grid, where
   a 159px cell folded it onto two lines. It wants the whole row. */
.filter-grid > .routes-mudlet {
    grid-column: 1 / -1;
    margin: 0;
}

.routes-mudlet > span {
    /* One flex item, so the sentence wraps as a sentence. */
    min-width: 0;
}

.routes-mudlet input[type="checkbox"] {
    /* The filter grid sizes form controls to 38px, which is right for a
       text box and three times too tall for a tick. */
    width: auto;
    height: auto;
    /* The global `input, select, textarea' rule sets min-height 38px and
       padding for text boxes; a tick inherits both and ends up three
       times too tall, which pushed the label onto two lines. */
    min-height: 0;
    padding: 0;
    flex: 0 0 auto;
    align-self: center;
    margin: 0;
    cursor: pointer;
}

.routes-mudlet code {
    padding: 0 0.25rem;
    border-radius: 3px;
    background: rgba(127, 127, 127, 0.22);
    font-size: 0.95em;
}

.route-command-row {
    display: flex;
    align-items: stretch;
    gap: 0.4rem;
}

.route-command-row > .route-commands {
    flex: 1 1 auto;
    min-width: 0;
}

.route-copy {
    flex: 0 0 auto;
    align-self: stretch;
    padding: 0 0.7rem;
    border: 1px solid rgba(127, 127, 127, 0.45);
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
}

.route-copy:hover {
    border-color: currentColor;
}

.route-copy.is-copied {
    border-color: #4caf50;
    color: #4caf50;
}

/* The Mudlet recommendation at the top of the Overview. Built from the
   theme tokens, so the dragon theme recolours it like everything else. */
.mudlet-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    margin-bottom: 22px;
    padding: 24px 26px;
    border: 1px solid var(--border-strong);
    border-radius: calc(var(--radius) * 2);
    background:
        radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--teal) 16%, transparent) 0%, transparent 55%),
        linear-gradient(160deg, var(--surface) 0%, var(--bg) 100%);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.mudlet-card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--teal), transparent);
    opacity: 0.8;
}

.mudlet-card-art {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: color-mix(in srgb, var(--teal) 10%, var(--bg));
    color: var(--teal);
}

.mudlet-card h2 {
    margin: 2px 0 8px;
    font-size: 1.45rem;
    line-height: 1.25;
}

.mudlet-card p {
    max-width: 68ch;
    margin: 0 0 14px;
    color: var(--muted);
}

.mudlet-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.mudlet-features li {
    padding: 3px 11px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: color-mix(in srgb, var(--teal) 8%, transparent);
    color: var(--text);
    font-size: 0.85rem;
}

.mudlet-steps {
    display: grid;
    gap: 7px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.mudlet-steps li {
    position: relative;
    min-height: 24px;
    padding-left: 34px;
    color: var(--text);
    line-height: 24px;
}

.mudlet-steps li span {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--teal);
    color: var(--bg);
    font-size: 0.8rem;
    font-weight: 700;
}

.mudlet-steps code {
    white-space: nowrap;
    padding: 1px 7px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
}

.mudlet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mudlet-download {
    padding-inline: 20px;
    font-weight: 700;
}

@media (max-width: 760px) {
    .mudlet-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 18px 16px;
    }

    .mudlet-card-art {
        width: 64px;
        height: 64px;
    }

    .mudlet-actions .button {
        flex: 1 1 100%;
        text-align: center;
    }
}

/* Changes: one entry a row, dated in a narrow column like the game's own list. */
.changes-results { display: flex; flex-direction: column; gap: 4px; }
.changes-month h3 { margin: 22px 0 6px; font-size: 16px; }
.change-entry { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.change-date { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.change-body { min-width: 0; }
.change-body p { margin: 0 0 6px; line-height: 1.6; max-width: 70ch; }
.change-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
.change-staff { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; padding: 2px 6px; border-radius: 4px; border: 1px solid var(--border-strong); color: var(--amber); }
@media (max-width: 560px) { .change-entry { grid-template-columns: 1fr; } }
