:root {
    color-scheme: dark;
    --ink: #f2f7f8;
    --muted: #a9b6bc;
    --dim: #728087;
    --line: rgba(217, 238, 242, 0.12);
    --line-strong: rgba(222, 244, 247, 0.24);
    --panel: rgba(255, 255, 255, 0.025);
    --panel-solid: #0d171b;
    --cyan: #68e0d3;
    --violet: #aea4ff;
    --gold: #f4c979;
    --rose: #ff8da6;
    --green: #98e3a6;
    --danger: #ff8585;
    --shadow: 0 32px 100px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.045);
    font-family: "Segoe UI", "Microsoft YaHei UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    min-width: 320px;
    min-height: 100%;
    background: #03080a;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: #03080a;
    letter-spacing: 0;
}

button, input { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }

#galaxy-canvas,
.space-veil,
.glass-refraction-lines {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#galaxy-canvas { z-index: 0; display: block; }

.space-veil {
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(1, 5, 16, 0.02) 0%, rgba(2, 7, 22, 0.045) 52%, rgba(1, 4, 14, 0.2) 100%),
        linear-gradient(90deg, rgba(1, 5, 16, 0.13) 0%, rgba(1, 6, 20, 0.015) 50%, rgba(2, 5, 18, 0.09) 100%);
}

.glass-refraction-lines { display: none; }

body[data-gpu="fallback"] #galaxy-canvas {
    background:
        linear-gradient(154deg, transparent 26%, rgba(86, 91, 139, 0.17) 42%, rgba(233, 191, 130, 0.13) 50%, rgba(68, 133, 143, 0.11) 57%, transparent 72%),
        #03080a;
}

