﻿: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: 2px;
      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{
      display: none;
    }
    .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;
    }
    .language-switch{
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px;
      border: 1px solid rgba(255,255,255,0.14);
      border-radius: 999px;
      background: rgba(7, 10, 18, 0.58);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    }
    .language-switch-btn{
      border: 0;
      border-radius: 999px;
      background: transparent;
      color: rgba(255,255,255,0.82);
      padding: 7px 9px;
      min-width: 0;
      font-weight: 900;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      cursor: pointer;
      transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    }
    .language-switch-btn:hover{
      background: rgba(255,255,255,0.07);
      color: rgba(255,255,255,0.96);
      transform: translateY(-1px);
    }
    .language-switch-btn.active{
      background: linear-gradient(180deg, rgba(172,159,70,0.28), rgba(172,159,70,0.16));
      color: rgba(255,245,190,0.98);
      box-shadow: 0 0 0 1px rgba(172,159,70,0.28) inset;
    }
    .language-switch-flag{
      width: 18px;
      height: 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
    }
    .language-switch-flag img{
      width: 18px;
      height: 18px;
      display: block;
      border-radius: 50%;
      object-fit: cover;
    }
    .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-main.active{
      display: flex;
      flex-direction: column;
      min-height: 100%;
    }
    #tab-servers.active{
      display: flex;
      flex-direction: column;
      min-height: 100%;
    }
    .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;
    }
    .section-title-with-action{
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    /* РЎРїРёСЃРѕРє СЃРµСЂРІРµСЂРѕРІ */
    .server-list{
      border: 1px solid rgba(255,255,255,0.10);
      background: rgba(0,0,0,0.12);
      border-radius: 8px;
      overflow: hidden;
      flex: 1 1 auto;
      min-height: 220px;
      display: flex;
      flex-direction: column;
    }
    .server-head{
      display: grid;
      grid-template-columns: 1fr 120px 180px;
      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{
      overflow: auto;
      flex: 1 1 auto;
      min-height: 0;
    }
    .server-row{
      display: grid;
      grid-template-columns: 1fr 120px 180px;
      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;
    }
    .srv-desc-inline{
      display: none;
      grid-column: 1 / -1;
      border-top: 1px dashed rgba(255,255,255,0.10);
      margin-top: 2px;
      padding-top: 8px;
      color: rgba(236,241,255,0.9);
      line-height: 1.35;
      user-select: text;
    }
    .server-row.active .srv-desc-inline{
      display: block;
    }
    .srv-desc-title{
      color: rgba(255,255,255,0.78);
      font-weight: 900;
      font-size: 12px;
      margin-bottom: 2px;
    }
    .srv-desc-url{
      color: rgba(172,202,255,0.95);
      font-weight: 800;
      font-size: 12px;
      margin-top: 8px;
      margin-bottom: 2px;
      word-break: break-word;
      user-select: text;
      cursor: text;
      display: inline-block;
    }
    .srv-desc-url-copy{
      border: 0;
      background: transparent;
      padding: 0;
      text-align: left;
      cursor: pointer;
    }
    .srv-desc-url-copy:hover{
      text-decoration: underline;
    }
    .srv-desc-text{
      color: rgba(255,255,255,0.84);
      font-size: 12px;
      word-break: break-word;
      white-space: pre-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;
      display: none !important;
    }
    .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(3, minmax(0, 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, box-shadow 0.18s ease, opacity 0.18s ease;
    }
    .ctrl-btn-soft{
      filter: saturate(0.72) brightness(0.94);
    }
    .ctrl-btn:hover{ transform: translateY(-1px); filter: brightness(1.07); }
    .ctrl-btn:disabled{
      cursor: default;
      opacity: 0.72;
      transform: none;
    }
    .ctrl-btn.is-pending{
      opacity: 1;
      cursor: default;
      animation: fabBtnPulse 1.3s ease-in-out infinite;
    }
    .ctrl-btn.is-pending i.bi{
      display: inline-block;
      animation: fabBtnSpin 0.75s linear infinite;
    }
    @keyframes fabBtnSpin{
      to{ transform: rotate(360deg); }
    }
    @keyframes fabBtnPulse{
      0%,100%{ box-shadow: 0 0 0 3px rgba(255,255,255,0.12), 0 0 18px rgba(255,255,255,0.10); filter: brightness(1.04); }
      50%{     box-shadow: 0 0 0 3px rgba(255,255,255,0.28), 0 0 32px rgba(255,255,255,0.22); filter: brightness(1.14); }
    }
    .ctrl-btn.is-success{
      box-shadow: 0 0 0 3px rgba(79,162,125,0.20), 0 0 24px rgba(79,162,125,0.24);
    }
    .ctrl-btn.is-error{
      box-shadow: 0 0 0 3px rgba(224,68,68,0.22), 0 0 24px rgba(224,68,68,0.26);
    }
    .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;
    }
    .action-feedback{
      margin-top: 10px;
      border-radius: 10px;
      border: 1px solid rgba(255,255,255,0.16);
      background: linear-gradient(180deg, rgba(18,25,41,0.82), rgba(10,15,27,0.90));
      padding: 10px 12px;
      color: rgba(238,243,255,0.94);
      box-shadow: 0 10px 26px rgba(0,0,0,0.18);
    }
    .action-feedback[hidden]{
      display: none;
    }
    .action-feedback.is-pending{
      border-color: rgba(93,129,190,0.38);
    }
    .action-feedback.is-pending .action-feedback-title::before{
      content: '';
      display: inline-block;
      width: 9px;
      height: 9px;
      border: 1.5px solid rgba(196,214,255,0.35);
      border-top-color: rgba(196,214,255,0.95);
      border-radius: 50%;
      animation: fabBtnSpin 0.75s linear infinite;
      margin-right: 6px;
      vertical-align: middle;
    }
    .action-feedback.is-success{
      border-color: rgba(79,162,125,0.42);
    }
    .action-feedback.is-error{
      border-color: rgba(224,68,68,0.46);
    }
    .action-feedback-title{
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      color: rgba(196,214,255,0.95);
      margin-bottom: 4px;
    }
    .action-feedback.is-success .action-feedback-title{
      color: rgba(205,255,220,0.96);
    }
    .action-feedback.is-error .action-feedback-title{
      color: rgba(255,210,210,0.96);
    }
    .action-feedback-text{
      font-size: 13px;
      line-height: 1.4;
      color: rgba(238,243,255,0.92);
    }

    .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); }
    .state-log-wrap{
      margin-top: 10px;
      border: 1px solid rgba(255,255,255,0.10);
      border-radius: 8px;
      background: rgba(0,0,0,0.16);
      padding: 10px;
      display: flex;
      flex-direction: column;
      flex: 1 1 auto;
      min-height: 220px;
      gap: 8px;
    }
    .state-log-head{
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .state-log-head:empty{
      display: none;
    }
    .state-log-title{
      font-weight: 900;
      color: rgba(255,255,255,0.92);
      font-size: 13px;
    }
    .state-log-list{
      border: 1px solid rgba(255,255,255,0.10);
      border-radius: 8px;
      background: rgba(0,0,0,0.22);
      min-height: 180px;
      max-height: none;
      flex: 1 1 auto;
      overflow: auto;
      padding: 8px;
      display: grid;
      gap: 6px;
    }
    .state-log-empty{
      color: rgba(255,255,255,0.55);
      font-size: 12px;
    }
    .state-log-item{
      font-size: 12px;
      color: rgba(232,238,255,0.92);
      line-height: 1.35;
      word-break: break-word;
      overflow: hidden;
    }
    .section-title-sm{
      font-size: 14px;
      margin: 0;
    }
    .data-browser{
      display: grid;
      gap: 10px;
      margin-top: 14px;
    }
    .data-browser-head{
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }
    .data-browser-path{
      font-size: 12px;
      color: rgba(255,255,255,0.68);
      font-family: "Consolas", "SFMono-Regular", monospace;
      word-break: break-all;
    }
    .data-browser-list{
      min-height: 140px;
    }
    .data-browser-row{
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 8px 10px;
      border-radius: 8px;
      background: rgba(255,255,255,0.04);
    }
    .data-browser-row-main{
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .data-browser-row-name{
      font-size: 13px;
      font-weight: 700;
      color: rgba(255,255,255,0.94);
      word-break: break-word;
    }
    .data-browser-row-meta{
      font-size: 11px;
      color: rgba(255,255,255,0.58);
    }
    .data-browser-row-actions{
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }
    .manifest-build-entry{
      display: grid;
      gap: 10px;
    }
    .manifest-build-summary{
      font-size: 12px;
      color: rgba(232,238,255,0.92);
    }
    .manifest-build-stage-list{
      display: grid;
      gap: 8px;
    }
    .manifest-build-stage-row{
      display: grid;
      grid-template-columns: 14px minmax(0, 1fr);
      gap: 10px;
      align-items: start;
    }
    .manifest-build-stage-square{
      width: 12px;
      height: 12px;
      border-radius: 4px;
      margin-top: 2px;
      flex: 0 0 auto;
    }
    .manifest-build-stage-label{
      font-size: 13px;
      font-weight: 700;
      line-height: 1.25;
      display: flex;
      align-items: baseline;
      gap: 8px;
      flex-wrap: wrap;
    }
    .manifest-build-stage-status{
      font-size: 11px;
      letter-spacing: .04em;
      text-transform: uppercase;
      opacity: 0.9;
    }
    .manifest-build-history-note{
      font-size: 12px;
      color: rgba(255,255,255,0.62);
    }
    .manifest-build-comment-wrap{
      min-width: 0;
    }
    .manifest-build-comment-title{
      font-size: 12px;
      opacity: 0.9;
      margin-bottom: 6px;
    }
    .manifest-build-comment{
      min-height: 120px;
      max-height: 240px;
      margin: 0;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      overflow: auto;
      resize: vertical;
    }
    .state-log-item .wd-ts{
      color: rgba(255, 214, 112, 0.95);
      font-weight: 800;
      margin-right: 6px;
    }
    .state-subtabs{
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: flex-end;
    }
    .state-head-row{
      margin-top: 8px;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }
    .state-head-row .pills-help{
      margin-top: 0;
      flex: 1 1 420px;
    }
    @media (max-width: 860px){
      .controls-wrap{
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }
    @media (max-width: 560px){
      .controls-wrap{
        grid-template-columns: minmax(0, 1fr);
      }
    }
    .state-subtab-btn{
      border: 1px solid rgba(255,255,255,0.16);
      background: rgba(101,107,134,0.28);
      color: rgba(255,255,255,0.9);
      border-radius: 8px;
      padding: 8px 12px;
      font-weight: 800;
      cursor: pointer;
    }
    .state-subtab-btn.active{
      background: rgba(172,159,70,0.18);
      border-color: rgba(172,159,70,0.55);
      color: rgba(255,244,190,0.96);
    }
    .state-subtab-pane{
      display: none;
      min-height: 0;
      flex: 1 1 auto;
    }
    .state-subtab-pane.active{
      display: flex;
      flex-direction: column;
    }
    .schedule-shell{
      display: grid;
      gap: 12px;
    }
    .schedule-overview{
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 8px 2px 0 2px;
    }
    .schedule-overview-actions{
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .schedule-title{
      font-size: 22px;
      line-height: 1;
      font-weight: 900;
      color: rgba(255,255,255,0.94);
      margin-bottom: 4px;
    }
    .schedule-subtitle{
      color: rgba(255,255,255,0.58);
      font-size: 12px;
    }
    .schedule-board{
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 12px;
      min-height: 0;
    }
    .schedule-list-wrap,
    .schedule-editor-card{
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(20,23,31,0.96);
      box-shadow: none;
      min-height: 0;
    }
    .schedule-list-wrap{
      padding: 12px;
      display: grid;
      gap: 10px;
      align-content: start;
    }
    .schedule-list-head,
    .schedule-editor-head{
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .schedule-list-title,
    .schedule-editor-title{
      font-size: 15px;
      font-weight: 900;
      color: rgba(255,255,255,0.95);
    }
    .schedule-list-caption,
    .schedule-editor-eyebrow{
      color: rgba(255,255,255,0.52);
      font-size: 11px;
      font-weight: 800;
    }
    .schedule-list{
      display: grid;
      gap: 0;
      border-top: 1px solid rgba(255,255,255,0.06);
    }
    .schedule-editor-dock{
      display: grid;
      gap: 0;
    }
    .schedule-empty{
      padding: 18px 16px;
      border-radius: 14px;
      border: 1px dashed rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.02);
      color: rgba(255,255,255,0.62);
      text-align: center;
      line-height: 1.5;
    }
    .schedule-card{
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: start;
      padding: 18px 6px;
      border-radius: 0;
      border: 0;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      background: transparent;
      transition: background 0.15s ease;
      cursor: pointer;
    }
    .schedule-card:hover{
      background: rgba(255,255,255,0.02);
    }
    .schedule-card.active{
      background: rgba(255,255,255,0.04);
    }
    .schedule-card.disabled{
      opacity: 0.68;
    }
    .schedule-card-main{
      display: grid;
      gap: 8px;
      min-width: 0;
    }
    .schedule-card-top{
      display: grid;
      gap: 4px;
    }
    .schedule-clock{
      font-size: 52px;
      line-height: 0.9;
      font-weight: 300;
      letter-spacing: -0.03em;
      color: rgba(255,255,255,0.97);
      font-variant-numeric: tabular-nums;
    }
    .schedule-action-badge{
      padding: 0;
      background: transparent;
      color: rgba(255,255,255,0.72);
      font-size: 16px;
      font-weight: 500;
      white-space: normal;
    }
    .schedule-days-line,
    .schedule-meta-line{
      display: flex;
      align-items: center;
      gap: 5px;
      flex-wrap: wrap;
      color: rgba(255,255,255,0.52);
      font-size: 13px;
    }
    .schedule-day-pill{
      width: auto;
      min-width: 24px;
      height: 24px;
      padding: 0 7px;
      border-radius: 999px;
      border: 0;
      background: transparent;
      color: rgba(255,255,255,0.44);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 700;
      user-select: none;
      transition: background 0.15s ease, color 0.15s ease;
      cursor: pointer;
    }
    .schedule-day-pill:hover{
      background: rgba(255,255,255,0.04);
    }
    .schedule-day-pill.active{
      background: #ff9f0a;
      color: #111;
      box-shadow: none;
    }
    .schedule-days{
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }
    .schedule-card-side{
      display: grid;
      justify-items: end;
      align-content: start;
      gap: 14px;
      padding-top: 4px;
    }
    .schedule-card-delete{
      border: 1px solid rgba(255,255,255,0.10);
      background: rgba(255,255,255,0.03);
      color: rgba(255,255,255,0.72);
      min-width: 88px;
      height: 32px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 0 12px;
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
      transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    }
    .schedule-card-delete:hover{
      background: rgba(255,255,255,0.06);
      border-color: rgba(255,110,110,0.28);
      color: rgba(255,110,110,0.96);
    }
    .schedule-card-delete:disabled{
      opacity: 0.35;
      cursor: default;
    }
    .schedule-status-pill{
      padding: 0;
      border-radius: 999px;
      background: transparent;
      color: rgba(255,255,255,0.42);
      font-size: 12px;
      font-weight: 700;
      text-transform: none;
      letter-spacing: 0;
    }
    .schedule-status-pill.forever{
      color: rgba(255,255,255,0.42);
    }
    .schedule-status-pill.until{
      color: rgba(255,188,102,0.96);
    }
    .schedule-editor-card{
      margin-top: 12px;
      padding: 14px;
      display: grid;
      gap: 14px;
      align-content: start;
    }
    .schedule-editor-actions{
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .schedule-form{
      display: grid;
      gap: 12px;
    }
    .schedule-time-block{
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 16px 14px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,0.10);
      background: rgba(255,255,255,0.03);
    }
    .schedule-time-icon{
      width: 32px;
      height: 32px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      color: rgba(255,255,255,0.92);
      font-size: 16px;
      flex: 0 0 auto;
    }
    .schedule-time-input::-webkit-calendar-picker-indicator{
      opacity: 0;
      display: none;
    }
    .schedule-time-input{
      border: 0;
      outline: none;
      background: transparent;
      color: rgba(255,255,255,0.98);
      font-size: 48px;
      line-height: 1;
      font-weight: 300;
      letter-spacing: -0.03em;
      font-variant-numeric: tabular-nums;
      width: 100%;
      min-width: 0;
      padding: 0;
    }
    .schedule-row-grid{
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 12px;
    }
    .schedule-field,
    .schedule-note-field{
      display: grid;
      gap: 8px;
    }
    .schedule-field-label{
      color: rgba(255,255,255,0.68);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .schedule-field-hint{
      color: rgba(255,255,255,0.50);
      font-size: 12px;
      line-height: 1.4;
      padding: 2px 2px 0;
    }
    .schedule-field select,
    .schedule-field input,
    .schedule-note-field textarea{
      width: 100%;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.10);
      background: rgba(255,255,255,0.04);
      color: rgba(255,255,255,0.95);
      padding: 10px 12px;
      font-weight: 700;
      box-sizing: border-box;
    }
    .schedule-field select option{
      background: rgb(32,36,47);
      color: rgba(255,255,255,0.96);
    }
    .schedule-note-field textarea{
      resize: vertical;
      min-height: 76px;
    }
    .schedule-end-toggle{
      display: grid;
      padding: 3px;
      border-radius: 16px;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.08);
      gap: 4px;
      width: 100%;
    }
    .schedule-end-btn{
      border: 0;
      border-radius: 12px;
      background: transparent;
      color: rgba(255,255,255,0.64);
      font-weight: 800;
      padding: 10px 12px;
      cursor: pointer;
      transition: background 0.15s ease, color 0.15s ease;
      text-align: left;
    }
    .schedule-end-btn.active{
      background: #ff9f0a;
      color: #111;
    }
    .schedule-note-snippet{
      color: rgba(255,255,255,0.54);
      font-size: 11px;
      line-height: 1.35;
      max-width: 100%;
    }
    .schedule-card-switch{
      transform: scale(1.05);
      transform-origin: right top;
    }
    .schedule-card-actions{
      display: grid;
      justify-items: end;
      gap: 14px;
    }
    .state-log-item .ts{
      color: rgba(255,255,255,0.50);
      margin-right: 8px;
      font-variant-numeric: tabular-nums;
    }
    .state-log-item .kind{
      color: rgba(172,202,255,0.95);
      font-weight: 800;
      margin-right: 6px;
    }
    .state-log-item.error{
      color: rgba(255,205,205,0.95);
    }
    .state-log-item.success{
      color: rgba(205,255,220,0.95);
    }
    .toast-stack{
      position: fixed;
      left: 14px;
      bottom: 14px;
      z-index: 1500;
      display: grid;
      gap: 8px;
      max-width: min(420px, calc(100vw - 28px));
      pointer-events: none;
    }
    .toast-item{
      border: 1px solid rgba(255,255,255,0.14);
      border-radius: 8px;
      background: rgba(15,19,30,0.88);
      color: rgba(238,243,255,0.95);
      font-size: 12px;
      padding: 10px 12px;
      box-shadow: 0 10px 26px rgba(0,0,0,0.32);
      pointer-events: auto;
    }
    .toast-item.success{ border-color: rgba(79,162,125,0.55); }
    .toast-item.warn{ border-color: rgba(239,207,105,0.55); }
    .toast-item.danger{ border-color: rgba(224,68,68,0.62); }
    .toast-title{
      font-weight: 900;
      margin-bottom: 4px;
      font-size: 12px;
    }
    .toast-text{
      color: rgba(238,243,255,0.9);
      line-height: 1.35;
      word-break: break-word;
    }

    /* РќР°СЃС‚СЂРѕР№РєРё */
    .config-actions{
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 10px;
    }
    .update-policy-manifest-actions{
      margin-top: 8px;
      margin-bottom: 4px;
    }
    .server-scoped-actions{
      position: sticky;
      top: 0;
      z-index: 4;
      padding: 8px 0;
      background: linear-gradient(180deg, rgba(35,38,50,0.95), rgba(35,38,50,0.72));
      backdrop-filter: blur(2px);
    }
    .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:disabled{
      background: rgba(255,255,255,0.08);
      border-color: rgba(255,255,255,0.12);
      color: rgba(255,255,255,0.58);
      cursor: not-allowed;
      transform: none;
      filter: none;
      box-shadow: none;
      animation: none;
    }
    .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);
    }
    .db-danger-actions{
      margin-top: 12px;
      justify-content: flex-start;
      gap: 10px;
      flex-wrap: wrap;
    }
    .center-dialog-backdrop{
      position: fixed;
      inset: 0;
      z-index: 2000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(8,11,16,0.74);
      backdrop-filter: blur(4px);
    }
    .center-dialog-backdrop[hidden]{
      display: none !important;
    }
    .center-dialog{
      width: min(620px, 100%);
      border: 1px solid rgba(115,149,194,0.28);
      border-radius: 18px;
      background: linear-gradient(180deg, rgba(24,31,42,0.98), rgba(15,20,29,0.98));
      box-shadow: 0 28px 80px rgba(0,0,0,0.38);
      padding: 20px;
    }
    .center-dialog-title{
      font-size: 20px;
      font-weight: 700;
      color: #eef5ff;
      margin-bottom: 12px;
    }
    .center-dialog-body{
      color: #d2deef;
      line-height: 1.55;
      white-space: pre-line;
    }
    .center-dialog-body ol,
    .center-dialog-body ul{
      margin: 12px 0 0;
      padding-left: 20px;
    }
    .center-dialog-actions{
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 18px;
      flex-wrap: wrap;
    }
    .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;
    }
    .pills-help{
      display: grid;
      gap: 6px;
      line-height: 1.45;
    }
    .action-pill{
      display: inline-block;
      width: 22px;
      height: 11px;
      border-radius: 999px;
      margin-left: 6px;
      vertical-align: middle;
      box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset;
    }
    .action-pill-blue{
      background: linear-gradient(180deg, rgba(93,129,190,0.96), rgba(63,92,143,0.96));
    }
    .action-pill-yellow{
      background: linear-gradient(180deg, rgba(239,207,105,0.95), rgba(207,171,67,0.95));
    }

    .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;
    }
    .ownership-binding-list{
      display: grid;
      gap: 8px;
    }
    .ownership-binding-item{
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
      border: 1px solid rgba(255,255,255,0.10);
      border-radius: 8px;
      padding: 8px 10px;
      background: rgba(255,255,255,0.03);
    }
    .ownership-preferred{
      border-radius: 999px;
      padding: 2px 8px;
      font-size: 11px;
      font-weight: 900;
      border: 1px solid rgba(107, 214, 132, 0.42);
      background: rgba(79,162,125,0.18);
      color: rgba(210,255,224,0.96);
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .ownership-meta{
      color: rgba(255,255,255,0.68);
      font-size: 12px;
      font-weight: 800;
    }
    .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;
    }
    .links-row.links-row-custom{
      grid-template-columns: auto minmax(180px, 280px) 1fr auto;
    }
    .links-row.links-row-host-right-user{
      grid-template-columns: 1fr auto;
      align-items: center;
    }
    #linksCustomRows{
      display: grid;
      gap: 10px;
    }
    #hostRightsUsersRows{
      display: grid;
      gap: 10px;
    }
    .host-rights-title{
      margin-top: 10px;
      margin-bottom: 6px;
    }
    .links-row-compact{
      grid-template-columns: auto 1fr;
    }
    #lokiPreviewEditor .links-row.links-row-compact{
      grid-template-columns: auto 160px minmax(220px, 1fr);
      align-items: center;
    }
    #lokiPreviewEditor .links-row.links-row-compact .links-row-label{
      text-align: left;
      justify-self: start;
    }
    #lokiPreviewEditor .links-row.links-row-compact:first-child{
      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;
    }
    .label-help-link.label-help-mark{
      font-size: 1em;
      font-weight: 900;
      color: #6eb7ff;
      text-decoration: underline;
      line-height: 1;
      vertical-align: baseline;
    }
    .label-help-link.label-help-mark:hover{
      color: #90c9ff;
      text-decoration: underline;
    }
    .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;
    }
    .infra-preview{
      margin-top: 10px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(10,13,20,0.92);
      color: rgba(255,255,255,0.92);
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
      font-size: 12px;
      line-height: 1.45;
      padding: 10px 12px;
      user-select: text;
      white-space: pre;
      overflow-x: auto;
    }
    .config-raw-wrap{
      margin-top: 10px;
    }
    .config-raw-editor{
      width: 100%;
      min-height: 460px;
      resize: vertical;
      border-radius: 10px;
      border: 1px solid rgba(255,255,255,0.14);
      background: rgba(10,13,20,0.94);
      color: rgba(255,255,255,0.96);
      padding: 12px 14px;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
      font-size: 13px;
      line-height: 1.5;
      tab-size: 2;
    }
    .config-raw-editor:disabled{
      opacity: 0.6;
      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-config-wrap{
      display: grid;
      gap: 12px;
    }
    .game-config-hint{
      margin-top: 0;
      padding: 10px 12px;
      border-radius: 10px;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.10);
      color: rgba(255,255,255,0.72);
      white-space: pre-wrap;
      line-height: 1.5;
    }
    .game-config-links{
      border: 1px solid rgba(255,255,255,0.10);
      border-radius: 12px;
      background: rgba(7,11,19,0.55);
      padding: 12px 14px;
    }
    .game-config-links-title{
      font-size: 12px;
      color: rgba(255,255,255,0.62);
      font-weight: 800;
      margin-bottom: 8px;
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }
    .game-config-links-list{
      display: grid;
      gap: 8px;
    }
    .game-config-link{
      color: rgba(147,203,255,0.96);
      text-decoration: none;
      word-break: break-word;
    }
    .game-config-link:hover{
      text-decoration: underline;
    }
    .game-section{
      margin-top: 18px;
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 12px;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
        rgba(6,10,18,0.72);
      padding: 14px 16px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    }
    #extraSectionsEditor{
      display: grid;
      gap: 14px;
    }
    #gameEditor,
    #consoleEditor{
      border: 1px solid rgba(255,255,255,0.10);
      border-radius: 12px;
      background: rgba(7,11,19,0.55);
      padding: 10px 14px;
    }
    .game-extra-card .config-actions{
      align-items: center;
    }
    .game-extra-card .game-hero-input{
      flex: 1 1 auto;
    }
    .game-row{
      display: grid;
      grid-template-columns: auto minmax(220px, 320px) minmax(260px, 1fr) auto;
      align-items: center;
      gap: 10px;
      padding: 10px 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; }
      .links-row.links-row-custom{ grid-template-columns: 1fr; }
      .links-row.links-row-host-right-user{ grid-template-columns: 1fr; }
      .game-row{
        grid-template-columns: 1fr;
        gap: 8px 10px;
      }
      .schedule-overview,
      .schedule-list-head,
      .schedule-editor-head{
        display: grid;
      }
      .schedule-board,
      .schedule-row-grid,
      .schedule-card{
        grid-template-columns: 1fr;
      }
      .schedule-card-side{
        justify-items: start;
        padding-top: 0;
      }
      .schedule-card-actions{
        justify-items: start;
      }
      .schedule-card-delete{
        min-width: 32px;
        padding: 0 10px;
      }
      .schedule-card-delete .schedule-card-delete-text{
        display: none;
      }
      .schedule-time-input{
        font-size: 40px;
      }
      .schedule-clock{
        font-size: 44px;
      }
    }
