/* Classic control-panel chrome: navy, brass, paper, and tactile controls. */
:root {
    color-scheme: light;
    --ink: #2d3943;
    --muted: #65727c;
    --line: #bcc5cb;
    --gold: #d5ad56;
    --navy: #243c50;
    --green: #397749;
    --paper: #f7f6f2;
    --chrome: linear-gradient(#fafbfc, #e2e6e9);
    --panel-shadow: inset 0 1px 0 #fff, 0 1px 3px #27384518;
    font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    margin: 0;
    color: var(--ink);
    background: #e7e9e7;
    background-image: repeating-linear-gradient(0deg, #ffffff25 0, #ffffff25 1px, transparent 1px, transparent 3px);
    font-size: 13px;
}
button, input, select, textarea { font: inherit; }
button, .button {
    border: 1px solid #a8b2ba;
    border-radius: 4px;
    background: var(--chrome);
    color: #364755;
    padding: 9px 14px;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
    text-shadow: 0 1px #fff;
    box-shadow: inset 0 1px 0 #fff, 0 1px 2px #172e4120;
    transition: border-color .12s, box-shadow .12s;
}
button:hover, .button:hover { background: linear-gradient(#fff, #dbe4eb); border-color: #768c9d; }
button:active, .button:active { background: linear-gradient(#cdd4d9, #e4e9ed); box-shadow: inset 0 1px 3px #1d304433; }
button:disabled, input:disabled, select:disabled { opacity: .55; cursor: default; }
button.primary, .button.primary {
    background: linear-gradient(#f2d894 0%, #dfbd69 49%, #d7ad52 50%, #c99c41 100%);
    border-color: #a17b32;
    color: #493718;
    text-shadow: 0 1px #ffe7ae;
    box-shadow: inset 0 1px 0 #fff0c5, 0 1px 2px #41341f30;
}
button.primary:hover, .button.primary:hover { background: linear-gradient(#f9e4ad, #ddb55f); border-color: #806021; }
button.primary:active, .button.primary:active { background: linear-gradient(#c69a43, #e3c276); box-shadow: inset 0 1px 3px #654b2b55; }
button.quiet { padding: 6px 9px; background: linear-gradient(#ffffff70, #dae0e470); box-shadow: inset 0 1px #ffffff80; }
button.danger, .error { color: #a33930; }
input, select, textarea {
    width: 100%;
    min-width: 0;
    background: linear-gradient(#f2f4f5, #fff 9px);
    border: 1px solid #aeb9c1;
    border-radius: 3px;
    padding: 10px 11px;
    color: var(--ink);
    box-shadow: inset 0 1px 3px #1a30421c, 0 1px #fff;
}
input::placeholder, textarea::placeholder { color: #74808a; opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: #65869f; outline: 2px solid #79a6c54d; outline-offset: 1px; }
button:focus-visible, a:focus-visible, pre:focus-visible, .upload-button:focus-within { outline: 3px solid #367aab; outline-offset: 3px; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 700; }
h1 { font-size: 28px; letter-spacing: -.7px; margin: 8px 0 10px; font-weight: 700; text-shadow: 0 1px #fff; }
h2 { font-size: 15px; font-weight: 700; margin: 0 0 17px; }
h3 { font-size: 14px; margin: 0 0 9px; }
p { line-height: 1.65; margin: 8px 0; }
a { color: #2f638b; text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.4px; color: #657784; margin: 0; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 26px; font-weight: 700; letter-spacing: -1px; color: #fff5d8; text-shadow: 0 2px 2px #0009; }
.brand-icon {
    color: #ffe4a1;
    background: linear-gradient(#516777, #263f53 49%, #1b3042 50%, #304c60);
    border: 1px solid #142635;
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    font-size: 31px;
    box-shadow: inset 0 1px #899aa7, 0 1px 0 #5b6f7f;
}
.edition { display: block; font-size: 9px; letter-spacing: 1.6px; color: #bbcad4; margin: 11px 0 0 51px; text-shadow: 0 1px #102330; }
.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 20px;
    background-color: #22394b;
    background-image: repeating-linear-gradient(135deg, #ffffff03 0, #ffffff03 1px, transparent 1px, transparent 5px), radial-gradient(ellipse at 50% 25%, #4b6578, #1b2e3f 75%);
}
.auth-card { background: var(--paper); width: min(100%, 450px); border: 1px solid #101f2b; border-radius: 7px; overflow: hidden; box-shadow: 0 0 0 5px #ffffff08, 0 18px 45px #08172488; }
.auth-masthead { padding: 25px 32px 22px; background: linear-gradient(#3d586d, #243c50); border-bottom: 3px solid var(--gold); box-shadow: inset 0 1px #708699; }
.auth-content { padding: 29px 32px 27px; background: linear-gradient(#fff9, transparent 130px); }
.auth-card form { display: grid; gap: 18px; margin-top: 24px; }
.auth-card h1 { font-size: 28px; }
.auth-footer { font-size: 11px; color: #68727a; text-align: center; margin: 23px 0 0; border-top: 1px solid #d7dbdc; padding-top: 17px; box-shadow: inset 0 1px #fff; }
.auth-status { display: flex; justify-content: space-between; padding: 11px 17px; border-top: 1px solid #bfc8ce; background: var(--chrome); font-size: 9px; letter-spacing: 1px; color: #667783; text-shadow: 0 1px #fff; }
.error:empty { display: none; }
.layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 224px;
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    padding: 0 14px 22px;
    color: #e0e8ee;
    border-right: 1px solid #112535;
    box-shadow: inset -1px 0 #506476, 2px 0 5px #182f4426;
    background: repeating-linear-gradient(0deg, #ffffff02 0, #ffffff02 1px, transparent 1px, transparent 3px), linear-gradient(90deg, #2b4357, #21384c);
}
.sidebar-masthead { margin: 0 -14px; padding: 25px 20px 22px; background: linear-gradient(#455f73, #263e52); border-bottom: 3px solid #bd9548; box-shadow: inset 0 1px #6c8191, 0 1px 5px #10253580; }
.sidebar-masthead .edition { font-size: 8px; letter-spacing: 1.3px; }
.sidebar-caption { font-size: 9px; color: #aec0cd; text-shadow: 0 1px #112838; letter-spacing: 1.4px; margin: 29px 10px 13px; }
.sidebar nav { display: grid; gap: 6px; }
.sidebar nav button { background: linear-gradient(#ffffff05, #0000000a); border: 1px solid #172e40; color: #c1cfda; text-align: left; padding: 12px; font-size: 12px; text-shadow: 0 1px #102637; box-shadow: inset 0 1px #ffffff0d, 0 1px #ffffff08; }
.sidebar nav button span { display: inline-block; width: 28px; font-size: 18px; vertical-align: middle; color: #96acbc; }
.sidebar nav button:hover { background: linear-gradient(#405c71, #2d475c); color: #fff; border-color: #142a3b; }
.sidebar nav button.active { background: linear-gradient(#edd08a, #d4aa52); color: #44351c; border-color: #172b3b; text-shadow: 0 1px #fae4b0; box-shadow: inset 0 1px #fff0bd, 0 2px 3px #0c1e2d50; }
.sidebar nav button.active span { color: #695022; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid #142b3d; box-shadow: inset 0 1px #ffffff12; padding: 20px 7px 0; font-size: 10px; color: #bfccd6; }
.sidebar-bottom small { display: block; color: #94aabc; margin: 10px 0 0 16px; }
.dot { display: inline-block; width: 7px; height: 7px; background: radial-gradient(circle at 35% 25%, #c9efa2, #7aad5d 55%, #476c39); border: 1px solid #263f30; border-radius: 50%; margin-right: 7px; box-shadow: 0 0 4px #89ba6366; }
.workspace { margin-left: 224px; width: calc(100% - 224px); min-width: 0; display: flex; flex-direction: column; }
.topbar { min-height: 79px; background: linear-gradient(#fbfcfd, #dfe5e9); border-bottom: 1px solid #aab6be; padding: 14px 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; box-shadow: inset 0 1px #fff, 0 1px 4px #20364618; }
.server-picker { color: #5b6d7b; font-size: 9px; letter-spacing: 1.2px; gap: 5px; min-width: 205px; max-width: 360px; }
.server-picker select { padding: 6px 9px; font-size: 12px; font-weight: 700; letter-spacing: 0; }
.account { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: 8px; font-size: 11px; }
#account-name { font-weight: 700; overflow-wrap: anywhere; }
.content { width: 100%; max-width: 1500px; margin: 0 auto; padding: 31px 34px; flex: 1; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid #bfc8cb; box-shadow: 0 1px #fff9; }
.page-heading .muted { margin-bottom: 0; font-size: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat { background: linear-gradient(#fff, #f2f3f1); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; padding: 0 19px 17px; box-shadow: var(--panel-shadow); }
.stat-label { font-size: 10px; font-weight: 700; color: #566b7b; text-shadow: 0 1px #fff; margin: 0 -19px 16px; padding: 10px 19px; background: var(--chrome); border-bottom: 1px solid #cbd2d7; }
.stat-value { font-family: "Trebuchet MS", Tahoma, sans-serif; font-size: 29px; letter-spacing: -1px; font-weight: 700; color: #304a5d; text-shadow: 0 1px #fff; overflow-wrap: anywhere; }
.stat-note { font-size: 10px; color: #66737d; margin-top: 7px; line-height: 1.5; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 25px 0 15px; padding: 11px 14px; border: 1px solid #b9c3ca; border-radius: 4px; background: var(--chrome); box-shadow: var(--panel-shadow); }
.section-heading h2 { margin: 0; color: #3b5264; text-shadow: 0 1px #fff; }
.section-heading .muted { font-size: 10px; }
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 275px), 1fr)); gap: 17px; }
.server-card { background: var(--paper); border: 1px solid #b1bdc5; padding: 0 20px 20px; border-radius: 5px; overflow: hidden; box-shadow: var(--panel-shadow); }
.card-header { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin: 0 -20px 19px; padding: 13px 18px; border-bottom: 1px solid #b6c1c9; background: var(--chrome); box-shadow: inset 0 1px #fff; }
.server-icon { width: 35px; height: 35px; background: linear-gradient(#638199, #34536c); border: 1px solid #304c61; border-radius: 4px; display: grid; place-items: center; color: #e3edf3; text-shadow: 0 1px #182f42; font-size: 22px; box-shadow: inset 0 1px #90a7b9, 0 1px #fff; }
.card-meta { display: flex; flex-wrap: wrap; gap: 22px; font-size: 9px; margin: 18px 0; padding: 14px 0; border-top: 1px solid #d1d6d8; border-bottom: 1px solid #d1d6d8; color: #667782; box-shadow: inset 0 1px #fff, 0 1px #fff; }
.card-meta strong { display: block; color: #354f62; margin-top: 7px; font-size: 12px; font-weight: 700; }
.server-card h3 { font-size: 16px; margin: 0; color: #304c60; overflow-wrap: anywhere; }
.server-card button { width: 100%; font-size: 11px; }
.badge { display: inline-block; background: linear-gradient(#fafbfc, #dfe5e9); border: 1px solid #b4c0c8; color: #546674; border-radius: 3px; font-size: 10px; padding: 4px 7px; font-weight: 700; text-transform: capitalize; white-space: nowrap; box-shadow: inset 0 1px #ffffffa0; text-shadow: 0 1px #fff8; }
.badge.running { background: linear-gradient(#e6f2de, #cbdcbd); border-color: #9eb68d; color: #365d2f; }
.badge.stopping { background: linear-gradient(#fff0c4, #ecdaa6); border-color: #c4ab65; color: #725b23; }
.info-panel { border: 1px solid #c9bb91; border-left: 4px solid #b7954b; background: linear-gradient(#fcf8e9, #f0ead6); border-radius: 4px; padding: 21px; margin: 25px 0; display: flex; gap: 18px; color: #655d48; font-size: 12px; line-height: 1.7; box-shadow: inset 0 1px #fff, 0 1px 2px #6f593015; }
.info-panel h3 { color: #665026; }
.info-panel p { margin: 0; max-width: 820px; }
.info-icon { font-size: 26px; color: #9c7a32; text-shadow: 0 1px #fff; }
.info-panel.compact { margin: 0 0 22px; padding: 13px 16px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 20px; flex-wrap: wrap; }
.tabs { max-width: 100%; overflow-x: auto; display: flex; align-items: end; border-bottom: 1px solid #9fadb7; gap: 4px; padding: 3px 2px 0; }
.tabs button { background: linear-gradient(#eef2f4, #d3dce2); border: 1px solid #afbdc7; border-bottom: 0; border-radius: 4px 4px 0 0; padding: 11px 14px; font-size: 11px; font-weight: 700; color: #546d80; box-shadow: inset 0 1px #fff; }
.tabs button.active { color: #4d3b1b; background: linear-gradient(#f1d898, #e4c275); border-color: #b49555; }
.actions { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.actions button { font-size: 11px; }
.panel { background: var(--paper); border: 1px solid #b4bfc7; border-radius: 4px; padding: 22px; box-shadow: var(--panel-shadow); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-heading h2 { margin: 0; }
.console-layout { display: grid; grid-template-columns: minmax(0, 1fr) 245px; gap: 18px; }
.console-panel { padding: 0; overflow: hidden; }
.console-panel .panel-heading { padding: 13px 18px; background: var(--chrome); border-bottom: 1px solid #91a0ac; color: #3b5365; text-shadow: 0 1px #fff; }
#console-output { margin: 0; background: #13212b; background-image: linear-gradient(#0003, transparent 22px); color: #c3d4ba; font: 12px/1.85 "Lucida Console", Consolas, monospace; padding: 19px; height: 430px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: inset 0 1px 7px #0008; }
#command-form { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--chrome); border-top: 1px solid #a9b4bd; }
#command-form span { color: #547086; font-size: 23px; }
#command-form input { font-family: Consolas, monospace; font-size: 12px; }
#command-form button { padding: 8px 13px; font-size: 11px; }
.players-panel { height: fit-content; padding: 0 17px 17px; overflow: hidden; }
.players-panel h2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -17px 14px; padding: 14px 17px; background: var(--chrome); border-bottom: 1px solid #c0c9cf; color: #3b5365; text-shadow: 0 1px #fff; }
.player { font-size: 12px; border-top: 1px solid #d0d7db; padding: 12px 0; overflow-wrap: anywhere; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #d0d7db; padding: 15px 0; }
.row:first-child { border-top: 0; padding-top: 0; }
.row:last-child { padding-bottom: 0; }
.row-title { font-weight: 700; overflow-wrap: anywhere; }
.row-title .badge { margin-top: 9px; }
.snapshot-path { display: block; color: var(--muted); margin: 6px 0; overflow-wrap: anywhere; }
.snapshot-info { overflow-wrap: anywhere; }
.row small { display: block; color: var(--muted); margin-top: 5px; }
.row button { font-size: 11px; padding: 8px 11px; }
.tab-panel > h2 { margin-top: 24px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; max-width: 850px; margin-top: 25px; }
.checkbox { flex-direction: row; align-items: center; gap: 9px; font-weight: 400; }
.checkbox input { width: auto; accent-color: #53768f; }
.form-actions { grid-column: 1 / -1; }
.search-bar { display: flex; gap: 10px; margin-bottom: 15px; }
.search-bar input:first-child { flex: 2; }
.search-bar select, .search-bar input:not(:first-child) { flex: 1; min-width: 130px; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 17px; margin-top: 23px; }
.mod-card { border: 1px solid var(--line); border-top: 3px solid #688397; background: linear-gradient(#fff, var(--paper)); padding: 21px; border-radius: 4px; display: flex; flex-direction: column; box-shadow: var(--panel-shadow); }
.mod-card p { color: var(--muted); font-size: 12px; flex: 1; overflow-wrap: anywhere; }
.mod-card .mod-meta { font-size: 10px; color: #687a87; margin: 12px 0 18px; }
.mod-card .actions { justify-content: space-between; }
.mod-card a { font-size: 11px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 25px; font-size: 12px; }
.table-scroll { padding: 0; overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 14px 20px; background: var(--chrome); font-size: 10px; color: #536d80; font-weight: 700; text-shadow: 0 1px #fff; text-transform: uppercase; letter-spacing: .8px; border-bottom: 1px solid #b5c0c8; }
td { padding: 14px 20px; font-size: 12px; border-bottom: 1px solid #d8dfe2; }
tbody tr:nth-child(even) { background: #e9eef080; }
tbody tr:hover { background: #e3ecf1; }
tr:last-child td { border-bottom: 0; }
td button { font-size: 11px; padding: 7px 9px; }
td:first-child { max-width: 400px; overflow-wrap: anywhere; }
.file-location { display: flex; align-items: center; gap: 12px; min-width: 0; overflow-wrap: anywhere; }
.file-location code { font-size: 12px; background: #f6f7f5; border: 1px solid #bcc7ce; box-shadow: inset 0 1px 3px #233f511a; padding: 9px 12px; border-radius: 3px; }
.upload-button { font-size: 11px; }
.file-name { border: 0; background: transparent; box-shadow: none; padding: 0; text-align: left; color: #326487; white-space: normal; overflow-wrap: anywhere; }
.file-name:hover { background: transparent; text-decoration: underline; }
.empty { padding: 32px 15px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.7; }
.server-grid > .empty { grid-column: 1 / -1; border: 1px dashed #aebbc4; border-radius: 4px; background: #f9faf680; }
footer { padding: 14px 34px; border-top: 1px solid #afb9c1; background: var(--chrome); box-shadow: inset 0 1px #fff; color: #657987; font-size: 10px; display: flex; align-items: center; justify-content: space-between; gap: 15px; text-shadow: 0 1px #fff; }
.footer-brand { color: #465e71; font-weight: 700; }
.footer-version { font-weight: 400; color: #73828d; margin-left: 8px; }
#notice { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 20; max-width: min(90vw, 700px); padding: 13px 20px; background: linear-gradient(#49677c, #2d4a60); border: 1px solid #142c3e; color: #fff; border-radius: 4px; box-shadow: inset 0 1px #8096a6, 0 5px 20px #0003; font-size: 12px; }
dialog { color: var(--ink); border: 1px solid #2a4154; padding: 0; border-radius: 5px; background: var(--paper); box-shadow: 0 0 0 4px #ffffff20, 0 20px 70px #0b203969; width: min(92vw, 600px); max-height: 90vh; overflow: auto; }
dialog.wide { width: min(94vw, 980px); }
dialog::backdrop { background: #14273999; }
#modal-form { padding: 0 24px 23px; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 -24px 23px; padding: 11px 17px; background: linear-gradient(#466278, #2b465c); border-bottom: 1px solid #142c3e; box-shadow: inset 0 1px #7b90a0; color: #fff; text-shadow: 0 1px #152e40; }
.dialog-heading h2 { margin: 0; }
.dialog-heading button { font-size: 21px; line-height: 1; color: #e5eef4; background: linear-gradient(#627b8e, #395569); border-color: #1f394c; text-shadow: 0 1px #142d40; box-shadow: inset 0 1px #8a9eab; }
#modal-body { display: grid; gap: 18px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 23px; padding-top: 18px; border-top: 1px solid #cdd3d7; box-shadow: inset 0 1px #fff; }
.editor { font: 12px/1.65 Consolas, monospace; min-height: 400px; resize: vertical; tab-size: 4; }
/* Locally bundled Font Awesome Classic Solid symbols inherit the theme colors. */
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon { width: 1em; height: 1em; display: inline-block; flex-shrink: 0; fill: currentColor; vertical-align: -.125em; }
button > .icon, .upload-button > .icon { margin-right: 4px; }
button > .icon:last-child { margin-right: 0; }
.upload-button { flex-direction: row; align-items: center; gap: 4px; }
.brand-icon .icon { width: 24px; height: 24px; filter: drop-shadow(0 1px 1px #0006); }
.sidebar nav button .nav-icon { display: inline-flex; align-items: center; justify-content: start; width: 28px; height: 18px; }
.nav-icon .icon { width: 17px; height: 17px; filter: drop-shadow(0 1px #10263780); }
.sidebar nav button.active .icon { filter: drop-shadow(0 1px #fae4b080); }
.server-icon .icon { width: 21px; height: 21px; filter: drop-shadow(0 1px #182f42); }
.info-icon .icon { width: 24px; height: 24px; }
.command-icon .icon { width: 17px; height: 17px; }
.file-name .icon, .file-entry .icon { width: 14px; height: 14px; margin-right: 5px; }
.file-name .icon { color: #8d743f; }
.dialog-heading button .icon { width: 13px; height: 13px; }
.footer-brand > .icon { margin-right: 4px; }
.theme-toggle { font-size: 11px; }
.auth-status { align-items: center; gap: 12px; flex-wrap: wrap; }
.auth-status .theme-toggle { margin-left: auto; font-size: 10px; letter-spacing: 0; }

/* Dark is the initial HTML theme, before JavaScript restores a saved preference. */
:root[data-theme="dark"] {
    color-scheme: dark;
    --ink: #d9e1e7;
    --muted: #a7b5c1;
    --line: #435565;
    --paper: #263746;
    --chrome: linear-gradient(#3d5060, #2b3d4c);
    --panel-shadow: inset 0 1px 0 #ffffff0c, 0 2px 4px #07131e38;
}
[data-theme="dark"] body { background-color: #1c2b37; background-image: repeating-linear-gradient(0deg, #ffffff02 0, #ffffff02 1px, transparent 1px, transparent 3px); }
[data-theme="dark"] button, [data-theme="dark"] .button { border-color: #536778; color: #dce5ec; text-shadow: 0 1px #101e2b; box-shadow: inset 0 1px #ffffff16, 0 1px 2px #07142055; }
[data-theme="dark"] button:hover, [data-theme="dark"] .button:hover { background: linear-gradient(#4b6579, #354d60); border-color: #8299aa; }
[data-theme="dark"] button:active, [data-theme="dark"] .button:active { background: linear-gradient(#223544, #3d5364); box-shadow: inset 0 1px 3px #0b172a80; }
[data-theme="dark"] button.primary, [data-theme="dark"] .button.primary { color: #493718; border-color: #a17b32; text-shadow: 0 1px #ffe7ae; box-shadow: inset 0 1px #fff0c5, 0 1px 2px #0006; }
[data-theme="dark"] button.primary:hover, [data-theme="dark"] .button.primary:hover { background: linear-gradient(#f9e4ad, #ddb55f); border-color: #e1c580; }
[data-theme="dark"] button.primary:active, [data-theme="dark"] .button.primary:active { background: linear-gradient(#c69a43, #e3c276); }
[data-theme="dark"] button.quiet { background: linear-gradient(#41576770, #263b4b70); }
[data-theme="dark"] button.danger, [data-theme="dark"] .error { color: #ffa398; }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea { background: linear-gradient(#172630, #1d2d3a 9px); border-color: #566b7b; box-shadow: inset 0 1px 3px #050f1b80, 0 1px #ffffff0a; }
[data-theme="dark"] input::placeholder, [data-theme="dark"] textarea::placeholder { color: #9aacba; }
[data-theme="dark"] input:focus, [data-theme="dark"] select:focus, [data-theme="dark"] textarea:focus { border-color: #b89d62; outline-color: #d5ad5655; }
[data-theme="dark"] button:focus-visible, [data-theme="dark"] a:focus-visible, [data-theme="dark"] pre:focus-visible { outline-color: #e5c071; }
[data-theme="dark"] h1 { text-shadow: 0 1px #071823; }
[data-theme="dark"] a { color: #a8cde8; }
[data-theme="dark"] .eyebrow { color: #a6bbca; }
[data-theme="dark"] .auth-card { border-color: #0b1823; }
[data-theme="dark"] .auth-content { background: linear-gradient(#304555, #263746 130px); }
[data-theme="dark"] .auth-footer { color: #aabbc7; border-color: #465b6a; box-shadow: inset 0 1px #ffffff05; }
[data-theme="dark"] .auth-status { border-color: #152836; color: #bac8d2; text-shadow: 0 1px #162938; }
[data-theme="dark"] .topbar { background: var(--chrome); border-color: #102332; box-shadow: inset 0 1px #ffffff0d, 0 2px 5px #08131f40; }
[data-theme="dark"] .server-picker { color: #bccdd8; }
[data-theme="dark"] .page-heading { border-color: #465865; box-shadow: 0 1px #ffffff05; }
[data-theme="dark"] .stat { background: linear-gradient(#2b3e4d, #243644); }
[data-theme="dark"] .stat-label { color: #c1d0db; border-color: #182c3b; text-shadow: 0 1px #172a38; }
[data-theme="dark"] .stat-value { color: #eed08b; text-shadow: 0 1px #162635; }
[data-theme="dark"] .stat-note { color: #a6b8c5; }
[data-theme="dark"] .section-heading { border-color: #4b6070; }
[data-theme="dark"] .section-heading h2, [data-theme="dark"] .panel-heading h2 { color: #d6e1ea; text-shadow: 0 1px #132938; }
[data-theme="dark"] .server-card { border-color: #495f70; }
[data-theme="dark"] .card-header { border-color: #152b3b; box-shadow: inset 0 1px #ffffff12; }
[data-theme="dark"] .card-meta { color: #a9bbc9; border-color: #465c6c; box-shadow: inset 0 1px #ffffff04, 0 1px #ffffff04; }
[data-theme="dark"] .card-meta strong { color: #dce5ec; }
[data-theme="dark"] .server-card h3 { color: #e0e9f0; }
[data-theme="dark"] .badge { background: linear-gradient(#455b6c, #324857); border-color: #657b8c; color: #d3e1eb; box-shadow: inset 0 1px #ffffff12; text-shadow: 0 1px #142938; }
[data-theme="dark"] .badge.running { background: linear-gradient(#486346, #304d31); border-color: #6d9462; color: #d2eac6; }
[data-theme="dark"] .badge.stopping { background: linear-gradient(#6f5d34, #584a2e); border-color: #a38a52; color: #f4dfa7; }
[data-theme="dark"] .info-panel { background: linear-gradient(#3f3e31, #34372f); border-color: #716646; border-left-color: #c3a258; color: #d8d0b4; box-shadow: inset 0 1px #ffffff09; }
[data-theme="dark"] .info-panel h3, [data-theme="dark"] .info-icon { color: #e6c477; text-shadow: 0 1px #242617; }
[data-theme="dark"] .tabs { border-color: #60798b; }
[data-theme="dark"] .tabs button { background: linear-gradient(#405769, #2e4354); border-color: #576f81; color: #c4d3df; box-shadow: inset 0 1px #ffffff16; }
[data-theme="dark"] .tabs button.active { color: #4d3b1b; background: linear-gradient(#f1d898, #e4c275); border-color: #b49555; text-shadow: 0 1px #ffe7ae; }
[data-theme="dark"] .panel { border-color: #4d6272; }
[data-theme="dark"] .console-panel .panel-heading { border-color: #122837; text-shadow: 0 1px #132938; }
[data-theme="dark"] #console-output { background-color: #0d1923; color: #cbdcbd; }
[data-theme="dark"] #command-form { border-color: #516779; }
[data-theme="dark"] #command-form span { color: #b5c9d8; }
[data-theme="dark"] .players-panel h2 { border-color: #172d3e; color: #dce6ed; text-shadow: 0 1px #162c3c; }
[data-theme="dark"] .player, [data-theme="dark"] .row { border-color: #465c6c; }
[data-theme="dark"] .mod-card { background: linear-gradient(#2c4152, var(--paper)); border-top-color: #8096a6; }
[data-theme="dark"] .mod-card .mod-meta { color: #a6bac8; }
[data-theme="dark"] th { color: #c2d4e0; text-shadow: 0 1px #152837; border-color: #192e3c; }
[data-theme="dark"] td { border-color: #465b6a; }
[data-theme="dark"] tbody tr:nth-child(even) { background: #1a2c3a70; }
[data-theme="dark"] tbody tr:hover { background: #3a5264; }
[data-theme="dark"] .file-location code { background: #1d2d3a; border-color: #536b7d; box-shadow: inset 0 1px 3px #0b1b2770; }
[data-theme="dark"] .file-name { color: #b2d4eb; background: transparent; box-shadow: none; border: 0; }
[data-theme="dark"] .file-name:hover { background: transparent; }
[data-theme="dark"] .file-name .icon { color: #d8b975; }
[data-theme="dark"] .server-grid > .empty { background: #263b4a90; border-color: #617786; }
[data-theme="dark"] footer { border-color: #142837; box-shadow: inset 0 1px #ffffff0b; color: #a8bccb; text-shadow: 0 1px #102433; }
[data-theme="dark"] .footer-brand { color: #cedee9; }
[data-theme="dark"] .footer-version { color: #a0b4c3; }
[data-theme="dark"] .dialog-actions { border-color: #4f6372; box-shadow: inset 0 1px #ffffff08; }
[data-theme="dark"] dialog::backdrop { background: #071422bb; }

@media (max-width: 1150px) {
    .content { padding: 26px; }
    .topbar { padding: 14px 26px; }
    .console-layout { grid-template-columns: minmax(0, 1fr); }
    .stats { gap: 12px; }
    .stat { padding: 0 15px 15px; }
    .stat-label { margin: 0 -15px 14px; padding: 10px 15px; }
    .search-bar { flex-wrap: wrap; }
}
@media (max-width: 760px) {
    .layout { display: block; }
    .sidebar { position: static; width: 100%; padding: 0 14px 13px; border-right: 0; border-bottom: 1px solid #112a3c; }
    .sidebar-masthead { padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom-width: 2px; }
    .sidebar .brand { font-size: 23px; }
    .sidebar .edition { margin: 0; font-size: 8px; text-align: right; max-width: 100px; line-height: 1.7; }
    .sidebar-caption, .sidebar-bottom { display: none; }
    .sidebar nav { display: flex; overflow-x: auto; margin-top: 13px; gap: 5px; padding-bottom: 2px; }
    .sidebar nav button { padding: 10px 7px; font-size: 10px; flex-shrink: 0; }
    .sidebar nav button .nav-icon { width: 17px; height: 13px; }
    .nav-icon .icon { width: 13px; height: 13px; }
    .workspace { margin: 0; width: 100%; }
    .topbar { padding: 14px 17px; align-items: start; gap: 14px; }
    .server-picker { min-width: 130px; max-width: 45%; }
    .content { padding: 24px 17px; }
    h1 { font-size: 25px; }
    .page-heading { align-items: start; gap: 14px; }
    .page-heading > button { font-size: 11px; padding: 9px 11px; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-value { font-size: 26px; }
    .tabs button { padding: 11px; }
    .row { align-items: start; flex-wrap: wrap; }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .search-bar input { min-width: 100%; }
    .search-bar select { min-width: 55%; }
    footer { padding: 14px 17px; }
    footer > span:last-child { display: none; }
    .info-panel { padding: 17px; gap: 12px; }
    .account { font-size: 10px; gap: 5px; }
    .account button { font-size: 10px; }
    th, td { padding: 12px; }
}
@media (max-width: 420px) {
    .auth-content { padding: 25px 22px; }
    .auth-masthead { padding: 23px 22px; }
    .page-heading { flex-wrap: wrap; }
    .section-heading { align-items: start; flex-wrap: wrap; }
    .stat-note { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
