:root{
      /* Подобрано по скринам лаунчера (темный графит + золотой акцент) */
      --page-bg: #06070a;
      --page-glow: rgba(93, 116, 195, 0.22);

      --win-top: rgba(50,54,68,0.98);
      --win-top2: rgba(41,44,56,0.98);

      --win-bg: rgba(35, 38, 50, 0.96);
      --win-bg2: rgba(30, 33, 45, 0.96);
      --win-border: rgba(255,255,255,0.14);

      --accent: #ac9f46;     /* линия */
      --accent-soft: rgba(172,159,70,0.18);

      --text: #eef3ff;
      --muted: rgba(238,243,255,0.65);

      --btn: rgba(101,107,134,0.65);
      --btn2: rgba(80,86,109,0.65);
      --btn-border: rgba(255,255,255,0.18);

      --danger: #e04444;
      --danger2: #b53535;

      --row: rgba(255,255,255,0.04);
      --row-hover: rgba(255,255,255,0.07);
      --row-active: rgba(172,159,70,0.12);

      --shadow: rgba(0,0,0,0.55);
    }

    *{ box-sizing: border-box; }
    html, body{ height: 100%; }

    body{
      margin: 0;
      color: var(--text);
      font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
      background:
        radial-gradient(circle at 75% 10%, var(--page-glow) 0, rgba(0,0,0,0) 55%),
        radial-gradient(circle at 30% 0%, rgba(172,159,70,0.10) 0, rgba(0,0,0,0) 45%),
        linear-gradient(180deg, #0a0b10 0%, var(--page-bg) 60%);
      display: block;
      min-height: 100%;
      padding: 118px 16px 24px 16px;
    }

    /* Верхняя надпись + Boosty */
    .page-top{
      position: fixed;
      top: 18px;
      left: 18px;
      right: 18px;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      gap: 14px;
      pointer-events: none;
      z-index: 50;
    }
    .page-title{
      pointer-events: auto;
      display: flex;
      flex-direction: column;
      gap: 6px;
      color: rgba(255, 233, 120, 0.92);
      text-transform: uppercase;
      letter-spacing: 0.14em;
      font-size: 18px;
      font-weight: 900;
      user-select: none;
      max-width: 70vw;
      text-align: center;
    }
    .page-title span{
      color: rgba(255,255,255,0.55);
      letter-spacing: 0.08em;
      text-transform: none;
      font-size: 14px;
    }
    .boosty-btn{
      pointer-events: auto;
      position: absolute;
      right: 0;
      top: 0;
      text-decoration: none;
      color: rgba(255, 233, 120, 0.92);
      border: 2px solid rgba(255, 233, 120, 0.92);
      padding: 10px 14px;
      border-radius: 8px;
      font-weight: 800;
      letter-spacing: 0.06em;
      background: rgba(0,0,0,0.18);
      box-shadow: 0 14px 30px rgba(0,0,0,0.35);
      transition: transform 0.15s ease, filter 0.15s ease;
    }
    .boosty-btn:hover{ transform: translateY(-1px); filter: brightness(1.05); }

    /* Окно как лаунчер */
    .launcher-window{
      width: min(980px, 100%);
      margin: 0 auto;
      height: calc(100vh - 150px);
      display: flex;
      flex-direction: column;
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid var(--win-border);
      background: linear-gradient(180deg, var(--win-bg), var(--win-bg2));
      box-shadow: 0 30px 70px var(--shadow);
    }
    .win-topbar{
      height: 34px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 10px;
      background: linear-gradient(180deg, var(--win-top), var(--win-top2));
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .win-title{
      display: flex;
      align-items: center;
      gap: 8px;
      color: rgba(255,255,255,0.75);
      font-size: 13px;
      user-select: none;
    }
    .win-dot{
      width: 12px;
      height: 12px;
      border-radius: 3px;
      background: linear-gradient(180deg, #ff465d, #b92a39);
      box-shadow: 0 0 0 1px rgba(0,0,0,0.35) inset;
    }
    .win-controls{
      display: flex;
      gap: 10px;
      opacity: 0.65;
      user-select: none;
    }
    .win-controls span{
      width: 34px;
      height: 18px;
      border-radius: 4px;
      background: rgba(255,255,255,0.08);
      display: inline-block;
    }

    .launcher-inner{
      padding: 16px 16px 0 16px;
      flex: 0 0 auto;
    }

    .brand-row{
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      padding-bottom: 10px;
    }
    .brand-left{
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 360px;
      flex: 1 1 380px;
    }
    .brand-logo{
      height: 78px;
      width: auto;
      filter: drop-shadow(0 0 16px rgba(172,159,70,0.18));
    }
    .brand-right{
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 8px;
      min-width: 320px;
    }

    .top-links{
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }
    .boosty-inline-btn{
      border-color: rgba(255, 233, 120, 0.92);
      color: rgba(255, 233, 120, 0.95);
      background: linear-gradient(180deg, rgba(92, 79, 28, 0.55) 0%, rgba(63, 54, 20, 0.55) 100%);
    }
    .link-btn{
      text-decoration: none;
      color: #f4f7ff;
      border: 1px solid var(--btn-border);
      background: linear-gradient(180deg, var(--btn) 0%, var(--btn2) 100%);
      border-radius: 6px;
      padding: 7px 10px;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      line-height: 1;
      transition: transform 0.15s ease, filter 0.15s ease;
    }
    .link-btn:hover{ transform: translateY(-1px); filter: brightness(1.06); }

    /* Авторизация как в лаунчере */
    .auth-row{
      display: flex;
      align-items: center;
      gap: 10px;
      position: relative;
    }
    .auth-name{
      border: 1px solid rgba(255,255,255,0.18);
      background: rgba(86, 92, 118, 0.65);
      border-radius: 6px;
      padding: 7px 10px;
      min-width: 240px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      cursor: pointer;
      user-select: none;
    }
    .auth-name .left{
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-weight: 800;
      color: rgba(255,255,255,0.92);
    }
    .auth-name .chev{ opacity: 0.8; }

    .auth-login{
      border: 0;
      border-radius: 6px;
      padding: 7px 12px;
      font-weight: 900;
      color: #fff;
      background: linear-gradient(180deg, var(--danger) 0%, var(--danger2) 100%);
      cursor: pointer;
      letter-spacing: 0.03em;
      transition: transform 0.15s ease, filter 0.15s ease;
      white-space: nowrap;
    }
    .auth-login:hover{ transform: translateY(-1px); filter: brightness(1.05); }

    .auth-dropdown{
      position: absolute;
      top: 38px;
      right: 0;
      width: 240px;
      border: 1px solid rgba(255,255,255,0.14);
      background: rgba(35, 38, 50, 0.98);
      border-radius: 8px;
      padding: 8px;
      box-shadow: 0 18px 40px rgba(0,0,0,0.55);
      display: none;
      z-index: 30;
    }
    .auth-dropdown.show{ display: block; }
    .auth-logout{
      width: 100%;
      border: 1px solid rgba(255,255,255,0.14);
      background: rgba(101, 107, 134, 0.22);
      color: rgba(255,255,255,0.92);
      border-radius: 6px;
      padding: 10px 10px;
      font-weight: 900;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: transform 0.15s ease, filter 0.15s ease;
    }
    .auth-logout:hover{ transform: translateY(-1px); filter: brightness(1.08); }

    .accent-line{
      height: 2px;
      background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%);
      opacity: 0.95;
      margin: 6px 0 10px 0;
    }

    /* Контент вкладок */
    .tab-content{
      padding: 0 16px 0 16px;
      min-height: 0;
      flex: 1 1 auto;
      overflow: auto;
    }
    .tab-pane{ display: none; }
    .tab-pane.active{ display: block; }

    .section-title{
      color: var(--accent);
      font-weight: 900;
      font-size: 26px;
      margin: 4px 0 10px 0;
      letter-spacing: 0.02em;
    }

    /* Список серверов */
    .server-list{
      border: 1px solid rgba(255,255,255,0.10);
      background: rgba(0,0,0,0.12);
      border-radius: 8px;
      overflow: hidden;
    }
    .server-head{
      display: grid;
      grid-template-columns: 1fr 120px 90px 160px;
      gap: 10px;
      padding: 10px 12px;
      font-size: 12px;
      color: rgba(255,255,255,0.55);
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .server-rows{ max-height: 320px; overflow: auto; }
    .server-row{
      display: grid;
      grid-template-columns: 1fr 120px 90px 160px;
      gap: 10px;
      align-items: center;
      padding: 10px 12px;
      border-top: 1px solid rgba(255,255,255,0.06);
      background: var(--row);
      cursor: pointer;
      user-select: none;
      transition: background 0.12s ease;
    }
    .server-row:hover{ background: var(--row-hover); }
    .server-row.active{
      background: var(--row-active);
      outline: 1px solid rgba(172,159,70,0.22);
    }

    .srv-main{
      display: flex;
      align-items: flex-start;
      gap: 10px;
      min-width: 0;
    }
    .srv-caret{ width: 16px; opacity: 0.85; padding-top: 2px; flex: 0 0 auto; }
    .srv-text{ min-width: 0; }
    .srv-name{
      font-weight: 900;
      color: rgba(255,255,255,0.92);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .srv-sub{
      margin-top: 2px;
      font-size: 12px;
      color: rgba(255,255,255,0.55);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .srv-note{
      margin-top: 4px;
      font-size: 12px;
      color: rgba(255,228,228,0.86);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .srv-meta, .srv-players{
      color: rgba(255,255,255,0.82);
      font-weight: 800;
      text-align: left;
    }
    .server-row.status-failed .srv-meta,
    .server-row.status-failed .srv-note{
      color: rgba(255,182,182,0.96);
    }
    .server-row.status-warning .srv-meta{
      color: rgba(255,224,150,0.96);
    }
    .server-row.status-ok .srv-meta{
      color: rgba(190,255,214,0.94);
    }
    .srv-action{
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }
    .server-badge{
      border: 1px solid rgba(255,255,255,0.18);
      background: rgba(101,107,134,0.30);
      color: rgba(255,255,255,0.92);
      border-radius: 6px;
      padding: 7px 10px;
      font-weight: 900;
      min-width: 140px;
      text-align: center;
    }
    .server-badge.ok{ background: rgba(50,132,78,0.35); color: rgba(210,255,224,0.96); }
    .server-badge.failed{ background: rgba(170,48,48,0.34); color: rgba(255,214,214,0.97); }
    .server-badge.warning{ background: rgba(168,124,24,0.34); color: rgba(255,235,186,0.97); }
    .server-badge.neutral{ background: rgba(101,107,134,0.30); color: rgba(255,255,255,0.88); }

    /* Описание сервера */
    .desc-box{
      margin-top: 12px;
      border: 1px solid rgba(255,255,255,0.10);
      background: rgba(0,0,0,0.12);
      border-radius: 8px;
      padding: 12px;
    }
    .desc-top{
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .desc-title{
      font-weight: 900;
      color: rgba(255,255,255,0.92);
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .desc-selected{
      color: rgba(255,255,255,0.65);
      font-weight: 800;
      font-size: 12px;
    }
    .desc-body{
      margin-top: 10px;
      color: rgba(255,255,255,0.82);
      font-size: 14px;
      line-height: 1.35;
      white-space: pre-wrap;
    }
    .desc-kv{
      margin-top: 10px;
      display: grid;
      grid-template-columns: 140px 1fr;
      gap: 6px 10px;
      font-size: 12px;
      color: rgba(255,255,255,0.68);
    }
    .desc-kv b{ color: rgba(255,255,255,0.85); font-weight: 900; }
    .desc-kv code{
      background: rgba(0,0,0,0.25);
      border: 1px solid rgba(255,255,255,0.10);
      padding: 2px 6px;
      border-radius: 6px;
      color: rgba(255,255,255,0.85);
    }
    .desc-links{
      margin-top: 12px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: flex-start;
    }
    .desc-links.center{
      justify-content: center;
    }
    .server-picker{
      margin-top: 8px;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 10px;
      color: rgba(255,255,255,0.72);
      font-size: 13px;
      font-weight: 800;
    }
    .server-picker select{
      min-width: min(100%, 420px);
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.18);
      background: rgba(10,13,20,0.92);
      color: rgba(255,255,255,0.98);
      padding: 8px 10px;
      font-weight: 800;
    }
    .server-picker select option{
      background: #0b0f19;
      color: #f2f6ff;
    }
    .server-picker select:disabled{
      opacity: 0.6;
      cursor: not-allowed;
    }
    .main-empty{
      min-height: 420px;
      border: 1px solid rgba(255,255,255,0.10);
      background: rgba(0,0,0,0.12);
      border-radius: 8px;
      display: none;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 20px;
    }
    .main-empty.show{
      display: flex;
    }
    .main-empty-title{
      font-weight: 900;
      font-size: 22px;
      color: rgba(255,255,255,0.92);
      margin-bottom: 8px;
    }
    .main-empty-sub{
      color: rgba(255,255,255,0.72);
      font-size: 15px;
      max-width: 620px;
      line-height: 1.4;
    }
    .main-empty-links{
      margin-top: 14px;
      display: flex;
      justify-content: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .no-server-note{
      margin-top: 10px;
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 8px;
      background: rgba(0,0,0,0.18);
      color: rgba(255,255,255,0.85);
      padding: 12px;
      font-size: 14px;
      font-weight: 800;
      display: none;
    }
    .no-server-note.show{
      display: block;
    }

    /* Кнопки управления (вкладка Сервера) */
    .controls-wrap{
      display: grid;
      gap: 10px;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      margin-top: 10px;
    }
    .ctrl-btn{
      border: 1px solid rgba(255,255,255,0.18);
      background: linear-gradient(180deg, rgba(101,107,134,0.55), rgba(80,86,109,0.55));
      color: rgba(255,255,255,0.92);
      border-radius: 8px;
      padding: 12px 12px;
      font-weight: 900;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      cursor: pointer;
      transition: transform 0.15s ease, filter 0.15s ease;
    }
    .ctrl-btn:hover{ transform: translateY(-1px); filter: brightness(1.07); }
    .ctrl-btn.warning{
      background: linear-gradient(180deg, rgba(239,207,105,0.95), rgba(207,171,67,0.95));
      color: #1d1a0f;
    }
    .ctrl-btn.danger{
      background: linear-gradient(180deg, rgba(224,68,68,0.92), rgba(173,45,45,0.92));
      color: #fff;
    }
    .ctrl-btn.primary{
      background: linear-gradient(180deg, rgba(93,129,190,0.9), rgba(63,92,143,0.9));
      color: #fff;
    }

    .msg{
      margin-top: 12px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.12);
      padding: 10px 12px;
      font-size: 13px;
      color: rgba(255,255,255,0.90);
      display: none;
    }
    .msg.show{ display: block; }
    .msg.info{ background: rgba(93,129,190,0.18); }
    .msg.success{ background: rgba(79,162,125,0.18); }
    .msg.warn{ background: rgba(239,207,105,0.16); }
    .msg.danger{ background: rgba(224,68,68,0.18); }

    /* Настройки */
    .config-actions{
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 10px;
    }
    .small-btn{
      border: 1px solid rgba(255,255,255,0.18);
      background: rgba(101,107,134,0.30);
      color: rgba(255,255,255,0.92);
      border-radius: 8px;
      padding: 10px 12px;
      font-weight: 900;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      transition: transform 0.15s ease, filter 0.15s ease;
    }
    .small-btn:hover{ transform: translateY(-1px); filter: brightness(1.08); }
    .small-btn.small-btn-muted{
      background: rgba(255,255,255,0.08);
      border-color: rgba(255,255,255,0.12);
      font-weight: 800;
    }
    .small-btn.small-btn-danger{
      background: rgba(224,68,68,0.2);
      border-color: rgba(224,68,68,0.35);
      color: rgba(255,232,232,0.95);
    }
    .small-btn.is-dirty{
      border-color: rgba(108, 214, 130, 0.9);
      animation: saveGlowPulse 5s ease-in-out infinite;
    }
    @keyframes saveGlowPulse{
      0%{
        background: rgba(76, 160, 95, 0.24);
        box-shadow: 0 0 0 rgba(78, 220, 120, 0);
      }
      50%{
        background: rgba(92, 194, 116, 0.45);
        box-shadow: 0 0 16px rgba(78, 220, 120, 0.35);
      }
      100%{
        background: rgba(76, 160, 95, 0.24);
        box-shadow: 0 0 0 rgba(78, 220, 120, 0);
      }
    }
    textarea{
      width: 100%;
      margin-top: 10px;
      border-radius: 10px;
      border: 1px solid rgba(255,255,255,0.14);
      background: rgba(0,0,0,0.22);
      color: rgba(238,243,255,0.92);
      padding: 12px;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
      font-size: 12px;
      line-height: 1.45;
      min-height: 320px;
      resize: vertical;
    }
    .hint{
      margin-top: 8px;
      color: rgba(255,255,255,0.55);
      font-size: 12px;
    }

    .links-editor{
      margin-top: 10px;
      border: 1px solid rgba(255,255,255,0.10);
      background: rgba(0,0,0,0.12);
      border-radius: 8px;
      padding: 12px;
      display: grid;
      gap: 10px;
    }
    .agents-table-wrap{
      margin-top: 10px;
      border: 1px solid rgba(255,255,255,0.10);
      border-radius: 8px;
      overflow: auto;
      background: rgba(0,0,0,0.12);
    }
    .agents-table{
      width: 100%;
      border-collapse: collapse;
      min-width: 920px;
      font-size: 12px;
    }
    .agents-table th,
    .agents-table td{
      padding: 10px 12px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      text-align: left;
      vertical-align: top;
    }
    .agents-table th{
      color: rgba(255,255,255,0.68);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      background: rgba(255,255,255,0.03);
    }
    .agents-empty{
      color: rgba(255,255,255,0.55);
      text-align: center;
    }
    .agents-id{
      font-weight: 800;
      color: rgba(255,255,255,0.95);
      word-break: break-all;
    }
    .agents-sub{
      margin-top: 4px;
      color: rgba(255,255,255,0.55);
      font-size: 11px;
    }
    .agents-health{
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      padding: 4px 8px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      background: rgba(255,255,255,0.08);
    }
    .agents-health.health-online{ background: rgba(79,162,125,0.22); color: rgba(195,255,220,0.95); }
    .agents-health.health-delayed{ background: rgba(239,207,105,0.18); color: rgba(255,240,180,0.95); }
    .agents-health.health-stale{ background: rgba(255,255,255,0.12); color: rgba(238,243,255,0.9); }
    .agents-health.health-error{ background: rgba(224,68,68,0.2); color: rgba(255,220,220,0.95); }
    .agents-health.health-unknown{ background: rgba(107,124,153,0.22); color: rgba(230,236,248,0.92); }
    .agents-queue{
      display: grid;
      gap: 4px;
      color: rgba(255,255,255,0.82);
    }
    .agents-queue strong{
      color: rgba(255,255,255,0.96);
    }
    .links-row{
      display: grid;
      grid-template-columns: auto minmax(180px, 280px) 1fr;
      align-items: center;
      gap: 10px;
    }
    #linksCustomRows{
      display: grid;
      gap: 10px;
    }
    .links-row-compact{
      grid-template-columns: auto 1fr;
    }
    .links-row-label{
      font-weight: 900;
      color: rgba(255,255,255,0.9);
    }
    .links-row-label-input{
      width: 100%;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.18);
      background: rgba(10,13,20,0.92);
      color: rgba(255,255,255,0.95);
      padding: 8px 10px;
      font-weight: 800;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
      font-size: 12px;
    }
    .label-help-link{
      margin-left: 4px;
      font-size: 11px;
      font-weight: 700;
      color: #6eb7ff;
      text-decoration: none;
      white-space: nowrap;
    }
    .label-help-link:hover{
      text-decoration: underline;
      color: #90c9ff;
    }
    .links-row input[type="url"],
    .links-row input[type="text"],
    .links-row input[type="number"],
    .links-row select{
      width: 100%;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.18);
      background: rgba(10,13,20,0.92);
      color: rgba(255,255,255,0.98);
      padding: 8px 10px;
      font-weight: 700;
    }
    .links-row input[type="url"]:disabled,
    .links-row input[type="text"]:disabled,
    .links-row input[type="number"]:disabled,
    .links-row select:disabled{
      opacity: 0.55;
      cursor: not-allowed;
    }
    .game-hero{
      margin-top: 10px;
      border: 1px solid rgba(255,255,255,0.10);
      background: rgba(0,0,0,0.12);
      border-radius: 8px;
      padding: 12px;
      display: grid;
      gap: 12px;
    }
    .game-hero-title{
      font-size: 12px;
      color: rgba(255,255,255,0.62);
      font-weight: 800;
      margin-bottom: 6px;
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }
    .game-hero-input,
    .game-hero-desc{
      width: 100%;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.18);
      background: rgba(10,13,20,0.92);
      color: rgba(255,255,255,0.98);
      padding: 10px 12px;
      font-weight: 700;
      font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
      font-size: 14px;
    }
    .game-hero-desc{
      min-height: 92px;
      resize: vertical;
      line-height: 1.35;
    }
    #gameEditor{
      margin-top: 10px;
    }
    .game-row{
      display: grid;
      grid-template-columns: auto minmax(180px, 1fr) minmax(170px, 240px) minmax(220px, 320px) auto;
      align-items: center;
      gap: 10px;
      padding: 8px 0;
      border-top: 1px solid rgba(255,255,255,0.06);
    }
    .game-row:first-child{
      border-top: 0;
    }
    .game-row-name{
      color: rgba(255,255,255,0.90);
      font-weight: 800;
      line-height: 1.2;
    }
    .game-row-key{
      display: block;
      margin-top: 4px;
      font-size: 11px;
      color: rgba(255,255,255,0.55);
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    }
    .game-row-key input{
      width: 100%;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.18);
      background: rgba(10,13,20,0.92);
      color: rgba(255,255,255,0.98);
      padding: 6px 8px;
      font-weight: 700;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
      font-size: 12px;
    }
    .game-row input,
    .game-row select{
      width: 100%;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.18);
      background: rgba(10,13,20,0.92);
      color: rgba(255,255,255,0.98);
      padding: 8px 10px;
      font-weight: 700;
    }
    .game-row [data-role="remove"]{
      white-space: nowrap;
    }
    .switch{
      position: relative;
      width: 48px;
      height: 28px;
      display: inline-block;
    }
    .switch input{
      opacity: 0;
      width: 0;
      height: 0;
    }
    .slider{
      position: absolute;
      inset: 0;
      border-radius: 999px;
      background: rgba(255,255,255,0.16);
      border: 1px solid rgba(255,255,255,0.26);
      transition: 0.16s ease;
      cursor: pointer;
    }
    .slider::before{
      content: '';
      position: absolute;
      width: 20px;
      height: 20px;
      left: 3px;
      top: 3px;
      border-radius: 50%;
      background: rgba(255,255,255,0.92);
      transition: 0.16s ease;
      box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    }
    .switch input:checked + .slider{
      background: rgba(172,159,70,0.45);
      border-color: rgba(172,159,70,0.85);
    }
    .switch input:checked + .slider::before{
      transform: translateX(20px);
      background: #fff2a6;
    }
    .chip-grid{
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 8px 12px;
      margin-top: 10px;
    }
    .chip-item{
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 10px;
      border: 1px solid rgba(255,255,255,0.10);
      border-radius: 8px;
      background: rgba(255,255,255,0.03);
      font-weight: 800;
      color: rgba(255,255,255,0.9);
    }
    .tag-groups{
      margin-top: 10px;
      display: grid;
      gap: 10px;
    }
    .tag-group{
      border: 1px solid rgba(255,255,255,0.10);
      border-radius: 8px;
      background: rgba(255,255,255,0.03);
      padding: 8px 10px;
    }
    .tag-group > summary{
      cursor: pointer;
      font-weight: 900;
      color: rgba(255,255,255,0.92);
      list-style: none;
    }
    .tag-group > summary::-webkit-details-marker{
      display: none;
    }

    /* Нижние вкладки */
    .tabs{
      margin-top: 0;
      padding: 10px 0 0 0;
      border-top: 1px solid rgba(255,255,255,0.08);
      background: linear-gradient(180deg, rgba(44,47,61,0.80), rgba(37,40,53,0.80));
      flex: 0 0 auto;
    }
    .tabs-inner{
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
      padding: 0 16px 12px 16px;
    }
    .tab-btn{
      border: 0;
      background: transparent;
      color: rgba(255,255,255,0.82);
      font-weight: 900;
      padding: 8px 10px;
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.12s ease, transform 0.15s ease, filter 0.15s ease;
      user-select: none;
    }
    .tab-btn:hover{ background: rgba(255,255,255,0.06); transform: translateY(-1px); }
    .tab-btn.active{
      background: rgba(172,159,70,0.14);
      color: rgba(255,255,255,0.95);
      box-shadow: 0 0 0 1px rgba(172,159,70,0.25) inset;
    }
    .tab-btn.locked{
      opacity: 0.55;
      cursor: not-allowed;
    }
    .tab-btn.locked:hover{
      transform: none;
      background: rgba(255,255,255,0.03);
    }
    .tabs-spacer{ flex: 1 1 auto; }
    .version{
      color: rgba(255,255,255,0.45);
      font-weight: 800;
      font-size: 12px;
      user-select: none;
    }

    @media (max-width: 820px){
      .page-top{
        position: static;
        left: auto;
        right: auto;
        top: auto;
        margin-bottom: 12px;
      }
      .page-title{
        max-width: 100%;
      }
      .boosty-btn{
        position: static;
      }
      body{
        padding-top: 16px;
      }
      .launcher-window{
        height: auto;
      }
      .tab-content{
        overflow: visible;
      }
      .server-head{ display: none; }
      .server-row{ grid-template-columns: 1fr; gap: 6px; align-items: start; }
      .srv-action{ justify-content: flex-start; }
      .brand-row{ flex-direction: column; align-items: stretch; }
      .brand-right{ align-items: flex-start; }
      .auth-row{ width: 100%; }
      .auth-name{ width: 100%; min-width: 0; }
      .auth-dropdown{ left: 0; right: 0; width: auto; }
      .links-row{ grid-template-columns: auto minmax(120px, 180px) 1fr; }
      .links-row-compact{ grid-template-columns: auto 1fr; }
      .game-row{
        grid-template-columns: 1fr;
        gap: 8px 10px;
      }
    }
