:root {
  --bg: #0f0b16;
  --panel: #14101d;
  --panel-2: #181325;
  --border: rgba(168, 130, 255, 0.18);
  --border-2: rgba(168, 130, 255, 0.10);
  --muted: #a69fba;
  --text: #f2effb;
  --green: #8b5cf6;
  --green-2: #7c3aed;
  --red: #ff5d6f;
  --yellow: #ffc857;
}
* { box-sizing: border-box; }
html { font-size: 14px; }
body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: radial-gradient(circle at top, #1a1330, var(--bg) 38%);
  color: var(--text);
  font-size: 0.95rem;
}
a { color: inherit; text-decoration: none; }
.layout { display: grid; grid-template-columns: 280px minmax(0,1fr); min-height: 100vh; }
.sidebar {
  border-right: 1px solid var(--border);
  padding: 16px 14px 18px;
  background: rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.pulse { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, #a855f7, #7c3aed); box-shadow: 0 0 18px rgba(139,92,246,.45); }
.brand-title { font-size: 1.3rem; font-weight: 800; line-height: 1.15; }
.brand-subtitle { color: var(--muted); font-size: 0.74rem; }
.nav { display: flex; flex-direction: column; gap: 6px; }
.nav-link {
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #d8ebe3;
  font-size: .92rem;
}
.nav-link:hover, .nav-link.active { border-color: var(--border); background: rgba(139,92,246,.10); }
.sidebar-footer { margin-top: auto; color: var(--muted); font-size: 0.82rem; display: grid; gap: 5px; }
.main { padding: 18px 20px 28px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.search-box {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 14px;
  color: var(--muted);
  flex: 1;
  font-size: 0.9rem;
}
.top-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.84rem;
}
.pill.success { background: rgba(139,92,246,.12); color: #e9ddff; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.page-head h1 { margin: 0 0 6px; font-size: 2rem; line-height: 1.1; }
.muted { color: var(--muted); }
.success-text { color: #e9ddff; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.inline-actions, .plugin-actions, .inline-form, .stack-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grid { display: grid; gap: 14px; min-width: 0; }
.cards-1 { grid-template-columns: 1fr; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.compact-grid { gap: 12px; }
.card {
  background: linear-gradient(180deg, rgba(20,16,29,.98), rgba(15,11,22,.98));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  min-width: 0;
  overflow: hidden;
}
.inner-card { background: rgba(255,255,255,0.015); }
.card-title { font-weight: 700; font-size: 1rem; }
.stat-card .label { color: var(--muted); font-size: .84rem; }
.stat-card .value { font-size: 1.55rem; font-weight: 800; margin-top: 8px; line-height: 1.1; }
.stat-card .small-value { font-size: 1.1rem; }
.kv-list { display: grid; gap: 8px; }
.kv-list > div { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 4px;
}
.tab-link {
  padding: 9px 12px;
  border-radius: 10px;
  color: #dce9e2;
  font-size: .9rem;
}
.tab-link.active, .tab-link:hover { background: rgba(139,92,246,.12); }
form { min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.form-grid .full { grid-column: 1 / -1; }
label { display: grid; gap: 6px; min-width: 0; }
label > span { color: #ccddd5; font-size: .85rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 11px;
  font: inherit;
  min-width: 0;
}
input::placeholder, textarea::placeholder { color: #7f938a; }
select { color-scheme: dark; }
select option,
select optgroup {
  color: #f3f4f6;
  background: #15131d;
}
select option:checked,
select option:hover {
  color: #ffffff;
  background: #2a1f3d;
}
select[data-custom-select].native-select-hidden {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  clip-path: inset(50%);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.custom-select {
  position: relative;
  width: 100%;
  min-width: 0;
}
.custom-select-button {
  display: grid;
  width: 100%;
  min-height: 42px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 11px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.custom-select-button:hover,
.custom-select.is-open .custom-select-button,
.custom-select-button:focus-visible {
  outline: none;
  border-color: rgba(139,92,246,.45);
  box-shadow: 0 0 0 2px rgba(139,92,246,.12);
}
.custom-select.is-invalid .custom-select-button {
  border-color: rgba(255,93,111,.55);
  box-shadow: 0 0 0 2px rgba(255,93,111,.12);
}
.custom-select.is-disabled .custom-select-button {
  cursor: not-allowed;
  opacity: .62;
}
.custom-select-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-select-value.is-placeholder { color: var(--muted); }
.custom-select-arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid #d8c8ff;
  border-bottom: 2px solid #d8c8ff;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .16s ease;
}
.custom-select.is-open .custom-select-arrow { transform: translateY(2px) rotate(225deg); }
.custom-select-menu {
  position: fixed;
  z-index: 10050;
  display: grid;
  gap: 4px;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(168,130,255,.30);
  border-radius: 12px;
  background: #120f1c;
  box-shadow: 0 18px 54px rgba(0,0,0,.42);
}
.custom-select-menu[hidden] { display: none; }
.custom-select-option {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  padding: 9px 10px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  white-space: normal;
  word-break: break-word;
}
.custom-select-option:hover,
.custom-select-option:focus-visible {
  outline: none;
  background: rgba(139,92,246,.16);
}
.custom-select-option.is-selected {
  background: rgba(139,92,246,.24);
  color: #ffffff;
}
.custom-select-option.is-placeholder { color: var(--muted); }
.custom-select-option:disabled {
  cursor: not-allowed;
  opacity: .48;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(139,92,246,.45);
  box-shadow: 0 0 0 2px rgba(139,92,246,.12);
}
textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
.codebox { font-family: Consolas, 'Courier New', monospace; font-size: .88rem; }
input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,.03) inset;
  transition: background-color 9999s ease-in-out 0s;
}
.checkbox { display: flex; align-items: center; gap: 10px; min-height: 42px; }
.checkbox input { width: 16px; height: 16px; }
.btn {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: .9rem;
  white-space: nowrap;
}
.btn:hover { border-color: var(--border); background: rgba(139,92,246,.10); }
.btn.success { background: rgba(139,92,246,.18); border-color: rgba(139,92,246,.28); }
.btn.danger { background: rgba(255,93,111,.12); border-color: rgba(255,93,111,.22); }
.btn.warning { background: rgba(255,184,76,.14); border-color: rgba(255,184,76,.30); }
.btn.secondary { background: rgba(255,255,255,.025); }
.btn.tiny { padding: 6px 9px; font-size: .82rem; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.table th, .table td {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}
.table th { color: #bfd2c9; font-weight: 600; font-size: .82rem; }
.compact-table th, .compact-table td { padding: 8px 7px; }
.wrap-cell { word-break: break-word; max-width: 420px; }
.clean-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.plugin-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.status-dot {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 8px; border-radius: 999px; font-size: .78rem;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.status-dot.ok { background: rgba(139,92,246,.12); color: #e9ddff; }
.status-dot.off { color: #d1d9d5; }
.stack-actions { align-items: stretch; }
.stack-actions form { display: inline-flex; }
.account-edit-dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 28px));
  padding: 18px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: #120f1c;
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0,0,0,.48);
}
.account-edit-dialog::backdrop {
  background: rgba(4,3,8,.68);
  backdrop-filter: blur(4px);
}
.account-edit-dialog .modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.account-edit-dialog .account-edit-form {
  display: grid;
  min-width: 0;
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.account-edit-dialog .account-edit-form .full { grid-column: 1 / -1; }
.inline-form.compact input { max-width: 62px; }
@media (max-width: 1250px) {
  .cards-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cards-5 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cards-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
  .cards-2, .cards-3, .cards-4, .cards-5, .form-grid { grid-template-columns: 1fr; }
  .page-head, .topbar { flex-direction: column; }
  .account-edit-dialog .account-edit-form { grid-template-columns: 1fr; }
  .account-edit-dialog .modal-head { flex-direction: column; }
}


.switchline{display:flex;align-items:center;gap:10px;padding:8px 12px;border:1px solid var(--border);border-radius:12px;background:rgba(255,255,255,.03)}
.checkbox-toggle{margin:0}
.checkbox-toggle input{width:16px;height:16px}


.pulse-toggle-form{margin:0}
.pulse-switch{display:inline-flex;align-items:center;gap:10px;padding:8px 12px;border:1px solid var(--border);border-radius:14px;background:rgba(255,255,255,.03);cursor:pointer;min-height:42px;user-select:none;}
.pulse-switch input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;}
.pulse-switch-ui{position:relative;display:inline-block;width:44px;height:24px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.10);box-shadow:inset 0 0 0 1px rgba(0,0,0,.12);transition:.18s ease;}
.pulse-switch-ui::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 8px rgba(0,0,0,.35);transition:.18s ease;}
.pulse-switch input:checked + .pulse-switch-ui{background:linear-gradient(135deg, #8b5cf6, #a855f7);box-shadow:0 0 18px rgba(139,92,246,.35);border-color:rgba(168,130,255,.45);}
.pulse-switch input:checked + .pulse-switch-ui::after{transform:translateX(20px);}
.pulse-switch-text{font-size:.92rem;color:var(--text);}
.small-switch{padding:10px 12px;}
.small-switch .pulse-switch-text{font-size:.88rem;}
.small-switch .pulse-switch-ui{width:40px;height:22px;}
.small-switch .pulse-switch-ui::after{width:16px;height:16px;}
.small-switch input:checked + .pulse-switch-ui::after{transform:translateX(18px);}

label small.muted { font-size: .8rem; line-height: 1.35; }
.inline-form-bottom { align-items: flex-end; }
.inline-field { display: grid; gap: 6px; min-width: 0; }
.server-id-field { min-width: 260px; flex: 1 1 320px; }
.inline-form-actions { display: flex; align-items: flex-end; min-height: 68px; }
pre.codebox { white-space: pre-wrap; margin: 0; }


.stack-form { display: grid; gap: 10px; }
.form-actions-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.autoprice-box { min-height: 88px; }
.actions-end { display: flex; align-items: flex-end; min-height: 68px; }
.actions-end .btn, .inline-form-actions .btn { margin-bottom: 1px; }
.inline-form-bottom { gap: 10px; }
.inline-form.compact { align-items: center; }
.inline-form.compact .btn { align-self: center; }
.inline-form.compact input { padding-top: 7px; padding-bottom: 7px; }
#messages textarea { min-height: 88px; }
#settings textarea { min-height: 110px; }
input[type="hidden"] { display: none !important; }


.secret-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.secret-wrap .secret-toggle {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--text);
  border-radius: 10px;
  min-width: 44px;
  padding: 0 12px;
  cursor: pointer;
  font: inherit;
}
.secret-wrap .secret-toggle:hover { border-color: var(--border); background: rgba(139,92,246,.10); }
.secret-textarea { -webkit-text-security: disc; font-family: Consolas, 'Courier New', monospace; }
.secret-wrap.is-visible .secret-textarea { -webkit-text-security: none; }
.secret-wrap textarea { min-height: 110px; }

.accordion-group summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.accordion-group summary::-webkit-details-marker{display:none;}
.accordion-group[open] summary{margin-bottom:8px;}

.hidden{display:none !important;}
.notice-pre{white-space:pre-wrap; align-items:flex-start; max-width:100%;}
.dota-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;}
.dota-toolbar .wide-loading-form{flex:1 1 320px;}
.dota-toolbar .large-btn{width:100%;min-height:46px;font-size:.96rem;font-weight:700;}
.dota-cards{display:grid;grid-template-columns:1fr;gap:12px;}
.dota-account-card{border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.02);border-radius:14px;padding:14px;display:grid;grid-template-columns:minmax(180px,1.1fr) minmax(360px,2fr) auto;gap:14px;align-items:center;}
.dota-account-card.disabled{opacity:.85;border-color:rgba(255,93,111,.26);}
.dota-account-card.active{border-color:rgba(139,92,246,.28);}
.dota-card-main{display:grid;gap:6px;min-width:0;}
.dota-card-title{font-weight:700;font-size:1rem;line-height:1.2;}
.dota-card-status{font-size:.84rem;}
.dota-card-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;align-items:center;}
.dota-stats{display:grid;grid-template-columns:repeat(4,minmax(110px,1fr));gap:8px;min-width:0;}
.dota-stats>div{border:1px solid rgba(255,255,255,.05);background:rgba(255,255,255,.02);border-radius:12px;padding:9px 11px;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;}
.dota-stats span{color:var(--muted);font-size:.84rem;white-space:nowrap;}
.dota-stats strong{text-align:right;display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.dota-extra{display:flex;gap:10px;flex-wrap:wrap;font-size:.82rem;grid-column:1 / -1;padding-top:2px;}
.proxy-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;}
.proxy-choice{display:flex;gap:10px;align-items:flex-start;border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:10px 12px;background:rgba(255,255,255,.02);cursor:pointer;}
.proxy-choice input{margin-top:3px;}
.proxy-choice span{display:grid;gap:4px;}
.proxy-choice small{color:var(--muted);font-size:.78rem;word-break:break-all;}
.loading-overlay{position:fixed;inset:0;background:rgba(8,6,12,.54);display:flex;align-items:center;justify-content:center;z-index:10000;backdrop-filter:blur(2px);}
.loading-card{display:grid;gap:10px;justify-items:center;background:linear-gradient(180deg, rgba(20,16,29,.98), rgba(15,11,22,.98));border:1px solid var(--border);border-radius:18px;padding:18px 20px;min-width:210px;max-width:min(90vw,340px);box-shadow:0 20px 50px rgba(0,0,0,.35);}
.loading-card-head{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;}
.loading-card-head strong{font-size:.92rem;}
.loader-ring{width:36px;height:36px;border-radius:50%;border:3px solid rgba(255,255,255,.14);border-top-color:#8b5cf6;animation:spin 1s linear infinite;}
.loader-ring.mini{width:14px;height:14px;border-width:2px;}
.loading-text{font-size:.88rem;color:var(--text);text-align:center;line-height:1.35;}
.loading-mini{position:fixed;left:18px;bottom:18px;display:inline-flex;align-items:center;gap:10px;padding:9px 12px;border-radius:999px;border:1px solid var(--border);background:linear-gradient(180deg, rgba(20,16,29,.98), rgba(15,11,22,.98));box-shadow:0 18px 48px rgba(0,0,0,.35);z-index:10001;color:inherit;}
.loading-mini .loading-mini-text{max-width:min(58vw,220px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem;}
.loading-overlay.is-minimized{background:transparent;backdrop-filter:none;pointer-events:none;}
.loading-overlay.is-minimized .loading-card{display:none;}
.loading-overlay.is-minimized .loading-mini{display:inline-flex !important;pointer-events:auto;}
@keyframes spin{to{transform:rotate(360deg);}}
@media (max-width: 1180px){.dota-account-card{grid-template-columns:1fr;}.dota-card-actions{justify-content:flex-start;}.dota-stats{grid-template-columns:repeat(2,minmax(140px,1fr));}}
@media (max-width: 780px){.dota-stats{grid-template-columns:1fr;}.loading-mini{left:12px;bottom:12px;}}

runtime-log-box{min-height:480px;max-height:720px;overflow:auto;white-space:pre-wrap;word-break:break-word;}
body.is-busy{cursor:progress;}
.btn.is-loading{position:relative;padding-right:34px;pointer-events:none;opacity:.88;}
.btn.is-loading::after{content:'';position:absolute;right:12px;top:50%;width:14px;height:14px;margin-top:-7px;border-radius:50%;border:2px solid rgba(255,255,255,.25);border-top-color:#fff;animation:spin .8s linear infinite;}

.autosmm-api-form .card-title{margin-bottom:2px;}
.autosmm-api-form .pulse-switch{width:fit-content;align-self:end;}
.autosmm-api-form .muted{line-height:1.4;}
.autosmm-api-form .secret-wrap,.autosmm-api-form .secret-input{width:100%;min-width:0;}
.autosmm-api-toggle{margin-top:auto;}


.brand-block{display:grid;gap:6px;padding:4px 4px 2px;}
.brand-topline{font-size:.72rem;letter-spacing:.22em;text-transform:uppercase;color:#8f88a8;}
.brand-title{font-size:1.42rem;font-weight:800;line-height:1.08;}
.brand-subtitle{color:var(--muted);font-size:.8rem;line-height:1.4;}
.sidebar-section-label{font-size:.68rem;letter-spacing:.22em;text-transform:uppercase;color:#7f7896;margin-top:4px;padding:0 4px;}
.sidebar-widget{border:1px solid var(--border);border-radius:16px;padding:12px 12px;background:linear-gradient(180deg, rgba(20,16,29,.98), rgba(15,11,22,.98));display:grid;gap:8px;}
.sidebar-widget-head{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.sidebar-widget-title{font-weight:700;}
.sidebar-widget-subtitle{color:var(--muted);font-size:.84rem;}
.lamp{display:inline-block;width:12px;height:12px;border-radius:50%;box-shadow:0 0 0 3px rgba(255,255,255,.04);}
.lamp.green{background:#3ddc84;box-shadow:0 0 0 3px rgba(61,220,132,.14),0 0 12px rgba(61,220,132,.45);}
.lamp.red{background:#ff5d6f;box-shadow:0 0 0 3px rgba(255,93,111,.14),0 0 12px rgba(255,93,111,.42);}
.sidebar-accounts-list{display:grid;gap:10px;}
.sidebar-account-card{border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:10px 11px;background:rgba(255,255,255,.025);display:grid;gap:8px;min-width:0;max-width:100%;overflow:hidden;}
.sidebar-account-card.is-primary{border-color:rgba(168,130,255,.38);background:rgba(139,92,246,.08);}
.sidebar-account-card-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;}
.sidebar-avatar{width:42px;height:42px;border-radius:50%;object-fit:cover;border:1px solid rgba(255,255,255,.08);background:#20192d;display:block;}
.sidebar-avatar-fallback{display:flex;align-items:center;justify-content:center;font-weight:800;font-size:.9rem;color:#fff;}
.sidebar-account-meta{min-width:0;display:grid;gap:4px;}
.sidebar-account-name-row{display:flex;align-items:center;gap:6px;min-width:0;}
.sidebar-account-name{font-weight:700;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.sidebar-account-subline{font-size:.78rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.sidebar-account-primary-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;flex:0 0 18px;border-radius:50%;font-size:.72rem;color:#efe6ff;background:rgba(139,92,246,.16);border:1px solid rgba(168,130,255,.2);}
.sidebar-empty{padding:8px 4px;font-size:.84rem;line-height:1.45;}
.sidebar-footer{margin-top:auto;color:var(--muted);font-size:.82rem;display:grid;gap:6px;padding:4px;}
.sidebar-telegram-link{display:inline-flex;align-items:center;gap:8px;color:#d8c7ff;font-weight:600;}
.sidebar-telegram-link:hover{text-decoration:underline;}
.notice-error{padding:10px 12px;border-radius:12px;border:1px solid rgba(255,93,111,.28);background:rgba(255,93,111,.12);color:#ffd8de;}
.proxy-test-result{padding:12px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.025);}
.proxy-test-result.ok{border-color:rgba(61,220,132,.28);background:rgba(61,220,132,.08);}
.proxy-test-result.bad{border-color:rgba(255,93,111,.28);background:rgba(255,93,111,.08);}
.status-row-inline{display:flex;align-items:center;gap:10px;min-width:0;}
.status-row-inline span:last-child{min-width:0;word-break:break-word;}
@media (max-width: 1180px){.layout{grid-template-columns:1fr;}.sidebar{border-right:0;border-bottom:1px solid var(--border);}}

.proxy-test-form textarea{min-height:88px;}
.proxy-test-actions{padding-top:4px;}
.proxy-test-actions .btn{margin-top:4px;}

.funpay-switch-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;}
.funpay-switch-row{width:100%;justify-content:flex-start;align-items:flex-start;min-height:68px;padding:12px 14px;}
.funpay-switch-meta{display:flex;flex-direction:column;gap:4px;line-height:1.25;}
.funpay-switch-meta strong{font-size:.95rem;}
.funpay-switch-meta small{color:var(--muted);font-size:.82rem;}
