/* ===================== Дизайн-система ===================== */
:root {
  --bg: #0b0e14;          /* фон приложения */
  --bg-2: #0f131b;        /* контент */
  --panel: #141926;       /* карточки, панели */
  --panel-2: #1a2130;     /* инпуты, вложенные */
  --panel-3: #212a3b;     /* hover */
  --line: #26304180;      /* границы */
  --line-solid: #273043;
  --text: #e8edf5;
  --muted: #8894a8;
  --faint: #5a6577;
  --accent: #4aa8ff;      /* Steam-голубой */
  --accent-dim: #16324f;
  --accent-2: #66c0f4;
  --green: #57d38a;
  --green-bg: #12251b;
  --yellow: #edc770;
  --yellow-bg: #241f12;
  --red: #f0736f;
  --red-bg: #271617;
  --violet: #b39bf3;
  --violet-bg: #1d1930;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 6px 24px -12px rgba(0,0,0,.6);
  --sidebar-w: 214px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
:where(button, input, select, textarea) { font-family: inherit; }

/* Скроллбары */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a3446; border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #37435b; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

.hidden { display: none !important; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; }
.error { color: var(--red); min-height: 18px; margin-top: 8px; font-size: 13px; }

/* ===================== Вход ===================== */
.login-screen { height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 50% -10%, #14203a 0%, var(--bg) 55%); }
.login-card {
  width: 340px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 11px;
  box-shadow: var(--shadow);
}
.login-card h1 { margin: 0; font-size: 22px; letter-spacing: .3px; }
.login-card p { margin: 0 0 8px; }
.login-card input[name=username], .login-card input[name=password] {
  background: var(--panel-2); border: 1px solid var(--line-solid); border-radius: var(--radius);
  padding: 12px 13px; color: var(--text); font-size: 14px; transition: border-color .15s;
}
.login-card input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #4aa8ff22; }
.remember { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 7px; cursor: pointer; }
.remember input { accent-color: var(--accent); }

/* ===================== Каркас: сайдбар + main ===================== */
.app { height: 100vh; display: flex; }

.sidebar {
  width: var(--sidebar-w); flex: none; background: var(--bg-2);
  border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 16px 12px;
}
.brand { display: flex; align-items: center; gap: 9px; padding: 6px 8px 18px; font-weight: 700; font-size: 16px; letter-spacing: .2px; }
.brand-logo { font-size: 20px; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav button {
  display: flex; align-items: center; gap: 11px; text-align: left;
  background: transparent; border: none; color: var(--muted);
  padding: 10px 12px; border-radius: var(--radius); cursor: pointer; font-size: 14px; font-weight: 500;
  transition: background .12s, color .12s;
}
.nav button .ni { width: 18px; text-align: center; opacity: .8; font-size: 13px; }
.nav button:hover { color: var(--text); background: var(--panel); }
.nav button.active { color: #fff; background: var(--accent-dim); box-shadow: inset 2px 0 0 var(--accent); }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.conn { font-size: 11px; color: var(--green); }
.conn.off { color: var(--red); }
.side-user { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.appbar {
  height: 56px; flex: none; display: flex; align-items: center; gap: 20px;
  padding: 0 22px; border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.page-title { font-size: 17px; margin: 0; font-weight: 600; }
.stats { display: flex; gap: 16px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.stats span { display: inline-flex; align-items: center; gap: 5px; }
.stats b { color: var(--text); font-weight: 600; font-size: 13px; }

.content { flex: 1; min-height: 0; display: flex; }
.content > * { flex: 1; min-height: 0; }

/* ===================== Кнопки и поля ===================== */
.btn {
  background: var(--panel-2); border: 1px solid var(--line-solid); color: var(--text);
  padding: 8px 14px; border-radius: var(--radius); cursor: pointer; font-size: 13px; font-weight: 500;
  white-space: nowrap; transition: background .12s, border-color .12s, transform .05s;
}
.btn:hover { background: var(--panel-3); border-color: #33405a; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #04121f; font-weight: 600; }
.btn.primary:hover { background: #63b6ff; }
.btn.accent { background: var(--green); border-color: var(--green); color: #042013; font-weight: 600; }
.btn.accent:hover { background: #6ee0a0; }
.btn.danger { color: var(--red); border-color: #4a2b2d; }
.btn.danger:hover { background: var(--red-bg); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--panel-2); }
.btn.tiny { padding: 4px 9px; font-size: 11px; border-radius: 7px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

.input {
  background: var(--panel-2); border: 1px solid var(--line-solid); border-radius: var(--radius);
  padding: 8px 11px; color: var(--text); font-size: 13px; transition: border-color .15s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #4aa8ff1f; }
.input.wide { width: 100%; }
.input.code { font-size: 22px; letter-spacing: 7px; text-align: center; text-transform: uppercase; }
select.input { cursor: pointer; }
#search, #on-search, #farm-search { min-width: 210px; }

textarea {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line-solid); border-radius: var(--radius);
  padding: 11px; color: var(--text); font: 12px/1.55 ui-monospace, Menlo, Consolas, monospace; resize: vertical;
}
textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #4aa8ff1f; }

/* ===================== Панели вкладок ===================== */
#view-accounts { display: grid; grid-template-rows: auto auto 1fr auto; }
#view-online, #view-farm { display: flex; flex-direction: column; }
#view-online .table-wrap, #view-farm .table-wrap { flex: 1; min-height: 0; }

.toolbar, .selbar {
  display: flex; align-items: center; gap: 9px; padding: 12px 20px;
  border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.toolbar { flex-wrap: wrap; }
.selbar { padding: 8px 20px; font-size: 12px; color: var(--muted); min-height: 38px; background: var(--bg); }
.farm-bar { flex-wrap: wrap; }
.farm-bar .input { min-width: 120px; }

/* ===================== Таблицы ===================== */
.table-wrap { overflow: auto; padding: 0 20px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left; color: var(--faint); font-weight: 600; font-size: 11px; text-transform: uppercase;
  letter-spacing: .4px; padding: 11px 10px; border-bottom: 1px solid var(--line-solid);
  position: sticky; top: 0; background: var(--bg-2); z-index: 2; white-space: nowrap;
}
thead th[data-sort] { cursor: pointer; user-select: none; }
thead th[data-sort]:hover { color: var(--text); }
thead th .arrow { color: var(--accent); margin-left: 3px; }
td { padding: 10px 10px; border-bottom: 1px solid #1c2331; vertical-align: middle; }
tbody tr { transition: background .08s; }
tbody tr:hover td { background: #131a27; }
tbody tr.sel td { background: #14263a; box-shadow: inset 2px 0 0 var(--accent); }
.tight { width: 1%; white-space: nowrap; }
input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }

.acc-link { cursor: pointer; font-weight: 500; }
.acc-link:hover { color: var(--accent); }

/* ===================== Бейджи, чипы, статусы ===================== */
.badge {
  display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 500; border: 1px solid transparent; white-space: nowrap;
}
.badge.ok, .badge.online, .badge.farming { color: var(--green); border-color: #235640; background: var(--green-bg); }
.badge.new { color: var(--muted); border-color: var(--line-solid); }
.badge.checking, .badge.connecting { color: var(--accent); border-color: #23496b; background: #10202f; }
.badge.guard_required, .badge.rate_limited, .badge.retry { color: var(--yellow); border-color: #5a4d28; background: var(--yellow-bg); }
.badge.bad_password, .badge.disabled, .badge.error, .badge.dead { color: var(--red); border-color: #5a2f31; background: var(--red-bg); }
.badge.limited { color: var(--violet); border-color: #40376b; background: var(--violet-bg); }
.badge.offline { color: var(--faint); border-color: var(--line-solid); }

.tagchip { display: inline-block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  vertical-align: bottom; color: var(--accent-2); cursor: pointer; font-size: 12px; }
.tagchip:hover { text-decoration: underline; }

.sess { font-size: 12px; font-weight: 500; }
.sess.dot-online, .sess.dot-farm { color: var(--green); }
.sess.dot-connecting { color: var(--accent); }
.sess.dot-guard, .sess.dot-retry { color: var(--yellow); }
.sess.dot-off { color: var(--faint); }

.farm-cell { min-width: 190px; }
.bar { height: 5px; background: var(--panel-2); border-radius: 3px; overflow: hidden; margin-top: 5px; }
.bar > i { display: block; height: 100%; background: var(--green); border-radius: 3px; transition: width .5s; }
.bar.paused > i { background: var(--yellow); }

.empty { padding: 70px 20px; text-align: center; color: var(--muted); }
.empty.small { padding: 26px; }

/* ===================== Дашборд ===================== */
.view-dash { overflow-y: auto; padding: 22px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 14px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 17px 18px;
  transition: border-color .15s, transform .1s;
}
.card:hover { border-color: #2f3b52; transform: translateY(-1px); }
.card .num { font-size: 32px; font-weight: 700; line-height: 1.05; letter-spacing: -.5px; }
.card .lbl { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.card.good .num { color: var(--green); }
.card.warn .num { color: var(--yellow); }
.card.bad .num { color: var(--red); }
.card.accent .num { color: var(--accent); }

.dash-section { margin-top: 26px; }
.dash-section h2 { font-size: 14px; margin: 0 0 12px; font-weight: 600; color: var(--text); }
.dash-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
@media (max-width: 900px) { .dash-two { grid-template-columns: 1fr; } }
.gamerow, .grouprow {
  display: flex; align-items: center; gap: 12px; padding: 11px 15px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; cursor: pointer;
  transition: border-color .12s;
}
.gamerow:hover, .grouprow:hover { border-color: var(--accent); }
.gamerow .g-name, .grouprow .g-name { font-weight: 600; }
.gamerow .g-app, .grouprow .g-id { color: var(--faint); font-size: 12px; font-family: ui-monospace, monospace; }
.gamerow .g-count, .grouprow .g-count { margin-left: auto; color: var(--accent); font-weight: 700; }

/* ===================== Лог ===================== */
.logbox { border-top: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; }
.logbox-head { padding: 8px 20px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; font-weight: 600; }
.log { height: 168px; overflow-y: auto; padding: 9px 20px; font: 12px/1.65 ui-monospace, Menlo, Consolas, monospace; }
.log div { white-space: pre-wrap; }
.log .warn { color: var(--yellow); }
.log .error { color: var(--red); }
.log .ts { color: var(--faint); margin-right: 8px; }
.log .who { color: var(--accent); }

/* ===================== Модалки ===================== */
.modal { position: fixed; inset: 0; background: rgba(5,7,11,.7); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; z-index: 30; padding: 20px; }
.modal-card {
  background: var(--panel); border: 1px solid var(--line-solid); border-radius: var(--radius-lg);
  padding: 24px; width: 560px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow);
}
.modal-card.narrow { width: 390px; }
.modal-card.wide-card { width: 820px; }
.modal-card h2 { margin: 0 0 6px; font-size: 18px; }
.modal-card label { display: block; margin: 14px 0 6px; font-size: 12px; color: var(--muted); }
.modal-card .row { display: flex; gap: 8px; align-items: center; margin-top: 18px; }
.modal-card .row.tight-row { margin-top: 10px; }
.table-wrap.inner { max-height: 46vh; padding: 0; border: 1px solid var(--line-solid); border-radius: var(--radius); margin-top: 12px; }
.table-wrap.inner thead th { background: var(--panel); }
.hint { background: var(--panel-2); border: 1px solid var(--line-solid); border-radius: var(--radius);
  padding: 11px; font: 12px/1.6 ui-monospace, Menlo, Consolas, monospace; color: var(--muted); margin: 10px 0; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.presets button { background: var(--panel-2); border: 1px solid var(--line-solid); color: var(--muted);
  border-radius: 999px; padding: 4px 11px; font-size: 12px; cursor: pointer; transition: color .12s, border-color .12s; }
.presets button:hover { color: var(--text); border-color: var(--accent); }

/* ===================== Карточка аккаунта ===================== */
.acc-head { display: flex; align-items: center; gap: 10px; }
.acc-head h2 { margin: 0; font-size: 16px; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 18px; margin: 16px 0; font-size: 13px; }
.acc-grid .k { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: .3px; }
.acc-grid .v { word-break: break-all; margin-top: 1px; }
.acc-social { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 8px 0; }
.chip-list { display: flex; flex-wrap: wrap; gap: 5px; max-height: 140px; overflow-y: auto; padding: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--panel-2); border: 1px solid var(--line-solid);
  border-radius: 7px; padding: 3px 8px; font-size: 12px; max-width: 100%; }
.chip .cid { color: var(--faint); font-size: 10px; }
.chip.group { cursor: pointer; }
.chip.group:hover { border-color: var(--accent); color: var(--accent); }
.acc-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0; margin-top: 6px; border-top: 1px solid var(--line); }
.acc-sub { font-size: 12px; color: var(--muted); margin: 16px 0 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.acc-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; }
.acc-edit .btn { grid-column: 1 / -1; justify-self: start; }
.acc-farm { display: flex; gap: 8px; align-items: center; }
.users-wrap { max-width: 720px; }
.user-create { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.user-create .input { min-width: 180px; }
.user-create .error { margin-top: 0; }

/* ===================== Игры (вкладка Фарм) ===================== */
.game-chips { display: flex; flex-wrap: wrap; gap: 4px; max-width: 620px; }
.game-chips .chip { font-size: 11px; padding: 3px 8px; cursor: pointer; transition: border-color .1s, color .1s, background .1s; }
.chip.gamepick:hover { border-color: var(--accent); color: var(--accent); background: #12202f; }
.chip.gamepick.active { border-color: var(--green); color: var(--green); background: var(--green-bg); font-weight: 600; }
.chip.gamepick.active::before { content: "▶ "; font-size: 9px; }
.farm-sep { width: 1px; height: 22px; background: var(--line-solid); margin: 0 4px; }
.farm-bar .input[type=number] { text-align: center; }

/* ===================== Новый UX модерации ===================== */
.search-box { min-width: 300px; flex: 1; max-width: 420px; }

/* Фильтр-таблетки */
.pills { display: flex; gap: 7px; padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--bg); flex-wrap: wrap; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line-solid); background: var(--panel-2); color: var(--muted);
  cursor: pointer; font-size: 12.5px; font-weight: 500; transition: all .12s; user-select: none;
}
.pill:hover { color: var(--text); border-color: #33405a; }
.pill.active { background: var(--accent); border-color: var(--accent); color: #04121f; }
.pill .cnt { background: rgba(0,0,0,.22); padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.pill.active .cnt { background: rgba(0,0,0,.18); }

/* Клик по строке = выбор, без галочек */
#accounts tbody tr { cursor: pointer; }
td.row-actions { text-align: right; white-space: nowrap; }
.row-actions .ico {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 7px; border: 1px solid transparent; background: transparent; color: var(--muted);
  cursor: pointer; font-size: 13px; opacity: 0; transition: opacity .1s, background .1s, color .1s; margin-left: 2px;
}
tr:hover .row-actions .ico { opacity: 1; }
.row-actions .ico:hover { background: var(--panel-3); color: var(--text); }
.row-actions .ico.danger:hover { color: var(--red); }
tr.sel .row-actions .ico { opacity: .7; }

/* Плавающая панель массовых действий */
.actionbar {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  background: var(--panel); border: 1px solid var(--line-solid); border-radius: 14px;
  box-shadow: 0 12px 40px -10px rgba(0,0,0,.7); z-index: 25;
  animation: barUp .16s ease-out;
}
@keyframes barUp { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.actionbar .ab-count { font-size: 17px; font-weight: 700; color: var(--accent); }
.actionbar .ab-label { color: var(--muted); font-size: 12px; margin-right: 2px; }
.actionbar .ab-sep { width: 1px; height: 22px; background: var(--line-solid); }
.actionbar .btn { padding: 7px 12px; }

/* Контекстное меню */
.ctxmenu {
  position: fixed; z-index: 40; min-width: 210px; padding: 6px;
  background: var(--panel); border: 1px solid var(--line-solid); border-radius: 10px;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  animation: ctxIn .1s ease-out;
}
@keyframes ctxIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
.ctxmenu button {
  text-align: left; background: transparent; border: none; color: var(--text);
  padding: 8px 11px; border-radius: 7px; cursor: pointer; font-size: 13px;
}
.ctxmenu button:hover { background: var(--panel-2); }
.ctxmenu button.danger { color: var(--red); }
.ctx-sep { height: 1px; background: var(--line); margin: 5px 4px; }

/* Эмодзи-флаги */
.ico.flag { font-size: 14px; }
.ico.flag.set { opacity: 1; }           /* назначенный флаг виден всегда */
.login-flag { margin-right: 4px; }
.flagpicker {
  position: fixed; z-index: 45; display: flex; gap: 4px; padding: 6px;
  background: var(--panel); border: 1px solid var(--line-solid); border-radius: 10px;
  box-shadow: var(--shadow); animation: ctxIn .1s ease-out;
}
.flagpicker button {
  background: transparent; border: 1px solid transparent; border-radius: 8px;
  width: 34px; height: 34px; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.flagpicker button:hover { background: var(--panel-2); border-color: var(--line-solid); }
.flagpicker button.clear { font-size: 14px; color: var(--muted); }

/* Тосты */
.toasts { position: fixed; bottom: 22px; right: 22px; z-index: 50; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--panel); border: 1px solid var(--line-solid); border-left: 3px solid var(--accent);
  padding: 11px 15px; border-radius: 9px; box-shadow: var(--shadow); font-size: 13px; max-width: 340px;
  animation: toastIn .18s ease-out;
}
.toast.good { border-left-color: var(--green); }
.toast.bad { border-left-color: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* Выезжающая карточка справа */
.modal.drawer { justify-content: flex-end; padding: 0; background: rgba(5,7,11,.5); }
.drawer-card {
  width: 470px; max-width: 94vw; height: 100vh; max-height: 100vh;
  border-radius: 0; border: none; border-left: 1px solid var(--line-solid);
  animation: drawerIn .2s cubic-bezier(.2,.7,.3,1);
}
@keyframes drawerIn { from { transform: translateX(30px); opacity: .6; } to { transform: translateX(0); opacity: 1; } }

/* Логин/пароль для копирования */
.creds { display: flex; flex-direction: column; gap: 8px; background: var(--panel-2);
  border: 1px solid var(--line-solid); border-radius: 10px; padding: 12px 14px; margin: 12px 0; }
.cred { display: flex; align-items: center; gap: 10px; }
.cred-k { width: 96px; color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: .3px; flex: none; }
.cred-v { flex: 1; font-size: 14px; word-break: break-all; }
.copy-btn { background: transparent; border: 1px solid var(--line-solid); border-radius: 6px;
  color: var(--muted); cursor: pointer; padding: 3px 8px; font-size: 13px; transition: all .1s; }
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 720px) {
  .sidebar { width: 60px; }
  .brand-name, .nav button span:not(.ni), .side-user .muted { display: none; }
  .nav button { justify-content: center; }
}

/* Строка фарма: не переносить блок таймаута */
td.nowrap { white-space: nowrap; }
.to-h { text-align: center; padding: 4px 4px; }

/* ===================== SDA: Steam Guard / подтверждения ===================== */
.guard-box { display: flex; align-items: center; gap: 12px; background: var(--panel-2);
  border: 1px solid var(--line-solid); border-radius: 10px; padding: 12px 14px; }
.guard-code { font: 700 26px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 4px; color: var(--green); }
.guard-ring { position: relative; width: 34px; height: 34px; }
.guard-ring svg { transform: rotate(-90deg); width: 34px; height: 34px; }
.guard-ring circle { fill: none; stroke-width: 3; }
.guard-ring .gr-bg { stroke: var(--line-solid); }
.guard-ring .gr-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100.5; transition: stroke-dashoffset 1s linear; }
.guard-ring span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); }
.conf-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.conf-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.conf-item { display: flex; align-items: center; gap: 10px; background: var(--panel-2);
  border: 1px solid var(--line-solid); border-radius: 9px; padding: 9px 11px; }
.conf-item .c-title { font-weight: 600; font-size: 13px; }
.conf-item .c-sub { color: var(--muted); font-size: 12px; }
.conf-item .c-actions { margin-left: auto; display: flex; gap: 6px; }
