@charset "UTF-8";

:root {
  color-scheme: dark;
  --background: #0c1015;
  --panel: #14191f;
  --panel-raised: #191f26;
  --line: #282e35;
  --line-soft: #222830;
  --text: #eef2f2;
  --muted: #8d97a2;
  --subtle: #67727f;
  --accent: #7addba;
  --accent-soft: #233e35;
  --amber: #eeb778;
  --danger: #ec9691;
  font-family: "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-synthesis: none;
  line-height: 1.5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--background); color: var(--text); font-size: 14px; }
button, input { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; text-decoration: none; }
button, input, a, summary { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.muted { color: var(--muted); }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 2px; line-height: 1.5; }
.brand-mark { position: relative; display: inline-flex; justify-content: center; align-items: center; width: 38px; height: 42px; color: var(--accent); font-size: 40px; font-weight: 800; font-family: Arial, sans-serif; line-height: 1; }
.brand-mark > span { position: absolute; width: 10px; height: 3px; background: var(--background); bottom: 8px; left: 14px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 40px; padding: 10px 16px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 600; line-height: 1.4; transition: background .15s, border-color .15s, opacity .15s; }
.button svg { width: 16px; height: 16px; }
.button-primary { color: #0c231b; background: var(--accent); }
.button-primary:hover:not(:disabled) { background: #98edce; }
.button-secondary { color: #d2d9df; background: #1a2027; border-color: #343b44; }
.button-secondary:hover:not(:disabled) { background: #242c35; border-color: #525e6a; }
.button-save { color: var(--accent); background: #213a32; border-color: #355646; }
.button-save:hover:not(:disabled) { background: #2b4a3f; border-color: #618d79; }
.button-danger { color: var(--danger); background: #332426; border-color: #58373b; }
.button-danger:hover:not(:disabled) { background: #482b2f; border-color: #98605f; }
.icon-button { width: 32px; height: 32px; padding: 6px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font-size: 22px; }
.icon-button:hover { color: var(--text); background: #242c34; }
input:not([type="checkbox"]) { display: block; width: 100%; min-height: 44px; padding: 11px 13px; border: 1px solid #343c45; border-radius: 6px; color: var(--text); background: #10151b; font-size: 13px; transition: border-color .15s; }
input:not([type="checkbox"]):focus { border-color: var(--accent); }
input::placeholder { color: #606d79; }
.notice { padding: 12px 15px; border: 1px solid #575039; border-radius: 7px; color: #dfcaa7; background: #28251e; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.notice-error { color: #f0b3ac; background: #2d2022; border-color: #58383d; }
.field-error { margin-top: 10px; color: #f0aca6; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.boot-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 30px; text-align: center; }
.boot-screen p { max-width: 550px; color: var(--muted); }
.spinner { width: 20px; height: 20px; border: 2px solid #2e4239; border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Login */
.login-screen { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-intro { position: relative; min-height: 100vh; padding: 52px clamp(30px, 5vw, 84px); overflow: hidden; background: #121d1c; border-right: 1px solid #27352f; }
.login-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 750; letter-spacing: 2px; }
.brand-light { font-weight: 400; color: #98aaa2; font-size: 12px; letter-spacing: 2px; }
.login-headline { position: relative; z-index: 2; margin-top: clamp(80px, 15vh, 160px); }
.login-headline h1 { margin-top: 25px; font-size: clamp(40px, 4.3vw, 68px); line-height: 1.3; font-weight: 650; letter-spacing: -3px; }
.login-headline h1 span { color: var(--accent); }
.login-headline > p:last-child { margin-top: 30px; color: #a6b2ab; font-size: 13px; line-height: 2; }
.login-intro-footer { position: absolute; left: clamp(30px, 5vw, 84px); bottom: 42px; z-index: 2; display: flex; gap: 10px; align-items: center; color: #81978d; font-size: 9px; letter-spacing: 2px; }
.tiny-square { width: 5px; height: 5px; flex-shrink: 0; background: var(--accent); }
.terrain { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.terrain::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 80%, #275f4933 0, transparent 60%); }
.terrain-orbit { position: absolute; right: -150px; bottom: 105px; width: 530px; height: 530px; border: 1px solid #87ae8b0f; border-radius: 50%; box-shadow: 0 0 0 70px #77aa8105, 0 0 0 140px #77aa8104; }
.terrain-grid { position: absolute; bottom: -180px; left: -100px; width: 950px; height: 650px; background-image: linear-gradient(#81b09318 1px, transparent 1px), linear-gradient(90deg, #81b09318 1px, transparent 1px); background-size: 50px 50px; transform: perspective(650px) rotateX(55deg) rotateZ(-18deg); mask-image: linear-gradient(transparent, #000 40%); }
.terrain-line { position: absolute; width: 650px; height: 170px; bottom: 110px; right: -90px; border: 1px solid #a3c5a32a; transform: rotate(-20deg) skew(-35deg); clip-path: polygon(0 30%, 15% 0, 50% 25%, 70% 10%, 100% 55%, 100% 100%, 0 100%); background: linear-gradient(150deg, #304a3922, transparent); }
.line-two { bottom: 10px; right: -150px; width: 750px; height: 250px; border-color: #a3c5a341; }
.line-three { bottom: -90px; right: -210px; width: 820px; height: 270px; border-color: #a3c5a352; }
.login-panel { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; padding: 75px 35px; }
.login-form-wrap { width: 100%; max-width: 350px; }
.login-form-wrap h2 { margin-top: 12px; font-size: 28px; letter-spacing: -1px; font-weight: 650; }
.login-description { margin-top: 10px; font-size: 13px; }
#login-notice { margin-top: 24px; }
#login-form { margin-top: 36px; }
#login-form label { display: block; margin-bottom: 9px; color: #c7cfd5; font-size: 12px; font-weight: 600; }
#login-form input { margin-bottom: 23px; min-height: 48px; }
.login-submit { width: 100%; justify-content: space-between; margin-top: 9px; padding: 15px 18px; min-height: 48px; }
.login-submit > span:last-child { font-size: 20px; }
.login-help { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--subtle); font-size: 11px; line-height: 1.7; }
.lock-icon { color: #90a69c; font-size: 21px; }
.login-footer { position: absolute; bottom: 42px; color: #78828c; font-size: 9px; letter-spacing: 1.5px; }
.login-footer span { margin-left: 15px; letter-spacing: 0; color: #596571; }

/* Workspace */
.app-shell { display: flex; min-height: 100vh; }
.skip-link { position: fixed; left: 20px; top: -80px; z-index: 100; padding: 12px 20px; border: 1px solid var(--accent); border-radius: 6px; color: var(--accent); background: var(--panel); }
.skip-link:focus { top: 15px; }
.sidebar { width: 230px; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 30px 18px 0; background: #10151b; border-right: 1px solid var(--line-soft); z-index: 10; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 0 12px; font-size: 22px; font-weight: 750; letter-spacing: 2px; }
.sidebar-brand .brand-mark { width: 33px; font-size: 35px; }
.sidebar-brand .brand-mark > span { left: 12px; bottom: 10px; }
.brand-subtitle { display: block; color: #88979e; font-size: 8px; font-weight: 500; letter-spacing: 3.2px; line-height: 1.6; }
.nav-section-label { margin: 54px 14px 16px; color: #68747f; font-size: 9px; font-weight: 600; letter-spacing: 1.8px; }
.navigation { display: flex; flex-direction: column; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 13px; min-height: 44px; padding: 11px 14px; border: 1px solid transparent; border-radius: 6px; color: #88949f; font-size: 12px; transition: background .15s; }
.nav-item svg { width: 17px; height: 17px; }
.nav-item:hover { color: #d6dfdf; background: #1a2229; }
.nav-item.active { background: #1d2d28; border-color: #2b4439; color: var(--accent); }
.nav-dot { width: 4px; height: 4px; margin-left: auto; border-radius: 50%; background: var(--accent); }
.sidebar-bottom { margin-top: auto; }
.server-context { display: flex; align-items: center; gap: 12px; margin: 25px 3px; padding: 14px 10px; border-top: 1px solid var(--line-soft); }
.server-context-icon { color: #718d7e; font-size: 27px; }
.context-label { display: block; color: #687681; font-size: 8px; letter-spacing: 1.2px; }
.server-context strong { display: block; margin-top: 4px; font-size: 11px; font-weight: 500; color: #a9b4bc; }
.user-block { display: flex; align-items: center; gap: 10px; margin: 0 -18px; padding: 20px 20px; border-top: 1px solid var(--line-soft); }
.user-avatar { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; color: #b0bfc3; border: 1px solid #38484b; border-radius: 8px; background: #243237; font-size: 13px; font-weight: 650; }
.user-info { min-width: 0; }
.user-info strong { display: block; overflow: hidden; text-overflow: ellipsis; max-width: 109px; white-space: nowrap; font-weight: 500; font-size: 12px; }
.user-info > span { color: #687580; font-size: 9px; }
.user-block .icon-button { margin-left: auto; flex-shrink: 0; }
.workspace { width: calc(100% - 230px); margin-left: 230px; }
.topbar { min-height: 65px; padding: 0 36px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line-soft); background: #10151b80; }
.breadcrumb { color: #73808c; font-size: 11px; }
.breadcrumb > span { margin: 0 12px; color: #495762; }
.breadcrumb strong { color: #c0cbd2; font-weight: 500; }
.topbar-tag { display: flex; align-items: center; gap: 8px; color: #6b7d78; font-size: 8px; letter-spacing: 1.6px; }
.topbar-tag .tiny-square { width: 3px; height: 3px; opacity: .6; }
.content { max-width: 1500px; padding: 32px 36px 22px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; gap: 20px; }
.page-heading h1 { margin-top: 8px; font-size: 27px; letter-spacing: -1px; font-weight: 650; line-height: 1.4; }
.page-heading .muted { margin-top: 6px; font-size: 12px; }
.page-heading .button { align-self: flex-end; margin-bottom: 4px; }
#dashboard-error { margin-bottom: 18px; }
.server-banner { display: flex; align-items: center; gap: 22px; position: relative; overflow: hidden; min-height: 148px; padding: 26px 28px; background: linear-gradient(110deg, #1b2a26 0%, #16201e 47%, #171f25 100%); border: 1px solid #34453c; border-radius: 10px; }
.server-banner-pattern { position: absolute; width: 480px; height: 350px; right: -90px; top: -170px; border: 1px solid #5e88752a; transform: rotate(-30deg); box-shadow: 0 0 0 45px #5e887509, 0 0 0 90px #5e887505; pointer-events: none; }
.server-emblem { display: flex; align-items: center; justify-content: center; width: 64px; height: 68px; flex-shrink: 0; border: 1px solid #5b7e624f; border-radius: 11px; background: linear-gradient(145deg, #314834, #1d2e26); box-shadow: 0 4px 20px #0002; }
.server-emblem > span { color: #b5c691; font-size: 49px; line-height: 1; text-shadow: 0 0 25px #b4ddb540; }
.server-identity { position: relative; min-width: 0; }
.server-kicker { color: #89aa98; font-size: 9px; letter-spacing: 1.6px; }
.server-identity h2 { margin-top: 6px; font-size: 21px; font-weight: 600; letter-spacing: -.4px; overflow-wrap: anywhere; }
.server-address { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: #8ba399; font-family: Consolas, "SFMono-Regular", monospace; font-size: 10px; overflow-wrap: anywhere; }
.server-address svg { width: 13px; height: 13px; }
.connection-info { position: relative; margin-left: auto; flex-shrink: 0; text-align: right; }
.connection-info p { max-width: 230px; margin-top: 10px; color: #84968d; font-size: 10px; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #4b555c; border-radius: 5px; padding: 6px 10px; background: #243038; color: #aebbc2; font-size: 10px; font-weight: 600; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-reachable { background: #263c31; border-color: #45664e; color: #a9d49f; }
.status-unreachable { background: #392b2a; border-color: #614441; color: #edaaa0; }
.status-stop-requested { background: #3c3324; border-color: #6a5433; color: var(--amber); }
.metrics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0 25px; }
.metric-card { min-height: 145px; padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.metric-label { display: flex; align-items: center; justify-content: space-between; color: #a4afb8; font-size: 11px; }
.metric-label svg { color: #66727f; width: 17px; height: 17px; }
.metric-value { display: flex; align-items: baseline; gap: 7px; margin-top: 15px; }
.metric-value strong { font-size: 31px; font-weight: 500; line-height: 1.3; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.metric-value > span { color: #8796a0; font-size: 12px; }
.metric-time strong { font-size: 25px; line-height: 1.6; }
.metric-card > p { margin-top: 6px; color: #72808b; font-size: 10px; }
.operations-grid { display: grid; grid-template-columns: minmax(0, 1fr) 306px; gap: 20px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 65px; padding: 19px 22px; border-bottom: 1px solid var(--line-soft); }
.panel-title { display: flex; align-items: center; gap: 9px; }
.heading-marker { width: 3px; height: 13px; background: var(--accent); border-radius: 1px; }
.panel-title h2 { font-size: 13px; font-weight: 600; }
.count-badge { padding: 1px 6px; margin-left: 2px; min-width: 22px; border-radius: 4px; background: #29312f; color: #a8bcb1; text-align: center; font-size: 10px; }
.section-code { color: #697782; font-size: 8px; letter-spacing: 1.3px; }
.auto-refresh { display: flex; align-items: center; gap: 7px; position: relative; color: #8b99a3; font-size: 9px; cursor: pointer; }
.auto-refresh input { position: absolute; opacity: 0; width: 26px; height: 16px; margin: 0; cursor: pointer; }
.switch-track { position: relative; width: 26px; height: 14px; flex-shrink: 0; border: 1px solid #3d4953; border-radius: 10px; background: #26313a; pointer-events: none; }
.switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 8px; height: 8px; background: #8c99a2; border-radius: 50%; transition: transform .15s; }
.auto-refresh input:checked + .switch-track { border-color: #548472; background: #2c5042; }
.auto-refresh input:checked + .switch-track::after { transform: translateX(12px); background: #a0e4c8; }
.auto-refresh input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 4px; }
.players-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 18px 22px; }
.search-field { display: flex; align-items: center; position: relative; width: 100%; max-width: 275px; }
.search-field svg { position: absolute; left: 11px; width: 14px; height: 14px; color: #697885; }
.search-field input { min-height: 34px; padding: 8px 12px 8px 33px; font-size: 10px; background: #10151b; border-color: #2d353e; }
.updated-at { color: #66747e; font-size: 9px; white-space: nowrap; }
.table-scroll { overflow: auto; }
.players-table { border-collapse: collapse; width: 100%; text-align: left; table-layout: fixed; }
.players-table th { padding: 10px 22px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: #11171d; color: #81909a; font-size: 9px; font-weight: 500; }
.players-table th:first-child { width: 43%; }
.players-table td { padding: 14px 22px; border-bottom: 1px solid #232b32; color: #94a0aa; font-size: 11px; overflow-wrap: anywhere; }
.players-table tr:last-child td { border-bottom: 0; }
.players-table tbody tr:hover { background: #1a2229; }
.players-table .index-column { width: 70px; text-align: right; }
.player-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.player-avatar { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 6px; border: 1px solid #405046; background: #293a31; color: #bdcdbb; font-size: 10px; }
.player-name { color: #d6dfdf; font-size: 11px; }
.platform-id { font-family: Consolas, "SFMono-Regular", monospace; font-size: 10px; letter-spacing: .1px; }
.empty-state { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 258px; padding: 35px; text-align: center; }
.empty-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: #1c2729; border: 1px solid #33423f; border-radius: 12px; color: #7f9c8e; font-size: 27px; margin-bottom: 16px; }
.empty-state strong { font-size: 12px; font-weight: 500; color: #b4c0c7; }
.empty-state p { margin-top: 7px; font-size: 10px; color: #73828c; line-height: 1.8; }
.panel-footer { display: flex; align-items: center; gap: 6px; padding: 13px 22px; border-top: 1px solid var(--line-soft); color: #788892; font-size: 9px; }
.subtle-dot { flex-shrink: 0; width: 4px; height: 4px; border-radius: 50%; background: #718c7c; }
.raw-details { padding: 0 22px 13px; color: #8fa099; font-size: 9px; }
.raw-details summary { cursor: pointer; width: fit-content; }
.raw-details pre { max-height: 200px; padding: 12px; margin: 12px 0 0; background: #0d1318; border: 1px solid #26332e; border-radius: 5px; color: #b4bfb9; font-size: 10px; white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; }
.actions-panel .panel-heading { padding-right: 20px; padding-left: 20px; }
.action-card { position: relative; padding: 21px 20px; }
.action-icon { position: absolute; top: 21px; right: 20px; display: flex; align-items: center; justify-content: center; width: 29px; height: 29px; border: 1px solid; border-radius: 6px; }
.action-icon svg { width: 14px; height: 14px; }
.save-icon { color: #93c5a9; background: #25342b; border-color: #3c5040; }
.stop-icon { color: #cba19a; background: #34282a; border-color: #514039; }
.action-card h3 { padding-right: 45px; font-size: 12px; font-weight: 600; line-height: 29px; }
.action-card p { color: #82919a; font-size: 10px; line-height: 1.8; margin-top: 7px; }
.action-card .button { width: 100%; margin-top: 16px; justify-content: space-between; font-size: 10px; min-height: 36px; padding: 9px 12px; }
.command-label { font-family: Consolas, "SFMono-Regular", monospace; font-size: 9px; opacity: .6; font-weight: 400; }
.action-danger { border-top: 1px solid var(--line-soft); }
.control-note { padding: 0 20px 17px; color: #647580; font-size: 9px; }
.activity-panel { margin-top: 22px; }
.activity-list { list-style: none; padding: 0 22px; margin: 0; max-height: 430px; overflow-y: auto; }
.activity-item { display: flex; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.activity-item:last-child { border: 0; }
.activity-symbol { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 27px; height: 27px; border: 1px solid #36473e; background: #223027; border-radius: 6px; color: #99bea5; font-size: 12px; }
.activity-symbol.failure { border-color: #58403f; background: #332728; color: #d9988e; }
.activity-description { min-width: 0; }
.activity-description strong { color: #bfccd0; font-size: 11px; font-weight: 500; }
.activity-description p { color: #6e7e89; font-size: 9px; margin-top: 3px; overflow-wrap: anywhere; }
.activity-meta { display: flex; align-items: center; gap: 18px; flex-shrink: 0; margin-left: auto; }
.activity-outcome { color: #96baa0; font-size: 9px; }
.activity-outcome.failure { color: #d89b92; }
.activity-meta time { color: #6d7d86; font-size: 9px; font-variant-numeric: tabular-nums; }
.activity-empty { padding: 32px 22px; color: #82929b; font-size: 11px; }
.workspace-footer { display: flex; justify-content: space-between; gap: 15px; padding-top: 22px; color: #596974; font-size: 8px; letter-spacing: 1px; }
.workspace-footer > span:last-child { letter-spacing: 0; }
.footer-separator { margin: 0 6px; color: #3b4a53; }
.toast { position: fixed; bottom: 24px; left: calc(50% + 115px); transform: translateX(-50%); z-index: 50; display: flex; gap: 20px; align-items: center; padding: 13px 16px; max-width: min(600px, calc(100vw - 40px)); border: 1px solid #527660; border-radius: 9px; background: #23392d; box-shadow: 0 8px 35px #0008; color: #d5e8d7; font-size: 12px; }
.toast.error { background: #38272a; border-color: #805552; color: #f1c4ba; }
.toast .icon-button { flex-shrink: 0; }
.stop-dialog { width: min(460px, calc(100vw - 40px)); padding: 30px; color: var(--text); background: #171d24; border: 1px solid #46505a; border-radius: 12px; box-shadow: 0 25px 100px #0008; }
.stop-dialog::backdrop { background: #03080dd9; backdrop-filter: blur(5px); }
.dialog-warning { display: flex; justify-content: center; align-items: center; margin-bottom: 20px; width: 42px; height: 42px; color: #e4b075; background: #392f23; border: 1px solid #6b5334; border-radius: 10px; }
.stop-dialog .eyebrow { color: #d9a773; font-size: 9px; }
.stop-dialog h2 { font-size: 24px; font-weight: 600; margin-top: 9px; letter-spacing: -.7px; }
#stop-dialog-description { margin-top: 14px; font-size: 12px; color: #9ba8b2; line-height: 1.9; }
.stop-dialog label { display: block; margin: 25px 0 10px; color: #afbdc4; font-size: 11px; }
.stop-dialog label strong { color: #e6b2a4; font-family: Consolas, monospace; }
.dialog-buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.noscript-notice { position: fixed; inset: 0; display: grid; place-content: center; background: var(--background); color: var(--text); padding: 30px; z-index: 100; }

@media (min-width: 1600px) {
  .content { padding-top: 42px; }
  .operations-grid { grid-template-columns: minmax(0, 1fr) 330px; }
}
@media (max-width: 1200px) {
  .sidebar { width: 195px; padding-left: 12px; padding-right: 12px; }
  .workspace { width: calc(100% - 195px); margin-left: 195px; }
  .user-block { margin: 0 -12px; padding-right: 10px; padding-left: 15px; }
  .user-info strong { max-width: 86px; }
  .content { padding: 28px 24px 22px; }
  .topbar { padding: 0 24px; }
  .operations-grid { grid-template-columns: minmax(0, 1fr) 268px; gap: 16px; }
  .panel-heading, .players-toolbar { padding-left: 17px; padding-right: 17px; }
  .players-toolbar { flex-wrap: wrap; gap: 8px; }
  .search-field { max-width: none; }
  .players-table th, .players-table td { padding-left: 17px; padding-right: 17px; }
  .auto-refresh { font-size: 8px; }
  .toast { left: calc(50% + 97px); }
  .server-banner { padding: 24px; gap: 16px; }
  .server-identity h2 { font-size: 19px; }
  .metric-card { padding: 18px; }
}
@media (max-width: 1000px) {
  .operations-grid { grid-template-columns: minmax(0, 1fr); }
  .actions-panel { display: grid; grid-template-columns: 1fr 1fr; }
  .actions-panel .panel-heading { grid-column: 1 / -1; }
  .action-danger { border-top: 0; border-left: 1px solid var(--line-soft); }
  .control-note { grid-column: 1 / -1; }
  .players-toolbar { flex-wrap: nowrap; }
  .search-field { max-width: 300px; }
  .server-banner { flex-wrap: wrap; }
  .connection-info { padding-left: 80px; margin-left: 0; text-align: left; flex-basis: 100%; }
  .connection-info p { display: inline; margin-left: 10px; }
  .metrics-grid { gap: 10px; }
  .metric-time strong { font-size: 20px; }
  .metric-label { font-size: 10px; }
  .metric-label svg { width: 14px; height: 14px; }
  .metric-card { padding: 16px 14px; }
  .login-screen { grid-template-columns: .9fr 1fr; }
  .login-intro { padding: 40px 35px; }
  .login-headline h1 { font-size: 45px; }
  .login-brand { font-size: 15px; gap: 9px; }
  .brand-light { font-size: 9px; }
}
@media (max-width: 760px) {
  .sidebar { width: 100%; height: auto; position: relative; padding: 14px 18px; flex-direction: row; align-items: center; gap: 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .app-shell { flex-direction: column; }
  .sidebar-brand { padding: 0; gap: 8px; font-size: 17px; }
  .sidebar-brand .brand-mark { font-size: 30px; height: 32px; width: 29px; }
  .sidebar-brand .brand-mark > span { bottom: 6px; left: 10px; }
  .brand-subtitle { font-size: 6px; letter-spacing: 2px; }
  .nav-section-label, .server-context, .user-info, .user-avatar, .nav-dot { display: none; }
  .navigation { flex-direction: row; gap: 5px; margin-left: auto; }
  .nav-item { min-height: 34px; padding: 8px; gap: 6px; font-size: 10px; }
  .nav-item svg { width: 14px; height: 14px; }
  .nav-item.active { border-color: transparent; background: #1c2d26; }
  .nav-item.active span { font-size: 0; }
  .nav-item.active span::after { content: "대시보드"; font-size: 10px; }
  .sidebar-bottom { margin: 0; }
  .user-block { border: 0; padding: 0; margin: 0; }
  .workspace { width: 100%; margin: 0; }
  .topbar { min-height: 45px; padding: 0 20px; }
  .topbar-tag { font-size: 7px; letter-spacing: 1px; }
  .content { padding: 24px 20px 20px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading { margin-bottom: 20px; }
  .page-heading .button { padding: 9px 12px; font-size: 10px; }
  .metrics-grid { margin-bottom: 20px; }
  .toast { left: 50%; }
  .workspace-footer { flex-wrap: wrap; font-size: 7px; }
  .login-screen { grid-template-columns: 1fr; }
  .login-intro { min-height: 320px; padding: 25px 30px 35px; border: 0; border-bottom: 1px solid #304138; }
  .login-headline { margin-top: 33px; }
  .login-headline h1 { font-size: 38px; margin-top: 12px; letter-spacing: -2px; }
  .login-headline h1 br { display: none; }
  .login-headline > p:last-child { margin-top: 15px; font-size: 11px; }
  .login-intro-footer { display: none; }
  .terrain-grid { bottom: -350px; left: 100px; }
  .terrain-line { bottom: -80px; }
  .terrain-orbit { bottom: -300px; }
  .login-panel { min-height: 500px; padding: 40px 30px 75px; justify-content: flex-start; }
  .login-form-wrap h2 { font-size: 24px; }
  #login-form { margin-top: 28px; }
  .login-footer { bottom: 24px; }
}
@media (max-width: 480px) {
  .sidebar { padding: 13px 14px; gap: 8px; }
  .nav-item { padding: 7px; }
  .nav-item:not(.active) > span { display: none; }
  .sidebar-brand { font-size: 16px; }
  .topbar-tag { display: none; }
  .content { padding-left: 15px; padding-right: 15px; }
  .page-heading .eyebrow { font-size: 8px; letter-spacing: 1.7px; }
  .page-heading h1 { font-size: 22px; }
  .page-heading .muted { font-size: 10px; }
  .server-banner { padding: 20px; gap: 13px; }
  .server-emblem { width: 49px; height: 54px; }
  .server-emblem > span { font-size: 38px; }
  .server-kicker { font-size: 7px; letter-spacing: 1px; }
  .server-identity h2 { font-size: 16px; }
  .server-address { font-size: 9px; }
  .connection-info { padding-left: 0; }
  .connection-info p { margin-left: 7px; font-size: 9px; }
  .metrics-grid { grid-template-columns: 1fr; gap: 9px; }
  .metric-card { min-height: 90px; padding: 15px 17px; position: relative; }
  .metric-label { width: 55%; font-size: 11px; }
  .metric-label svg { display: none; }
  .metric-value { position: absolute; top: 20px; right: 18px; margin: 0; }
  .metric-value strong { font-size: 29px; }
  .metric-time strong { font-size: 22px; line-height: 1.8; }
  .metric-card > p { margin-top: 15px; max-width: 58%; font-size: 9px; }
  .panel-heading { padding: 17px 15px; min-height: 59px; }
  .panel-title h2 { font-size: 12px; }
  .players-toolbar { flex-wrap: wrap; padding: 14px 15px; gap: 8px; }
  .search-field { max-width: 100%; }
  .auto-refresh { font-size: 8px; gap: 5px; }
  .players-table th, .players-table td { padding: 12px 15px; }
  .players-table th:first-child { width: 45%; }
  .players-table .index-column { width: 40px; padding-right: 15px; padding-left: 0; }
  .player-cell { gap: 7px; }
  .player-avatar { width: 23px; height: 23px; font-size: 9px; }
  .player-name, .platform-id { font-size: 9px; }
  .actions-panel { grid-template-columns: 1fr; }
  .action-danger { border-left: 0; border-top: 1px solid var(--line-soft); }
  .action-card { padding: 20px; }
  .action-card p { font-size: 11px; }
  .activity-list { padding: 0 15px; }
  .activity-item { flex-wrap: wrap; gap: 10px; }
  .activity-meta { gap: 12px; }
  .activity-meta time { font-size: 8px; }
  .activity-description strong { font-size: 10px; }
  .activity-description p { font-size: 8px; }
  .stop-dialog { padding: 25px; }
  .login-headline h1 { font-size: 33px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
