:root {
    color-scheme: light;
    --ink: #17231f;
    --muted: #66736d;
    --line: #d9e1dc;
    --paper: #f5f8f5;
    --surface: #ffffff;
    --green: #1e694f;
    --green-dark: #164b39;
    --mint: #d9eee3;
    --coral: #ad4f37;
    --coral-pale: #fff0eb;
    font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    font-size: 16px;
    color: var(--ink);
    background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: linear-gradient(115deg, #f5f8f5 0%, #edf3ed 100%); }
button { font: inherit; }
.topbar { height: 68px; padding: 0 clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; color: #f7fbf8; background: var(--green-dark); }
.wordmark { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; font-size: 12px; font-weight: 750; letter-spacing: .11em; }
.wordmark-mark { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #a3cbb6; color: #c5ead4; font-family: Georgia, serif; font-size: 19px; font-weight: 400; }
.wordmark-light { color: #b9d9c8; font-weight: 500; }
.topbar-note, .eyebrow, .updated-label, .page-footer { font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.topbar-note { color: #b9d9c8; }
.account-actions { display: flex; align-items: center; gap: 14px; }
.notifications { position: relative; }
.notification-button { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid transparent; border-radius: 4px; color: #f7fbf8; background: transparent; cursor: pointer; }
.notification-button:hover, .notification-button[aria-expanded="true"] { border-color: #72917f; background: #205640; }
.notification-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notification-count { position: absolute; top: -3px; right: -4px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid var(--green-dark); border-radius: 999px; color: white; background: #c43f36; font-size: 10px; font-weight: 750; line-height: 1; }
.notification-menu { position: absolute; z-index: 5; top: calc(100% + 9px); right: 0; width: min(340px, calc(100vw - 32px)); padding: 14px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: white; box-shadow: 0 8px 24px #10251b26; }
.notification-menu h2 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; }
.notification-menu p { margin: 0; color: var(--muted); font-size: 12px; }
.notification-menu ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.notification-menu li a { display: grid; gap: 4px; padding: 9px; border-left: 3px solid var(--coral); color: var(--ink); background: #f7f9f7; text-decoration: none; }
.notification-menu li a:hover { background: #edf3ee; }
.notification-menu li span { color: var(--muted); font-size: 12px; }
.notification-menu li small { color: var(--green-dark); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.button-topbar { min-height: 34px; padding: 0 12px; border-color: #72917f; color: #f7fbf8; background: transparent; }
.button-topbar:hover { border-color: #c5ead4; background: #205640; }
.shell { width: min(1120px, calc(100% - 40px)); min-height: calc(100vh - 68px); margin: 0 auto; padding: clamp(36px, 7vh, 72px) 0 24px; display: flex; flex-direction: column; }
.login-shell { width: min(760px, calc(100% - 40px)); min-height: calc(100vh - 68px); margin: 0 auto; padding: clamp(36px, 7vh, 72px) 0 24px; display: flex; flex-direction: column; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 9px; }
.upload-world-button { display: inline-flex; align-items: center; cursor: pointer; }
.health-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: -18px 0 28px; border-block: 1px solid var(--line); }
.health-summary-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 11px 16px; color: var(--ink); text-decoration: none; }
.health-summary-item + .health-summary-item { border-left: 1px solid var(--line); }
.health-summary-item:hover { background: #edf3ee; }
.health-summary-label { color: var(--muted); font-size: 12px; font-weight: 650; }
.eyebrow { margin: 0 0 11px; color: var(--green); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-family: Georgia, "Times New Roman", serif; font-size: 42px; line-height: 1.08; font-weight: 500; }
.intro { margin: 0; color: var(--muted); }
.login-panel { padding: 0 0 34px; border-bottom: 1px solid var(--line); }
.login-panel > p:not(.eyebrow) { margin-bottom: 20px; color: var(--muted); line-height: 1.6; }
.login-panel .notice { margin-top: 22px; }
.login-panel .notice p { margin-bottom: 10px; }
.login-button { display: inline-flex; align-items: center; text-decoration: none; }
.login-error { padding: 12px 14px; border-left: 3px solid var(--coral); color: #743522; background: var(--coral-pale); }
.access-guidance, .auth-maintenance { padding: 25px 0; border-bottom: 1px solid var(--line); }
.backup-destination { padding: 25px 0; border-bottom: 1px solid var(--line); }
.backup-destination h2 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; }
.backup-destination-state, .backup-destination-guidance { color: var(--muted); font-size: 13px; line-height: 1.6; }
.backup-destination-error { color: #843c2a; }
.backup-destination-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.backup-destination-form label { color: var(--ink); font-size: 12px; font-weight: 650; }
.backup-destination-form input { flex: 1 1 280px; min-width: 0; min-height: 40px; padding: 7px 10px; border: 1px solid #9bb9a7; border-radius: 3px; font: 13px ui-monospace, Consolas, monospace; }
.backup-destination-form .config-save-status { flex-basis: 100%; }
.deployment-settings { padding: 25px 0; border-bottom: 1px solid var(--line); }
.deployment-settings h2 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; }
.environment-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 16px 0 0; }
.environment-settings > div { min-width: 0; padding: 10px 0; border-top: 1px solid var(--line); }
.environment-settings dt { margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 650; }
.environment-settings dd { margin: 0; overflow-wrap: anywhere; }
.environment-settings code { color: var(--ink); font-size: 12px; }
@media (max-width: 700px) { .environment-settings { grid-template-columns: minmax(0, 1fr); } }
.access-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.access-heading .eyebrow, .auth-maintenance .eyebrow { margin-bottom: 7px; }
.access-heading h2, .auth-maintenance h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; }
.endpoint { padding: 6px 9px; border: 1px solid var(--line); background: white; color: var(--green-dark); font: 12px ui-monospace, "SFMono-Regular", Consolas, monospace; overflow-wrap: anywhere; }
.access-guidance p, .auth-maintenance p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.access-guidance .access-warning { padding: 11px 13px; border-left: 3px solid var(--coral); color: #743522; background: var(--coral-pale); }
.firewall-command { margin: 14px 0; padding: 14px; overflow-x: auto; border: 1px solid #263b32; background: #18221e; color: #d7e7dc; font: 12px/1.6 ui-monospace, "SFMono-Regular", Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.resource-links { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.resource-links a { color: var(--green-dark); font-size: 13px; font-weight: 650; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.resource-links a:hover { color: var(--coral); }
.button { min-height: 42px; padding: 0 17px; border: 1px solid transparent; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 650; transition: background-color .15s ease, border-color .15s ease; }
.button:disabled { cursor: progress; opacity: .72; }
.button-primary { color: white; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { color: var(--green-dark); border-color: #9bb9a7; background: white; }
.button-secondary:hover { border-color: var(--green); background: #f0f7f2; }
.button-danger { color: #853b2a; border-color: #d8a090; background: #fff8f5; }
.button-danger:hover { border-color: var(--coral); background: var(--coral-pale); }
.confirm-dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); margin: auto; padding: 0; border: 1px solid var(--line); border-top: 3px solid var(--coral); border-radius: 4px; color: var(--ink); background: var(--surface); box-shadow: 0 14px 48px #10251b40; }
.confirm-dialog::backdrop { background: #10251b80; }
.confirm-dialog-content { padding: 22px; }
.confirm-dialog-content h2 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; overflow-wrap: anywhere; }
.confirm-dialog-content > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.confirm-dialog-actions { display: flex; justify-content: end; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.server-panel { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 0 0 36px; padding: 18px 0; border-block: 1px solid var(--line); }
.server-description .eyebrow { margin-bottom: 8px; }
.server-state-line { display: flex; align-items: center; gap: 12px; }
.state-indicator { padding: 4px 8px; border-radius: 3px; color: #59685f; background: #e5ebe6; font-size: 11px; font-weight: 750; text-transform: uppercase; }
.state-indicator[data-state="active"] { color: #14533a; background: #d9eee3; }
.state-indicator[data-state="failed"], .state-indicator[data-state="unavailable"] { color: #843c2a; background: #fae3da; }
.service-name { color: var(--muted); font-size: 12px; }
.server-message { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.server-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.os-update-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.os-update-panel h2 { margin: 0; font-size: 18px; }
.os-update-guidance { grid-column: 1 / -1; }
.os-update-package-list { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: 12px; }
.mod-template-manager { margin: 0 0 34px; padding: 22px 0; border-block: 1px solid var(--line); }
.mod-template-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mod-template-heading .eyebrow { margin-bottom: 6px; }
.mod-template-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; }
.mod-template-workbench { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 28px; }
.mod-catalog-search, .mod-template-create, .mod-template-update { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.mod-catalog-search label, .mod-template-create label, .mod-template-update label { display: grid; flex: 1 1 180px; gap: 4px; color: var(--ink); font-size: 11px; font-weight: 650; }
.mod-catalog-search input, .mod-template-create input, .mod-template-update select, .world-template-controls select { width: 100%; min-width: 0; min-height: 36px; padding: 6px 8px; border: 1px solid #9bb9a7; border-radius: 3px; color: var(--ink); background: white; font: inherit; }
.mod-template-selection, .mod-template-list, .mod-catalog-results, .world-template-list { display: grid; gap: 7px; margin: 8px 0; padding: 0; list-style: none; }
.mod-catalog-results { grid-column: 1; max-height: 260px; overflow: auto; }
.mod-catalog-results li, .mod-template-selection li, .mod-template-list li, .world-template-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-width: 0; color: var(--muted); font-size: 11px; }
.mod-catalog-results li > span, .mod-template-selection li > span, .mod-template-list li > span, .world-template-list li > span { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.mod-catalog-results select { min-height: 32px; max-width: 125px; border: 1px solid #9bb9a7; border-radius: 3px; background: white; }
.mod-catalog-results .button, .mod-template-selection .button, .mod-template-list .button, .world-template-list .button { min-height: 32px; padding: 0 8px; font-size: 10px; }
.mod-template-create, .mod-template-update { align-content: start; }
.mod-template-create label, .mod-template-update label { flex-basis: 100%; }
.world-template-controls { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.world-template-controls select { flex: 1 1 140px; }
.world-template-controls .button, .world-template-list .button { min-height: 32px; padding: 0 8px; font-size: 10px; }
@media (max-width: 700px) {
    .health-summary { grid-template-columns: minmax(0, 1fr); }
    .health-summary-item + .health-summary-item { border-top: 1px solid var(--line); border-left: 0; }
    .mod-template-workbench { grid-template-columns: minmax(0, 1fr); }
    .mod-catalog-results { grid-column: 1; }
    .mod-template-heading { align-items: start; flex-direction: column; }
}
.server-actions .button:disabled { opacity: .48; }
.secondary-section { margin-top: 28px; border-block: 1px solid var(--line); }
.secondary-section > summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 18px; padding: 14px 0; color: var(--green-dark); cursor: pointer; font-size: 15px; font-weight: 700; }
.secondary-section-note { color: var(--muted); font-size: 11px; font-weight: 500; }
.secondary-section-content { padding-bottom: 18px; }
.secondary-section-content > section:first-child { margin-top: 0; }
.world-section { border-top: 1px solid var(--line); }
.section-meta { min-height: 54px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 8px 0; }
.count { color: var(--muted); font-size: 13px; }
.count strong { color: var(--ink); font-size: 15px; }
.world-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.world-filters label { color: var(--muted); font-size: 11px; font-weight: 650; }
.world-filters input, .world-filters select { min-height: 36px; padding: 5px 8px; border: 1px solid #9bb9a7; border-radius: 3px; color: var(--ink); background: white; font: inherit; }
.world-filters input { width: min(220px, 38vw); }
.updated-label { color: var(--muted); font-size: 9px; }
.world-list { display: grid; gap: 12px; }
.world-card { min-width: 0; border: 1px solid var(--line); border-left: 3px solid var(--green); background: var(--surface); }
.world-card[hidden] { display: none; }
.world-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 17px; }
.world-card-title { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; min-width: 0; }
.world-card-title h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; overflow-wrap: anywhere; }
.world-primary-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 6px; }
.world-primary-actions .button { min-height: 36px; padding: 0 11px; }
.world-details { border-top: 1px solid #e8ede9; }
.world-details > summary { padding: 10px 17px; color: var(--green-dark); cursor: pointer; font-size: 12px; font-weight: 700; }
.world-detail-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .8fr); gap: 18px 28px; padding: 15px 17px 18px; border-top: 1px solid #e8ede9; }
.world-metadata { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; margin: 0; }
.world-metadata > div { min-width: 0; }
.world-metadata dt { margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.world-metadata dd { margin: 0; color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.world-tools { display: grid; align-content: start; gap: 10px; min-width: 0; }
.world-tools > .button { justify-self: start; }
.world-no-matches { margin: 0; padding: 18px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); font-size: 13px; }
.world-no-matches[hidden] { display: none; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { color: #637169; background: #edf3ee; }
th, td { padding: 16px 18px; border-bottom: 1px solid #e8ede9; font-size: 13px; white-space: nowrap; }
thead th { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr[hidden] { display: none; }
tbody th { font-weight: 650; }
tbody td { color: #536158; font-variant-numeric: tabular-nums; }
.world-dot { display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: #5c9a72; box-shadow: 0 0 0 3px var(--mint); }
.world-instance { min-width: 0; white-space: normal; }
.world-service-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 9px; }
.world-instance-controls { display: flex; flex-wrap: wrap; gap: 5px; }
.world-instance-controls .button { min-height: 34px; padding: 0 9px; font-size: 11px; }
.instance-not-configured { margin: 0 0 8px; color: var(--muted); }
.world-instance-config { margin-top: 10px; font-size: 12px; }
.world-instance-config summary { color: var(--green-dark); cursor: pointer; font-weight: 700; }
.world-config-form { display: grid; gap: 9px; min-width: 230px; margin-top: 12px; white-space: normal; }
.world-config-form label { display: grid; gap: 4px; color: var(--ink); font-size: 11px; font-weight: 650; }
.world-config-form label span { color: var(--muted); font-size: 10px; font-weight: 400; }
.world-config-form input:not([type="checkbox"]) { width: 100%; min-height: 34px; padding: 6px 8px; border: 1px solid #9bb9a7; border-radius: 3px; font: inherit; }
.world-config-form select { width: 100%; min-height: 34px; padding: 6px 8px; border: 1px solid #9bb9a7; border-radius: 3px; font: inherit; }
.world-config-form .setting-toggle { grid-template-columns: 16px 1fr; align-items: center; }
.world-config-form .setting-toggle input { grid-row: span 2; }
.world-config-form .setting-toggle span { grid-column: 2; }
.world-config-form .button { justify-self: start; min-height: 36px; }
.config-save-status { margin: 0; color: var(--muted); font-size: 11px; white-space: normal; }
.world-log-output { max-width: 340px; max-height: 180px; margin: 8px 0; padding: 10px; overflow: auto; color: #d7e7dc; background: #18221e; font: 10px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.world-backups { margin-top: 9px; }
.world-backup-controls { display: flex; flex-wrap: wrap; gap: 5px; }
.world-backup-controls .button, .world-backup-list .button { min-height: 32px; padding: 0 8px; font-size: 10px; }
.world-backup-list { display: grid; gap: 6px; margin: 8px 0; padding-left: 17px; color: var(--muted); font-size: 10px; }
.world-backup-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.world-mod-profile { margin-top: 9px; }
.world-mod-upload-form { display: flex; flex-wrap: wrap; align-items: end; gap: 7px; }
.world-mod-upload-form label { display: grid; gap: 4px; color: var(--ink); font-size: 10px; font-weight: 650; }
.world-mod-upload-form input { max-width: 100%; font: inherit; }
.world-mod-upload-form .button, .world-mod-list .button { min-height: 32px; padding: 0 8px; font-size: 10px; }
.world-mod-list { display: grid; gap: 6px; margin: 8px 0; padding-left: 17px; color: var(--muted); font-size: 10px; }
.world-mod-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.world-players { margin-top: 8px; color: var(--muted); font-size: 10px; white-space: normal; }
.world-players p { margin: 0 0 5px; line-height: 1.5; }
.world-players ul { display: grid; gap: 4px; margin: 0; padding-left: 16px; }
.deleted-worlds { padding: 26px 0; border-top: 1px solid var(--line); }
.deleted-worlds h2 { margin: 0 0 15px; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; }
.deleted-worlds-empty { color: var(--muted); font-size: 13px; }
.deleted-backup-links { white-space: normal; }
.deleted-backup-links a { display: inline-block; margin: 0 12px 5px 0; color: var(--green-dark); font-size: 12px; overflow-wrap: anywhere; }
.deleted-world-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 8px; }
.deleted-world-actions label { color: var(--muted); font-size: 11px; }
.deleted-world-actions select { min-height: 34px; max-width: 260px; border: 1px solid #9bb9a7; border-radius: 3px; background: white; font: 11px ui-monospace, Consolas, monospace; }
.deleted-world-actions .button { min-height: 34px; padding: 0 9px; font-size: 11px; }
.deleted-world-actions .config-save-status { flex-basis: 100%; }
.access-admin-panel, .access-request-panel { padding: 20px 0; border-bottom: 1px solid var(--line); }
.access-admin-panel h2, .access-request-panel h2 { margin: 0 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; }
.access-user-id { display: block; margin-top: 4px; color: var(--muted); font: 10px ui-monospace, Consolas, monospace; }
.admin-access-form { display: grid; gap: 9px; min-width: 240px; }
.admin-access-form fieldset { display: flex; flex-wrap: wrap; gap: 7px 12px; border: 1px solid var(--line); }
.admin-access-form legend, .admin-access-form label { color: var(--muted); font-size: 11px; }
.admin-access-form label { display: inline-flex; align-items: center; gap: 4px; }
.access-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.access-actions .button { min-height: 34px; padding: 0 9px; font-size: 11px; }
.access-request-panel > p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.empty-state { max-width: 580px; padding: 40px 0 48px; border-top: 1px solid var(--line); }
.empty-state h2, .notice h2 { margin-bottom: 9px; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; }
.empty-state p:not(.eyebrow), .notice p { max-width: 540px; margin-bottom: 22px; color: var(--muted); font-size: 14px; line-height: 1.65; }
code { padding: 2px 5px; color: var(--green-dark); background: #e8f0ea; font-size: .9em; }
.notice { display: flex; gap: 17px; max-width: 720px; padding: 22px; border: 1px solid #e8b6a8; background: var(--coral-pale); }
.notice-mark { display: grid; flex: 0 0 28px; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: white; background: var(--coral); font-weight: 700; }
.notice h2 { color: #743522; font-size: 22px; }
.notice p { margin-bottom: 17px; overflow-wrap: anywhere; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 56px; color: var(--muted); font-size: 9px; }
.logs-section { margin-top: 50px; }
.logs-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.logs-heading .eyebrow { margin-bottom: 7px; }
.logs-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 500; }
.logs-controls { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.logs-controls select { min-height: 40px; padding: 0 10px; border: 1px solid #9bb9a7; border-radius: 4px; color: var(--ink); background: white; font: inherit; }
.log-output { min-height: 190px; max-height: 420px; margin: 0; padding: 18px; overflow: auto; border: 1px solid #263b32; background: #18221e; color: #d7e7dc; font: 12px/1.65 ui-monospace, "SFMono-Regular", Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

:focus-visible { outline: 3px solid #164b39; outline-offset: 2px; }
.topbar :focus-visible { outline-color: #f7fbf8; }

@media (max-width: 700px) {
    .topbar { height: 60px; }
    .shell { min-height: calc(100vh - 60px); }
    .login-shell { min-height: calc(100vh - 60px); }
    .page-heading { align-items: start; margin-bottom: 27px; }
    .world-filters { flex: 1 1 100%; }
    .world-filters input { flex: 1 1 120px; width: auto; }
    .world-card-heading { align-items: start; flex-direction: column; }
    .world-primary-actions { justify-content: start; }
    .world-primary-actions .button { flex: 1 1 auto; }
    .world-detail-content { grid-template-columns: minmax(0, 1fr); }
    .world-metadata { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .server-panel { align-items: start; flex-direction: column; }
    .os-update-panel { grid-template-columns: minmax(0, 1fr); }
    .confirm-dialog-actions { flex-direction: column-reverse; }
    .confirm-dialog-actions .button { width: 100%; }
    .logs-heading { align-items: start; flex-direction: column; }
    .access-heading { align-items: start; flex-direction: column; }
    h1 { font-size: 36px; }
    .updated-label { max-width: 100%; text-align: left; line-height: 1.5; }
    th, td { padding: 14px 12px; }
    .page-footer { flex-direction: column; }
}

@media (max-width: 420px) {
    .topbar-note { display: none; }
    .shell { width: calc(100% - 32px); }
    .page-heading { gap: 12px; }
    .button-primary { padding-inline: 12px; }
}

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