/* CS16 Panel v5 — Servers Core */

:root {
    --v5-bg: #070a0f;
    --v5-panel: #0d131d;
    --v5-panel-2: #111925;
    --v5-line: #202c3d;
    --v5-line-soft: #182231;
    --v5-text: #edf2f8;
    --v5-muted: #8190a5;
    --v5-red: #e52943;
    --v5-red-soft: rgba(229, 41, 67, .12);
    --v5-green: #39d98a;
    --v5-yellow: #f4c95d;
    --v5-blue: #5d9cff;
}

#serversCorePage,
#serverDetailPage {
    min-height: calc(100vh - 82px);
}

.v5-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.v5-page-head h2,
.v5-detail-title h2 {
    margin: 0;
    color: var(--v5-text);
    font-size: 22px;
}

.v5-page-head p,
.v5-detail-title p {
    margin: 5px 0 0;
    color: var(--v5-muted);
    font-size: 12px;
}

.v5-head-actions,
.v5-power-actions,
.v5-toolbar-actions,
.v5-file-actions,
.v5-backup-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.v5-button {
    min-height: 38px;
    padding: 9px 13px;
    border: 1px solid #2a384d;
    border-radius: 8px;
    background: #121a26;
    color: #cbd5e1;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: .15s ease;
}

.v5-button:hover:not(:disabled) {
    border-color: #465b77;
    color: #fff;
    transform: translateY(-1px);
}

.v5-button:disabled {
    opacity: .38;
    cursor: not-allowed;
}

.v5-button.primary {
    background: linear-gradient(180deg, #ed2e49, #c81734);
    border-color: #ef4058;
    color: #fff;
    box-shadow: 0 10px 26px rgba(229, 41, 67, .18);
}

.v5-button.success {
    color: var(--v5-green);
    border-color: rgba(57, 217, 138, .35);
}

.v5-button.warning {
    color: var(--v5-yellow);
    border-color: rgba(244, 201, 93, .35);
}

.v5-button.danger {
    color: #ff7b8e;
    border-color: rgba(229, 41, 67, .45);
    background: rgba(229, 41, 67, .08);
}

.v5-button.small {
    min-height: 31px;
    padding: 6px 9px;
    font-size: 11px;
}

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

.v5-summary-card {
    padding: 16px;
    border: 1px solid var(--v5-line);
    border-radius: 11px;
    background: linear-gradient(145deg, #101824, #0b111a);
}

.v5-summary-card span {
    display: block;
    color: var(--v5-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .45px;
}

.v5-summary-card strong {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-size: 24px;
}

.v5-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px;
    margin-bottom: 12px;
    border: 1px solid var(--v5-line);
    border-radius: 11px;
    background: var(--v5-panel);
}

.v5-search {
    width: min(420px, 100%);
    position: relative;
}

.v5-search input,
.v5-select,
.v5-input,
.v5-textarea {
    width: 100%;
    min-height: 40px;
    padding: 10px 12px;
    border: 1px solid #26354a;
    border-radius: 8px;
    outline: none;
    background: #080e16;
    color: #f8fafc;
}

.v5-search input:focus,
.v5-select:focus,
.v5-input:focus,
.v5-textarea:focus {
    border-color: #e52943;
    box-shadow: 0 0 0 3px rgba(229, 41, 67, .1);
}

.v5-select {
    width: auto;
    min-width: 150px;
}

.v5-server-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--v5-line);
    border-radius: 12px;
    background: var(--v5-panel);
}

.v5-server-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1080px;
}

.v5-server-table th {
    padding: 12px 14px;
    border-bottom: 1px solid var(--v5-line);
    color: #72839a;
    font-size: 10px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .6px;
    background: #0a1018;
}

.v5-server-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--v5-line-soft);
    color: #cbd5e1;
    font-size: 12px;
    vertical-align: middle;
}

