/*
 * HawkSync Professional Full-Screen Interface
 * Version 1.3.4-devilish
 *
 * Loaded after the supplied Delta Warzone theme.
 * The authenticated manager and login page both support light and dark mode.
 */

html[data-theme="dark"] {
    --ui-bg: #070a06;
    --ui-bg-pattern: rgba(255,255,255,.018);
    --ui-surface: #10150d;
    --ui-surface-raised: #161c11;
    --ui-surface-soft: #0b1009;
    --ui-input: #090d08;
    --ui-text: #f3f0df;
    --ui-text-strong: #fff9e7;
    --ui-muted: #aba891;
    --ui-accent: #9aaa6a;
    --ui-accent-strong: #ead9a3;
    --ui-accent-text: #090b06;
    --ui-border: rgba(194,173,120,.25);
    --ui-border-strong: rgba(234,217,163,.42);
    --ui-row-hover: #202a19;
    --ui-selected: #293820;
    --ui-header: rgba(8,12,7,.98);
    --ui-nav: rgba(12,17,10,.98);
    --ui-nav-item: rgba(17,23,14,.94);
    --ui-shadow: rgba(0,0,0,.46);
    --ui-shadow-soft: rgba(0,0,0,.22);
    --ui-danger-bg: #3a1210;
    --ui-danger-text: #ffd8d3;
    --ui-danger-border: #9c352d;
    --ui-success-bg: #20351d;
    --ui-success-text: #dff5d3;
    --ui-success-border: #668d5a;
    --ui-warning-bg: #4a3517;
    --ui-warning-text: #ffe9bb;
    --ui-warning-border: #9c7435;

    --bg: var(--ui-bg);
    --panel: var(--ui-surface);
    --panel2: var(--ui-surface-raised);
    --olive: #647247;
    --olive2: var(--ui-accent);
    --sand: #c2ad78;
    --sand2: var(--ui-accent-strong);
    --danger: #c0392b;
    --text: var(--ui-text);
    --muted: var(--ui-muted);
    --line: var(--ui-border);
    --shadow: var(--ui-shadow);
    --border: var(--ui-border);
    --face: var(--ui-surface);
    --dark: var(--ui-header);
    --blue: var(--ui-accent);
    --good: #6f9d61;
    --warning: #d49a46;
}

html[data-theme="light"] {
    --ui-bg: #eef0ea;
    --ui-bg-pattern: rgba(55,65,45,.025);
    --ui-surface: #ffffff;
    --ui-surface-raised: #f7f8f3;
    --ui-surface-soft: #f0f2eb;
    --ui-input: #ffffff;
    --ui-text: #23271f;
    --ui-text-strong: #11140f;
    --ui-muted: #68705f;
    --ui-accent: #788957;
    --ui-accent-strong: #59683d;
    --ui-accent-text: #ffffff;
    --ui-border: rgba(75,88,59,.24);
    --ui-border-strong: rgba(75,88,59,.43);
    --ui-row-hover: #edf2e4;
    --ui-selected: #dde8cf;
    --ui-header: #263020;
    --ui-nav: #e8ecdf;
    --ui-nav-item: #f5f7f1;
    --ui-shadow: rgba(33,42,27,.20);
    --ui-shadow-soft: rgba(33,42,27,.10);
    --ui-danger-bg: #fff0ee;
    --ui-danger-text: #8b271f;
    --ui-danger-border: #c96c63;
    --ui-success-bg: #e9f5e4;
    --ui-success-text: #275d20;
    --ui-success-border: #75a46a;
    --ui-warning-bg: #fff5df;
    --ui-warning-text: #79520f;
    --ui-warning-border: #c79b4a;

    --bg: var(--ui-bg);
    --panel: var(--ui-surface);
    --panel2: var(--ui-surface-raised);
    --olive: #68784b;
    --olive2: var(--ui-accent);
    --sand: #6b745c;
    --sand2: var(--ui-accent-strong);
    --danger: #aa3a32;
    --text: var(--ui-text);
    --muted: var(--ui-muted);
    --line: var(--ui-border);
    --shadow: var(--ui-shadow);
    --border: var(--ui-border);
    --face: var(--ui-surface);
    --dark: var(--ui-header);
    --blue: var(--ui-accent);
    --good: #4d8144;
    --warning: #a96e18;
}

