/* PM Launcher — cinematic Mister-like UI with Behance renders */
@import url("https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-2: #f7f7f7;
  --text: #000000;
  --muted: #909090;
  --line: #e8e8e8;
  --green: #ffd900;
  --green-d: #000000;
  --green-s: #fff8cc;
  --accent: #000000;
  --sky: #ffd900;
  --sky-deep: #ffe100;
  --danger: #e11d48;
  --danger-bg: #fff1f2;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  --font: "Golos Text", Arial, sans-serif;
  --yellow: #ffd900;
  --yellow-h: #ffe100;
  --black: #000000;
}

* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
}
#app, .app { overflow-x: hidden; }

button, input, select { font: inherit; }
button { cursor: pointer; }
.min0 { min-width: 0; }
.tiny { font-size: 11px !important; }

.app {
  display: grid;
  grid-template-rows: 56px 1fr auto auto;
  height: 100%;
  min-height: 0;
  position: relative;
  isolation: isolate;
}

/* Ambient sky wash behind everything */
.app::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #f5f5f5;
  pointer-events: none;
}

.app::after {
  display: none;
}

/* —— Top —— */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px 0 12px;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px);
  z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: #1a1a1a;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}
.brand-title { font-weight: 800; font-size: 15px; line-height: 1.1; }
.brand-sub { font-size: 11px; color: var(--muted); font-weight: 500; }
.brand-text { display: flex; flex-direction: column; }
.top-spacer { flex: 1; }

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 4px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.85);
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 2px 10px rgba(30, 58, 95, 0.06);
}
.account-chip.on { border-color: #000; background: #fff8cc; }
.account-chip .face {
  width: 28px; height: 28px; border-radius: 8px;
  image-rendering: pixelated;
}

/* —— Shell —— */
.shell {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.left-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.55);
  border-right: 1px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
}
.nav-ico {
  width: 44px; height: 44px;
  border: 0; border-radius: 12px;
  background: transparent;
  color: var(--muted);
  display: grid; place-items: center;
  transition: 0.15s;
}
.nav-ico svg { width: 22px; height: 22px; }
.nav-ico:hover { background: rgba(255,255,255,0.7); color: var(--text); }
.nav-ico.active {
  background: #000;
  color: #ffd900;
  box-shadow: none;
}

.pages {
  min-height: 0;
  overflow: hidden;
  position: relative;
}
.page { display: none; height: 100%; min-height: 0; overflow: auto; overflow-x: hidden; padding: 16px 18px 14px; }
.page.active { display: block; }
.page-servers.active {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 14px 16px 10px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: 10px; border: 0;
  font-size: 13px; font-weight: 800; white-space: nowrap;
}
.btn-sm { height: 34px; padding: 0 14px; font-size: 12px; }
.btn-green {
  background: #ffd900;
  color: #000;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}
.btn-green:hover { background: #ffe100; filter: none; }
.btn-ghost { background: rgba(255,255,255,0.9); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: #000; color: #000; }
.btn-ad {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  white-space: nowrap;
}
.btn-ad:hover {
  background: #ffd900;
  border-color: transparent;
  color: #000;
}
.btn:disabled { opacity: 0.65; cursor: not-allowed; }

.btn-play-main {
  height: 46px;
  min-width: 180px;
  padding: 0 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  border-radius: 10px;
}
.btn-play-main:hover {
  transform: translateY(-1px);
  background: #ffe100;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

/* Single column servers */
.layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  width: 100%;
  max-width: none;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.pad { padding: 16px 18px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 10px 28px rgba(30, 58, 95, 0.12);
  flex-shrink: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("/ui/bg-village.jpg") center 30% / cover no-repeat;
  transition: background-image .5s ease;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.15) 80%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 16px;
  color: #fff;
  max-width: 560px;
}
.hero-top { display: flex; align-items: center; gap: 8px; }
.hero-badge {
  height: 22px; padding: 0 10px; border-radius: 999px;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.22);
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em;
  display: inline-flex; align-items: center;
}
.hero h1 {
  margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.hero-lead {
  margin: 0; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,0.9); font-weight: 500; max-width: 42ch;
}
.hero-lead b { color: #b8f5d0; font-weight: 800; }
.hero-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-top: 2px;
}
.hero-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-steps span {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 4px;
  border-radius: 999px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18);
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.95);
}
.hero-steps i {
  width: 18px; height: 18px; border-radius: 50%; background: #000; color: #ffd900;
  font-style: normal; font-size: 11px; font-weight: 800; display: grid; place-items: center;
}