.app-shell {
    position: relative;
    z-index: 2;
    width: min(1320px, calc(100% - 48px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.topbar {
    position: relative;
    overflow: hidden;
    min-height: 78px;
    margin-top: 18px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 4px 90px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.topbar::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 0%, #fff 34%, #fff 89%, transparent 100%);
    opacity: 0.3;
    filter: blur(0.5px);
    mix-blend-mode: hard-light;
}

.brand { min-width: 0; display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }

.brand-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(104, 224, 211, 0.52);
    border-radius: 6px;
    color: #061012;
    background: linear-gradient(135deg, var(--cyan), #a8ead2 54%, var(--gold));
    box-shadow: 0 0 30px rgba(104, 224, 211, 0.16);
    font-size: 13px;
    font-weight: 800;
}

.brand-copy { min-width: 0; display: grid; gap: 2px; }
.brand-copy strong { overflow: hidden; color: var(--ink); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.brand-copy small { color: var(--dim); font-size: 10px; }

.topbar-actions { display: flex; align-items: center; gap: 16px; }

.hotkey-trigger {
    height: 34px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
    font-size: 10px;
    font-weight: 720;
}

.hotkey-trigger i { color: var(--gold); font-size: 16px; }
.hotkey-trigger:hover { border-color: rgba(244, 201, 121, 0.4); color: var(--ink); background: rgba(244, 201, 121, 0.07); }
.hotkey-trigger:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.language-switch {
    height: 32px;
    padding: 3px;
    display: inline-grid;
    grid-template-columns: repeat(2, 34px);
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(5, 6, 9, 0.62);
}

.language-switch button {
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    color: var(--dim);
    background: transparent;
    cursor: pointer;
    font-size: 10px;
    font-weight: 750;
}

.language-switch button.active { color: #0a1112; background: var(--cyan); }

.language-switch button:focus-visible,
.button:focus-visible,
.icon-button:focus-visible,
.step-button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

.system-state { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }

.state-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 4px rgba(114, 222, 219, 0.1), 0 0 15px rgba(114, 222, 219, 0.7);
}

.main-stage {
    display: grid;
    grid-template-columns: minmax(330px, 0.9fr) minmax(480px, 1.1fr);
    align-items: center;
    gap: clamp(48px, 7vw, 106px);
    padding: 46px 3.2vw 56px;
}

body.login-only .app-shell { width: min(500px, calc(100% - 32px)); grid-template-rows: 1fr; }
body.login-only .topbar,
body.login-only .identity-pane,
body.login-only .footer-line { display: none; }

body.login-only .main-stage {
    min-height: 100vh;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.login-only .login-panel { width: 100%; }

.identity-pane { min-width: 0; }

.eyebrow,
.panel-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--cyan);
    font-size: 10px;
    font-weight: 750;
}

.eyebrow > span:first-child { width: 30px; height: 1px; flex: 0 0 30px; background: var(--cyan); }
.panel-kicker i { font-size: 17px; }

.identity-pane h1 {
    max-width: 540px;
    margin: 17px 0 8px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.04;
    font-weight: 690;
}

.identity-pane h1 span,
.identity-pane h1 b { display: block; overflow-wrap: anywhere; }
.identity-pane h1 span { color: #fffdf7; }
.identity-pane h1 b { color: var(--muted); font-weight: 430; }

.identity-sub { margin: 0; color: var(--muted); font-family: Consolas, "Cascadia Mono", monospace; font-size: 11px; }

.telemetry {
    max-width: 440px;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.telemetry > div { min-width: 0; padding: 11px 13px; background: rgba(7, 15, 18, 0.5); }
.telemetry span, .telemetry strong { display: block; }
.telemetry span { overflow: hidden; color: var(--dim); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.telemetry strong { margin-top: 4px; color: var(--gold); font-size: 12px; }

.menu-guide-visual {
    position: relative;
    width: min(438px, 100%);
    min-height: 210px;
    margin-top: 28px;
    padding: 34px 16px 16px;
    overflow: hidden;
    border: 1px solid rgba(223, 226, 236, 0.15);
    border-radius: 8px;
    background:
        linear-gradient(rgba(222, 244, 247, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(222, 244, 247, 0.045) 1px, transparent 1px),
        rgba(5, 14, 18, 0.42);
    background-size: 25% 25%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 18px 50px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.menu-guide-visual::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(167, 162, 255, 0.08);
    pointer-events: none;
}

.menu-guide-mode {
    position: absolute;
    z-index: 4;
    top: 11px;
    left: 12px;
    display: flex;
    gap: 7px;
    color: var(--dim);
    font-family: Consolas, "Cascadia Mono", monospace;
    font-size: 9px;
}

.menu-guide-mode strong { color: var(--violet); font-weight: 650; }

.menu-guide-body {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    align-items: center;
    gap: 8px 18px;
}

.menu-guide-hotkey {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
}

.menu-guide-hotkey kbd {
    min-width: 44px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(222, 244, 247, 0.2);
    border-bottom-color: rgba(244, 201, 121, 0.42);
    border-radius: 6px;
    color: var(--gold);
    background: rgba(1, 8, 11, 0.55);
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.025);
    font-family: Consolas, "Cascadia Mono", monospace;
    font-size: 13px;
    font-weight: 700;
}

.menu-guide-hotkey strong, .menu-guide-hotkey small { display: block; }
.menu-guide-hotkey strong { color: var(--ink); font-size: 12px; }
.menu-guide-hotkey small { margin-top: 3px; color: var(--dim); font-size: 9px; }

.numpad-device {
    width: 128px;
    padding: 9px;
    border: 1px solid rgba(222, 244, 247, 0.24);
    border-radius: 7px;
    background: rgba(5, 14, 18, 0.76);
    box-shadow: inset 0 0 18px rgba(104, 224, 211, 0.06), 0 8px 20px rgba(0, 0, 0, 0.16);
    justify-self: center;
}

.numpad-label {
    display: block;
    margin-bottom: 7px;
    color: var(--dim);
    font-family: Consolas, "Cascadia Mono", monospace;
    font-size: 8px;
    letter-spacing: 0.08em;
}

.numpad-cross {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 30px);
    gap: 4px;
}

.numpad-cross kbd {
    display: grid;
    place-items: center;
    border: 1px solid rgba(222, 244, 247, 0.18);
    border-bottom-color: rgba(244, 201, 121, 0.42);
    border-radius: 4px;
    color: var(--cyan);
    background: rgba(1, 8, 11, 0.62);
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.025);
    font-family: Consolas, "Cascadia Mono", monospace;
    font-size: 9px;
    line-height: 1;
}

.numpad-up { grid-area: 1 / 2; }
.numpad-left { grid-area: 2 / 1; }
.numpad-center { grid-area: 2 / 2; color: var(--dim); }
.numpad-right { grid-area: 2 / 3; }
.numpad-down { grid-area: 3 / 2; }
.numpad-up, .numpad-down { color: var(--gold); background: rgba(240, 199, 119, 0.08); }

.menu-guide-actions { min-width: 0; display: grid; gap: 8px; }
.menu-guide-action { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 9px; }
.menu-guide-keys { display: inline-flex; gap: 4px; }

.menu-guide-keys kbd {
    width: 24px;
    min-height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(222, 244, 247, 0.18);
    border-bottom-color: rgba(244, 201, 121, 0.42);
    border-radius: 3px;
    color: var(--gold);
    background: rgba(1, 8, 11, 0.62);
    font-family: Consolas, "Cascadia Mono", monospace;
    font-size: 10px;
}

.menu-guide-action strong, .menu-guide-action small { display: block; }
.menu-guide-action strong { color: var(--ink); font-size: 11px; }
.menu-guide-action small { margin-top: 3px; color: var(--dim); font-size: 9px; line-height: 1.4; }

.glass-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 4px 90px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.glass-panel::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 0%, #fff 34%, #fff 89%, transparent 100%);
    opacity: 0.3;
    filter: blur(0.5px);
    mix-blend-mode: hard-light;
}

.login-panel { padding: clamp(28px, 4vw, 48px); }
.login-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.login-language-switch { flex: 0 0 auto; }

.login-panel h2,
.control-panel h2 { margin: 12px 0 5px; font-size: 26px; line-height: 1.2; }
.panel-subtitle { margin: 0 0 30px; color: var(--muted); font-size: 13px; }
.field-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; }

.key-field { position: relative; height: 54px; display: flex; align-items: center; }
.key-field > i { position: absolute; left: 16px; z-index: 1; color: var(--cyan); font-size: 19px; }

.key-field input {
    width: 100%;
    height: 54px;
    padding: 0 66px 0 46px;
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    color: var(--ink);
    background: rgba(2, 10, 13, 0.56);
    box-shadow: inset 0 1px 18px rgba(0, 0, 0, 0.17);
    font-family: Consolas, "Cascadia Mono", monospace;
    font-size: 14px;
    text-transform: uppercase;
}

.key-field input::placeholder { color: #626874; }
.key-field input:focus { border-color: rgba(114, 222, 219, 0.65); }
.key-count { position: absolute; right: 14px; color: var(--dim); font-family: Consolas, monospace; font-size: 10px; }

.form-message { min-height: 36px; padding-top: 9px; color: var(--danger); font-size: 12px; }
.form-message.success { color: var(--cyan); }

.login-actions,
.control-actions,
.download-dialog-actions { display: flex; gap: 10px; }

.button {
    min-height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 720;
    transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: 0.58; }
.button-primary { color: #071112; background: var(--cyan); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 12px 28px rgba(104, 224, 211, 0.1); }
.button-primary:hover:not(:disabled) { background: #8ce8df; }
.button-secondary { border-color: var(--line-strong); color: var(--ink); background: rgba(255, 255, 255, 0.035); }
.button-secondary:hover:not(:disabled) { border-color: rgba(167, 162, 255, 0.54); background: rgba(167, 162, 255, 0.09); }
.login-actions .button { flex: 1 1 0; }

.control-panel { padding: clamp(24px, 3vw, 34px); }

.control-head,
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.control-head h2 { margin-bottom: 0; }
.control-head-actions { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.control-menu-toggle,
.control-logout { min-height: 36px; padding: 0 12px; color: var(--muted); }
.control-menu-toggle.active { border-color: rgba(104, 224, 211, 0.6); color: #0a1112; background: var(--cyan); }
.control-logout:hover:not(:disabled) { border-color: rgba(255, 133, 133, 0.5); color: #ffd4d4; background: rgba(255, 133, 133, 0.08); }

.icon-button,
.step-button {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
}

.icon-button:hover,
.step-button:hover { border-color: var(--line-strong); color: var(--cyan); }

.license-strip {
    margin: 22px 0;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(2, 10, 13, 0.35);
}

.license-strip > div { min-width: 0; padding: 11px 12px; border-right: 1px solid var(--line); }
.license-strip > div:last-child { border-right: 0; }
.license-strip span, .license-strip strong { display: block; }
.license-strip span { color: var(--dim); font-size: 9px; }
.license-strip strong { margin-top: 5px; overflow: hidden; color: var(--gold); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mono { font-family: Consolas, "Cascadia Mono", monospace; }

.portal-notice {
    margin: -7px 0 20px;
    padding: 10px 12px;
    border-left: 2px solid var(--gold);
    color: #e3d7bd;
    background: rgba(240, 199, 119, 0.07);
    font-size: 12px;
}

.settings-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.setting-section,
.visual-settings-section { min-width: 0; }

.section-title { margin-bottom: 13px; display: flex; align-items: center; gap: 8px; }
.section-title > span { color: var(--violet); font-family: Consolas, monospace; font-size: 10px; }
.section-title h3 { margin: 0; color: var(--ink); font-size: 13px; }

.control-row { padding: 10px 0 12px; border-top: 1px solid var(--line); }
.control-meta { margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.control-meta label { color: var(--muted); font-size: 11px; }
.control-meta output { min-width: 26px; color: var(--cyan); font-family: Consolas, monospace; font-size: 12px; text-align: right; }

.control-inputs { display: grid; grid-template-columns: 28px minmax(0, 1fr) 28px; align-items: center; gap: 9px; }
.step-button { width: 28px; height: 28px; min-width: 28px; min-height: 28px; font-size: 14px; }

input[type="range"] {
    --fill: 20%;
    width: 100%;
    height: 18px;
    margin: 0;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 3px;
    border-radius: 0;
    background: linear-gradient(90deg, var(--cyan) 0 var(--fill), rgba(224, 228, 238, 0.18) var(--fill) 100%);
}

input[type="range"]::-webkit-slider-thumb {
    width: 12px;
    height: 12px;
    margin-top: -4.5px;
    appearance: none;
    border: 2px solid #0b1113;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 1px var(--cyan);
}

input[type="range"]::-moz-range-track { height: 3px; background: rgba(224, 228, 238, 0.18); }
input[type="range"]::-moz-range-progress { height: 3px; background: var(--cyan); }
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border: 2px solid #0b1113; border-radius: 50%; background: var(--cyan); }

.visual-settings-section { margin-top: 22px; }

.visual-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 26px;
    border-top: 1px solid var(--line);
}

.config-setting {
    min-width: 0;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
}

.config-setting > strong { min-width: 0; color: var(--muted); font-size: 11px; font-weight: 560; line-height: 1.4; }

.toggle-control { position: relative; width: 38px; height: 22px; flex: 0 0 38px; }

.toggle-control input {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.toggle-track {
    position: absolute;
    inset: 0;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.045);
    transition: border-color 150ms ease, background-color 150ms ease;
}

.toggle-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--dim);
    transition: transform 150ms ease, background-color 150ms ease;
}

.toggle-control input:checked + .toggle-track { border-color: rgba(104, 224, 211, 0.58); background: rgba(104, 224, 211, 0.14); }
.toggle-control input:checked + .toggle-track::after { background: var(--cyan); transform: translateX(16px); }
.toggle-control input:focus-visible + .toggle-track { outline: 2px solid rgba(167, 162, 255, 0.66); outline-offset: 2px; }

.color-control { min-width: 106px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; }

.color-control input[type="color"] {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    padding: 3px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: rgba(2, 10, 13, 0.56);
    cursor: pointer;
}

.color-control input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-control input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 2px; }
.color-control input[type="color"]::-moz-color-swatch { border: 0; border-radius: 2px; }

.color-control output { width: 63px; color: var(--dim); font-family: Consolas, "Cascadia Mono", monospace; font-size: 9px; text-align: right; text-transform: lowercase; }

/* Item configuration categories */
.item-config-root { margin-top: 22px; display: grid; gap: 16px; }

.item-category {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(2, 10, 13, 0.3);
}

.item-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.item-category-head .section-title { margin-bottom: 0; }

.item-master {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px;
    border-radius: 6px;
    cursor: pointer;
}

.item-master-label { color: var(--gold); font-size: 10px; font-weight: 750; letter-spacing: 0.02em; }

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0 24px;
    padding: 4px 15px 12px;
}

.item-row {
    min-width: 0;
    min-height: 48px;
    padding: 8px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    border-radius: 6px;
}

.item-row-label { min-width: 0; color: var(--muted); font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.item-row-controls { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.item-row-controls .color-control { min-width: 0; }
.item-row-controls .color-control output { width: 52px; }

.nav-active {
    outline: 2px solid var(--cyan);
    outline-offset: 1px;
    background: rgba(104, 224, 211, 0.1) !important;
    box-shadow: 0 0 18px rgba(104, 224, 211, 0.18);
}

body.menu-mode .control-panel { scroll-margin-top: 20px; }

/* Floating menu hint */
.menu-hint {
    position: fixed;
    z-index: 30;
    left: 24px;
    bottom: 24px;
    width: min(330px, calc(100% - 48px));
    padding: 14px 16px;
    display: grid;
    gap: 11px;
    border: 1px solid rgba(104, 224, 211, 0.42);
    border-radius: 8px;
    background: rgba(11, 16, 18, 0.96);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

.menu-hint-head { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-size: 11px; font-weight: 750; }
.menu-hint-head i { font-size: 16px; }

.menu-hint-current {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(2, 10, 13, 0.5);
}

.menu-hint-current span { color: var(--dim); font-size: 9px; }
.menu-hint-current strong { min-width: 0; overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.menu-hint-current em { margin-left: auto; font-style: normal; font-weight: 700; font-size: 11px; color: var(--dim); }
.menu-hint-current em.is-on { color: var(--green); }
.menu-hint-current em.is-off { color: var(--danger); }

.menu-hint-keys { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.menu-hint-keys span { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-size: 9px; }

.menu-hint-keys kbd {
    min-width: 20px;
    min-height: 22px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(222, 244, 247, 0.2);
    border-bottom-color: rgba(244, 201, 121, 0.42);
    border-radius: 4px;
    color: var(--cyan);
    background: rgba(1, 8, 11, 0.55);
    font-family: Consolas, "Cascadia Mono", monospace;
    font-size: 9px;
}

.control-actions { margin-top: 22px; }
.control-actions .button { flex: 1 1 0; }
.button-download { border-color: rgba(240, 199, 119, 0.45); color: var(--gold); background: rgba(240, 199, 119, 0.07); }
.button-download:hover:not(:disabled) { background: rgba(240, 199, 119, 0.13); }
.button-save { color: #071112; background: var(--cyan); }

.footer-line {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(229, 232, 240, 0.1);
    color: var(--dim);
    font-size: 9px;
}

.footer-rule { width: 24px; height: 1px; background: var(--line-strong); }

.glass-dialog {
    width: min(500px, calc(100% - 32px));
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 90px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.glass-dialog::backdrop { background: rgba(1, 5, 7, 0.76); backdrop-filter: blur(8px); }
.glass-dialog form { padding: 24px; }
.dialog-head { align-items: center; }
.dialog-head h3 { margin: 0; font-size: 17px; }
.dialog-body { margin: 20px 0; border-top: 1px solid var(--line); }

.dialog-row {
    padding: 10px 0;
    display: grid;
    grid-template-columns: minmax(80px, 0.42fr) minmax(0, 1fr);
    gap: 16px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}

.dialog-row span { color: var(--dim); }
.dialog-row strong { overflow-wrap: anywhere; text-align: right; }
.glass-dialog > form > .button-primary { width: 100%; }

.hotkey-dialog { width: min(640px, calc(100% - 32px)); max-height: min(820px, calc(100vh - 32px)); }
.hotkey-trigger kbd { min-width: 28px; padding: 2px 6px; border: 1px solid rgba(244, 201, 121, 0.45); border-radius: 4px; color: var(--gold); font-family: Consolas, "Cascadia Mono", monospace; font-size: 11px; line-height: 1.4; }
.hotkey-line-only { margin-top: 16px; }
.hotkey-dialog > form { padding: clamp(20px, 3vw, 30px); }
.hotkey-dialog-head h3 { margin-top: 7px; font-size: 22px; }
.hotkey-intro { margin: 12px 0 20px; color: var(--muted); font-size: 11px; }

.hotkey-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.hotkey-group { min-width: 0; }
.hotkey-group-wide { grid-column: 1 / -1; }

.hotkey-group-title { min-height: 28px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line-strong); }
.hotkey-group-title span { color: var(--gold); font-family: Consolas, "Cascadia Mono", monospace; font-size: 9px; }
.hotkey-group-title h4 { margin: 0; color: var(--ink); font-size: 11px; }

.hotkey-list { display: grid; }
.hotkey-list-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }

.hotkey-line {
    position: relative;
    min-width: 0;
    min-height: 58px;
    padding: 10px 2px;
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.hotkey-line kbd {
    min-width: 0;
    min-height: 30px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(222, 244, 247, 0.2);
    border-bottom-color: rgba(244, 201, 121, 0.42);
    border-radius: 5px;
    color: var(--cyan);
    background: rgba(1, 8, 11, 0.55);
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.025);
    font-family: Consolas, "Cascadia Mono", monospace;
    font-size: 9px;
    text-align: center;
    white-space: nowrap;
}

.hotkey-line > span { min-width: 0; }
.hotkey-line strong, .hotkey-line small { display: block; }
.hotkey-line strong { color: var(--ink); font-size: 11px; }
.hotkey-line small { margin-top: 4px; color: var(--dim); font-size: 9px; line-height: 1.45; }

.hotkey-instructions { margin-top: 22px; }

.hotkey-instruction-list {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    list-style: none;
}

.hotkey-instruction-list li {
    min-width: 0;
    padding: 10px 2px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    border-bottom: 1px solid var(--line);
}

.hotkey-instruction-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.hotkey-instruction-list li > span { color: var(--gold); font-family: Consolas, "Cascadia Mono", monospace; font-size: 9px; }
.hotkey-instruction-list strong { color: var(--muted); font-size: 10px; font-weight: 560; line-height: 1.55; }

.hotkey-dialog-footer { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.hotkey-dialog-footer > span { min-width: 0; display: inline-flex; align-items: center; gap: 7px; color: var(--dim); font-size: 9px; }
.hotkey-dialog-footer > span i { color: var(--gold); font-size: 15px; }
.hotkey-dialog-footer .button { min-width: 150px; }

.download-dialog { width: min(680px, calc(100% - 32px)); }
.download-dialog .dialog-head h3 { margin-top: 6px; }

.download-command-block { margin: 20px 0 16px; overflow: auto; border: 1px solid var(--line); border-radius: 4px; background: #06070a; }

.download-command-block pre {
    min-height: 104px;
    margin: 0;
    padding: 14px;
    color: #d9d9e3;
    font-family: Consolas, "Cascadia Mono", monospace;
    font-size: 11px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    user-select: all;
}

.download-dialog-actions .button { flex: 1 1 0; }
.download-copy-status { margin-top: 12px; color: var(--cyan); font-size: 12px; text-align: center; }
.download-copy-status.error { color: var(--danger); }

.toast {
    position: fixed;
    z-index: 20;
    right: 24px;
    bottom: 24px;
    max-width: min(360px, calc(100% - 48px));
    padding: 12px 16px;
    border: 1px solid rgba(114, 222, 219, 0.42);
    border-radius: 5px;
    color: var(--ink);
    background: rgba(11, 16, 18, 0.96);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 160ms ease, transform 160ms ease;
    font-size: 12px;
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { border-color: rgba(255, 133, 133, 0.5); color: #ffd4d4; }

@media (max-width: 1040px) {
    .main-stage { grid-template-columns: minmax(290px, 0.8fr) minmax(450px, 1.2fr); gap: 40px; padding-inline: 0; }
    .identity-pane h1 { font-size: 44px; }
}

@media (max-width: 880px) {
    .app-shell { width: min(720px, calc(100% - 36px)); }
    .main-stage { grid-template-columns: 1fr; gap: 34px; align-items: start; padding: 40px 0 48px; }
    .identity-pane { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr); column-gap: 30px; align-items: end; }
    .identity-pane .eyebrow, .identity-pane h1, .identity-pane .identity-sub, .identity-pane .telemetry { grid-column: 1; }
    .menu-guide-visual { grid-column: 2; grid-row: 1 / span 4; margin: 0; }
    .identity-pane h1 { font-size: 38px; }
    .telemetry { margin-top: 22px; }
}

@media (max-width: 650px) {
    .app-shell { width: min(calc(100% - 28px), 560px); }
    .topbar { min-height: 64px; margin-top: 10px; padding: 0 11px; gap: 10px; }
    .brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
    .brand-copy small, .system-state span:last-child { display: none; }
    .topbar-actions { gap: 7px; }
    .hotkey-trigger { width: 34px; padding: 0; justify-content: center; }
    .hotkey-trigger span { display: none; }
    .language-switch { grid-template-columns: repeat(2, 31px); }
    .main-stage { padding: 30px 0 38px; }
    .identity-pane { display: block; }
    .identity-pane h1 { margin-top: 14px; font-size: 34px; }
    .menu-guide-visual { margin-top: 24px; }
    .login-panel, .control-panel { padding: 24px 18px; }
    .settings-layout { grid-template-columns: 1fr; gap: 20px; }
    .visual-settings-grid { grid-template-columns: 1fr; }
    .item-grid { grid-template-columns: 1fr; }
    .control-head { flex-direction: column; }
    .control-head-actions { justify-content: flex-start; }
    .license-strip { grid-template-columns: 1fr 1fr; }
    .license-strip > div { border-bottom: 1px solid var(--line); }
    .license-strip > div:nth-child(2) { border-right: 0; }
    .license-strip > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
    .login-actions, .control-actions { flex-direction: column; }
    .hotkey-board { grid-template-columns: 1fr; gap: 18px; }
    .hotkey-group-wide { grid-column: auto; }
    .hotkey-list-compact { grid-template-columns: 1fr; }
    .hotkey-instruction-list { grid-template-columns: 1fr; }
    .hotkey-instruction-list li:last-child:nth-child(odd) { grid-column: auto; }
    .hotkey-dialog-footer { align-items: stretch; flex-direction: column; }
    .hotkey-dialog-footer .button { width: 100%; }
    .footer-line { justify-content: center; }
    .toast { right: 14px; bottom: 14px; max-width: calc(100% - 28px); }
    .menu-hint { left: 14px; right: 14px; bottom: 14px; width: auto; }
}

@media (max-width: 390px) {
    .app-shell { width: calc(100% - 20px); }
    .brand { gap: 8px; }
    .brand-copy strong { max-width: 130px; }
    .login-panel, .control-panel { padding: 20px 14px; }
    .key-field input { padding-left: 42px; font-size: 12px; }
    .glass-dialog form { padding: 20px 15px; }
    .hotkey-line { grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
    .menu-guide-body { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .menu-guide-actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass-panel { background: rgba(12, 13, 18, 0.94); }
    .item-category { background: rgba(12, 13, 18, 0.9); }
}

/* v2 — full-width Tabler dashboard */
body:not(.login-only) {
    --tblr-body-bg: transparent;
    --tblr-body-color: var(--ink);
}

body:not(.login-only) .app-shell {
    width: min(1480px, calc(100% - 32px));
}

body:not(.login-only) .main-stage {
    display: block;
    padding: 28px 0 72px;
}

body:not(.login-only) .identity-pane {
    display: none;
}

body:not(.login-only) .control-panel {
    overflow: visible;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body:not(.login-only) .control-panel::before {
    display: none;
}

body:not(.login-only) .topbar {
    min-height: 66px;
    border-color: rgba(255, 255, 255, 0.09);
    background: rgba(8, 15, 30, 0.78);
    box-shadow: 0 14px 48px rgba(0, 0, 0, 0.2);
}

.control-head {
    position: relative;
    overflow: hidden;
    padding: 26px 28px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px 12px 0 0;
    background:
        radial-gradient(circle at 82% 15%, rgba(104, 224, 211, 0.14), transparent 24%),
        linear-gradient(135deg, rgba(20, 34, 64, 0.96), rgba(14, 21, 44, 0.96));
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.2);
}

.control-head::after {
    content: "";
    position: absolute;
    right: 28%;
    bottom: -70px;
    width: 220px;
    height: 140px;
    border: 1px solid rgba(104, 224, 211, 0.09);
    border-radius: 50%;
    pointer-events: none;
}

.control-title-block {
    position: relative;
    z-index: 1;
}

.control-head h2 {
    margin: 7px 0 4px;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.035em;
}

.control-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.control-head-actions {
    position: relative;
    z-index: 1;
}

.control-head-actions .button {
    min-height: 40px;
    padding: 0 14px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.055);
}

.license-strip {
    margin: 0;
    padding: 0 16px;
    grid-template-columns: 1.4fr 0.7fr 1fr;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: rgba(8, 15, 30, 0.82);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.18);
}

.license-strip > div {
    padding: 16px;
    border-right-color: rgba(255, 255, 255, 0.08);
}

.license-strip span {
    font-size: 10px;
    letter-spacing: 0.02em;
}

.license-strip strong {
    margin-top: 6px;
    font-size: 12px;
}

.portal-notice {
    margin: 18px 0 0;
    border: 1px solid rgba(244, 201, 121, 0.25);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
}

.settings-layout {
    margin-top: 20px;
    gap: 16px;
}

.setting-section,
.visual-settings-section {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    background: rgba(8, 15, 30, 0.76);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.16);
}

.setting-section .section-title,
.visual-settings-section .section-title {
    margin-bottom: 16px;
}

.section-title > span {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(174, 164, 255, 0.3);
    border-radius: 7px;
    background: rgba(174, 164, 255, 0.08);
}

.section-title h3 {
    font-size: 14px;
}

.control-row {
    padding: 13px 0;
}

.control-meta label,
.config-setting > strong {
    font-size: 12px;
}

.control-meta output {
    min-width: 36px;
    padding: 3px 8px;
    border-radius: 5px;
    background: rgba(104, 224, 211, 0.08);
    font-size: 12px;
}

.visual-settings-section {
    margin-top: 16px;
}

.visual-settings-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    border-top: 0;
}

.config-setting {
    min-height: 62px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
}

.config-setting:hover {
    border-color: rgba(104, 224, 211, 0.28);
    background: rgba(104, 224, 211, 0.045);
}

.config-setting-color {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.config-setting-color .color-control {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
}

.item-config-root {
    margin-top: 16px;
}

.item-config-shell {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    background: rgba(8, 15, 30, 0.78);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.16);
}

.item-config-toolbar {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
}

.item-config-heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-config-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--cyan);
    background: rgba(104, 224, 211, 0.1);
    font-size: 21px;
}

.item-config-heading h3 {
    margin: 0;
    font-size: 15px;
}

.item-config-heading p {
    margin: 4px 0 0;
    color: var(--dim);
    font-size: 10px;
}

.item-search {
    position: relative;
    width: min(340px, 42vw);
    flex: 0 0 auto;
}

.item-search > i {
    position: absolute;
    top: 50%;
    left: 12px;
    color: var(--dim);
    font-size: 16px;
    transform: translateY(-50%);
}

.item-search input {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 38px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(2, 10, 20, 0.72);
    font-size: 11px;
}

.item-search input::placeholder {
    color: var(--dim);
}

.item-search button {
    position: absolute;
    top: 50%;
    right: 7px;
    width: 28px;
    height: 28px;
    display: none;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 5px;
    color: var(--dim);
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.item-search button.visible {
    display: grid;
}

.item-category-tabs {
    padding: 12px 16px;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    scrollbar-width: thin;
}

.item-category-tab {
    min-height: 34px;
    padding: 0 13px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    font-size: 10px;
    font-weight: 650;
}

.item-category-tab:hover {
    border-color: rgba(104, 224, 211, 0.3);
    color: var(--ink);
}

.item-category-tab.active {
    border-color: rgba(104, 224, 211, 0.55);
    color: #071112;
    background: var(--cyan);
}

.item-config-shell .item-category {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.item-category-head {
    min-height: 62px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.018);
}

.item-category-head .section-title {
    margin: 0;
}

.item-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 16px 20px 20px;
}

.item-row {
    min-height: 58px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.022);
}

.item-row:hover {
    border-color: rgba(104, 224, 211, 0.25);
    background: rgba(104, 224, 211, 0.04);
}

.item-row-label {
    color: #c5d0d5;
    font-size: 11px;
}

.item-search-empty {
    padding: 46px 20px;
    display: grid;
    place-items: center;
    gap: 8px;
    color: var(--dim);
    font-size: 11px;
}

.item-search-empty i {
    font-size: 28px;
}

.control-actions {
    position: sticky;
    z-index: 8;
    bottom: 14px;
    margin: 18px auto 0;
    width: min(620px, calc(100% - 28px));
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(8, 15, 30, 0.92);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.control-actions .button {
    min-height: 46px;
    border-radius: 7px;
}

@media (max-width: 1100px) {
    .visual-settings-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .item-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body:not(.login-only) .app-shell {
        width: min(100% - 20px, 680px);
    }

    body:not(.login-only) .main-stage {
        padding: 16px 0 56px;
    }

    .control-head {
        padding: 20px;
        align-items: stretch;
        flex-direction: column;
    }

    .control-head-actions {
        width: 100%;
    }

    .control-head-actions .button {
        flex: 1 1 0;
    }

    .license-strip {
        padding: 0;
    }

    .settings-layout {
        grid-template-columns: 1fr;
    }

    .visual-settings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .item-config-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .item-search {
        width: 100%;
    }

    .item-grid {
        grid-template-columns: 1fr;
    }

    .control-actions {
        bottom: 8px;
        width: calc(100% - 16px);
        flex-direction: row;
    }
}

@media (max-width: 480px) {
    .visual-settings-grid {
        grid-template-columns: 1fr;
    }

    .license-strip {
        grid-template-columns: 1fr;
    }

    .license-strip > div,
    .license-strip > div:nth-child(2),
    .license-strip > div:last-child {
        grid-column: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .license-strip > div:last-child {
        border-bottom: 0;
    }

    .item-category-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .item-master {
        width: 100%;
        justify-content: space-between;
    }

    .item-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .item-row-controls {
        width: 100%;
        justify-content: space-between;
    }
}

/* v3 — compact desktop density */
body:not(.login-only) .app-shell {
    width: min(1240px, calc(100% - 32px));
}

body:not(.login-only) .main-stage {
    padding: 18px 0 56px;
}

body:not(.login-only) .topbar {
    min-height: 58px;
    margin-top: 10px;
}

.control-head {
    padding: 18px 22px;
}

.control-head h2 {
    margin-top: 4px;
    font-size: clamp(21px, 2.4vw, 27px);
}

.control-subtitle {
    font-size: 10px;
}

.control-head-actions .button {
    min-height: 34px;
    padding: 0 11px;
    font-size: 10px;
}

.license-strip > div {
    padding: 11px 14px;
}

.license-strip strong {
    margin-top: 3px;
    font-size: 10px;
}

.settings-layout {
    margin-top: 12px;
    gap: 12px;
}

.setting-section,
.visual-settings-section {
    padding: 14px 16px;
}

.setting-section .section-title,
.visual-settings-section .section-title {
    margin-bottom: 10px;
}

.section-title > span {
    width: 24px;
    height: 24px;
}

.section-title h3 {
    font-size: 12px;
}

.control-row {
    padding: 8px 0 9px;
}

.control-meta {
    margin-bottom: 6px;
}

.control-meta label,
.config-setting > strong {
    font-size: 10px;
}

.visual-settings-section,
.item-config-root {
    margin-top: 12px;
}

.visual-settings-grid {
    gap: 7px;
}

.config-setting {
    min-height: 48px;
    padding: 7px 9px;
}

.config-setting-color {
    gap: 4px;
}

.color-control input[type="color"] {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
}

.item-config-toolbar {
    padding: 14px 16px;
}

.item-config-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 8px;
    font-size: 17px;
}

.item-config-heading h3 {
    font-size: 13px;
}

.item-config-heading p {
    margin-top: 2px;
    font-size: 9px;
}

.item-search input {
    height: 34px;
}

.item-category-tabs {
    padding: 8px 12px;
    gap: 5px;
}

.item-category-tab {
    min-height: 29px;
    padding: 0 10px;
    font-size: 9px;
}

.item-category-head {
    min-height: 48px;
    padding: 10px 15px;
}

.item-grid {
    gap: 7px;
    padding: 10px 15px 14px;
}

.item-row {
    min-height: 45px;
    padding: 6px 9px;
}

.item-row-label {
    font-size: 10px;
}

.toggle-control {
    width: 34px;
    height: 20px;
    flex-basis: 34px;
}

.toggle-track::after {
    top: 3px;
    left: 3px;
    width: 12px;
    height: 12px;
}

.toggle-control input:checked + .toggle-track::after {
    transform: translateX(14px);
}

.control-actions {
    margin-top: 12px;
    padding: 6px;
}

.control-actions .button {
    min-height: 38px;
    font-size: 10px;
}

@media (max-width: 760px) {
    body:not(.login-only) .main-stage {
        padding-top: 12px;
    }

    .control-head {
        padding: 16px;
    }
}

/* v4 — restrained Tabler surface */
body:not(.login-only) {
    --ink: #f1f5f9;
    --muted: #94a3b8;
    --dim: #64748b;
    --line: rgba(148, 163, 184, 0.13);
    --line-strong: rgba(148, 163, 184, 0.25);
    --cyan: #38bdf8;
    --violet: #818cf8;
    --gold: #fbbf24;
    color: var(--ink);
    background: #0b1120;
}

body:not(.login-only) #galaxy-canvas {
    display: none;
}

body:not(.login-only) .space-veil {
    background:
        radial-gradient(circle at 50% -20%, rgba(56, 189, 248, 0.09), transparent 42%),
        #0b1120;
}

body:not(.login-only) .app-shell {
    width: min(1180px, calc(100% - 36px));
}

body:not(.login-only) .topbar {
    min-height: 56px;
    padding: 0 14px;
    border: 1px solid #202b3d;
    border-radius: 9px;
    background: #111827;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body:not(.login-only) .topbar::before {
    display: none;
}

body:not(.login-only) .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border: 0;
    border-radius: 7px;
    color: #eff6ff;
    background: #2563eb;
    box-shadow: none;
    font-size: 11px;
}

body:not(.login-only) .brand-copy strong {
    font-size: 13px;
}

body:not(.login-only) .brand-copy small {
    font-size: 8px;
}

body:not(.login-only) .hotkey-trigger,
body:not(.login-only) .language-switch {
    border-color: #273449;
    background: #0f172a;
}

body:not(.login-only) .hotkey-trigger i {
    color: #94a3b8;
}

body:not(.login-only) .language-switch button.active {
    color: #eff6ff;
    background: #2563eb;
}

body:not(.login-only) .state-dot {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.control-head {
    padding: 17px 20px;
    border-color: #202b3d;
    border-radius: 9px 9px 0 0;
    background: #111827;
    box-shadow: none;
}

.control-head::after {
    display: none;
}

.panel-kicker {
    color: #38bdf8;
    font-size: 9px;
}

.control-head h2 {
    color: #f8fafc;
    font-size: 23px;
    letter-spacing: -0.02em;
}

.control-subtitle {
    color: #718096;
}

.control-head-actions .button {
    border-color: #334155;
    color: #cbd5e1;
    background: #172033;
}

.control-head-actions .button:hover:not(:disabled) {
    border-color: #475569;
    color: #fff;
    background: #1e293b;
}

.license-strip {
    padding: 0 6px;
    border-color: #202b3d;
    border-radius: 0 0 9px 9px;
    background: #0f172a;
    box-shadow: none;
}

.license-strip > div {
    border-right-color: #202b3d;
}

.license-strip span {
    color: #64748b;
}

.license-strip strong {
    color: #e2e8f0;
}

#license-status {
    color: #4ade80;
}

#license-expire {
    color: #fbbf24;
}

.setting-section,
.visual-settings-section,
.item-config-shell {
    border: 1px solid #202b3d;
    border-radius: 9px;
    background: #111827;
    box-shadow: none;
}

.section-title > span {
    border: 0;
    border-radius: 6px;
    color: #93c5fd;
    background: #172554;
}

.section-title h3 {
    color: #e2e8f0;
    font-weight: 650;
}

.control-row {
    border-top-color: #202b3d;
}

.control-meta label {
    color: #94a3b8;
}

.control-meta output {
    color: #7dd3fc;
    background: #0c2538;
}

.step-button {
    border-color: #2a374b;
    border-radius: 6px;
    color: #94a3b8;
    background: #172033;
}

.step-button:hover {
    border-color: #38bdf8;
    color: #7dd3fc;
}

input[type="range"]::-webkit-slider-runnable-track {
    background: linear-gradient(90deg, #38bdf8 0 var(--fill), #334155 var(--fill) 100%);
}

input[type="range"]::-webkit-slider-thumb {
    border-color: #0f172a;
    background: #7dd3fc;
    box-shadow: 0 0 0 1px #38bdf8;
}

.config-setting {
    border-color: #253146;
    border-radius: 7px;
    background: #0f172a;
}

.config-setting:hover {
    border-color: #334e68;
    background: #121d30;
}

.config-setting > strong {
    color: #a8b3c3;
    font-weight: 500;
}

.toggle-track {
    border-color: #475569;
    background: #1e293b;
}

.toggle-track::after {
    background: #94a3b8;
}

.toggle-control input:checked + .toggle-track {
    border-color: #0284c7;
    background: #075985;
}

.toggle-control input:checked + .toggle-track::after {
    background: #e0f2fe;
}

.color-control input[type="color"] {
    border-color: #334155;
    border-radius: 6px;
    background: #0b1120;
}

.color-control output {
    color: #64748b;
}

.item-config-toolbar {
    border-bottom-color: #202b3d;
}

.item-config-icon {
    color: #7dd3fc;
    background: #0c2538;
}

.item-config-heading h3 {
    color: #e2e8f0;
}

.item-config-heading p {
    color: #64748b;
}

.item-search input {
    border-color: #334155;
    border-radius: 7px;
    color: #e2e8f0;
    background: #0b1120;
}

.item-search input:focus {
    border-color: #0284c7;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.item-category-tabs {
    border-bottom-color: #202b3d;
    background: #0f172a;
}

.item-category-tab {
    border-color: transparent;
    border-radius: 6px;
    color: #8190a5;
    background: transparent;
}

.item-category-tab:hover {
    border-color: #334155;
    color: #dbeafe;
    background: #172033;
}

.item-category-tab.active {
    border-color: #1d4ed8;
    color: #eff6ff;
    background: #2563eb;
}

.item-category-head {
    border-bottom-color: #202b3d;
    background: #111827;
}

.item-master-label {
    color: #94a3b8;
}

.item-row {
    border-color: #253146;
    border-radius: 7px;
    background: #0f172a;
}

.item-row:hover {
    border-color: #334e68;
    background: #121d30;
}

.item-row-label {
    color: #a8b3c3;
}

.control-actions {
    position: static;
    width: 100%;
    margin-top: 12px;
    padding: 0;
    justify-content: flex-end;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.control-actions .button {
    flex: 0 0 190px;
    border-radius: 7px;
}

.button-download {
    border-color: #334155;
    color: #cbd5e1;
    background: #111827;
}

.button-download:hover:not(:disabled) {
    border-color: #475569;
    background: #172033;
}

.button-save {
    color: #fff;
    background: #2563eb;
}

.button-save:hover:not(:disabled) {
    background: #3b82f6;
}

.footer-line {
    border-top-color: #1e293b;
    color: #536176;
}

.nav-active {
    outline-color: #38bdf8;
    background: #0c2538 !important;
    box-shadow: none;
}

@media (max-width: 760px) {
    body:not(.login-only) .app-shell {
        width: min(100% - 18px, 680px);
    }

    .control-actions .button {
        flex: 1 1 0;
    }
}

/* v5 — single console layout */
body:not(.login-only) .app-shell {
    width: min(1120px, calc(100% - 28px));
}

body:not(.login-only) .main-stage {
    padding: 16px 0 28px;
}

body:not(.login-only) .topbar {
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid #202b3d;
    border-radius: 10px;
    background: #111827;
    box-shadow: none;
}

body:not(.login-only) .control-panel {
    overflow: hidden;
    margin-top: 12px;
    border: 1px solid #202b3d;
    border-radius: 10px;
    background: #111827;
}

.console-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-bottom: 1px solid #202b3d;
}

.console-identity h2 {
    margin: 0;
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: 0;
}

.license-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 4px;
}

.license-inline em {
    margin-right: 6px;
    color: #64748b;
    font-style: normal;
    font-size: 12px;
}

.license-inline strong {
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 600;
}

.console-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.console-bar-actions .button {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
}

.console-bar-actions .control-logout {
    width: 34px;
    padding: 0;
}

body:not(.login-only) .portal-notice {
    margin: 0;
    border: 0;
    border-bottom: 1px solid #202b3d;
    border-radius: 0;
}

.console-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    align-items: stretch;
    border-bottom: 1px solid #202b3d;
}

body:not(.login-only) .settings-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
}

body:not(.login-only) .setting-section,
body:not(.login-only) .visual-settings-section {
    margin: 0;
    padding: 0 0 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body:not(.login-only) .setting-section + .setting-section {
    border-top: 1px solid #202b3d;
}

body:not(.login-only) .visual-settings-section {
    border-left: 1px solid #202b3d;
}

body:not(.login-only) .section-title {
    min-height: 0;
    margin: 0;
    padding: 10px 14px 0;
}

body:not(.login-only) .section-title > span {
    display: none;
}

body:not(.login-only) .section-title h3 {
    font-size: 13px;
}

body:not(.login-only) .control-row {
    min-height: 42px;
    padding: 6px 14px;
}

.esp-list {
    display: flex;
    flex-direction: column;
    padding-bottom: 6px;
}

.esp-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
    padding: 0 14px;
}

.esp-line > strong {
    color: #a8b3c3;
    font-size: 13px;
    font-weight: 500;
}

.esp-tools {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.esp-line.nav-active {
    background: #0c2538;
}

body:not(.login-only) .item-config-root {
    margin: 0;
}

body:not(.login-only) .item-config-shell {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body:not(.login-only) .item-config-toolbar {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 52px;
    padding: 8px 14px;
}

body:not(.login-only) .item-config-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    border-radius: 6px;
    font-size: 16px;
}

body:not(.login-only) .item-config-heading p {
    display: none;
}

body:not(.login-only) .item-search {
    width: min(280px, 36vw);
}

body:not(.login-only) .item-search input {
    height: 34px;
}

body:not(.login-only) .item-category-tabs {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    gap: 2px;
    min-height: 100%;
    padding: 8px;
    overflow: auto;
    border-right: 1px solid #202b3d;
    border-bottom: 0;
    background: #0f172a;
}

body:not(.login-only) .item-category-tab {
    width: 100%;
    min-height: 32px;
    padding: 0 10px;
    text-align: left;
}

body:not(.login-only) .item-config-main {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
}

body:not(.login-only) .item-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 6px 14px;
}

body:not(.login-only) .item-category-head .section-title {
    padding: 0;
}

body:not(.login-only) .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0;
}

body:not(.login-only) .item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 40px;
    padding: 0 14px;
    border-width: 0 0 1px;
    border-radius: 0;
    background: transparent;
}

body:not(.login-only) .item-row:nth-child(odd) {
    border-right: 1px solid #202b3d;
}

@media (max-width: 900px) {
    .console-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .console-bar-actions {
        flex-wrap: wrap;
    }

    .console-bar-actions .button:not(.control-logout) {
        flex: 1 1 140px;
    }

    .console-workbench,
    body:not(.login-only) .item-config-shell {
        grid-template-columns: 1fr;
    }

    body:not(.login-only) .visual-settings-section {
        border-top: 1px solid #202b3d;
        border-left: 0;
    }

    body:not(.login-only) .item-category-tabs {
        grid-row: auto;
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid #202b3d;
    }

    body:not(.login-only) .item-category-tab {
        width: auto;
    }

    body:not(.login-only) .item-config-main {
        grid-column: 1;
        grid-row: auto;
    }

    body:not(.login-only) .item-grid {
        grid-template-columns: 1fr;
    }

    body:not(.login-only) .item-row:nth-child(odd) {
        border-right: 0;
    }
}

/* post-login uses the login glass style */
body:not(.login-only) {
    --ink: #f2f7f8;
    --muted: #a9b6bc;
    --dim: #728087;
    --line: rgba(217, 238, 242, 0.12);
    --line-strong: rgba(222, 244, 247, 0.24);
    --cyan: #68e0d3;
    --violet: #aea4ff;
    --gold: #f4c979;
    --green: #98e3a6;
    color: var(--ink);
    background: #03080a;
}

body:not(.login-only) #galaxy-canvas {
    display: block;
}

body:not(.login-only) .space-veil {
    background:
        linear-gradient(180deg, rgba(1, 5, 16, 0.02) 0%, rgba(2, 7, 22, 0.045) 52%, rgba(1, 4, 14, 0.2) 100%),
        linear-gradient(90deg, rgba(1, 5, 16, 0.13) 0%, rgba(1, 6, 20, 0.015) 50%, rgba(2, 5, 18, 0.09) 100%);
}

body:not(.login-only) .topbar {
    min-height: 78px;
    margin-top: 18px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 4px 90px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body:not(.login-only) .topbar::before {
    display: block;
}

body:not(.login-only) .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border: 1px solid rgba(104, 224, 211, 0.52);
    border-radius: 6px;
    color: #061012;
    background: linear-gradient(135deg, var(--cyan), #a8ead2 54%, var(--gold));
    box-shadow: 0 0 30px rgba(104, 224, 211, 0.16);
    font-size: 13px;
}

body:not(.login-only) .brand-copy strong {
    font-size: 15px;
}

body:not(.login-only) .brand-copy small {
    font-size: 10px;
    color: var(--dim);
}

body:not(.login-only) .hotkey-trigger,
body:not(.login-only) .language-switch {
    border-color: var(--line);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.035);
}

body:not(.login-only) .language-switch {
    background: rgba(5, 6, 9, 0.62);
}

body:not(.login-only) .hotkey-trigger i,
.hotkey-trigger kbd {
    color: var(--gold);
}

body:not(.login-only) .language-switch button.active {
    color: #0a1112;
    background: var(--cyan);
}

body:not(.login-only) .state-dot {
    background: var(--cyan);
    box-shadow: 0 0 0 4px rgba(114, 222, 219, 0.1), 0 0 15px rgba(114, 222, 219, 0.7);
}

body:not(.login-only) .control-panel {
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    box-shadow: 0 4px 90px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

body:not(.login-only) .control-panel::before {
    display: block;
}

.console-identity h2,
.section-title h3,
.esp-line > strong,
.item-row-label,
.item-config-heading h3 {
    color: var(--ink);
}

.license-inline em,
.control-meta label,
.footer-line,
.color-control output,
.item-config-heading p {
    color: var(--dim);
}

.license-inline strong,
#license-expire,
.item-master-label,
.control-meta output {
    color: var(--gold);
    background: transparent;
}

#license-status,
.panel-kicker {
    color: var(--cyan);
    background: transparent;
}

.console-bar,
body:not(.login-only) .setting-section + .setting-section,
body:not(.login-only) .visual-settings-section,
body:not(.login-only) .item-config-toolbar,
body:not(.login-only) .item-category-tabs,
body:not(.login-only) .item-category-head,
body:not(.login-only) .item-row,
body:not(.login-only) .portal-notice,
.control-row {
    border-color: var(--line);
}

body:not(.login-only) .item-category-tabs,
body:not(.login-only) .item-category-head,
.item-search input,
.item-row,
.config-setting {
    background: rgba(5, 14, 18, 0.28);
}

.item-category-tab {
    border-color: transparent;
    color: var(--muted);
    background: transparent;
}

.item-category-tab:hover {
    border-color: rgba(104, 224, 211, 0.3);
    color: var(--ink);
    background: rgba(104, 224, 211, 0.06);
}

.item-category-tab.active {
    border-color: rgba(104, 224, 211, 0.55);
    color: #071112;
    background: var(--cyan);
}

.button-save,
.hotkey-dialog .button-primary {
    color: #071112;
    background: var(--cyan);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 12px 28px rgba(104, 224, 211, 0.1);
}

.button-save:hover:not(:disabled),
.hotkey-dialog .button-primary:hover:not(:disabled) {
    background: #8ce8df;
}

.button-download,
.console-bar-actions .control-logout {
    border-color: var(--line-strong);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.035);
}

.button-download:hover:not(:disabled) {
    border-color: rgba(167, 162, 255, 0.54);
    background: rgba(167, 162, 255, 0.09);
}

.step-button {
    border-color: var(--line);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.035);
}