.v5-server-table tr:last-child td {
    border-bottom: 0;
}

.v5-server-table tbody tr {
    cursor: pointer;
    transition: background .15s ease;
}

.v5-server-table tbody tr:hover {
    background: #121b28;
}

.v5-server-name {
    color: #fff;
    font-weight: 800;
    font-size: 13px;
}

.v5-subline {
    margin-top: 4px;
    color: #708197;
    font-size: 11px;
}

.v5-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .35px;
    text-transform: uppercase;
    color: #9aa8ba;
    background: #17202c;
}

.v5-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.v5-status.online {
    color: var(--v5-green);
    background: rgba(57, 217, 138, .1);
}

.v5-status.error,
.v5-status.crashed {
    color: #ff7589;
    background: rgba(229, 41, 67, .12);
}

.v5-status.installing,
.v5-status.reinstalling,
.v5-status.starting {
    color: var(--v5-blue);
    background: rgba(93, 156, 255, .1);
}

.v5-row-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.v5-empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--v5-muted);
}

.v5-error-box,
.v5-success-box,
.v5-warning-box {
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 8px;
    font-size: 12px;
}

.v5-error-box {
    color: #ff9cac;
    border: 1px solid rgba(229, 41, 67, .42);
    background: rgba(229, 41, 67, .1);
}

.v5-success-box {
    color: #8bf0bd;
    border: 1px solid rgba(57, 217, 138, .34);
    background: rgba(57, 217, 138, .08);
}

.v5-warning-box {
    color: #f8d97e;
    border: 1px solid rgba(244, 201, 93, .32);
    background: rgba(244, 201, 93, .08);
}

/* Full server detail */

.v5-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.v5-detail-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.v5-back-button {
    width: 38px;
    height: 38px;
    border: 1px solid #29384e;
    border-radius: 9px;
    color: #dbe5f2;
    background: #111925;
    cursor: pointer;
    font-size: 20px;
}

.v5-server-strip {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 15px;
    margin-bottom: 14px;
    border: 1px solid var(--v5-line);
    border-radius: 12px;
    background: linear-gradient(135deg, #101824, #0a1018);
}

.v5-server-strip-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.v5-server-strip-meta span:not(.v5-status) {
    color: #8b9bb0;
    font-size: 11px;
}

.v5-detail-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 5px;
    margin-bottom: 14px;
    border: 1px solid var(--v5-line);
    border-radius: 10px;
    background: #0a1018;
}

.v5-detail-tab {
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 0;
    border-radius: 7px;
    color: #7f8fa5;
    background: transparent;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
}

.v5-detail-tab:hover {
    color: #fff;
    background: #131c29;
}

.v5-detail-tab.active {
    color: #fff;
    background: linear-gradient(180deg, #e52943, #bd1831);
}

.v5-tab-panel.hidden {
    display: none !important;
}

.v5-card {
    padding: 18px;
    border: 1px solid var(--v5-line);
    border-radius: 11px;
    background: var(--v5-panel);
}

.v5-card + .v5-card {
    margin-top: 14px;
}

.v5-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.v5-card-head h3 {
    margin: 0;
    color: #fff;
    font-size: 14px;
}

.v5-card-head p {
    margin: 4px 0 0;
    color: var(--v5-muted);
    font-size: 11px;
}

.v5-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.v5-metric {
    padding: 14px;
    border: 1px solid #1c293a;
    border-radius: 9px;
    background: #0a1018;
}

.v5-metric span {
    display: block;
    color: #718096;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.v5-metric strong {
    display: block;
    margin-top: 7px;
    color: #f8fafc;
    font-size: 15px;
    word-break: break-word;
}

.v5-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr);
    gap: 14px;
}

.v5-player-list {
    max-height: 380px;
    overflow: auto;
}

.v5-player-row,
.v5-activity-row,
.v5-backup-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 2px;
    border-bottom: 1px solid var(--v5-line-soft);
}