.list-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 2px 2px 0; flex-shrink: 0;
}
.list-head-left { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.list-head h2 { margin: 0; font-size: 14px; font-weight: 800; color: var(--text); }

.pill-live {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: 999px;
  background: rgba(255, 217, 0, 0.2); border: 1px solid rgba(255, 217, 0, 0.45);
  color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase;
}
.pill-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ffd900; box-shadow: 0 0 8px #ffd900;
}

.server-card {
  display: grid;
  grid-template-columns: 28px 72px minmax(0, 1fr) auto;
  gap: 10px; align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px; padding: 8px 10px;
  box-shadow: 0 2px 10px rgba(30, 58, 95, 0.05);
  cursor: pointer; transition: border-color 0.12s, box-shadow 0.12s;
  min-width: 0; overflow: hidden;
}
.server-card:hover { border-color: #ccc; box-shadow: 0 8px 18px rgba(0,0,0,0.05); }
.server-card.selected {
  border-color: #000;
  background: #fffef5;
  box-shadow: 0 0 0 1px #000;
}
.server-rank { font-weight: 800; font-size: 12px; color: var(--muted); text-align: center; }
.server-rank.t1 { color: #d97706; }
.server-rank.t2 { color: #6b7280; }
.server-rank.t3 { color: #b45309; }
.server-thumb {
  position: relative;
  width: 72px; height: 52px;
  border-radius: 10px;
  background: #111 center/cover no-repeat;
  overflow: hidden;
  flex-shrink: 0;
}
.server-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0.05), rgba(0,0,0,0.5));
}
.server-fav {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(0,0,0,0.72); color: #ffd900;
  font-weight: 900; font-size: 10px;
  border: 1px solid rgba(255,217,0,0.4);
  flex-shrink: 0;
}
.server-card.selected .server-fav {
  background: #ffd900; color: #000; border-color: #000;
}
.server-body { min-width: 0; overflow: hidden; }
.server-title-row {
  display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden;
}
.server-title {
  font-weight: 800; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.server-desc {
  color: var(--muted); font-size: 11px; margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.server-submeta { display: flex; align-items: center; gap: 8px; margin-top: 4px; min-width: 0; }
.ip-chip, .online-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 18px; padding: 0 7px; border-radius: 999px;
  background: #f1f5f9; color: #475569; font-size: 10px; font-weight: 700;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.online-chip i { width: 6px; height: 6px; border-radius: 50%; background: #ffd900; box-shadow:0 0 0 2px #000; flex-shrink: 0; }
.tag {
  height: 18px; padding: 0 6px; border-radius: 999px; background: #f1f5f9; border: 1px solid #e2e8f0;
  font-size: 10px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; flex-shrink: 0;
}
.server-card .server-play { height: 30px; padding: 0 12px; font-size: 12px; flex-shrink: 0; }

.badge {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 11px; font-weight: 800;
}
.badge-ok { background: #ffd900; color: #000; }
.badge-wait { background: #f1f5f9; color: var(--muted); }

.main-col { min-width: 0; min-height: 0; display: flex; flex-direction: column; flex: 1; }
 .list-scroll {
  overflow: auto; overflow-x: hidden; min-height: 0;
  display: flex; flex-direction: column; gap: 7px;
  padding: 2px 0 6px;
  flex: 1;
}

.face-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.acc-name { font-weight: 800; font-size: 13px; }
.face {
  border-radius: 8px;
  background: #ddd;
  image-rendering: pixelated;
  flex-shrink: 0;
  object-fit: cover;
}
.face-md { width: 40px; height: 40px; border-radius: 10px; }
.face-sm { width: 28px; height: 28px; }
.face-lg { width: 48px; height: 48px; border-radius: 12px; }

.seg {
  display: inline-flex; gap: 4px; padding: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 12px;
}
.seg-btn {
  height: 32px; padding: 0 14px; border: 0; border-radius: 9px;
  background: transparent; color: var(--muted); font-weight: 800; font-size: 12px;
  letter-spacing: -0.02em;
}
.seg-btn.active { background: #000; color: #ffd900; }

/* —— Version picker (premium) —— */
.ver-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 4px;
}
.ver-search {
  height: 36px; min-width: 180px; flex: 1; max-width: 260px;
  padding: 0 12px 0 34px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23909090' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l3.5 3.5'/%3E%3C/svg%3E") 10px center no-repeat;
  font-weight: 600; font-size: 13px;
}
.ver-search:focus { outline: 2px solid rgba(255,217,0,.45); border-color: #000; }

.ver-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  padding-bottom: 8px;
}
.ver-card {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 14px 12px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .12s, box-shadow .12s, transform .12s;
  min-height: 112px;
}
.ver-card:hover {
  border-color: #ccc;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  transform: translateY(-1px);
}
.ver-card.selected {
  border-color: #000;
  background: linear-gradient(165deg, #fffef2 0%, #fff 55%);
  box-shadow: 0 0 0 1px #000, 0 12px 28px rgba(0,0,0,.08);
}
.ver-card-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
}
.ver-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: #000; color: #ffd900;
  display: grid; place-items: center;
  font-weight: 900; font-size: 11px; letter-spacing: -0.04em;
  flex-shrink: 0;
}
.ver-card.selected .ver-icon { background: #ffd900; color: #000; }
.ver-check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: .12s;
}
.ver-card.selected .ver-check {
  background: #000; border-color: #000; color: #ffd900;
}
.ver-check svg { width: 12px; height: 12px; opacity: 0; }
.ver-card.selected .ver-check svg { opacity: 1; }

.ver-id {
  font-weight: 900; font-size: 17px; letter-spacing: -0.04em; line-height: 1.15;
}
.ver-type {
  margin-top: 2px; font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.ver-card-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.ver-card .badge { font-size: 10px; height: 22px; padding: 0 9px; border-radius: 999px; }
.ver-card .btn-sm { height: 30px; padding: 0 12px; border-radius: 8px; font-size: 11px; }

.ver-empty {
  grid-column: 1 / -1;
  padding: 28px 16px; text-align: center;
  background: #fff; border: 1px dashed var(--line); border-radius: 14px;
  color: var(--muted); font-weight: 600;
}

.acc-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  gap: 10px; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.hr { border: none; border-top: 1px solid var(--line); margin: 14px 0; }
.lbl { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin: 10px 0 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pad input, .page-settings input, .page-accounts input {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}

.page-accounts .card,
.page-settings .card,
.page-versions .card {
  background: rgba(255,255,255,0.9);
}

.intro {
  padding: 14px 18px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.intro::before {
  content: "";
  position: absolute; inset: 0 auto 0 0; width: 4px;
  background: #ffd900;
}
.intro h1 {
  margin: 0 0 6px; font-size: 22px; font-weight: 800;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.intro p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.bottom_panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 24px 24px 0 0;
  border: 0.5px solid rgba(229, 229, 231, 0.9);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 -4px 40px rgba(113, 128, 150, 0.12);
  backdrop-filter: blur(14px);
  height: 66px;
  padding: 0 28px;
  z-index: 4;
  position: relative;
}
.left-bottom-panel {
  width: calc(50% - 100px);
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.center-bottom-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -8px;
}
.right-bottom-panel {
  width: calc(50% - 100px);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
/* —— Footer version picker (premium dropdown) —— */
.vpick {
  position: relative;
  z-index: 30;
  flex-shrink: 0;
}
.vpick-btn {
  height: 40px;
  min-width: 156px;
  max-width: 220px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color .12s, box-shadow .12s, background .12s;
}
.vpick-btn:hover {
  border-color: #ccc;
  box-shadow: 0 6px 16px rgba(0,0,0,.05);
}
.vpick.open .vpick-btn,
.vpick-btn:focus-visible {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 1px #000, 0 8px 20px rgba(0,0,0,.08);
  background: linear-gradient(165deg, #fffef2 0%, #fff 60%);
}
.vpick-ico {
  width: 26px; height: 26px; border-radius: 8px;
  background: #000; color: #ffd900;
  display: grid; place-items: center;
  font-weight: 900; font-size: 9px; letter-spacing: -0.04em;
  flex-shrink: 0;
}
.vpick.open .vpick-ico {
  background: #ffd900; color: #000;
}
.vpick-label {
  flex: 1; min-width: 0;
  font-weight: 900; font-size: 13px; letter-spacing: -0.03em;
  text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vpick-chev {
  display: grid; place-items: center;
  color: var(--text); opacity: .7;
  transition: transform .15s;
  flex-shrink: 0;
}
.vpick.open .vpick-chev { transform: rotate(180deg); opacity: 1; }

.vpick-menu {
  position: fixed;
  background: #fff;
  border: 1.5px solid #000;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0,0,0,.16);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 200;
}
.vpick-menu[hidden] { display: none !important; }

.vpick-search-wrap { padding: 2px; }
.vpick-search {
  width: 100%; height: 36px;
  padding: 0 12px 0 34px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #f7f7f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23909090' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l3.5 3.5'/%3E%3C/svg%3E") 10px center no-repeat;
  font-weight: 600; font-size: 13px;
}
.vpick-search:focus {
  outline: 2px solid rgba(255,217,0,.45);
  border-color: #000;
  background-color: #fff;
}

.vpick-list {
  flex: 1;
  min-height: 0;
  max-height: 260px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px;
}
.vpick-list::-webkit-scrollbar { width: 8px; }
.vpick-list::-webkit-scrollbar-thumb {
  background: #ddd; border-radius: 8px;
}

.vpick-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0; border-radius: 12px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit; color: inherit;
  transition: background .1s;
}
.vpick-item:hover { background: #f5f5f5; }
.vpick-item.is-sel {
  background: #ffd900;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.vpick-item-ico {
  width: 32px; height: 32px; border-radius: 10px;
  background: #000; color: #ffd900;
  display: grid; place-items: center;
  font-weight: 900; font-size: 10px; letter-spacing: -0.04em;
  flex-shrink: 0;
}
.vpick-item.is-sel .vpick-item-ico {
  background: #000; color: #ffd900;
}
.vpick-item-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 1px;
}
.vpick-item-id {
  font-weight: 900; font-size: 13px; letter-spacing: -0.03em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vpick-item-meta {
  font-size: 10px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.03em;
}
.vpick-item.is-sel .vpick-item-meta { color: rgba(0,0,0,.55); }
.vpick-item-check {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line);
  display: grid; place-items: center;
  flex-shrink: 0; color: #ffd900;
}
.vpick-item-check svg { width: 11px; height: 11px; opacity: 0; }
.vpick-item.is-sel .vpick-item-check {
  background: #000; border-color: #000;
}
.vpick-item.is-sel .vpick-item-check svg { opacity: 1; }

.vpick-empty {
  padding: 18px 12px; text-align: center;
  color: var(--muted); font-weight: 600; font-size: 12px;
}
.status {
  color: var(--muted); font-size: 12px; max-width: 280px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.status.err { color: var(--danger); }

.banner {
  display: none; margin-bottom: 10px; padding: 10px 12px; border-radius: 8px;
  background: var(--danger-bg); color: var(--danger); border: 1px solid #fecdd3; font-size: 13px;
}
.banner.show { display: block; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.5; }

.dl-dock {
  display: none;
  padding: 0 16px 8px;
  background: transparent;
}
.dl-dock.show { display: block; }
.dl-dock-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px 10px;
  box-shadow: var(--shadow);
}
.dl-top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.dl-title { font-weight: 800; font-size: 13px; color: var(--text); }
.dl-pct { font-weight: 800; font-size: 13px; color: #000; background:#ffd900; padding:2px 8px; border-radius:999px; }
.dl-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.dl-bar-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: #ffd900;
  transition: width 0.2s ease;
}
.dl-detail {
  margin-top: 6px; font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dl-log {
  margin-top: 8px; max-height: 72px; overflow: auto;
  padding: 8px 10px; border-radius: 8px;
  background: #0a0a0c; color: #ffd900;
  border: 1px solid var(--line);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px; line-height: 1.45; white-space: pre-wrap;
}
html[data-theme="dark"] .dl-dock-inner {
  background: #17181d;
  border-color: #2a2b33;
  color: #f4f4f7;
}
html[data-theme="dark"] .dl-title { color: #f4f4f7; }
html[data-theme="dark"] .dl-detail { color: #9b9ba8; }
html[data-theme="dark"] .dl-bar { background: #2a2b33; }
html[data-theme="dark"] .dl-bar-fill { background: #ffd900; }

@media (max-width: 900px) {
  .hero h1 { font-size: 20px; }
  .hero-content { padding: 14px 16px; max-width: 100%; }
  .hero-actions { gap: 8px; }
}



.theme-toggle {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text); display: grid; place-items: center;
  flex-shrink: 0; font-size: 16px;
}
.theme-toggle:hover { border-color: #000; }
.theme-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.theme-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); text-align: left;
}
.theme-card.on { border-color: #ffd900; box-shadow: 0 0 0 1px #ffd900; }
.theme-card strong { font-size: 14px; }
.theme-card em { font-style: normal; font-size: 11px; color: var(--muted); }
.theme-preview { width: 100%; height: 36px; border-radius: 8px; border: 1px solid var(--line); }
.theme-preview.dark { background: linear-gradient(90deg, #111114 60%, #ffd900 60%); }
.theme-preview.light { background: linear-gradient(90deg, #f5f5f5 60%, #ffd900 60%); }
/* Dark theme */
html[data-theme="dark"] {
  --bg: #0e0f12;
  --surface: #17181d;
  --surface-solid: #17181d;
  --surface-2: #1e1f26;
  --text: #f4f4f7;
  --muted: #9b9ba8;
  --line: #2a2b33;
  --green-s: #3a3200;
  --danger-bg: #3a1218;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
html[data-theme="dark"] body,
html[data-theme="dark"] .app::before { background: #0e0f12; }
html[data-theme="dark"] .topbar {
  background: rgba(14, 15, 18, 0.88);
  border-bottom-color: #2a2b33;
}
html[data-theme="dark"] .left-menu {
  background: rgba(14, 15, 18, 0.72);
  border-right-color: #2a2b33;
}
html[data-theme="dark"] .nav-ico:hover { background: #23242c; color: #fff; }
html[data-theme="dark"] .account-chip {
  background: #1c1d24;
  border-color: #2a2b33;
  color: #f4f4f7;
}
html[data-theme="dark"] .account-chip.on { border-color: #ffd900; background: #3a3200; color: #ffd900; }
html[data-theme="dark"] .btn-ghost {
  background: #1c1d24;
  border-color: #2a2b33;
  color: #f4f4f7;
}
html[data-theme="dark"] .btn-ghost:hover { border-color: #ffd900; color: #ffd900; }
html[data-theme="dark"] .card,
html[data-theme="dark"] .page-accounts .card,
html[data-theme="dark"] .page-settings .card,
html[data-theme="dark"] .page-versions .card {
  background: #17181d;
  border-color: #2a2b33;
}
html[data-theme="dark"] .server-card {
  background: #1c1d24;
  border-color: #2a2b33;
  box-shadow: none;
}
html[data-theme="dark"] .server-card:hover { border-color: #4a4b55; }
html[data-theme="dark"] .server-card.selected,
html[data-theme="dark"] .server-card.on {
  border-color: #ffd900;
  background: #2a2500;
  box-shadow: 0 0 0 1px #ffd900;
}
html[data-theme="dark"] .ip-chip,
html[data-theme="dark"] .tag { background: #23242c; color: #c8c8d0; border-color: #2a2b33; }
html[data-theme="dark"] .ver-card,
html[data-theme="dark"] .ver-empty {
  background: #1c1d24;
  border-color: #2a2b33;
  color: #f4f4f7;
}
html[data-theme="dark"] .ver-card.selected {
  border-color: #ffd900;
  background: linear-gradient(165deg, #2a2500 0%, #1c1d24 55%);
  box-shadow: 0 0 0 1px #ffd900;
}
html[data-theme="dark"] .ver-search,
html[data-theme="dark"] .seg,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] .pad input,
html[data-theme="dark"] .page-settings input,
html[data-theme="dark"] .page-accounts input {
  background: #121318;
  color: #f4f4f7;
  border-color: #2a2b33;
}
html[data-theme="dark"] .theme-toggle {
  border: 1px solid #2a2b33;
  background: #1c1d24;
  color: #ffd900;
}
html[data-theme="dark"] .online-chip,
html[data-theme="dark"] .badge-wait { background: #23242c; color: #c8c8d0; border-color: #2a2b33; }
html[data-theme="dark"] .bottom_panel {
  background: rgba(14, 15, 18, 0.92);
  border-color: #2a2b33;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .vpick-btn,
html[data-theme="dark"] .vpick-menu {
  background: #17181d;
  border-color: #2a2b33;
  color: #f4f4f7;
}
html[data-theme="dark"] .vpick.open .vpick-btn,
html[data-theme="dark"] .vpick-btn:focus-visible {
  border-color: #ffd900;
  background: #2a2500;
  box-shadow: 0 0 0 1px #ffd900;
}
html[data-theme="dark"] .vpick-search {
  background-color: #121318;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239b9ba8' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l3.5 3.5'/%3E%3C/svg%3E");
  color: #f4f4f7;
  border-color: #2a2b33;
}
html[data-theme="dark"] .vpick-search:focus {
  background-color: #121318;
  border-color: #ffd900;
  outline-color: rgba(255, 217, 0, 0.35);
}
html[data-theme="dark"] .vpick-search::placeholder { color: #7d7d8a; }
html[data-theme="dark"] .ver-search {
  background-color: #121318;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239b9ba8' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l3.5 3.5'/%3E%3C/svg%3E");
}
html[data-theme="dark"] .ver-search:focus { border-color: #ffd900; }
html[data-theme="dark"] .vpick-item:hover { background: #23242c; }
html[data-theme="dark"] .vpick-item.is-sel { background: #ffd900; color: #000; }
html[data-theme="dark"] .vpick-item.is-sel .vpick-item-meta { color: rgba(0,0,0,.55); }
html[data-theme="dark"] .vpick-list::-webkit-scrollbar-thumb { background: #3a3b44; }
html[data-theme="dark"] .vpick-chev { color: #f4f4f7; }
html[data-theme="dark"] .acc-row { border-bottom-color: #2a2b33; }
html[data-theme="dark"] .intro p { color: #b4b4c0; }

.java-panel {
  margin: 10px 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.java-panel.ok { border-color: #3f9d6a; }
.java-panel.bad { border-color: #e11d48; }
.java-panel h3 { margin: 0 0 8px; font-size: 15px; }
.java-panel p { margin: 0 0 10px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.java-steps { margin: 0 0 12px; padding: 0 0 0 18px; color: var(--text); font-size: 13px; line-height: 1.55; }
.java-steps li.is-on { color: #000; font-weight: 800; }
html[data-theme="dark"] .java-steps li.is-on { color: #ffd900; }
.java-bar {
  height: 8px; border-radius: 99px; background: #2a2b33; overflow: hidden; margin: 8px 0 6px;
}
.java-bar > i {
  display: block; height: 100%; width: 0; background: #ffd900; border-radius: 99px;
  transition: width .2s ease;
}
.java-now { font-size: 12px; font-weight: 700; color: var(--text); }
.mem-box {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
html[data-theme="dark"] .mem-box { background: #1c1d24; border-color: #2a2b33; }
html,body{height:auto;min-height:100%;overflow:auto}.app{min-height:100vh;height:100vh}