.step-button:hover {
    border-color: var(--line-strong);
    color: var(--cyan);
}

.toggle-track {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.045);
}

.toggle-track::after {
    background: var(--dim);
}

.toggle-control input:checked + .toggle-track {
    border-color: rgba(104, 224, 211, 0.58);
    background: rgba(104, 224, 211, 0.14);
}

.toggle-control input:checked + .toggle-track::after {
    background: var(--cyan);
}

input[type="range"]::-webkit-slider-runnable-track {
    background: linear-gradient(90deg, var(--cyan) 0 var(--fill), rgba(224, 228, 238, 0.18) var(--fill) 100%);
}

input[type="range"]::-webkit-slider-thumb {
    border-color: #0b1113;
    background: var(--cyan);
    box-shadow: 0 0 0 1px var(--cyan);
}

.item-search input {
    border-color: var(--line-strong);
    color: var(--ink);
}

.item-search input:focus {
    border-color: rgba(114, 222, 219, 0.65);
    box-shadow: none;
}

.color-control input[type="color"] {
    border-color: var(--line-strong);
    background: rgba(2, 10, 13, 0.56);
}

.nav-active,
.esp-line.nav-active {
    outline-color: var(--cyan);
    background: rgba(104, 224, 211, 0.08) !important;
}

.footer-line {
    border-top-color: var(--line);
}

body:not(.login-only) .item-config-heading h3,
body:not(.login-only) .item-category-head .section-title h3,
body:not(.login-only) .item-category-tab,
body:not(.login-only) .item-row-label,
body:not(.login-only) .item-master-label,
body:not(.login-only) .item-search input {
    font-size: 13px;
}
给有