.v5-player-row:last-child,
.v5-activity-row:last-child,
.v5-backup-row:last-child {
    border-bottom: 0;
}

.v5-player-row strong,
.v5-activity-row strong,
.v5-backup-row strong {
    color: #e8eef7;
    font-size: 12px;
}

.v5-player-row span,
.v5-activity-row span,
.v5-backup-row span {
    color: #78889d;
    font-size: 10px;
}

.v5-console {
    height: 60vh;
    height: clamp(320px, 60dvh, 680px);
    min-height: 0;
    max-height: none;
    overflow: auto;
    padding: 14px;
    border: 1px solid #1d2a3c;
    border-radius: 9px;
    background: #020509;
    color: #e7edf5;
    font: 12px/18px ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: normal;
    overflow-anchor: none;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scroll-behavior: auto !important;
    cursor: text;
    -webkit-user-select: text;
    user-select: text;
}

.v5-console-line {
    min-height: 18px;
    margin: 0;
    padding: 0;
    border: 0;
    color: #e7edf5;
    -webkit-user-select: text;
    user-select: text;
}

.v5-console-line.success { color: #5de0a0; }
.v5-console-line.warn { color: #f5d56e; }
.v5-console-line.error { color: #ff7589; font-weight: 700; }
.v5-console-line.dim { color: #718096; }

.v5-command-bar {
    display: flex;
    gap: 8px;
    margin-top: 9px;
}

.v5-command-bar input {
    flex: 1;
    min-width: 0;
    -webkit-user-select: text;
    user-select: text;
}

#serverDetailPage #v5ConsoleOutput {
    background-image: none !important;
}

#serverDetailPage #v5ConsoleOutput,
#serverDetailPage #v5ConsoleOutput *,
#serverDetailPage [data-v5-module-panel="console"] .v5-card:hover,
#serverDetailPage [data-v5-module-panel="console"] .v5-button:hover {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

/* Files */

.v5-files-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.v5-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    color: #8b9bb0;
    font-size: 11px;
}

.v5-breadcrumb button {
    border: 0;
    background: transparent;
    color: #c6d1df;
    cursor: pointer;
    padding: 3px 4px;
}

.v5-files-table {
    width: 100%;
    border-collapse: collapse;
}

.v5-files-table th,
.v5-files-table td {
    padding: 10px 11px;
    border-bottom: 1px solid var(--v5-line-soft);
    text-align: left;
    color: #cbd5e1;
    font-size: 11px;
}

.v5-files-table th {
    color: #718096;
    font-size: 9px;
    text-transform: uppercase;
    background: #0a1018;
}

.v5-files-table tr:hover td {
    background: #111a27;
}

.v5-file-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #eef3f9;
    cursor: pointer;
}

.v5-file-icon {
    width: 24px;
    text-align: center;
    color: #f5cc5f;
}

.v5-file-icon.file {
    color: #7ea9e9;
}

.v5-editor-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(5px);
}

.v5-editor-overlay.hidden {
    display: none !important;
}

.v5-editor-card {
    width: min(1100px, 96vw);
    max-height: 92vh;
    padding: 16px;
    border: 1px solid #2b3a50;
    border-radius: 12px;
    background: #0b111a;
}

.v5-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.v5-editor-head strong {
    color: #fff;
    font-size: 13px;
}

.v5-editor-textarea {
    width: 100%;
    height: min(68vh, 720px);
    resize: vertical;
    padding: 13px;
    border: 1px solid #25354a;
    border-radius: 8px;
    outline: none;
    background: #020509;
    color: #e8eef7;
    font: 12px/1.5 Consolas, "Courier New", monospace;
    tab-size: 4;
}

/* Access / database / startup / backups / activity */

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

.v5-settings-grid > .v5-card + .v5-card {
    margin-top: 0;
}

.v5-settings-grid.single {
    grid-template-columns: minmax(0, 1fr);
}