:root {
    --professional-radius: 9px;
    --professional-radius-small: 6px;
    --professional-gap: 10px;
    --professional-header-height: 58px;
    --professional-nav-height: 48px;
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, Arial, sans-serif;
    color-scheme: dark;
}

html[data-theme="light"] {
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    padding: 0;
    color: var(--ui-text);
    background:
        linear-gradient(
            color-mix(in srgb, var(--ui-bg) 92%, transparent),
            color-mix(in srgb, var(--ui-bg) 98%, transparent)
        ),
        repeating-linear-gradient(
            45deg,
            var(--ui-bg-pattern) 0 2px,
            transparent 2px 10px
        ),
        var(--ui-bg);
    font-size: 13px;
    line-height: 1.45;
    transition: background-color .18s ease, color .18s ease;
}

a {
    color: var(--ui-accent-strong);
}

.desktop-shell {
    width: 100vw;
    height: 100vh;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

.manager-header {
    position: relative;
    inset: auto;
    z-index: 30;
    width: 100%;
    background: var(--ui-header);
    border-bottom: 1px solid var(--ui-border-strong);
    box-shadow: 0 8px 24px var(--ui-shadow);
}

.manager-titlebar {
    min-height: var(--professional-header-height);
    height: auto;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    background:
        linear-gradient(
            90deg,
            color-mix(in srgb, var(--ui-header) 96%, #000),
            color-mix(in srgb, var(--ui-header) 78%, var(--ui-accent) 22%)
        );
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.manager-logo {
    width: 46px;
    height: 40px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(234,217,163,.38);
    border-radius: var(--professional-radius-small);
    background: rgba(255,255,255,.06);
    box-shadow: 0 5px 14px rgba(0,0,0,.16);
}

.manager-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.manager-title {
    min-width: 220px;
}

.manager-title strong {
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: .01em;
    text-transform: none;
}

.manager-title span {
    margin-top: 2px;
    color: rgba(255,255,255,.69);
    font-size: 11px;
}

.manager-state {
    min-width: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

.manager-state .button,
.manager-state button {
    min-height: 34px;
    padding: 6px 11px;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
}

.theme-toggle__icon {
    width: 18px;
    font-size: 16px;
    line-height: 1;
    text-align: center;
}

.manager-nav {
    width: 100%;
    min-height: var(--professional-nav-height);
    height: auto;
    display: grid;
    grid-template-columns:
        repeat(8, minmax(68px, 1fr))
        minmax(4px, .08fr)
        repeat(4, minmax(68px, 1fr));
    overflow-x: auto;
    background: var(--ui-nav);
    border-bottom: 1px solid var(--ui-border);
    scrollbar-width: thin;
}

.manager-nav .nav-item {
    min-width: 0;
    min-height: var(--professional-nav-height);
    padding: 7px 5px;
    border: 0;
    border-right: 1px solid var(--ui-border);
    border-radius: 0;
    background: var(--ui-nav-item);
    color: var(--ui-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .025em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.manager-nav .nav-item:hover {
    background: color-mix(in srgb, var(--ui-surface) 82%, var(--ui-accent) 18%);
    color: var(--ui-accent-strong);
}

.manager-nav .nav-item.active {
    background: color-mix(in srgb, var(--ui-surface) 88%, var(--ui-accent) 12%);
    color: var(--ui-text-strong);
    border-bottom: 4px solid var(--ui-accent);
}

.nav-spacer {
    min-width: 8px;
    background: var(--ui-nav);
}

.workspace {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.content {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 12px;
    overflow: hidden;
}

.view {
    display: none;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.view.active {
    display: flex;
    flex-direction: column;
    gap: var(--professional-gap);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-color: var(--ui-accent) var(--ui-surface-soft);
}

.page-heading,
.desktop-section-heading {
    flex: 0 0 auto;
    width: 100%;
    min-height: 60px;
    margin: 0;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--ui-surface-raised);
    border: 1px solid var(--ui-border);
    border-radius: var(--professional-radius);
    box-shadow: 0 7px 20px var(--ui-shadow-soft);
}

.desktop-section-heading strong,
.page-heading h1 {
    margin: 0;
    color: var(--ui-text-strong);
    font-size: 18px;
    line-height: 1.2;
}

.desktop-section-heading span,
.page-heading p {
    margin: 2px 0 0;
    color: var(--ui-muted);
    font-size: 12px;
}

.eyebrow {
    display: block;
    margin: 0 0 2px;
    color: var(--ui-accent-strong);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* Active form workspaces occupy the full remaining area. */
.profile-win-layout,
.stats-win-layout,
.map-editor-grid,
.admin-grid,
.service-grid,
#gameplay-form,
[data-view-panel="chat"] > .subview,
[data-view-panel="bans"] > .bans-win-layout,
[data-view-panel="overview"] > .two-column {
    width: 100%;
}

.profile-win-layout,
.stats-win-layout {
    flex: 1 0 auto;
    min-height: calc(100% - 72px);
}

.profile-win-layout {
    grid-template-columns: minmax(360px, 34%) minmax(620px, 66%);
}

.profile-left-column,
.profile-settings-column,
.profile-master,
.stats-main-tabs,
.stats-side-stack {
    min-height: 0;
}

.profile-settings-column,
#gameplay-form {
    width: 100%;
}

.file-manager-group,
.profile-master {
    height: 100%;
}

.file-browser {
    height: clamp(300px, 46vh, 620px);
}

.managed-files {
    max-height: clamp(150px, 22vh, 300px);
}

.map-editor-grid {
    flex: 1 0 auto;
    min-height: calc(100% - 134px);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.map-list {
    height: clamp(420px, 66vh, 900px);
}

.player-cards {
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}

.stats-win-layout {
    grid-template-columns: minmax(620px, 64%) minmax(380px, 36%);
}

.stats-main-tabs,
.stats-side-stack {
    height: 100%;
}

.stats-main-tabs .win-tab-page {
    min-height: calc(100% - 36px);
}

.table-wrap {
    max-width: 100%;
    overflow: auto;
}

.small-table {
    max-height: 250px;
}

.logs {
    min-height: 260px;
    max-height: none;
}

/* Professional surfaces */
.card,
.metric,
.win-group,
.win-tab-page,
.subview,
.modal-card,
.api-connection-strip {
    color: var(--ui-text);
    background: var(--ui-surface);
    border-color: var(--ui-border);
    border-radius: var(--professional-radius);
    box-shadow: 0 6px 18px var(--ui-shadow-soft);
}

.card {
    margin: 0;
    padding: 12px;
}

.card-heading {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-color: var(--ui-border);
}

.card-heading h2,
.card-heading .label,
.win-group > legend,
label,
strong,
h1,
h2,
h3 {
    color: var(--ui-text-strong);
}

.win-group {
    padding: 13px 11px 11px;
}

.win-group > legend {
    padding: 0 7px;
    font-size: 12px;
    font-weight: 750;
}

.metric {
    min-height: 78px;
    padding: 12px;
}

.metric span {
    color: var(--ui-muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .065em;
}

.metric strong {
    margin-top: 4px;
    color: var(--ui-text-strong);
    font-size: 18px;
}

.metric-grid {
    gap: 9px;
}

.two-column,
.four-column,
.form-grid,
.switch-grid,
.toggle-grid,
.service-grid {
    gap: 9px;
}

button,
.button {
    min-width: 0;
    width: auto;
    min-height: 34px;
    margin: 0;
    padding: 7px 13px;
    gap: 6px;
    border: 1px solid var(--ui-border-strong);
    border-radius: var(--professional-radius-small);
    color: var(--ui-accent-text);
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--ui-accent) 86%, #fff 14%),
        var(--ui-accent)
    );
    box-shadow: 0 2px 5px var(--ui-shadow-soft);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .015em;
    text-transform: none;
}

button:hover,
.button:hover {
    border-color: var(--ui-accent-strong);
    filter: brightness(1.07);
}

button:focus-visible,
.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--ui-accent);
    outline-offset: 2px;
}

button.secondary,
.button.secondary,
.secondary,
.ghost {
    color: var(--ui-text);
    background: var(--ui-surface-soft);
    border-color: var(--ui-border);
}

button.danger,
.button.danger {
    color: var(--ui-danger-text);
    background: var(--ui-danger-bg);
    border-color: var(--ui-danger-border);
}

button.success,
.button.success {
    color: var(--ui-success-text);
    background: var(--ui-success-bg);
    border-color: var(--ui-success-border);
}

button.warning,
.button.warning {
    color: var(--ui-warning-text);
    background: var(--ui-warning-bg);
    border-color: var(--ui-warning-border);
}

input,
select,
textarea {
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 7px 9px;
    color: var(--ui-text);
    background: var(--ui-input);
    border: 1px solid var(--ui-border-strong);
    border-radius: var(--professional-radius-small);
    box-shadow: inset 0 1px 2px var(--ui-shadow-soft);
}

textarea {
    min-height: 86px;
}

input::placeholder,
textarea::placeholder {
    color: color-mix(in srgb, var(--ui-muted) 76%, transparent);
}

small,
.muted,
.hint {
    color: var(--ui-muted);
}

.toggle-row {
    min-height: 39px;
    padding: 7px 9px;
    background: var(--ui-surface-soft);
    border-color: var(--ui-border);
    border-radius: var(--professional-radius-small);
}

.toggle-row input {
    width: auto;
    min-height: auto;
    accent-color: var(--ui-accent);
}

.table-wrap,
.file-browser,
.managed-files,
.map-list,
.feed {
    color: var(--ui-text);
    background: var(--ui-input);
    border-color: var(--ui-border);
    border-radius: var(--professional-radius-small);
}

table {
    color: var(--ui-text);
}

th {
    position: sticky;
    top: 0;
    z-index: 2;
    color: var(--ui-text-strong);
    background: var(--ui-surface-raised);
    border-color: var(--ui-border);
}

td {
    border-color: var(--ui-border);
}

tbody tr:nth-child(even) {
    background: color-mix(in srgb, var(--ui-surface-soft) 58%, transparent);
}

.selectable:hover,
tr.selected,
.map-row:hover,
.map-row.selected {
    background: var(--ui-row-hover);
}

.map-row.active-map {
    background: var(--ui-success-bg);
}

pre {
    color: var(--ui-text);
    background: var(--ui-input);
    border-color: var(--ui-border);
    border-radius: var(--professional-radius-small);
}

.status,
.state-pill,
.pill {
    color: var(--ui-muted);
    background: var(--ui-surface-soft);
    border-color: var(--ui-border);
}

.status.good,
.state-pill.good {
    color: var(--ui-success-text);
    background: var(--ui-success-bg);
    border-color: var(--ui-success-border);
}

.status.bad,
.state-pill.bad {
    color: var(--ui-danger-text);
    background: var(--ui-danger-bg);
    border-color: var(--ui-danger-border);
}

.api-connection-strip {
    margin: 0;
    color: var(--ui-warning-text);
    background: var(--ui-warning-bg);
    border-color: var(--ui-warning-border);
}

.api-connection-strip.connected {
    color: var(--ui-success-text);
    background: var(--ui-success-bg);
    border-color: var(--ui-success-border);
}

.subtabs {
    flex: 0 0 auto;
    margin: 0 0 -1px;
}

.subtabs button {
    color: var(--ui-muted);
    background: var(--ui-surface-soft);
    border-color: var(--ui-border);
}

.subtabs button.active {
    color: var(--ui-text-strong);
    background: var(--ui-surface);
    border-bottom-color: var(--ui-surface);
}

.compat-warning,
.alert {
    border-radius: var(--professional-radius-small);
}

.alert.danger {
    color: var(--ui-danger-text);
    background: var(--ui-danger-bg);
    border-color: var(--ui-danger-border);
}

/* Full-screen professional login */
.login-shell {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    padding: 24px;
    overflow: auto;
    display: grid;
    place-items: center;
    background:
        linear-gradient(
            color-mix(in srgb, var(--ui-bg) 83%, transparent),
            color-mix(in srgb, var(--ui-bg) 96%, transparent)
        ),
        radial-gradient(
            circle at 18% 14%,
            color-mix(in srgb, var(--ui-accent) 18%, transparent),
            transparent 28%
        ),
        repeating-linear-gradient(
            45deg,
            var(--ui-bg-pattern) 0 2px,
            transparent 2px 10px
        ),
        var(--ui-bg);
}

.login-card {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 48px);
    margin: 0;
    padding: clamp(24px, 4vw, 40px);
    overflow: auto;
    color: var(--ui-text);
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    border-radius: 14px;
    box-shadow: 0 24px 70px var(--ui-shadow);
}

.login-theme-toggle {
    position: absolute;
    top: 14px;
    right: 14px;
}

.login-logo {
    width: 96px;
    height: 96px;
    filter: drop-shadow(0 7px 15px var(--ui-shadow-soft));
}

.login-card h1 {
    margin-top: 14px;
    color: var(--ui-text-strong);
    text-align: center;
    font-size: clamp(23px, 4vw, 31px);
    letter-spacing: -.02em;
    text-transform: none;
}

.login-card .muted {
    color: var(--ui-muted);
    text-align: center;
}

.login-card form {
    display: grid;
    gap: 13px;
}

.captcha-widget {
    margin: 2px 0;
    padding: 14px;
    color: var(--ui-text);
    background: var(--ui-surface-soft);
    border: 1px solid var(--ui-border);
    border-radius: var(--professional-radius);
}

.captcha-widget p {
    margin: 0 0 10px;
    color: var(--ui-muted);
    text-align: center;
}

.captcha-digits {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-bottom: 11px;
    user-select: none;
}

.captcha-digits span {
    width: 42px;
    height: 52px;
    display: grid;
    place-items: center;
    color: var(--ui-accent-strong);
    background:
        repeating-linear-gradient(
            45deg,
            color-mix(in srgb, var(--ui-accent) 5%, transparent) 0 2px,
            transparent 2px 6px
        ),
        var(--ui-input);
    border: 1px solid var(--ui-border-strong);
    border-radius: var(--professional-radius-small);
    font: 800 27px/1 Consolas, monospace;
}

.captcha-widget input {
    text-align: center;
    letter-spacing: 7px;
    font: 800 20px/1.2 Consolas, monospace;
}

.captcha-actions {
    display: flex;
    justify-content: center;
    margin-top: 9px;
}

/* Scrollbars */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--ui-accent) var(--ui-surface-soft);
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: var(--ui-surface-soft);
}

*::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--ui-accent) 78%, var(--ui-surface) 22%);
    border: 2px solid var(--ui-surface-soft);
    border-radius: 10px;
}