.v5-info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.v5-info-item.full {
    grid-column: 1 / -1;
}

.v5-info-item {
    padding: 12px;
    border: 1px solid #1c2939;
    border-radius: 8px;
    background: #0a1018;
}

.v5-info-item span {
    display: block;
    color: #718096;
    font-size: 9px;
    text-transform: uppercase;
}

.v5-info-item strong,
.v5-info-item input {
    display: block;
    width: 100%;
    margin-top: 6px;
    color: #eef3f9;
    font-size: 12px;
    word-break: break-all;
}

.v5-info-item input {
    padding: 0;
    border: 0;
    background: transparent;
    outline: none;
}

.v5-info-value-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    margin-top: 6px;
}

.v5-info-value-row > strong,
.v5-info-value-row > input {
    flex: 1 1 auto;
    min-width: 0;
    margin-top: 0;
}

.v5-info-value-row .v5-info-copy {
    flex: 0 0 auto;
    min-width: 58px;
    min-height: 30px;
    padding: 5px 8px;
}

.v5-info-value-row .v5-info-copy:focus-visible {
    outline: 2px solid var(--v5-red);
    outline-offset: 2px;
}

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

.v5-field label {
    display: block;
    margin: 0 0 6px;
    color: #8392a6;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.v5-field.full {
    grid-column: 1 / -1;
}

/* Installed map selector — native, server-scoped and touch friendly. */
.v5-start-map-field {
    min-width: 0;
}

.v5-start-map-select {
    min-width: 0;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    cursor: pointer;
    touch-action: manipulation;
}

.v5-start-map-select:disabled {
    cursor: not-allowed;
    opacity: .72;
}

.v5-start-map-select option {
    background: #080e16;
    color: #f8fafc;
}

.v5-start-map-status {
    display: flex;
    min-height: 22px;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 6px;
    color: #8d9caf;
    font-size: 10px;
    line-height: 1.45;
}

.v5-start-map-status.error,
.v5-start-map-status.empty {
    align-items: flex-start;
    flex-direction: column;
    padding: 9px 10px;
    border: 1px solid #26354a;
    border-radius: 7px;
    background: rgba(8, 14, 22, .62);
}

.v5-start-map-status strong {
    color: #e9eff7;
    font-size: 11px;
}

.v5-start-map-status.error {
    border-color: rgba(229, 41, 67, .32);
    background: rgba(229, 41, 67, .07);
    color: #ff9cac;
}

.v5-start-map-status button {
    min-height: 36px;
    margin-top: 4px;
    padding: 7px 14px;
    border: 1px solid rgba(229, 41, 67, .55);
    border-radius: 6px;
    background: rgba(229, 41, 67, .12);
    color: #ff9cac;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    touch-action: manipulation;
}

.v5-start-map-status.warning {
    color: #e9cc78;
}

.v5-start-map-status code {
    color: inherit;
    font-family: Consolas, "Courier New", monospace;
}

.v5-code-block {
    padding: 12px;
    overflow: auto;
    border: 1px solid #1f2c3e;
    border-radius: 8px;
    background: #05090e;
    color: #b9c8db;
    font: 11px/1.5 Consolas, monospace;
    white-space: pre-wrap;
    word-break: break-all;
}

.v5-progress {
    height: 7px;
    overflow: hidden;
    margin-top: 8px;
    border-radius: 10px;
    background: #1b2635;
}

.v5-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #e52943, #ff6077);
}

.v5-danger-zone {
    border-color: rgba(229, 41, 67, .38);
    background: rgba(229, 41, 67, .045);
}

.v5-reinstall-zone {
    border-color: rgba(244, 201, 93, .34);
    background: rgba(244, 201, 93, .035);
}

.v5-reinstall-confirmation {
    display: grid;
    gap: 9px;
}

.v5-reinstall-confirmation > label {
    color: var(--v5-muted);
    font-size: 12px;
    line-height: 1.5;
}

.v5-reinstall-confirmation code {
    color: #f8d97e;
    font: 700 12px/1.4 Consolas, monospace;
    user-select: all;
}

.v5-reinstall-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

.v5-reinstall-controls .v5-input {
    min-width: 0;
    font-family: Consolas, monospace;
    letter-spacing: .35px;
}

.v5-reinstall-controls .v5-button {
    min-width: 176px;
}

body.v5-delete-open {
    overflow: hidden;
}

.v5-delete-overlay {
    position: fixed;
    inset: 0;
    z-index: 14000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    overflow-y: auto;
    background: rgba(2, 3, 2, .86);
    backdrop-filter: blur(8px);
}

.v5-delete-overlay.hidden {
    display: none !important;
}

.v5-delete-dialog {
    position: relative;
    width: min(580px, 100%);
    max-height: calc(100vh - 44px);
    padding: 22px;
    overflow-y: auto;
    border: 1px solid rgba(239, 102, 85, .58);
    border-radius: 7px;
    background:
        radial-gradient(circle at 100% 0, rgba(239, 102, 85, .11), transparent 24rem),
        linear-gradient(150deg, #15180f, #080a07);
    color: var(--cs-text, #f2f0df);
    box-shadow:
        0 32px 90px rgba(0, 0, 0, .7),
        inset 0 1px rgba(255, 255, 255, .035);
}

.v5-delete-dialog::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #ef6655, #e86e24 66%, transparent);
}

.v5-delete-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 17px;
    border-bottom: 1px solid rgba(239, 102, 85, .16);
}

.v5-delete-dialog-head h2 {
    margin: 6px 0 0;
    color: #fff2ec;
    font-family: "Arial Narrow", Impact, "Segoe UI", sans-serif;
    font-size: clamp(20px, 3vw, 27px);
    letter-spacing: .45px;
    text-transform: uppercase;
}

.v5-delete-eyebrow {
    color: #ef8173;
    font: 900 9px/1 Consolas, "Courier New", monospace;
    letter-spacing: 1.35px;
}

.v5-delete-close {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(239, 102, 85, .3);
    border-radius: 3px;
    background: rgba(239, 102, 85, .06);
    color: #d9b1aa;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.v5-delete-close:hover:not(:disabled) {
    border-color: #ef6655;
    background: rgba(239, 102, 85, .12);
    color: #fff;
}

.v5-delete-close:disabled {
    cursor: wait;
    opacity: .5;
}

.v5-delete-warning {
    margin: 17px 0;
    padding: 14px 15px;
    border: 1px solid rgba(239, 102, 85, .3);
    border-left: 3px solid #ef6655;
    border-radius: 4px;
    background: rgba(239, 102, 85, .075);
}

.v5-delete-warning strong {
    display: block;
    margin-bottom: 6px;
    color: #ffaaa0;
    font-size: 12px;
    letter-spacing: .25px;
    text-transform: uppercase;
}

.v5-delete-warning p {
    margin: 0;
    color: #c9afa8;
    font-size: 11px;
    line-height: 1.65;
}

.v5-delete-target {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0 0 18px;
    padding: 1px;
    border: 1px solid #343b25;
    border-radius: 4px;
    background: rgba(190, 200, 124, .1);
}

.v5-delete-target > div {
    min-width: 0;
    padding: 12px;
    background: #0b0e09;
}