/* Responsive application layout */
@media (max-width: 1180px) {
    .manager-state .state-pill,
    .manager-state .status {
        display: none;
    }

    .manager-nav {
        grid-template-columns: repeat(12, minmax(88px, 1fr));
    }

    .nav-spacer {
        display: none;
    }

    .profile-win-layout,
    .stats-win-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .profile-left-column {
        grid-template-rows: auto auto;
    }
}

@media (max-width: 820px) {
    .manager-title span,
    .theme-toggle__label {
        display: none;
    }

    .manager-title {
        min-width: 0;
    }

    .manager-titlebar {
        padding: 7px 9px;
    }

    .content {
        padding: 8px;
    }

    .view.active {
        gap: 8px;
    }

    .page-heading,
    .desktop-section-heading {
        min-height: 52px;
        padding: 8px 10px;
    }

    .metric-grid,
    .form-grid.four,
    .four-column,
    .two-column,
    .map-editor-grid,
    .player-cards,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .form-grid,
    .switch-grid,
    .toggle-grid,
    .toggle-grid.compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .manager-logo,
    .manager-state #refresh-all {
        display: none;
    }

    .manager-state {
        gap: 5px;
    }

    .login-shell {
        padding: 10px;
    }

    .login-card {
        max-height: calc(100vh - 20px);
        padding: 58px 18px 22px;
    }

    .form-grid,
    .switch-grid,
    .toggle-grid,
    .toggle-grid.compact {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: auto;
    }

    .captcha-digits {
        gap: 4px;
    }

    .captcha-digits span {
        width: 35px;
        height: 46px;
        font-size: 23px;
    }
}

/* 1.2.4 complete profile settings editor */
.profile-json-editor{width:100%;min-height:22rem;resize:vertical;font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;line-height:1.45;tab-size:2;}
.profile-json-actions{flex-wrap:wrap;margin-top:.75rem;}
.profile-json-actions button{min-width:10rem;}

/* HawkSync multi-instance manager v1.3.4 */
.instance-manager-card code{word-break:break-word}
.instance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:10px}
.instance-card{border:1px solid var(--ui-border);background:var(--ui-surface);color:var(--ui-text);padding:10px}
.instance-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px}
.instance-card__head strong,.instance-card__head small{display:block}
.instance-card__head strong{color:var(--ui-text-strong)}
.instance-card__head small{margin-top:3px;color:var(--ui-muted);word-break:break-all}
.instance-details{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:0 0 10px}
.instance-details>div{border:1px solid var(--ui-border);background:var(--ui-surface-raised);color:var(--ui-text);padding:6px}
.instance-details dt{font-size:10px;text-transform:uppercase;color:var(--ui-muted)}
.instance-details dd{margin:2px 0 0;color:var(--ui-text-strong);font-weight:600;word-break:break-word}
.instance-modal-card{width:min(760px,95vw);max-height:90vh;overflow:auto}
.instance-modal-card pre{max-height:180px}
.game-upload-file-list{max-height:150px;overflow:auto;background:var(--ui-surface-soft);border:1px solid var(--ui-border);padding:8px;font:12px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap}
.alert.info{background:color-mix(in srgb,var(--ui-surface) 74%,#4b86c6 26%);border-color:#78a7d1;color:var(--ui-text)}
.alert.warning{background:var(--ui-warning-bg);border-color:var(--ui-warning-border);color:var(--ui-warning-text)}
@media(max-width:700px){.instance-details{grid-template-columns:1fr}.instance-grid{grid-template-columns:1fr}}

/* Dedicated game-server inventory */
.server-summary-grid{margin-bottom:12px}.instance-state-row{display:flex;flex-wrap:wrap;gap:6px;margin:-2px 0 9px}.instance-details{grid-template-columns:repeat(3,minmax(0,1fr))}.instance-details dd{font-size:12px}.instance-card .actions{align-items:center;flex-wrap:wrap}@media(max-width:900px){.instance-details{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.instance-details{grid-template-columns:1fr}}


/* Live Game server-status icons supplied for HawkSync dashboard status. */
.live-game-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: inherit;
}
.live-game-status img {
    display: block;
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    image-rendering: auto;
}


/* 1.3.5 professional dashboard and secure server installation */
.dashboard-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);min-height:330px;margin:0 0 18px;overflow:hidden;border:1px solid var(--ui-border);background:linear-gradient(135deg,var(--ui-surface-raised),var(--ui-surface));box-shadow:0 18px 45px rgba(0,0,0,.18)}
.dashboard-hero::after{content:"";position:absolute;inset:auto 0 0;height:3px;background:linear-gradient(90deg,transparent,#ff7500 30%,#ff9d35 70%,transparent)}
.dashboard-hero__content{position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;padding:36px 40px}
.dashboard-hero__content h1{max-width:720px;margin:5px 0 14px;font-size:clamp(30px,3.5vw,54px);line-height:1.02;letter-spacing:-.035em;color:var(--ui-text-strong)}
.dashboard-hero__lead{max-width:700px;margin:0;color:var(--ui-muted);font-size:16px;line-height:1.65}
.dashboard-hero__badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
.dashboard-hero__badges span{padding:7px 10px;border:1px solid color-mix(in srgb,var(--ui-border) 70%,#ff7900 30%);background:color-mix(in srgb,var(--ui-surface) 88%,#ff7900 12%);color:var(--ui-text-strong);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.dashboard-hero__visual{position:relative;min-height:330px;background:#090909;overflow:hidden}
.dashboard-hero__visual::before{content:"";position:absolute;z-index:1;inset:0;background:linear-gradient(90deg,var(--ui-surface) 0%,transparent 28%)}
.dashboard-hero__visual img{width:100%;height:100%;object-fit:cover;object-position:center;display:block;filter:saturate(.94) contrast(1.04)}
.section-intro{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:0 0 12px;padding:0 2px}
.section-intro h2{margin:2px 0 0;font-size:22px}.section-intro>p{max-width:560px;margin:0;color:var(--ui-muted);text-align:right}
.dashboard-metrics .metric{position:relative;overflow:hidden;padding-top:16px}.dashboard-metrics .metric::before{content:"";position:absolute;left:0;top:0;width:44px;height:3px;background:#ff7900}
.security-confirmation{padding:14px;border:1px solid color-mix(in srgb,var(--ui-border) 62%,#ff7900 38%);background:color-mix(in srgb,var(--ui-surface) 90%,#ff7900 10%)}
.security-confirmation small{display:block;margin-top:6px;line-height:1.45}
@media(max-width:980px){.dashboard-hero{grid-template-columns:1fr}.dashboard-hero__visual{min-height:260px;order:-1}.dashboard-hero__visual::before{background:linear-gradient(0deg,var(--ui-surface) 0%,transparent 35%)}.dashboard-hero__content{padding:28px}.section-intro{align-items:flex-start;flex-direction:column}.section-intro>p{text-align:left}}
@media(max-width:600px){.dashboard-hero__visual{min-height:210px}.dashboard-hero__content{padding:22px}.dashboard-hero__content h1{font-size:32px}.dashboard-hero__lead{font-size:14px}}

/* Remote-client addresses for each managed HawkSync instance. */
.remote-client-panel{margin:12px 0;padding:10px;border:1px solid var(--ui-border);background:var(--ui-surface-raised,#171a1f)}
.remote-client-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:8px}
.remote-client-heading strong{color:var(--ui-text-strong);font-size:13px}
.remote-client-heading small{color:var(--ui-muted);font-size:11px;text-align:right}
.remote-client-row{display:grid;grid-template-columns:62px minmax(0,1fr) auto;align-items:center;gap:8px;padding:6px 0;border-top:1px solid var(--ui-border)}
.remote-client-row>span{color:var(--ui-muted);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em}
.remote-client-row code{min-width:0;overflow:auto;padding:6px 8px;border:1px solid var(--ui-border);background:var(--ui-surface);color:var(--ui-text-strong);white-space:nowrap}
.remote-client-row.unavailable code{opacity:.55}
.copy-address{min-width:72px}
@media(max-width:680px){.remote-client-heading{display:block}.remote-client-heading small{display:block;margin-top:3px;text-align:left}.remote-client-row{grid-template-columns:1fr auto}.remote-client-row>span{grid-column:1/-1}.remote-client-row code{font-size:11px}}


.instance-install-terminal-card{width:min(900px,96vw);max-height:92vh;overflow:hidden}
.instance-install-terminal{min-height:360px;max-height:62vh;overflow:auto;margin:0;padding:16px;border-radius:10px;background:#071017;color:#d8f7df;border:1px solid #28453a;font:13px/1.55 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;white-space:pre-wrap;word-break:break-word;box-shadow:inset 0 0 24px rgba(0,0,0,.45)}
.instance-install-terminal-card .actions{justify-content:flex-end;margin-top:12px}
@media (max-width:700px){.instance-install-terminal{min-height:300px;max-height:58vh;font-size:12px}}


/* 1.3.7 server-specific Linux and Wine path guide. */
.server-path-panel{margin:12px 0;padding:10px;border:1px solid color-mix(in srgb,var(--ui-border) 68%,#ff7900 32%);background:color-mix(in srgb,var(--ui-surface-raised,#171a1f) 92%,#ff7900 8%)}
.server-path-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:8px}
.server-path-heading strong{color:var(--ui-text-strong);font-size:13px}
.server-path-heading small{color:var(--ui-muted);font-size:11px;text-align:right}
.server-path-row{display:grid;grid-template-columns:160px minmax(0,1fr) auto;align-items:center;gap:8px;padding:6px 0;border-top:1px solid var(--ui-border)}
.server-path-row>span{color:var(--ui-muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.045em}
.server-path-row code{min-width:0;overflow:auto;padding:6px 8px;border:1px solid var(--ui-border);background:var(--ui-surface);color:var(--ui-text-strong);white-space:nowrap}
.server-path-row.unavailable code{opacity:.55}
.instance-profile-warning{margin:10px 0}.instance-profile-warning code{word-break:break-all}
@media(max-width:760px){.server-path-heading{display:block}.server-path-heading small{display:block;margin-top:3px;text-align:left}.server-path-row{grid-template-columns:1fr auto}.server-path-row>span{grid-column:1/-1}.server-path-row code{font-size:11px}}