.v5-delete-target dt {
    margin-bottom: 7px;
    color: #858b76;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.v5-delete-target dd {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #f0ecd8;
    font: 700 11px/1.4 Consolas, "Courier New", monospace;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v5-delete-confirm-label {
    display: block;
    margin: 0 0 8px;
    color: #b9bda8;
    font-size: 11px;
    line-height: 1.55;
}

.v5-delete-confirm-label code {
    display: block;
    width: fit-content;
    margin-top: 8px;
    padding: 7px 9px;
    border: 1px solid rgba(240, 182, 58, .25);
    border-radius: 3px;
    background: rgba(240, 182, 58, .065);
    color: #f2c96e;
    font: 800 11px/1 Consolas, "Courier New", monospace;
    letter-spacing: .5px;
    user-select: all;
}

.v5-delete-confirm-input {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid #4a5035;
    border-radius: 4px;
    outline: none;
    background: #050705;
    color: #fff1ed;
    font: 800 12px/1 Consolas, "Courier New", monospace;
    letter-spacing: .45px;
}

.v5-delete-confirm-input:focus {
    border-color: #ef6655;
    box-shadow: 0 0 0 3px rgba(239, 102, 85, .11);
}

.v5-delete-confirm-input:disabled {
    cursor: wait;
    opacity: .6;
}

.v5-delete-alert {
    margin-top: 12px;
}

.v5-delete-alert:empty {
    display: none;
}

.v5-delete-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid rgba(190, 200, 124, .1);
}

.v5-delete-actions .v5-button.danger {
    border-color: rgba(239, 102, 85, .62);
    background: linear-gradient(180deg, #a8392d, #77251f);
    color: #fff2ef;
}

.v5-delete-actions .v5-button.danger:hover:not(:disabled) {
    border-color: #ff8b7d;
    background: linear-gradient(180deg, #c84b3d, #8e2e25);
}

.v5-delete-actions .v5-button:disabled {
    cursor: not-allowed;
    filter: saturate(.35);
    opacity: .45;
}

@media (max-width: 1200px) {
    .v5-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 900px) {
    .v5-overview-grid,
    .v5-two-column {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 650px) {
    .v5-page-head,
    .v5-detail-head,
    .v5-toolbar,
    .v5-files-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .v5-summary-grid,
    .v5-metric-grid,
    .v5-info-list,
    .v5-form-grid {
        grid-template-columns: 1fr;
    }

    .v5-field.full {
        grid-column: auto;
    }

    .v5-start-map-select {
        min-height: 44px;
        font-size: 13px;
    }

    .v5-start-map-status strong {
        font-size: 12px;
    }

    .v5-start-map-status {
        font-size: 11px;
    }

    .v5-start-map-status button {
        min-height: 44px;
        font-size: 11px;
    }

    .v5-reinstall-controls {
        grid-template-columns: 1fr;
    }

    .v5-reinstall-controls .v5-button {
        width: 100%;
        min-width: 0;
    }

    .v5-head-actions,
    .v5-power-actions,
    .v5-toolbar-actions,
    .v5-file-actions {
        width: 100%;
    }

    .v5-button {
        flex: 1;
    }

    .v5-info-value-row .v5-info-copy {
        flex: 0 0 auto;
        min-height: 44px;
    }

    .v5-info-value-row.password {
        flex-wrap: wrap;
    }

    .v5-info-value-row.password > input {
        flex: 1 0 100%;
    }

    .v5-info-value-row.password > .v5-info-copy {
        flex: 1 1 calc(50% - 4px);
        min-height: 44px;
    }

    .v5-command-bar {
        flex-direction: column;
    }

    .v5-console {
        height: 52vh;
        height: clamp(280px, 52dvh, 420px);
        min-height: 0;
    }

    .v5-command-bar .v5-button {
        min-height: 44px;
    }

    .v5-delete-overlay {
        align-items: flex-end;
        padding: 10px;
    }

    .v5-delete-dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
        padding: 19px 15px 15px;
        border-radius: 7px 7px 3px 3px;
    }

    .v5-delete-target {
        grid-template-columns: minmax(0, 1fr);
    }

    .v5-delete-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .v5-delete-actions .v5-button {
        width: 100%;
        min-height: 43px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .v5-delete-overlay,
    .v5-delete-dialog,
    .v5-delete-dialog * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
