:root {
  --bg: #0a1228;
  --bg-soft: #111c37;
  --surface: #152443;
  --surface-2: #1b2c4f;
  --surface-panel: rgba(8, 18, 38, 0.56);
  --surface-panel-soft: rgba(9, 20, 43, 0.5);
  --line: rgba(137, 170, 229, 0.24);
  --line-strong: rgba(137, 170, 229, 0.42);
  --line-soft: rgba(149, 180, 233, 0.2);
  --line-faint: rgba(149, 180, 233, 0.14);
  --text: #e8f0ff;
  --text-soft: #dbe7fb;
  --muted: #9db0d4;
  --primary: #3d7cff;
  --primary-2: #2b5fe7;
  --success: #2fb577;
  --danger: #ea445a;
  --warn: #f9ba49;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow: 0 18px 36px rgba(1, 8, 22, 0.46);
  --font-main: "Avenir Next", "SF Pro Display", "Manrope", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  overscroll-behavior-y: auto;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-y: auto;
  color: var(--text);
  font-family: var(--font-main);
  background:
    radial-gradient(circle at 2% 0%, rgba(61, 124, 255, 0.25), transparent 32%),
    radial-gradient(circle at 98% 100%, rgba(47, 181, 119, 0.18), transparent 36%),
    var(--bg);
}

.bg-glow {
  position: fixed;
  pointer-events: none;
  filter: blur(68px);
  opacity: 0.38;
  z-index: 0;
}

.bg-glow-a {
  width: 320px;
  height: 320px;
  left: -140px;
  top: -150px;
  background: #3d7cff;
}

.bg-glow-b {
  width: 320px;
  height: 320px;
  right: -130px;
  bottom: -140px;
  background: #26a971;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100vw - 16px));
  max-width: 100%;
  margin: 10px auto 24px;
  display: grid;
  gap: 10px;
  overflow-x: clip;
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(165deg, rgba(30, 47, 83, 0.9), rgba(20, 35, 66, 0.9));
  box-shadow: var(--shadow);
  padding: 13px;
}

.legacy-auth {
  margin-top: 12px;
  border: 1px solid var(--line-faint);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(7, 14, 30, 0.36);
}

.legacy-auth > summary {
  cursor: pointer;
  color: var(--text-soft);
  font-weight: 600;
  list-style: none;
}

.legacy-auth > summary::-webkit-details-marker {
  display: none;
}

.legacy-auth-body {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.legacy-auth-note {
  font-size: 12px;
  color: var(--muted);
}

.legacy-auth-help {
  width: fit-content;
}

#login-code-wrap {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.app-topbar {
  position: sticky;
  top: 8px;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.topbar-brand {
  min-width: 0;
}

.topbar-kpis {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.topbar-kpi {
  min-width: 108px;
  border: 1px solid rgba(149, 180, 233, 0.25);
  border-radius: 12px;
  padding: 7px 10px;
  background: rgba(9, 19, 40, 0.58);
  display: grid;
  gap: 2px;
}

.topbar-kpi .kpi-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.topbar-kpi strong {
  font-size: 14px;
  color: #f0f6ff;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.header h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0.2px;
  font-weight: 780;
}

.header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.card-head h2,
.card-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: 0.1px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  color: #c7d8f9;
}

.chip.cold {
  color: #a8ecff;
  border-color: rgba(109, 222, 255, 0.45);
}

.chip.ok {
  color: #b4f3c6;
  border-color: rgba(94, 216, 132, 0.42);
}

.chip.warn {
  color: #ffe39b;
  border-color: rgba(245, 179, 54, 0.42);
}

.chip.danger {
  color: #ffc2c2;
  border-color: rgba(244, 99, 99, 0.42);
}

.label {
  display: block;
  margin-bottom: 6px;
  color: #bdd0f2;
  font-size: 12px;
  font-weight: 620;
}

textarea,
input,
select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 38, 0.84);
  color: var(--text);
  padding: 10px;
  font-size: 14px;
  font-family: inherit;
}

textarea:focus,
input:focus,
select:focus {
  outline: none;
  border-color: rgba(117, 174, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(61, 124, 255, 0.18);
}

textarea:disabled,
input:disabled,
select:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  border: 1px solid rgba(149, 180, 233, 0.08);
  border-radius: 12px;
  padding: 10px 13px;
  min-height: 40px;
  color: #f8fbff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .16s ease, filter .16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
}

.btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.btn.success { background: linear-gradient(135deg, #31b67b, #1f9864); }
.btn.danger { background: linear-gradient(135deg, #ef5d72, #cb2f49); }
.btn.warning { background: linear-gradient(135deg, #f5a623, #e4721c); }
.btn.ghost {
  background: rgba(41, 61, 94, 0.62);
  border-color: var(--line);
}

.muted {
  color: #a8bddf;
  font-size: 12px;
  line-height: 1.35;
  margin: 0 0 8px;
}

.status-line {
  margin-top: 8px;
  font-size: 13px;
  color: #d2def3;
}

.status-line.ok { color: #9ff3c9; }
.status-line.err { color: #ffc0cb; }

.stack { display: grid; gap: 10px; }

#app-section {
  padding-bottom: 96px;
}

.stats-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  padding: 11px;
  min-height: 104px;
}

.stat-label {
  color: #b3c5e7;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.stat-value {
  margin-top: 5px;
  font-size: 19px;
  font-weight: 760;
  word-break: break-word;
}

.stat-meta {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.app-pages {
  display: grid;
  gap: 10px;
  max-width: 100%;
  overflow-x: hidden;
}

.app-page {
  display: none;
  gap: 10px;
  max-width: 100%;
  overflow-x: hidden;
}

.app-page.active {
  display: grid;
}

.app-page > * {
  min-width: 0;
}

.panel-card {
  border-color: var(--line-strong);
}

.page-header-card {
  padding-bottom: 10px;
}

.page-head .muted {
  margin-top: 4px;
  margin-bottom: 0;
}

.seg-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 0;
  scrollbar-width: none;
}

.seg-tabs::-webkit-scrollbar { display: none; }

.seg-btn {
  border: 1px solid rgba(149, 180, 233, 0.22);
  border-radius: 12px;
  background: rgba(22, 36, 66, 0.64);
  color: var(--text-soft);
  padding: 10px 14px;
  min-width: max-content;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}

.seg-btn.active {
  background: linear-gradient(135deg, rgba(61, 124, 255, 0.84), rgba(43, 95, 231, 0.84));
  border-color: rgba(125, 171, 255, 0.44);
  box-shadow: 0 8px 16px rgba(61, 124, 255, 0.16);
}

.seg-btn.locked,
.seg-btn:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  filter: grayscale(0.28);
}

.seg-btn.locked.active,
.seg-btn:disabled.active {
  background: rgba(22, 36, 66, 0.64);
  border-color: rgba(149, 180, 233, 0.22);
  box-shadow: none;
}

.wheel-seg-lock {
  font-size: 0.95em;
  margin-left: 4px;
}

.seg-section {
  display: none;
}

.seg-section.active {
  display: grid;
  gap: 10px;
}

.app-page[data-page="baryga"] .seg-tabs[data-seg-group="baryga"] .seg-btn {
  padding-inline: 12px;
}

.zaruba-overview-head {
  align-items: flex-start;
}

.zaruba-overview-card {
  display: grid;
  gap: 7px;
}

.zaruba-overview-head h2 {
  margin-bottom: 1px;
  font-size: 18px;
}

.zaruba-overview-head .muted {
  display: none;
}

.zaruba-overview-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.zaruba-overview-actions .btn.compact {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 11px;
}

.zaruba-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.zaruba-kpi {
  border: 1px solid rgba(149, 180, 233, 0.2);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(13, 25, 52, 0.62), rgba(9, 16, 35, 0.58));
  padding: 8px;
  min-height: 70px;
  display: grid;
  gap: 2px;
}

.zaruba-kpi > span {
  color: #a9c0e6;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.zaruba-kpi strong {
  color: #eff5ff;
  font-size: 15px;
  font-weight: 820;
  line-height: 1.1;
}

.zaruba-kpi .muted {
  margin: 0;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zaruba-progress-wrap {
  border: 1px solid rgba(149, 180, 233, 0.22);
  border-radius: 10px;
  background: rgba(9, 19, 39, 0.48);
  padding: 7px 8px;
  display: grid;
  gap: 6px;
}

.zaruba-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #bfd1f3;
  font-size: 11px;
}

.zaruba-progress-head strong {
  color: #ebf3ff;
  font-size: 11px;
}

.zaruba-progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.2);
}

.zaruba-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  transition: width 0.2s ease;
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.zaruba-changer-card {
  display: grid;
  gap: 8px;
}

.zaruba-changer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  gap: 7px;
  align-items: stretch;
}

.zaruba-changer-balance {
  border: 1px solid rgba(149, 180, 233, 0.2);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(11, 24, 51, 0.65), rgba(7, 14, 30, 0.66));
  padding: 8px;
  display: grid;
  gap: 4px;
}

.zaruba-changer-balance-head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #bfd1f3;
  font-size: 10px;
  font-weight: 700;
}

.zaruba-changer-balance strong {
  color: #eff6ff;
  font-size: 16px;
  font-weight: 820;
  line-height: 1.1;
}

.zaruba-changer-balance .muted {
  margin: 0;
  font-size: 10px;
  line-height: 1.15;
}

.zaruba-changer-icon-wrap {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(149, 180, 233, 0.28);
  background: rgba(25, 44, 77, 0.5);
  flex-shrink: 0;
}

.zaruba-changer-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zaruba-changer-icon-fallback {
  font-size: 12px;
  line-height: 1;
}

.zaruba-changer-swap-mark {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: #9ec3ff;
  border: 1px solid rgba(149, 180, 233, 0.25);
  background: rgba(12, 25, 48, 0.6);
  font-size: 12px;
  font-weight: 800;
}

.zaruba-changer-meta {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.2;
  padding: 5px 8px;
  border-radius: 9px;
}

.zaruba-changer-actions {
  margin-top: 0;
  justify-content: flex-start;
  gap: 6px;
}

.zaruba-changer-actions .btn {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 11px;
}

.zaruba-modes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.zaruba-mode-card {
  border: 1px solid rgba(149, 180, 233, 0.2);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(11, 24, 51, 0.65), rgba(7, 14, 30, 0.66));
  padding: 8px;
  display: grid;
  gap: 6px;
}

.zaruba-mode-card.is-unlocked {
  border-color: rgba(62, 198, 133, 0.35);
}

.zaruba-mode-card.is-current {
  border-color: rgba(245, 158, 11, 0.58);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.2) inset;
}

.zaruba-mode-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.zaruba-mode-head strong {
  font-size: 12px;
  line-height: 1.2;
}

.zaruba-mode-meta {
  display: grid;
  gap: 1px;
  color: #b8caeb;
  font-size: 10px;
  line-height: 1.2;
}

.zaruba-mode-start {
  width: 100%;
  min-height: 30px;
  padding: 6px 8px;
  font-size: 11px;
}

.zaruba-modes-grid > .zaruba-empty,
.zaruba-modes-grid > .muted {
  grid-column: 1 / -1;
}

.zaruba-task-list {
  display: grid;
  gap: 6px;
}

.zaruba-task-row {
  border: 1px solid rgba(149, 180, 233, 0.2);
  border-radius: 10px;
  background: rgba(8, 18, 38, 0.52);
  padding: 7px 8px;
  display: grid;
  gap: 5px;
}

.zaruba-task-row.is-done {
  border-color: rgba(47, 181, 119, 0.3);
  background: rgba(12, 45, 31, 0.36);
}

.zaruba-task-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.zaruba-task-row-head strong {
  color: #ecf4ff;
  font-size: 12px;
  font-weight: 740;
}

.zaruba-task-row-head span {
  color: #f6c96a;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.zaruba-task-row-sub {
  color: #9fb4d9;
  font-size: 10px;
  line-height: 1.2;
}

.zaruba-task-row-bar {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.2);
}

.zaruba-task-row-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  transition: width 0.2s ease;
  background: linear-gradient(90deg, #2dd4bf, #22c55e);
}

.zaruba-task-row-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #b9ccec;
  font-size: 10px;
}

.zaruba-task-row-done {
  color: #9ff3c9;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
}

.zaruba-overview-card .task-progress,
.zaruba-active-card > .task-progress {
  margin: 0;
  padding: 5px 8px;
  font-size: 10.5px;
  line-height: 1.2;
  border-radius: 9px;
}

.zaruba-active-card > .row {
  margin-top: 0;
  gap: 6px;
}

.zaruba-active-card > .row .btn,
.zaruba-task-row-foot .btn.compact {
  min-height: 28px;
  padding: 5px 8px;
  font-size: 10px;
}

.zaruba-modes-card .card-head,
.zaruba-active-card .card-head,
.zaruba-changer-card .card-head {
  margin-bottom: 0;
}

.zaruba-changer-card .card-head h3,
.zaruba-modes-card .card-head h3,
.zaruba-active-card .card-head h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.15;
}

.zaruba-empty {
  border: 1px dashed rgba(149, 180, 233, 0.28);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  line-height: 1.35;
}

.zaruba-auto-card {
  display: grid;
  gap: 10px;
}

.zaruba-auto-head {
  align-items: flex-start;
  gap: 10px;
}

.zaruba-auto-head .muted {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.3;
}

.zaruba-auto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.zaruba-auto-grid .field {
  margin: 0;
}

.zaruba-auto-grid .field > span {
  margin-bottom: 4px;
}

.zaruba-auto-grid .field input,
.zaruba-auto-grid .field select {
  min-height: 34px;
  border-radius: 10px;
}

.zaruba-auto-checkline {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(149, 180, 233, 0.22);
  background: rgba(9, 19, 39, 0.5);
  padding: 8px 10px;
}

.zaruba-auto-checkline span {
  font-size: 12px;
}

.zaruba-auto-actions {
  margin-top: 0;
  gap: 8px;
}

.zaruba-auto-actions .btn {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}

.zaruba-auto-card .task-progress {
  margin: 0;
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.25;
}

.zaruba-auto-rules-card {
  display: grid;
  gap: 8px;
}

.zaruba-auto-rules {
  display: grid;
  gap: 7px;
}

.zaruba-auto-rule {
  border: 1px solid rgba(149, 180, 233, 0.22);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(11, 24, 51, 0.62), rgba(7, 14, 30, 0.62));
  padding: 8px 9px;
  display: grid;
  gap: 4px;
}

.zaruba-auto-rule strong {
  color: #ecf4ff;
  font-size: 12px;
  line-height: 1.2;
}

.zaruba-auto-rule span {
  color: #b9ccec;
  font-size: 11px;
  line-height: 1.3;
}

.zaruba-auto-rule.danger {
  border-color: rgba(248, 113, 113, 0.38);
  background: linear-gradient(180deg, rgba(73, 24, 24, 0.52), rgba(39, 14, 14, 0.6));
}

.zaruba-bags-overview-head {
  align-items: flex-start;
}

.zaruba-bags-overview-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.zaruba-bags-kpi-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.zaruba-bags-signet-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.zaruba-bags-signet-icon-wrap {
  width: 14px;
  height: 14px;
}

.zaruba-bags-last-open-card {
  display: grid;
  gap: 10px;
}

.zaruba-bags-last-open {
  display: grid;
  gap: 10px;
}

.zaruba-bags-drop {
  border: 1px solid rgba(149, 180, 233, 0.22);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(11, 24, 51, 0.65), rgba(7, 14, 30, 0.66));
  padding: 10px;
  display: grid;
  gap: 10px;
}

.zaruba-bags-drop-head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.zaruba-bags-drop-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(16, 32, 62, 0.8);
  border: 1px solid rgba(149, 180, 233, 0.28);
}

.zaruba-bags-drop-title {
  color: #ebf4ff;
  font-weight: 760;
  line-height: 1.25;
}

.zaruba-bags-drop-sub {
  color: #a6bee6;
  font-size: 12px;
  line-height: 1.3;
}

.zaruba-bags-drop-meta {
  color: #bfd1f3;
  font-size: 12px;
  line-height: 1.35;
}

.zaruba-bags-groups {
  display: grid;
  gap: 10px;
}

.zaruba-bags-group {
  border: 1px solid rgba(149, 180, 233, 0.22);
  border-radius: 14px;
  background: rgba(9, 18, 38, 0.55);
  padding: 10px;
  display: grid;
  gap: 9px;
}

.zaruba-bags-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.zaruba-bags-group-head h4 {
  margin: 0;
  font-size: 14px;
}

.zaruba-bags-group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.zaruba-bag-card {
  border: 1px solid rgba(149, 180, 233, 0.2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(11, 24, 51, 0.65), rgba(7, 14, 30, 0.66));
  padding: 10px;
  display: grid;
  gap: 8px;
}

.zaruba-bag-card.is-unlocked {
  border-color: rgba(62, 198, 133, 0.34);
}

.zaruba-bag-card.is-completed {
  border-color: rgba(250, 204, 21, 0.48);
  background: linear-gradient(180deg, rgba(51, 43, 12, 0.5), rgba(30, 24, 8, 0.56));
}

.zaruba-bag-head {
  display: flex;
  gap: 9px;
  align-items: center;
}

.zaruba-bag-icon-slot {
  display: inline-flex;
  flex-shrink: 0;
}

.zaruba-bag-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(15, 30, 58, 0.75);
  border: 1px solid rgba(149, 180, 233, 0.25);
  flex-shrink: 0;
}

.zaruba-bag-icon-fallback,
.zaruba-bags-drop-icon-fallback {
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
}

.zaruba-bag-title {
  margin: 0;
  color: #eaf3ff;
  font-size: 13px;
  line-height: 1.25;
}

.zaruba-bag-cost {
  color: #f6d168;
  font-size: 12px;
  margin-top: 2px;
}

.zaruba-bag-sets {
  display: grid;
  gap: 5px;
}

.zaruba-bag-set {
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 9px;
  background: rgba(6, 13, 29, 0.6);
  padding: 7px;
  display: grid;
  gap: 3px;
}

.zaruba-bag-set-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.zaruba-bag-set-top strong {
  font-size: 12px;
  line-height: 1.25;
  color: #deebff;
}

.zaruba-bag-set-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.zaruba-bag-set-title span {
  min-width: 0;
}

.zaruba-bag-set-weapon-icon {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.zaruba-bag-set-top span {
  color: #f7c869;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.zaruba-bag-set-meta {
  color: #a0b5d8;
  font-size: 11px;
  line-height: 1.3;
}

.baryga-zsh-card {
  display: grid;
  gap: 12px;
}

.baryga-zsh-hero {
  border: 1px solid rgba(149, 180, 233, 0.24);
  border-radius: 16px;
  padding: 14px;
  background: rgba(10, 22, 45, 0.9);
  display: grid;
  gap: 12px;
}

.baryga-zsh-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0;
}

.baryga-zsh-kicker {
  color: #8cf8d5;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 11px;
  font-weight: 780;
}

.baryga-zsh-head h2 {
  margin: 2px 0 0;
}

.baryga-zsh-head .muted {
  margin: 4px 0 0;
  line-height: 1.3;
  max-width: 520px;
}

.baryga-zsh-head .chip {
  flex-shrink: 0;
}

.baryga-zsh-hero-controls {
  display: grid;
  gap: 10px;
}

.baryga-zsh-paper-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.baryga-zsh-paper-refresh-btn {
  min-width: 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.baryga-zsh-launch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  gap: 10px;
  align-items: end;
}

.baryga-zsh-count-wrap {
  display: grid;
  gap: 5px;
}

.baryga-zsh-count-wrap > span {
  color: #c6d8fa;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  font-weight: 700;
}

.baryga-zsh-count-wrap input {
  width: 100%;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(149, 180, 233, 0.28);
  background: rgba(8, 18, 39, 0.62);
  color: #ecf4ff;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 10px;
}

.baryga-zsh-count-wrap input:focus {
  outline: none;
  border-color: rgba(125, 211, 252, 0.66);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.baryga-zsh-main-btn {
  min-width: 178px;
  min-height: 38px;
}

.baryga-zsh-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.baryga-zsh-presets .btn.compact {
  min-width: 0;
  padding: 7px 11px;
  border-radius: 999px;
  border-color: rgba(149, 180, 233, 0.28);
  background: rgba(9, 20, 43, 0.52);
}

.baryga-zsh-status-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr);
  gap: 10px;
}

.baryga-zsh-status-box,
.baryga-zsh-results-box {
  border-radius: 14px;
  padding: 11px;
  display: grid;
  gap: 9px;
  min-width: 0;
}

.baryga-zsh-status-box {
  border-color: rgba(52, 211, 153, 0.28);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(34, 197, 94, 0.11), transparent 56%),
    linear-gradient(180deg, rgba(9, 20, 43, 0.88), rgba(7, 16, 35, 0.84));
}

.baryga-zsh-results-box {
  border-color: rgba(96, 165, 250, 0.3);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(59, 130, 246, 0.12), transparent 56%),
    linear-gradient(180deg, rgba(9, 20, 43, 0.88), rgba(7, 16, 35, 0.84));
}

.baryga-zsh-status-top,
.baryga-zsh-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.baryga-zsh-status-top strong,
.baryga-zsh-results-head strong {
  color: #edf4ff;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.2;
  min-width: 0;
}

.baryga-zsh-status-top .chip,
.baryga-zsh-summary-row .chip {
  min-height: 38px;
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.25;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(149, 180, 233, 0.24);
  background: rgba(8, 17, 34, 0.54);
  color: #dbe7fb;
}

.baryga-zsh-status-top .chip {
  min-width: 112px;
}

.baryga-zsh-status-sub {
  color: #b6c9ea;
  font-size: 11px;
  line-height: 1.3;
  min-height: 42px;
  border: 1px solid rgba(149, 180, 233, 0.22);
  border-radius: 12px;
  background: rgba(8, 17, 34, 0.48);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.baryga-zsh-progress {
  display: grid;
  gap: 6px;
}

.baryga-zsh-progress-text {
  color: #bfd1f4;
  font-size: 11px;
  line-height: 1.2;
  font-family: var(--font-mono);
}

.baryga-zsh-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.baryga-zsh-kpis .mini-kpi.compact {
  padding: 9px;
  border-radius: 10px;
  gap: 3px;
  border-color: rgba(149, 180, 233, 0.24);
  background: rgba(8, 17, 34, 0.54);
}

.baryga-zsh-kpis .mini-kpi.compact span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.baryga-zsh-kpis .mini-kpi.compact strong {
  font-size: 14px;
  font-family: var(--font-mono);
}

.baryga-zsh-last-purchase {
  font-size: 11px;
  line-height: 1.3;
  min-height: 42px;
  border: 1px solid rgba(149, 180, 233, 0.22);
  border-radius: 12px;
  background: rgba(8, 17, 34, 0.48);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.baryga-zsh-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.baryga-zsh-purchases-list {
  display: grid;
  gap: 7px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.baryga-zsh-purchase-row {
  border: 1px solid rgba(149, 180, 233, 0.22);
  border-radius: 11px;
  background: rgba(10, 19, 38, 0.6);
  padding: 8px 9px;
  display: grid;
  gap: 5px;
}

.baryga-zsh-purchase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #bfd1f2;
}

.baryga-zsh-purchase-item {
  color: #eaf2ff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  word-break: break-word;
}

.baryga-zsh-purchase-meta {
  color: #9fb4d8;
  font-size: 10px;
  line-height: 1.2;
}

.baryga-zsh-purchase-top .paper {
  color: #ffd684;
  font-family: var(--font-mono);
}

.baryga-zsh-purchase-meta .discount {
  color: #f8d078;
}

.baryga-stew-card {
  display: grid;
  gap: 10px;
}

.baryga-stew-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.baryga-stew-balance-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.baryga-stew-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(149, 180, 233, 0.24);
  background: rgba(8, 17, 33, 0.52);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.baryga-stew-icon-wrap img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.baryga-stew-balance-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.baryga-stew-balance-label {
  color: #9db1d2;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.baryga-stew-balance-value {
  color: #eff6ff;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.baryga-stew-balance-sub {
  color: #bfd1f4;
  font-size: 12px;
  line-height: 1.25;
}

.baryga-stew-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.baryga-stew-actions {
  display: grid;
  grid-template-columns: minmax(0, 140px) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.baryga-stew-count-wrap {
  display: grid;
  gap: 4px;
}

.baryga-stew-count-wrap > span {
  color: #bfd1f4;
  font-size: 12px;
}

.baryga-stew-count-wrap > input {
  min-height: 38px;
  text-align: center;
}

.baryga-stew-main-btn {
  min-width: 170px;
}

.baryga-stew-live-line {
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 12px;
  background: rgba(8, 16, 32, 0.5);
  color: #d8e6ff;
  font-size: 12px;
  line-height: 1.35;
  padding: 9px 10px;
}

.baryga-stew-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.baryga-stew-rewards-list {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 2px;
}

.baryga-stew-reward-row {
  border: 1px solid rgba(149, 180, 233, 0.14);
  border-radius: 11px;
  background: rgba(8, 18, 38, 0.44);
  padding: 7px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.baryga-stew-reward-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d7e6ff;
  font-size: 12px;
  min-width: 0;
}

.baryga-stew-reward-left > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.baryga-stew-reward-icon {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 1px solid rgba(149, 180, 233, 0.2);
  background: rgba(6, 14, 28, 0.58);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.baryga-stew-reward-icon img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  display: block;
}

.baryga-stew-reward-row strong {
  color: #9af3ca;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.baryga-stew-stats-modal-body {
  display: grid;
  gap: 10px;
}

.baryga-stew-stats-reward-row {
  border-style: solid;
}

.baryga-stew-stats-reward-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.baryga-stew-hides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}

.baryga-stew-hide-card {
  border: 1px solid rgba(149, 180, 233, 0.14);
  border-radius: 10px;
  background: rgba(8, 16, 32, 0.48);
  padding: 6px;
  display: grid;
  gap: 5px;
}

.baryga-stew-hide-card img {
  width: 100%;
  height: 76px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(149, 180, 233, 0.12);
  background: rgba(2, 8, 20, 0.55);
}

.baryga-stew-hide-card small {
  color: #b8caec;
  font-size: 10px;
  line-height: 1.2;
  display: block;
  text-align: center;
}

.baryga-stew-hide-fallback {
  width: 100%;
  height: 76px;
  border-radius: 8px;
  border: 1px solid rgba(149, 180, 233, 0.12);
  background: rgba(6, 14, 28, 0.56);
  color: #9fb5d8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.baryga-parcels-card {
  display: grid;
  gap: 12px;
}

.baryga-parcels-hero {
  border: 1px solid rgba(149, 180, 233, 0.22);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(15, 28, 56, 0.78), rgba(8, 16, 34, 0.72));
  padding: 12px;
  display: grid;
  gap: 10px;
}

.baryga-parcels-hero h2 {
  margin: 0;
  color: #eef5ff;
  font-size: 20px;
  font-weight: 840;
  line-height: 1.1;
}

.baryga-parcels-hero .muted {
  margin: 4px 0 0;
}

.baryga-parcels-hero-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.baryga-parcels-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.baryga-parcels-col {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.baryga-parcels-box {
  border: 1px solid rgba(149, 180, 233, 0.2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(11, 24, 51, 0.65), rgba(7, 14, 30, 0.66));
  padding: 11px;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.baryga-parcels-box-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.baryga-parcels-box-head .muted {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.25;
}

.baryga-parcels-box-head strong {
  color: #eef5ff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.baryga-parcels-box-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.baryga-parcels-balance {
  display: flex;
  align-items: center;
  gap: 10px;
}

.baryga-parcels-action-row {
  display: flex;
  gap: 8px;
}

.baryga-parcels-action-row .btn {
  width: 100%;
}

.baryga-parcels-list {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 2px;
}

.baryga-parcels-subline {
  font-size: 11px;
  line-height: 1.3;
}

.baryga-parcels-inbox-row {
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 12px;
  background: rgba(8, 16, 32, 0.6);
  padding: 8px 9px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.baryga-parcels-inbox-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(149, 180, 233, 0.18);
  background: rgba(9, 18, 36, 0.62);
  object-fit: cover;
}

.baryga-parcels-inbox-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.baryga-parcels-inbox-actions {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.baryga-parcels-inbox-avatar.baryga-parcels-inline-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 12px;
  color: #b9cdef;
}

.baryga-parcels-inbox-title {
  color: #eaf2ff;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.2;
}

.baryga-parcels-inbox-meta {
  color: #a8bee3;
  font-size: 10px;
}

.baryga-parcels-inbox-msg {
  color: #c8d9f6;
  font-size: 11px;
  line-height: 1.25;
  word-break: break-word;
}

.baryga-parcels-currency-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(149, 180, 233, 0.2);
  border-radius: 999px;
  background: rgba(11, 22, 44, 0.64);
  padding: 3px 8px;
  color: #f3e089;
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.baryga-parcels-currency-pill .baryga-parcels-inline-icon {
  width: 14px;
  height: 14px;
}

.baryga-parcels-buy-row {
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 12px;
  background: rgba(8, 16, 32, 0.6);
  padding: 9px;
  display: grid;
  gap: 7px;
}

.baryga-parcels-buy-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.baryga-parcels-buy-row-top strong {
  color: #eef5ff;
  font-size: 12px;
}

.baryga-parcels-buy-row-top span {
  color: #a8bee3;
  font-size: 10px;
}

.baryga-parcels-buy-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px auto;
  gap: 6px;
  align-items: center;
}

.baryga-parcels-buy-controls select,
.baryga-parcels-buy-controls input {
  min-height: 34px;
}

.baryga-parcels-buy-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #bcd0f2;
  font-size: 11px;
}

.baryga-parcels-send-rows {
  display: grid;
  gap: 7px;
}

.baryga-parcels-send-row {
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 12px;
  background: rgba(8, 16, 32, 0.6);
  padding: 9px;
  display: grid;
  gap: 7px;
}

.baryga-parcels-send-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.baryga-parcels-send-row-head strong {
  color: #eaf2ff;
  font-size: 12px;
}

.baryga-parcels-send-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.baryga-parcels-send-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.baryga-parcels-send-grid input,
.baryga-parcels-send-grid select {
  min-height: 34px;
}

.baryga-parcels-send-field {
  display: grid;
  gap: 3px;
}

.baryga-parcels-send-field > span {
  color: #9eb5dc;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.baryga-parcels-send-profile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c4d7f6;
  font-size: 11px;
}

.baryga-parcels-send-profile img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(149, 180, 233, 0.2);
}

.baryga-parcels-inline-icon {
  width: 16px;
  height: 16px;
  border-radius: 6px;
  border: 1px solid rgba(149, 180, 233, 0.2);
  background: rgba(6, 14, 28, 0.58);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.baryga-parcels-inline-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.baryga-baul-card {
  display: grid;
  gap: 10px;
}

.baryga-baul-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.baryga-baul-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.baryga-baul-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.baryga-baul-progress-wrap {
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 12px;
  background: rgba(8, 16, 32, 0.5);
  padding: 9px 10px;
  display: grid;
  gap: 7px;
}

.baryga-baul-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #dbe8ff;
  font-size: 12px;
}

.baryga-baul-progress-head strong {
  color: #eef5ff;
  font-size: 12px;
}

.baryga-baul-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.baryga-baul-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.baryga-baul-list-card {
  border: 1px solid rgba(149, 180, 233, 0.16);
  border-radius: 12px;
  background: rgba(8, 18, 38, 0.42);
  padding: 8px;
  display: grid;
  gap: 6px;
}

.baryga-baul-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.baryga-baul-list-head strong {
  color: #e8f2ff;
  font-size: 13px;
}

.baryga-baul-tattoo-flag {
  margin-left: auto;
}

.baryga-baul-tattoo-flag.has-tattoo {
  border-color: rgba(255, 172, 90, 0.36);
  background: linear-gradient(135deg, rgba(112, 48, 16, 0.72), rgba(73, 24, 45, 0.68));
  color: #fff0d4;
}

.baryga-baul-rewards-list {
  display: grid;
  gap: 6px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 2px;
}

.baryga-baul-reward-row {
  border: 1px solid rgba(149, 180, 233, 0.14);
  border-radius: 10px;
  background: rgba(8, 16, 32, 0.52);
  padding: 7px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.baryga-baul-reward-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.baryga-baul-reward-icon {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 1px solid rgba(149, 180, 233, 0.2);
  background: rgba(6, 14, 28, 0.58);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.baryga-baul-reward-icon img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  display: block;
}

.baryga-baul-reward-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.baryga-baul-reward-copy strong {
  color: #e6f1ff;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.baryga-baul-reward-copy small {
  color: #a8bee3;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.baryga-baul-reward-amount {
  color: #9af3ca;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.baryga-talents-card {
  display: grid;
  gap: 8px;
}

.baryga-talents-card .card-head {
  align-items: center;
  gap: 8px;
}

.baryga-talents-card .card-head .muted {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.3;
  max-width: 420px;
}

.baryga-talents-card .card-head .row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.baryga-talents-card .card-head .btn.compact {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 12px;
}

.baryga-talents-summary-card {
  border: 1px solid rgba(149, 180, 233, 0.2);
  border-radius: 14px;
  background: rgba(9, 18, 37, 0.48);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.baryga-talents-summary-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 8px;
}

.baryga-talents-kpi {
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 12px;
  background: rgba(11, 20, 38, 0.45);
  padding: 10px;
  display: grid;
  gap: 3px;
}

.baryga-talents-kpi span {
  color: #9eb3d8;
  font-size: 11px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.baryga-talents-kpi strong {
  color: #eaf2ff;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
}

.baryga-talents-kpi.accent {
  border-color: rgba(16, 185, 129, 0.25);
  background:
    radial-gradient(circle at 90% 0%, rgba(16, 185, 129, 0.12), transparent 60%),
    rgba(11, 20, 38, 0.46);
}

.baryga-talents-kpi.accent strong {
  color: #86efac;
}

.baryga-talents-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.baryga-talents-summary-meta .chip {
  min-height: 18px;
  padding: 0 7px;
  font-size: 10px;
  border-radius: 999px;
}

.baryga-talents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.baryga-talents-grid .simple-list-empty {
  grid-column: 1 / -1;
}

.baryga-talent-card {
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 12px;
  background: rgba(10, 19, 38, 0.52);
  padding: 9px;
  display: grid;
  gap: 6px;
}

.baryga-talent-card.upgradable {
  border-color: rgba(52, 211, 153, 0.26);
  background:
    radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.08), transparent 55%),
    rgba(10, 19, 38, 0.54);
}

.baryga-talent-card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.baryga-talent-card-name {
  color: #eaf2ff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  min-width: 0;
  word-break: break-word;
}

.baryga-talent-card-level {
  color: #c7d6ee;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.baryga-talent-card-progress {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(149, 180, 233, 0.12);
  background: rgba(5, 10, 22, 0.5);
}

.baryga-talent-card-progress > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.72), rgba(16, 185, 129, 0.95));
}

.baryga-talent-card-footer {
  display: grid;
  gap: 6px;
  align-content: end;
}

.baryga-talent-card-state {
  color: #afc2e4;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  min-height: 16px;
}

.baryga-talent-upgrade-btn {
  width: 100%;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.32);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
  color: #ecfffa;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.baryga-talent-upgrade-btn:hover {
  filter: brightness(1.05);
}

.baryga-talent-upgrade-btn:disabled {
  opacity: 0.65;
  cursor: default;
  filter: none;
}

.baryga-talent-upgrade-btn .hint {
  font-size: 10px;
  margin-left: 6px;
  opacity: 0.92;
}

.baryga-sets-card {
  display: grid;
  gap: 8px;
}

.baryga-sets-card .card-head {
  align-items: center;
  gap: 8px;
}

.baryga-sets-card .card-head .muted {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.3;
  max-width: 380px;
}

.baryga-sets-card .card-head .row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
  justify-content: flex-end;
}

.baryga-sets-card .card-head .btn.compact {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 12px;
}

.baryga-sets-tabs {
  gap: 5px;
}

.baryga-sets-tabs .seg-btn.compact,
.baryga-sets-filter-pills .seg-btn.compact {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 11px;
  min-height: 32px;
}

.baryga-sets-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: end;
}

.baryga-sets-search-wrap {
  display: grid;
  gap: 3px;
}

.baryga-sets-search-wrap > span {
  color: #bfd1f4;
  font-size: 11px;
}

.baryga-sets-filter-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.baryga-sets-select-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 6px;
}

.baryga-sets-select-wrap {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.baryga-sets-select-wrap > span {
  color: #9fb5d8;
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.baryga-sets-select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(149, 180, 233, 0.2);
  background: rgba(7, 14, 28, 0.75);
  color: #e6efff;
  font-size: 12px;
  line-height: 1.2;
  padding: 0 10px;
}

.baryga-sets-select:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.baryga-sets-select-wrap-wide {
  grid-column: span 1;
}

.baryga-sets-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.baryga-sets-summary .chip {
  min-height: 17px;
  border-radius: 999px;
  padding: 0 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.baryga-sets-list {
  display: grid;
  gap: 5px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 2px;
}

.baryga-sets-row {
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 12px;
  background: rgba(10, 19, 38, 0.56);
  padding: 8px;
  display: grid;
  gap: 5px;
}

.baryga-sets-row.done {
  border-color: rgba(52, 211, 153, 0.28);
  background: radial-gradient(circle at 100% 0%, rgba(52, 211, 153, 0.08), transparent 45%), rgba(10, 19, 38, 0.58);
}

.baryga-sets-row-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.baryga-sets-row-title-wrap {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.baryga-sets-row-title {
  color: #eaf2ff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  min-width: 0;
  word-break: break-word;
}

.baryga-sets-row-kind {
  color: #96add2;
  font-size: 10px;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.baryga-sets-row-side {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 6px;
}

.baryga-sets-row-check {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(149, 180, 233, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #c6d6ef;
  background: rgba(10, 18, 33, 0.55);
}

.baryga-sets-row-check.ok {
  border-color: rgba(52, 211, 153, 0.42);
  background: rgba(6, 78, 59, 0.35);
  color: #91f3ca;
}

.baryga-sets-row-check.warn {
  border-color: rgba(250, 204, 21, 0.36);
  background: rgba(113, 63, 18, 0.26);
  color: #fde68a;
}

.baryga-sets-row-check.cold {
  border-color: rgba(148, 163, 184, 0.24);
  color: #b5c4db;
}

.baryga-sets-row-progress-box {
  display: grid;
  gap: 1px;
  text-align: right;
}

.baryga-sets-row-progress-label {
  color: #9ab0d2;
  font-size: 9px;
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.baryga-sets-row-pct {
  color: #c7d6ee;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.baryga-sets-row-stage {
  color: #90a6cb;
  font-size: 9px;
  line-height: 1.1;
}

.baryga-sets-row-bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(3, 8, 20, 0.55);
  border: 1px solid rgba(149, 180, 233, 0.12);
  overflow: hidden;
}

.baryga-sets-row-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.7), rgba(148, 163, 184, 0.95));
}

.baryga-sets-row-bar-fill.ok {
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.72), rgba(16, 185, 129, 0.95));
}

.baryga-sets-row-bar-fill.warn {
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.72), rgba(245, 158, 11, 0.95));
}

.baryga-sets-row-bar-fill.cold {
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.5), rgba(148, 163, 184, 0.75));
}

.baryga-sets-row-chipline {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.baryga-sets-row-chipline.secondary {
  gap: 5px;
}

.baryga-sets-pill {
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(149, 180, 233, 0.16);
  background: rgba(11, 20, 38, 0.44);
  color: #c7d6ef;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.baryga-sets-pill .icon {
  font-size: 11px;
  line-height: 1;
}

.baryga-sets-pill .txt {
  max-width: 76px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.baryga-sets-pill.source .txt {
  max-width: clamp(120px, 34vw, 260px);
  white-space: normal;
  overflow: hidden;
  text-overflow: unset;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.15;
}

.baryga-sets-pill.icon-only {
  width: 20px;
  min-width: 20px;
  justify-content: center;
  padding: 0;
  gap: 0;
}

.baryga-sets-pill.icon-only.bonus {
  border-color: rgba(129, 140, 248, 0.24);
  background: rgba(55, 48, 163, 0.15);
}

.baryga-sets-pill.icon-only.bonus.muted {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.35);
  color: #95a7c6;
}

.baryga-sets-pill.bonus-weapon {
  border-color: rgba(96, 165, 250, 0.2);
  background: rgba(30, 41, 59, 0.42);
  color: #deebff;
  padding-left: 4px;
  gap: 5px;
}

.baryga-weapon-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.baryga-sets-pill.bonus-weapon .txt {
  max-width: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.baryga-sets-pill.bonus-weapon.bonus-generic {
  max-width: min(100%, 230px);
}

.baryga-sets-pill.bonus-weapon.bonus-generic .txt {
  max-width: 180px;
}

.baryga-sets-pill.source {
  background: rgba(8, 17, 33, 0.42);
  align-items: flex-start;
  min-height: 22px;
  padding-top: 3px;
  padding-bottom: 3px;
}

.baryga-sets-pill.source.muted {
  color: #96a8c7;
}

.baryga-sets-pill.count {
  color: #d7e3f8;
}

.baryga-sets-pill.ok {
  border-color: rgba(52, 211, 153, 0.32);
  background: rgba(6, 78, 59, 0.18);
  color: #9af5d1;
}

.baryga-sets-pill.warn {
  border-color: rgba(250, 204, 21, 0.28);
  background: rgba(120, 53, 15, 0.16);
  color: #fde68a;
}

.baryga-sets-pill.cold {
  border-color: rgba(148, 163, 184, 0.16);
  color: #b5c5de;
}

.baryga-sets-row-desc {
  color: #90a8cf;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.baryga-sets-row-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #90a6cb;
  font-size: 10px;
  line-height: 1.15;
}

.baryga-sets-row-footer > span:last-child {
  color: #c8d7ef;
  font-weight: 700;
}

.baryga-sets-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}

.baryga-sets-row-actions .btn {
  min-height: 32px;
  padding: 0 12px;
  font-size: 11px;
}

.gear-farm-modal-dialog {
  width: min(560px, calc(100vw - 20px));
}

.gear-farm-modal-body {
  display: grid;
  gap: 10px;
}

.gear-farm-modal-body .task-progress {
  margin: 0;
}

.gear-farm-modal-body .boss-config-modal-actions {
  margin-top: 2px;
}

.arsenal-kolsik-card {
  display: grid;
  gap: 10px;
}

.arsenal-kolsik-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.arsenal-kolsik-roll-card {
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(12, 20, 38, 0.95), rgba(7, 14, 29, 0.92)),
    rgba(8, 14, 29, 0.92);
  box-shadow: 0 18px 36px rgba(3, 8, 20, 0.22);
  display: grid;
}

.arsenal-kolsik-roll-card.front {
  border-color: rgba(72, 187, 255, 0.28);
}

.arsenal-kolsik-roll-card.back {
  border-color: rgba(255, 148, 76, 0.28);
}

.arsenal-kolsik-roll-hero {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(160deg, rgba(17, 35, 68, 0.92), rgba(8, 18, 36, 0.98));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.arsenal-kolsik-roll-card.back .arsenal-kolsik-roll-hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 180, 87, 0.12), transparent 34%),
    linear-gradient(160deg, rgba(56, 29, 12, 0.92), rgba(19, 12, 10, 0.98));
}

.arsenal-kolsik-roll-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.arsenal-kolsik-roll-copy {
  display: grid;
  gap: 4px;
  padding: 12px 14px 0;
}

.arsenal-kolsik-roll-kicker {
  color: #8eb8ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.arsenal-kolsik-roll-card.back .arsenal-kolsik-roll-kicker {
  color: #ffb17b;
}

.arsenal-kolsik-roll-title {
  color: #eff6ff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}

.arsenal-kolsik-roll-sub {
  color: #a9bddc;
  font-size: 12px;
  line-height: 1.45;
}

.arsenal-kolsik-roll-cost {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 0;
}

.arsenal-kolsik-roll-cost-label {
  color: #95a8c7;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.arsenal-kolsik-roll-cost-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f8fbff;
  font-size: 16px;
  font-weight: 800;
}

.arsenal-kolsik-roll-card .btn {
  margin: 14px;
  margin-top: 12px;
}

.arsenal-kolsik-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.arsenal-kolsik-summary .chip {
  min-height: 20px;
  padding: 0 8px;
  font-size: 11px;
}

.arsenal-kolsik-drop .catala-bags-drop-rewards .cabinet-currency-icon-wrap {
  display: inline-flex;
  vertical-align: middle;
  margin-right: 4px;
}

.arsenal-kolsik-reward-cost-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.baryga-sets-row-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.baryga-sets-row-chips .chip {
  min-height: 17px;
  padding: 0 6px;
  font-size: 10px;
  border-radius: 999px;
}

.baryga-sets-row-meta {
  color: #afc3e6;
  font-size: 11px;
  line-height: 1.25;
}

.baryga-sets-row-source {
  color: #90a8cf;
  font-size: 10px;
  line-height: 1.25;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mini-kpi {
  border: 1px solid rgba(149, 180, 233, 0.22);
  border-radius: 12px;
  background: rgba(9, 19, 40, 0.55);
  padding: 10px;
  display: grid;
  gap: 3px;
}

.mini-kpi span {
  color: var(--muted);
  font-size: 11px;
}

.mini-kpi strong {
  color: #edf4ff;
  font-size: 13px;
}

.form-grid {
  display: grid;
  gap: 8px;
}

.form-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.cols-2 > .cols-2 {
  grid-column: 1 / -1;
}

.form-grid label {
  display: grid;
  gap: 4px;
}

.form-grid label span {
  color: #bfd1f4;
  font-size: 12px;
}

.check,
.form-grid .check {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px dashed rgba(157, 188, 241, 0.38);
  border-radius: 11px;
  padding: 9px;
  color: #dce8ff;
}

.check input,
.form-grid .check input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.worker-day-mode {
  display: grid;
  gap: 6px;
  align-content: start;
}

.worker-day-mode-label {
  color: #bfd1f4;
  font-size: 12px;
}

.worker-day-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  padding: 0;
}

.worker-day-mode-tabs .seg-btn {
  min-width: 0;
  width: 100%;
  justify-content: center;
  text-align: center;
}

.worker-wait-energy-toggle {
  min-height: 46px;
  align-self: end;
}

.worker-wait-energy-toggle span {
  font-size: 13px;
  color: #e8f0ff;
}

.cabinet-telegram-settings-btn {
  width: 100%;
  margin-top: 8px;
}

.telegram-settings-modal-dialog {
  max-width: 520px;
}

.telegram-settings-body {
  display: grid;
  gap: 14px;
}

.telegram-bind-status {
  border: 1px solid rgba(85, 130, 210, 0.42);
  border-radius: 16px;
  padding: 12px 14px;
  color: #dce8ff;
  background: rgba(8, 18, 38, 0.72);
}

.telegram-bind-status.error {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.telegram-bind-code-box {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 18px;
  padding: 14px;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(45, 212, 191, 0.18), transparent 58%),
    rgba(8, 28, 38, 0.82);
}

.telegram-bind-code-label,
.telegram-bind-code-note {
  color: #9fb2d5;
  font-size: 13px;
}

.telegram-bind-code {
  color: #f8fafc;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.telegram-settings-grid {
  display: grid;
  gap: 10px;
}

.telegram-settings-check {
  justify-content: flex-start;
}

.telegram-settings-check span {
  font-size: 14px;
  color: #e8f0ff;
}

.btn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.divider {
  height: 1px;
  background: rgba(154, 182, 229, 0.22);
  margin: 4px 0;
}

.tasks-list {
  display: grid;
  gap: 8px;
}

.task {
  border: 1px solid rgba(149, 180, 233, 0.22);
  border-radius: 13px;
  padding: 9px;
  background: var(--surface-panel-soft);
  display: grid;
  gap: 7px;
}

.task-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
}

.task-top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.task-type {
  font-size: 14px;
  font-weight: 740;
}

.task-state {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 7px;
}

.task-state.running { color: #ffe1a8; border-color: rgba(249, 186, 73, 0.55); }
.task-state.done { color: #9ff3c9; border-color: rgba(47, 181, 119, 0.55); }
.task-state.failed { color: #ffc0cb; border-color: rgba(234, 68, 90, 0.6); }
.task-state.cancelled { color: #d1ddf2; border-color: rgba(160, 184, 225, 0.55); }

.queue-remove-x {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(239, 93, 114, 0.45);
  background: rgba(88, 18, 30, 0.6);
  color: #ffd5dc;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.queue-remove-x:hover {
  filter: brightness(1.08);
  border-color: rgba(239, 93, 114, 0.75);
}

.boss-queue-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.boss-queue-reorder-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: center;
}

.queue-move-btn {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(132, 167, 232, 0.42);
  background: rgba(30, 48, 84, 0.72);
  color: #d8e8ff;
  font-size: 11px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: filter .16s ease, border-color .16s ease, transform .16s ease, opacity .16s ease;
}

.queue-move-btn:hover:not(:disabled) {
  filter: brightness(1.08);
  border-color: rgba(160, 194, 255, 0.72);
  transform: translateY(-1px);
}

.queue-move-btn:disabled {
  opacity: 0.42;
  cursor: default;
}

.boss-queue-item {
  border: 1px solid rgba(149, 180, 233, 0.2);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(73, 128, 225, 0.15), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(56, 189, 248, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(12, 24, 52, 0.9), rgba(8, 16, 36, 0.84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  padding: 10px;
  display: grid;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.boss-queue-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(80, 155, 255, 0.9), rgba(56, 189, 248, 0.85));
  opacity: .85;
}

.boss-queue-item:hover {
  transform: translateY(-1px);
  border-color: rgba(149, 180, 233, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 26px rgba(3, 8, 20, 0.26);
}

.boss-queue-item.warn {
  border-color: rgba(239, 93, 114, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(239, 93, 114, 0.08);
}

.boss-queue-item.warn::before {
  background: linear-gradient(180deg, rgba(239, 93, 114, 0.95), rgba(251, 146, 60, 0.9));
}

.boss-queue-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.boss-queue-item-head-left {
  min-width: 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.boss-queue-item-head-text {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.boss-queue-item-index {
  min-width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #dce8ff;
  background: rgba(44, 78, 140, 0.28);
  border: 1px solid rgba(124, 164, 230, 0.24);
}

.boss-queue-item-title {
  font-size: 14px;
  font-weight: 780;
  color: #edf4ff;
  line-height: 1.15;
}

.boss-queue-item-sub {
  font-size: 11px;
  color: #acc1e7;
  line-height: 1.2;
}

.boss-queue-item-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.boss-queue-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.boss-queue-chip {
  border: 1px solid rgba(149, 180, 233, 0.2);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  color: #d7e6ff;
  background: rgba(18, 31, 64, 0.58);
  line-height: 1.1;
  backdrop-filter: blur(6px);
}

.boss-combo-cost-preview {
  border: 1px solid rgba(126, 177, 255, 0.2);
  border-radius: 13px;
  background:
    radial-gradient(circle at 0% 0%, rgba(44, 143, 255, 0.12), transparent 42%),
    rgba(6, 15, 34, 0.48);
  color: #d8e6ff;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px;
}

.boss-combo-cost-preview span {
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 999px;
  background: rgba(10, 24, 52, 0.58);
  color: #dbe8ff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  padding: 5px 7px;
}

.boss-combo-cost-preview.queue {
  margin-top: 9px;
}

.boss-combo-cost-preview.preset {
  padding: 6px;
}

.boss-combo-cost-preview.warn {
  border-color: rgba(255, 207, 125, 0.34);
}

.boss-combo-cost-preview .warn {
  border-color: rgba(255, 207, 125, 0.42);
  color: #ffd791;
}

.boss-queue-chip.mode {
  color: #ffe4a8;
  border-color: rgba(249, 186, 73, 0.35);
  background: rgba(82, 54, 12, 0.38);
  font-weight: 700;
}

.boss-queue-chip.warn {
  border-color: rgba(239, 93, 114, 0.38);
  background: rgba(75, 22, 33, 0.34);
  color: #ffd6de;
  font-weight: 700;
}

.boss-queue-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.boss-queue-stat {
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(15, 27, 57, 0.72), rgba(10, 20, 43, 0.62));
  padding: 8px 9px;
  display: grid;
  gap: 4px;
}

.boss-queue-stat.warn {
  border-color: rgba(239, 93, 114, 0.35);
  background: rgba(61, 18, 29, 0.32);
}

.boss-queue-stat .label {
  font-size: 10px;
  color: #9db6e3;
  line-height: 1.1;
}

.boss-queue-stat strong {
  font-size: 12px;
  color: #eef5ff;
  line-height: 1.15;
  word-break: break-word;
}

.boss-queue-item-note {
  font-size: 11px;
  color: #b7caed;
  line-height: 1.25;
  border-top: 1px dashed rgba(149, 180, 233, 0.18);
  padding-top: 8px;
}

.boss-queue-item-note.warn {
  color: #ffd2da;
  border-top-color: rgba(239, 93, 114, 0.25);
}

@media (max-width: 520px) {
  .boss-queue-stat-grid {
    grid-template-columns: 1fr;
  }
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: #b4c7e8;
  line-height: 1.3;
}

.task-progress {
  font-size: 12px;
  color: var(--text-soft);
  border: 1px solid rgba(149, 180, 233, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(11, 23, 48, 0.5);
}

.combo-parse-status {
  margin-top: 8px;
  font-size: 11px;
}

.combo-parse-status.ok {
  border-color: rgba(47, 181, 119, 0.38);
  color: #baf6d9;
  background: rgba(10, 43, 31, 0.32);
}

.combo-parse-status.warn {
  border-color: rgba(249, 186, 73, 0.38);
  color: #ffe2ad;
  background: rgba(60, 36, 5, 0.28);
}

.task-log {
  max-height: 130px;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  background: rgba(5, 14, 31, 0.82);
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 10px;
  padding: 8px;
  font-size: 11px;
  color: #cfddf4;
  white-space: pre-wrap;
  font-family: var(--font-mono);
}

.monitor-log-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  color: #9fb5db;
  font-size: 11px;
}

.monitor-log-controls-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.monitor-log-toggle-btn.btn {
  padding: 4px 8px;
  min-height: 28px;
  font-size: 11px;
}

.monitor-tasks-load-more {
  border: 1px dashed rgba(149, 180, 233, 0.3);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(11, 23, 48, 0.38);
}

.monitor-tasks-load-more .btn {
  min-height: 34px;
  padding: 7px 12px;
}

.task-log.task-log-rich {
  max-height: 360px;
  padding: 10px;
  display: grid;
  gap: 10px;
  white-space: normal;
  font-family: var(--font-main);
}

.task-log-summary-card {
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 12px;
  background: rgba(13, 24, 50, 0.6);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.task-log-summary-stack {
  display: grid;
  gap: 10px;
}

.task-log-summary-card.poker {
  border-color: rgba(234, 189, 78, 0.28);
  background:
    linear-gradient(135deg, rgba(47, 24, 4, 0.52), rgba(17, 17, 41, 0.78)),
    rgba(13, 24, 50, 0.65);
}

.task-log-summary-card.combo {
  border-color: rgba(104, 179, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(11, 41, 77, 0.52), rgba(16, 18, 42, 0.78)),
    rgba(13, 24, 50, 0.66);
}

.task-log-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.task-log-summary-head strong {
  font-size: 12px;
  color: #ecf4ff;
}

.task-log-summary-head span {
  font-size: 11px;
  color: #9db6e3;
}

.task-log-note {
  font-size: 11px;
  color: #9db6e3;
  border: 1px dashed rgba(149, 180, 233, 0.26);
  border-radius: 10px;
  padding: 6px 8px;
}

.task-log-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.task-log-chip-row.compact {
  gap: 5px;
}

.task-log-mini-block {
  display: grid;
  gap: 6px;
}

.task-log-mini-title {
  font-size: 11px;
  color: #9fb6dd;
}

.task-log-mini-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.task-log-mini-card {
  border: 1px solid rgba(149, 180, 233, 0.16);
  border-radius: 11px;
  background: rgba(10, 19, 40, 0.52);
  padding: 8px;
  display: grid;
  gap: 7px;
}

.task-log-mini-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.task-log-mini-head strong {
  font-size: 12px;
  color: #eef5ff;
}

.task-log-mini-head span {
  font-size: 10px;
  color: #9fb6dd;
}

.task-log-reason-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.task-log-reason-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid rgba(249, 186, 73, 0.3);
  background: rgba(71, 47, 12, 0.28);
  color: #ffe7bc;
  padding: 4px 8px;
  font-size: 10px;
  line-height: 1.15;
}

.task-log-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  border: 1px solid rgba(149, 180, 233, 0.18);
  background: rgba(20, 33, 67, 0.46);
  color: #d7e5ff;
  padding: 4px 7px;
  line-height: 1.15;
}

.task-log-chip span {
  font-size: 10px;
  color: #9fb6dd;
  letter-spacing: 0.2px;
}

.task-log-chip strong {
  font-size: 11px;
  color: #eef5ff;
}

.task-log-chip.ok {
  border-color: rgba(47, 181, 119, 0.36);
  background: rgba(13, 63, 41, 0.32);
}

.task-log-chip.warn {
  border-color: rgba(249, 186, 73, 0.36);
  background: rgba(72, 49, 10, 0.32);
}

.task-log-chip.error {
  border-color: rgba(239, 93, 114, 0.42);
  background: rgba(82, 24, 37, 0.34);
}

.task-log-chip.info {
  border-color: rgba(108, 178, 255, 0.35);
  background: rgba(13, 48, 88, 0.3);
}

.task-log-chip.boss,
.task-log-chip.weapon {
  border-color: rgba(177, 197, 255, 0.3);
  background: rgba(32, 40, 77, 0.55);
}

.task-log-chip.damage {
  border-color: rgba(255, 167, 104, 0.35);
  background: rgba(84, 42, 14, 0.35);
}

.task-log-chip.hp {
  border-color: rgba(120, 212, 148, 0.35);
  background: rgba(16, 63, 37, 0.34);
}

.task-log-chip.muted {
  border-color: rgba(145, 164, 195, 0.24);
  background: rgba(22, 33, 59, 0.45);
}

.task-log-events {
  display: grid;
  gap: 8px;
}

.task-log-event {
  border: 1px solid rgba(149, 180, 233, 0.16);
  border-radius: 11px;
  background: rgba(11, 22, 47, 0.58);
  padding: 8px 9px;
  display: grid;
  gap: 7px;
}

.task-log-event.level-ok {
  border-color: rgba(47, 181, 119, 0.28);
}

.task-log-event.level-warn {
  border-color: rgba(249, 186, 73, 0.34);
}

.task-log-event.level-error {
  border-color: rgba(239, 93, 114, 0.4);
}

.task-log-event-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.task-log-event-time {
  font-size: 11px;
  color: #9fb5db;
  font-family: var(--font-mono);
}

.task-log-event-phase {
  font-size: 10px;
  color: #cfdfff;
  border: 1px solid rgba(149, 180, 233, 0.24);
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(33, 48, 84, 0.5);
}

.task-log-event.phase-error .task-log-event-phase {
  border-color: rgba(239, 93, 114, 0.42);
  color: #ffd2da;
  background: rgba(83, 27, 40, 0.5);
}

.task-log-event.phase-reward .task-log-event-phase {
  border-color: rgba(47, 181, 119, 0.34);
  color: #cbf4de;
  background: rgba(18, 67, 44, 0.45);
}

.task-log-event.phase-combo .task-log-event-phase {
  border-color: rgba(108, 178, 255, 0.34);
  color: #cfe5ff;
  background: rgba(16, 51, 93, 0.45);
}

.task-log-event-title {
  font-size: 12px;
  color: #e8f1ff;
  line-height: 1.25;
}

.task-log-event-detail {
  font-size: 11px;
  color: #aac0e3;
  line-height: 1.35;
}

.task-log.task-log-poker {
  max-height: 380px;
}

.task-log.task-log-poker .task-log-events {
  gap: 9px;
}

.task-log.task-log-poker .task-log-event {
  background:
    linear-gradient(135deg, rgba(18, 28, 58, 0.82), rgba(11, 18, 39, 0.88)),
    rgba(11, 22, 47, 0.58);
}

.task-log-event.phase-start .task-log-event-phase {
  border-color: rgba(108, 178, 255, 0.34);
  color: #d8eaff;
  background: rgba(16, 51, 93, 0.45);
}

.task-log-event.phase-draw .task-log-event-phase {
  border-color: rgba(234, 189, 78, 0.4);
  color: #ffe6b0;
  background: rgba(84, 54, 12, 0.42);
}

.task-log-event.phase-lock .task-log-event-phase {
  border-color: rgba(47, 181, 119, 0.34);
  color: #cff8dd;
  background: rgba(18, 67, 44, 0.45);
}

.task-log-event.phase-finish .task-log-event-phase {
  border-color: rgba(131, 170, 255, 0.34);
  color: #d8e6ff;
  background: rgba(28, 45, 88, 0.44);
}

.task-log-event.phase-result .task-log-event-phase {
  border-color: rgba(71, 202, 142, 0.4);
  color: #d6ffe8;
  background: rgba(16, 69, 45, 0.46);
}

.response-view {
  margin: 0;
  max-height: 320px;
  overflow: auto;
  background: rgba(4, 12, 28, 0.9);
  border: 1px solid rgba(149, 180, 233, 0.22);
  border-radius: 12px;
  padding: 10px;
  font-size: 12px;
  color: #d6e3f8;
  white-space: pre-wrap;
  font-family: var(--font-mono);
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(149, 180, 233, 0.22);
  border-radius: 12px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(149, 180, 233, 0.18);
  padding: 8px;
  text-align: left;
  font-size: 12px;
  vertical-align: top;
}

.admin-table th {
  color: #c4d6f6;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: rgba(12, 22, 46, 0.9);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 8px;
  width: min(1220px, calc(100vw - 16px));
  z-index: 25;
  background: rgba(11, 21, 43, 0.92);
  border: 1px solid rgba(157, 188, 241, 0.35);
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(1, 8, 22, 0.56);
  backdrop-filter: blur(14px);
}

.bottom-nav-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 11px;
  scrollbar-width: none;
}

.bottom-nav-scroll::-webkit-scrollbar { display: none; }

.bottom-nav-btn {
  position: relative;
  border: 1px solid transparent;
  border-radius: 11px;
  background: rgba(39, 60, 96, 0.72);
  color: #d6e3ff;
  padding: 14px 13px;
  font-size: 13px;
  font-weight: 700;
  min-width: max-content;
  cursor: pointer;
  transition: all .15s ease;
}

.bottom-nav-btn.active {
  background: linear-gradient(135deg, rgba(61, 124, 255, 0.95), rgba(47, 181, 119, 0.88));
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(61, 124, 255, 0.36);
}

.bottom-nav-btn span {
  display: block;
  line-height: 1.1;
}

.bratva-nav-indicator {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: linear-gradient(180deg, #ff6b6b, #ea4335);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(190, 30, 23, 0.35);
}

.bratva-nav-indicator.is-visible {
  display: inline-flex;
}

.seg-btn.compact {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.bosses-top-refresh-btn {
  margin-left: auto;
  min-width: 34px;
  width: 34px;
  padding: 8px 0;
  text-align: center;
  font-size: 15px;
  line-height: 1;
}

.btn.compact {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
  border-radius: 10px;
}

.inline-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.form-grid label.is-disabled {
  opacity: 0.58;
}

.form-grid label.is-disabled select,
.form-grid label.is-disabled input,
.form-grid label.is-disabled textarea {
  filter: saturate(0.55);
}

.bratva-overview-card {
  border-color: rgba(149, 180, 233, 0.24);
  background:
    radial-gradient(135% 190% at 100% 0%, rgba(61, 124, 255, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(13, 27, 56, 0.88), rgba(8, 17, 35, 0.88));
}

.bratva-overview-head {
  align-items: flex-start;
  margin-bottom: 8px;
}

.bratva-main-tabs {
  padding-top: 2px;
}

.bratva-main-tabs .seg-btn {
  background: rgba(21, 36, 66, 0.66);
}

.bratva-top-refresh-btn {
  margin-left: auto;
}

.bratva-section-card {
  border-color: rgba(149, 180, 233, 0.22);
  background:
    radial-gradient(125% 180% at 100% 0%, rgba(49, 103, 207, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(11, 23, 48, 0.84), rgba(8, 16, 34, 0.86));
}

.bratva-section-card .card-head {
  align-items: flex-start;
  margin-bottom: 12px;
}

.bratva-inline-actions {
  margin: 0 0 10px;
}

.bratva-load-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}

.bratva-load-row .btn {
  flex: 1 1 auto;
  min-width: 0;
}

.bratva-load-row .chip {
  flex: 0 0 auto;
  white-space: nowrap;
}

.bratva-toolbar-wrap {
  margin: 0 0 10px;
}

.bratva-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding: 11px;
  border-radius: 14px;
  border: 1px solid rgba(149, 180, 233, 0.2);
  background:
    radial-gradient(130% 170% at 100% 0%, rgba(56, 116, 228, 0.18), transparent 62%),
    linear-gradient(180deg, rgba(13, 26, 53, 0.78), rgba(8, 17, 35, 0.8));
}

.bratva-toolbar .grow {
  flex: 1 1 220px;
}

.bratva-toolbar label {
  display: grid;
  gap: 6px;
  margin: 0;
}

.bratva-toolbar label span {
  font-size: 12px;
  color: var(--muted);
}

.bratva-toolbar input {
  min-width: 0;
}

.bratva-filter-select {
  min-width: 176px;
}

.bratva-filter-select select {
  min-width: 176px;
}

.bratva-players-filters-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bratva-players-filters-grid .btn {
  width: 100%;
}

.bratva-players-filters-grid .btn.active {
  border-color: rgba(111, 191, 255, 0.46);
  background: linear-gradient(180deg, rgba(51, 104, 212, 0.34), rgba(20, 43, 98, 0.42));
  color: #f3f8ff;
  box-shadow: inset 0 0 0 1px rgba(111, 191, 255, 0.18);
}

#btn-bratva-players-use-selected {
  flex: 1 1 100%;
  width: 100%;
}

.bratva-top-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 10px;
}

.bratva-top-kpi {
  border: 1px solid rgba(149, 180, 233, 0.22);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 4px;
  background:
    radial-gradient(135% 190% at 100% 0%, rgba(70, 136, 255, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(12, 24, 50, 0.74), rgba(8, 16, 33, 0.76));
}

.bratva-top-kpi span {
  color: #9fb3d7;
  font-size: 11px;
  line-height: 1.2;
}

.bratva-top-kpi strong {
  color: #ecf4ff;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 800;
}

.bratva-top-kpi small {
  color: #8ea5cb;
  font-size: 10px;
  line-height: 1.2;
}

.bratva-list {
  display: grid;
  gap: 8px;
  max-height: min(58vh, 620px);
  overflow: auto;
  padding: 8px;
  grid-template-columns: 1fr;
  border: 1px solid rgba(149, 180, 233, 0.16);
  border-radius: 14px;
  background: rgba(6, 13, 29, 0.38);
}

.bratva-empty {
  border: 1px dashed rgba(149, 180, 233, 0.28);
  border-radius: 12px;
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  line-height: 1.35;
  background: rgba(9, 18, 37, 0.42);
}

.bratva-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 40px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 4px 7px;
  border-radius: 12px;
  border: 1px solid rgba(149, 180, 233, 0.2);
  background:
    radial-gradient(140% 200% at 100% 0%, rgba(46, 102, 203, 0.2), transparent 56%),
    linear-gradient(180deg, rgba(12, 24, 47, 0.88), rgba(8, 18, 36, 0.86));
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.bratva-item:hover {
  border-color: rgba(115, 181, 255, 0.34);
  box-shadow: 0 10px 24px rgba(1, 6, 14, 0.24);
  transform: translateY(-1px);
}

.bratva-item.selected {
  border-color: rgba(74, 137, 255, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(118, 172, 255, 0.18),
    0 12px 24px rgba(4, 12, 26, 0.28);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(58, 120, 231, 0.26), transparent 56%),
    linear-gradient(180deg, rgba(14, 28, 57, 0.92), rgba(9, 19, 38, 0.9));
}

.bratva-item-check {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #4a8aff;
}

.bratva-item-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(149, 180, 233, 0.22);
  background: linear-gradient(180deg, rgba(32, 54, 97, 0.82), rgba(17, 29, 53, 0.82));
  display: grid;
  place-items: center;
  color: #e6efff;
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
  flex-shrink: 0;
}

.bratva-item-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bratva-item-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.bratva-item-topline {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.bratva-item-title {
  color: #ecf4ff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bratva-item-badge {
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(149, 180, 233, 0.28);
  padding: 1px 7px;
  font-size: 10px;
  line-height: 1.35;
  color: #d6e5ff;
  background: rgba(21, 38, 74, 0.72);
}

.bratva-item-badge.friend {
  border-color: rgba(97, 218, 142, 0.42);
  background: rgba(8, 58, 32, 0.34);
  color: #92efb4;
}

.bratva-item-badge.other {
  border-color: rgba(149, 180, 233, 0.28);
  color: #bfd1f1;
}

.bratva-item-badge.brigade {
  border-color: rgba(255, 214, 122, 0.46);
  background: rgba(69, 53, 12, 0.46);
  color: #ffecbc;
}

.bratva-item-sub {
  font-size: 9px;
  color: #9db0d3;
}

.bratva-item-meta {
  margin-top: 1px;
  color: #bed0ef;
  font-size: 9px;
  line-height: 1.25;
  word-break: break-word;
}

.bratva-item-side {
  align-self: center;
  display: grid;
  gap: 4px;
  min-width: 102px;
}

.bratva-item.single-metric .bratva-item-side {
  gap: 0;
  justify-self: end;
  margin-left: auto;
}

.bratva-item.multi-metric.is-players {
  grid-template-columns: auto 40px minmax(0, 1fr) auto;
  align-items: center;
}

.bratva-item.multi-metric.is-players .bratva-item-side {
  justify-self: stretch;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  justify-content: flex-end;
  min-width: 106px;
}

.bratva-item-metric {
  border-radius: 10px;
  border: 1px solid rgba(149, 180, 233, 0.18);
  background: rgba(10, 22, 44, 0.62);
  padding: 2px 5px;
  display: grid;
  gap: 1px;
}

.bratva-item-metric span {
  color: #8ea6cc;
  font-size: 9px;
  line-height: 1.2;
}

.bratva-item-metric strong {
  color: #eaf2ff;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 800;
}

.bratva-item-metric strong.scale-sm {
  font-size: 11px;
}

.bratva-item-metric strong.scale-xs {
  font-size: 10px;
}

.bratva-item-metric strong.scale-xxs {
  font-size: 9px;
}

.bratva-item-metric.talents {
  border-color: rgba(98, 172, 255, 0.4);
}

.bratva-item-metric.damage {
  border-color: rgba(118, 220, 160, 0.34);
}

.bratva-item.single-metric.is-players .bratva-item-metric.damage {
  margin-left: auto;
  text-align: right;
  justify-items: end;
  align-items: end;
}

.bratva-item.multi-metric.is-players .bratva-item-metric {
  text-align: right;
  justify-items: end;
  align-items: end;
}

.bratva-item-metric.damage-day {
  border-color: rgba(118, 170, 248, 0.36);
  background: rgba(8, 25, 56, 0.62);
}

.bratva-requests-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bratva-indicator {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(180deg, #ff7852, #ea4335);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 10px rgba(190, 30, 23, 0.32);
}

.bratva-indicator.is-visible {
  display: inline-flex;
}

.bratva-requests-list {
  gap: 10px;
}

.bratva-request-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border-radius: 14px;
  border: 1px solid rgba(149, 180, 233, 0.22);
  background:
    radial-gradient(126% 176% at 100% 0%, rgba(49, 103, 207, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(12, 24, 49, 0.86), rgba(8, 16, 33, 0.86));
  box-shadow: 0 10px 24px rgba(1, 8, 20, 0.24);
}

.bratva-request-item.busy {
  opacity: 0.7;
}

.bratva-request-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.bratva-request-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.bratva-request-title {
  color: #ecf4ff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bratva-request-id {
  color: #9db0d3;
  font-size: 11px;
}

.player-achievements-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.16s ease;
  text-decoration: none;
}

.player-achievements-link:hover,
.player-achievements-link:focus-visible {
  color: #bfdbfe;
}

.player-achievements-link.is-static {
  cursor: default;
  text-decoration: none;
}

.bratva-request-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #c9d8f3;
  font-size: 11px;
  line-height: 1.3;
}

.bratva-request-stats .chip {
  font-size: 10px;
  border-color: rgba(129, 175, 255, 0.34);
  background: rgba(22, 37, 72, 0.68);
  color: #e3ecff;
}

.bratva-request-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  min-width: 124px;
}

.bratva-podogrev-card {
  border-color: rgba(149, 180, 233, 0.24);
  background:
    radial-gradient(140% 195% at 100% 0%, rgba(60, 121, 238, 0.24), transparent 56%),
    linear-gradient(180deg, rgba(11, 22, 46, 0.88), rgba(8, 16, 34, 0.9));
}

.bratva-podogrev-kpis {
  margin: 0 0 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bratva-podogrev-kpi {
  border: 1px solid rgba(149, 180, 233, 0.2);
  border-radius: 12px;
  padding: 8px 10px;
  display: grid;
  gap: 2px;
  background:
    radial-gradient(130% 180% at 100% 0%, rgba(58, 121, 240, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(12, 24, 50, 0.78), rgba(8, 16, 33, 0.82));
}

.bratva-podogrev-kpi span {
  font-size: 10px;
  line-height: 1.2;
  color: #99afd4;
}

.bratva-podogrev-kpi strong {
  color: #eaf3ff;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 800;
}

.bratva-podogrev-send-card {
  border: 1px solid rgba(149, 180, 233, 0.22);
  border-radius: 14px;
  padding: 10px;
  margin: 0 0 10px;
  background:
    radial-gradient(135% 182% at 100% 0%, rgba(70, 138, 255, 0.18), transparent 62%),
    linear-gradient(180deg, rgba(12, 24, 50, 0.8), rgba(8, 16, 33, 0.84));
}

.bratva-podogrev-send-top {
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
}

.bratva-podogrev-send-title {
  color: #eef5ff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.bratva-podogrev-send-meta {
  color: #9db1d5;
  font-size: 11px;
  line-height: 1.25;
}

.bratva-podogrev-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 8px;
}

.bratva-podogrev-toolbar .grow {
  flex: 1 1 auto;
  min-width: 0;
}

.bratva-podogrev-send-actions {
  display: grid;
  gap: 6px;
  width: min(190px, 100%);
}

.bratva-podogrev-send-actions .btn {
  width: 100%;
}

.bratva-podogrev-toolbar label {
  margin: 0;
  display: grid;
  gap: 6px;
}

.bratva-podogrev-toolbar label span {
  color: #9db1d5;
  font-size: 12px;
}

.bratva-podogrev-types {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.bratva-podogrev-types .btn {
  min-width: 0;
  padding: 7px 6px;
  font-size: 12px;
  border-radius: 10px;
}

.bratva-podogrev-types .btn.is-active {
  border-color: rgba(95, 216, 139, 0.52);
  background: linear-gradient(180deg, rgba(18, 90, 49, 0.8), rgba(10, 56, 31, 0.84));
  color: #e9fff1;
}

.bratva-podogrev-types .btn.is-disabled {
  opacity: 0.5;
}

.bratva-podogrev-actions {
  gap: 8px;
  margin-bottom: 10px;
}

.bratva-podogrev-list {
  gap: 8px;
}

.bratva-podogrev-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 38px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(149, 180, 233, 0.22);
  border-radius: 12px;
  background:
    radial-gradient(132% 186% at 100% 0%, rgba(52, 108, 220, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(12, 24, 50, 0.84), rgba(8, 16, 34, 0.86));
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.bratva-podogrev-item:hover {
  border-color: rgba(117, 184, 255, 0.38);
  box-shadow: 0 10px 22px rgba(3, 10, 22, 0.26);
}

.bratva-podogrev-item.selected {
  border-color: rgba(86, 171, 118, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(124, 210, 155, 0.22),
    0 10px 24px rgba(2, 9, 19, 0.28);
  background:
    radial-gradient(128% 176% at 100% 0%, rgba(44, 119, 77, 0.28), transparent 58%),
    linear-gradient(180deg, rgba(12, 28, 42, 0.9), rgba(8, 18, 30, 0.92));
}

.bratva-podogrev-check {
  width: 16px;
  height: 16px;
  accent-color: #4a8aff;
}

.bratva-podogrev-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.bratva-podogrev-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.bratva-podogrev-title {
  color: #edf4ff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bratva-podogrev-type-badge {
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(149, 180, 233, 0.34);
  background: rgba(18, 35, 66, 0.76);
  color: #dfebff;
  font-size: 10px;
  line-height: 1.25;
  padding: 2px 7px;
}

.bratva-podogrev-log-card {
  margin-top: 10px;
  border: 1px solid rgba(149, 180, 233, 0.2);
  border-radius: 12px;
  padding: 9px;
  background: rgba(8, 16, 34, 0.58);
}

.bratva-podogrev-log-head {
  color: #dce8ff;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 7px;
}

.bratva-podogrev-log {
  display: grid;
  gap: 6px;
  max-height: min(28vh, 220px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.bratva-podogrev-log-empty {
  border: 1px dashed rgba(149, 180, 233, 0.22);
  border-radius: 10px;
  padding: 10px;
  color: #9fb3d7;
  font-size: 12px;
  text-align: center;
}

.bratva-podogrev-log-item {
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 10px;
  padding: 7px 8px;
  background: rgba(10, 21, 43, 0.7);
  display: grid;
  gap: 2px;
}

.bratva-podogrev-log-item.warn {
  border-color: rgba(243, 196, 84, 0.36);
}

.bratva-podogrev-log-item.err {
  border-color: rgba(246, 108, 121, 0.42);
}

.bratva-podogrev-log-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.bratva-podogrev-log-type {
  font-size: 10px;
  color: #9ab0d4;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.bratva-podogrev-log-time {
  font-size: 10px;
  color: #8ea6cd;
}

.bratva-podogrev-log-msg {
  color: #eaf2ff;
  font-size: 12px;
  line-height: 1.25;
  word-break: break-word;
}

.app-page[data-page="bratva"] {
  padding-bottom: 6px;
}

.app-page[data-page="bratva"] .seg-section.active .bratva-list {
  padding-bottom: 8px;
}

.bratva-action-bar {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 2px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(149, 180, 233, 0.24);
  background:
    radial-gradient(125% 190% at 100% 0%, rgba(63, 126, 255, 0.22), transparent 58%),
    linear-gradient(180deg, rgba(12, 24, 50, 0.86), rgba(8, 16, 34, 0.88));
  box-shadow: 0 10px 24px rgba(2, 7, 18, 0.28);
}

.bratva-action-bar.is-hidden {
  display: none;
}

.bratva-action-bar.is-empty {
  opacity: 0.92;
}

.bratva-action-bar-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.bratva-action-bar-selected {
  color: #eef4ff;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.15;
}

.bratva-action-bar-meta {
  color: #afc3e8;
  font-size: 11px;
  line-height: 1.25;
  white-space: normal;
}

.bratva-action-bar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.bratva-action-bar-actions .btn {
  min-width: max-content;
}

.bratva-action-modal-dialog {
  width: min(820px, calc(100vw - 20px));
}

.bratva-action-modal-body {
  max-height: min(70vh, 620px);
  overflow: auto;
  padding-right: 2px;
}

.bratva-action-summary-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.bratva-action-summary-row .chip {
  font-size: 12px;
  padding: 6px 12px;
}

.bratva-action-presets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.bratva-action-presets-grid .btn {
  width: 100%;
}

.brigades-header-card,
.brigades-create-card,
.brigades-my-card,
.brigades-list-card,
.brigades-outgoing-card {
  border-color: rgba(126, 158, 214, 0.3);
  background:
    radial-gradient(126% 178% at 100% 0%, rgba(58, 124, 241, 0.2), transparent 60%),
    linear-gradient(180deg, rgba(9, 20, 43, 0.9), rgba(6, 14, 31, 0.92));
}

.brigades-toolbar-card {
  padding: 12px;
}

.brigades-toolbar-head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.brigades-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brigades-incoming-open-btn {
  position: relative;
}

.brigades-incoming-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 140, 140, 0.6);
  background: linear-gradient(180deg, rgba(255, 88, 88, 0.95), rgba(206, 45, 81, 0.95));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.brigades-field-hint {
  color: #98aed7;
  font-size: 10px;
  font-weight: 600;
}

.brigades-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.brigades-kpi {
  border: 1px solid rgba(149, 180, 233, 0.2);
  border-radius: 12px;
  padding: 9px 10px;
  display: grid;
  gap: 3px;
  background: rgba(9, 18, 38, 0.55);
}

.brigades-kpi span {
  color: #9db2d7;
  font-size: 11px;
  line-height: 1.2;
}

.brigades-kpi strong {
  color: #ecf4ff;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 800;
  word-break: break-word;
}

.brigades-my-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.brigades-my-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brigades-subsection {
  margin-top: 10px;
}

.brigades-subsection-head {
  color: #dce8ff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.brigades-subsection-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.brigades-members-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.brigades-members-sort .btn {
  min-width: 76px;
}

.brigades-members-sort .btn.active {
  border-color: rgba(111, 191, 255, 0.46);
  background: linear-gradient(180deg, rgba(51, 104, 212, 0.34), rgba(20, 43, 98, 0.42));
  color: #f3f8ff;
  box-shadow: inset 0 0 0 1px rgba(111, 191, 255, 0.18);
}

.brigades-emblem-editor {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.brigades-emblem-preview-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(149, 180, 233, 0.24);
  border-radius: 12px;
  padding: 10px;
  background: rgba(8, 18, 40, 0.62);
}

.brigades-emblem-preview {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 12px;
  border: 1px solid rgba(129, 169, 231, 0.3);
  background: linear-gradient(180deg, rgba(14, 30, 62, 0.9), rgba(8, 17, 38, 0.95));
  overflow: hidden;
}

.brigades-emblem-preview canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: auto;
}

.brigades-emblem-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.brigades-emblem-hint {
  color: #afc3e8;
  font-size: 12px;
  line-height: 1.35;
}

.brigades-emblem-tabs .btn.active {
  border-color: rgba(111, 191, 255, 0.46);
  background: linear-gradient(180deg, rgba(51, 104, 212, 0.34), rgba(20, 43, 98, 0.42));
  color: #f3f8ff;
  box-shadow: inset 0 0 0 1px rgba(111, 191, 255, 0.18);
}

.brigades-emblem-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-height: min(36vh, 260px);
  overflow: auto;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(138, 171, 228, 0.2);
  background: rgba(5, 12, 29, 0.56);
}

.brigades-emblem-card {
  border: 1px solid rgba(149, 180, 233, 0.24);
  border-radius: 10px;
  padding: 6px;
  background: rgba(9, 20, 43, 0.92);
  display: grid;
  gap: 5px;
  cursor: pointer;
}

.brigades-emblem-card.active {
  border-color: rgba(111, 191, 255, 0.5);
  box-shadow: inset 0 0 0 1px rgba(111, 191, 255, 0.2);
}

.brigades-emblem-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(13, 26, 56, 0.85);
}

.brigades-emblem-card-label {
  color: #eaf2ff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.brigades-emblem-card-meta {
  color: #9ab0d9;
  font-size: 10px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.brigades-emblem-card-meta .cabinet-currency-icon-wrap {
  width: 12px;
  height: 12px;
}

.brigades-emblem-card-meta .cabinet-currency-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brigades-emblem-color-dot {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.brigades-emblem-gallery-empty {
  grid-column: 1 / -1;
  color: #9ab0d9;
  font-size: 12px;
}

.brigades-members-list,
.brigades-list,
.brigades-logs-list {
  display: grid;
  gap: 8px;
  max-height: min(42vh, 360px);
  overflow: auto;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(138, 171, 228, 0.2);
  background: rgba(5, 12, 29, 0.56);
}

.brigades-damage-history-wrap {
  max-height: min(42vh, 380px);
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(138, 171, 228, 0.2);
  background: rgba(5, 12, 29, 0.56);
}

.brigades-damage-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  color: #eaf2ff;
  font-size: 11px;
}

.brigades-damage-table th,
.brigades-damage-table td {
  padding: 8px 9px;
  border-bottom: 1px solid rgba(138, 171, 228, 0.14);
  text-align: left;
  vertical-align: middle;
}

.brigades-damage-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(12, 25, 54, 0.98);
  color: #9fb8e4;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brigades-damage-table td.num,
.brigades-damage-table th:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}

.brigades-damage-table td.total {
  color: #ffffff;
  font-weight: 900;
}

.brigades-damage-player {
  display: grid;
  gap: 2px;
  min-width: 120px;
}

.brigades-damage-player strong {
  color: #f4f8ff;
  font-size: 12px;
  line-height: 1.15;
}

.brigades-damage-player span {
  color: #94aad5;
  font-size: 10px;
  line-height: 1.15;
}

.brigades-member-card,
.brigades-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(149, 180, 233, 0.24);
  background:
    radial-gradient(128% 170% at 100% 0%, rgba(48, 106, 216, 0.2), transparent 62%),
    linear-gradient(180deg, rgba(11, 23, 49, 0.88), rgba(7, 16, 35, 0.9));
}

.brigades-member-card.role-leader {
  border-color: rgba(109, 227, 158, 0.4);
}

.brigades-member-card.role-officer {
  border-color: rgba(255, 210, 120, 0.38);
}

.brigades-member-card.is-self {
  box-shadow: inset 0 0 0 1px rgba(119, 168, 255, 0.34);
}

.brigades-list-row.is-mine {
  border-color: rgba(110, 224, 154, 0.42);
  box-shadow: inset 0 0 0 1px rgba(110, 224, 154, 0.24);
}

.brigades-member-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.brigades-member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(160, 193, 246, 0.34);
  background: linear-gradient(145deg, rgba(23, 59, 125, 0.9), rgba(12, 31, 72, 0.92));
  color: #eaf3ff;
  font-size: 14px;
  font-weight: 800;
  display: grid;
  place-items: center;
  text-transform: uppercase;
  overflow: hidden;
}

.brigades-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brigades-member-main,
.brigades-list-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.brigades-member-name,
.brigades-list-title {
  color: #edf4ff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  word-break: break-word;
}

.brigades-member-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.brigades-member-rank-chip {
  margin-left: auto;
  flex-shrink: 0;
}

button.brigades-member-rank-chip {
  appearance: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.45px;
  text-transform: uppercase;
  padding: 4px 9px;
  box-shadow: none;
  cursor: pointer;
}

button.brigades-member-rank-chip:disabled {
  opacity: 0.6;
  cursor: default;
}

.brigades-member-meta,
.brigades-list-meta {
  color: #a5badf;
  font-size: 11px;
  line-height: 1.2;
}

.brigades-list-sub {
  color: #d5e3fc;
  font-size: 11px;
  line-height: 1.25;
  word-break: break-word;
}

.brigades-top-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.brigades-top-title-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.brigades-top-rank-chip {
  flex-shrink: 0;
}

.brigades-top-damage {
  flex-shrink: 0;
  border: 1px solid rgba(149, 180, 233, 0.24);
  border-radius: 10px;
  background: rgba(7, 16, 35, 0.68);
  min-width: 108px;
  padding: 4px 8px;
  display: grid;
  gap: 1px;
  text-align: right;
}

.brigades-top-damage span {
  color: #9fb5dc;
  font-size: 10px;
  line-height: 1.2;
}

.brigades-top-damage strong {
  color: #eef6ff;
  font-size: 13px;
  line-height: 1.15;
}

.brigades-member-actions,
.brigades-list-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.brigades-member-actions {
  justify-content: space-between;
}

.brigades-list-actions {
  justify-content: flex-end;
}

.brigades-member-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  flex: 1;
  min-width: 140px;
}

.brigades-member-stat {
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 10px;
  padding: 6px 8px;
  background: rgba(7, 16, 35, 0.62);
  display: grid;
  gap: 2px;
}

.brigades-member-stat span {
  color: #a7bce2;
  font-size: 10px;
  line-height: 1.2;
}

.brigades-member-stat strong {
  color: #edf5ff;
  font-size: 13px;
  line-height: 1.15;
}

.brigades-member-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brigades-member-role-editor {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brigades-member-role-editor select {
  min-width: 108px;
  height: 32px;
}

.brigades-log-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid rgba(149, 180, 233, 0.16);
  background: rgba(8, 16, 34, 0.72);
}

.brigades-log-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.brigades-log-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.brigades-log-delete-btn {
  min-width: 74px;
  height: 28px;
  padding: 0 10px;
  font-size: 11px;
}

.brigades-log-time {
  color: #9cb2d8;
  font-size: 10px;
  line-height: 1.2;
}

.brigades-log-text {
  color: #eaf3ff;
  font-size: 12px;
  line-height: 1.25;
  word-break: break-word;
}

.brigades-settings-modal-dialog {
  width: min(840px, calc(100vw - 18px));
}

.brigades-settings-modal-body {
  max-height: min(64vh, 560px);
  overflow: auto;
}

.brigades-top-modal-dialog {
  width: min(900px, calc(100vw - 18px));
}

.brigades-top-modal-body {
  max-height: min(70vh, 640px);
  overflow: auto;
  padding-right: 2px;
}

.brigades-incoming-modal-dialog {
  width: min(760px, calc(100vw - 18px));
}

.brigades-incoming-modal-body {
  max-height: min(70vh, 620px);
  overflow: auto;
  padding-right: 2px;
}

.brigades-rank-modal-dialog {
  width: min(520px, calc(100vw - 18px));
}

.brigades-rank-modal-body {
  display: grid;
  gap: 12px;
}

.brigades-rank-modal-user {
  color: #f3f8ff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.brigades-rank-modal-current {
  color: #9cb2d8;
  font-size: 12px;
  line-height: 1.35;
}

.brigades-rank-modal-field {
  display: grid;
  gap: 6px;
}

.brigades-rank-modal-field span {
  color: #c7d7ef;
  font-size: 12px;
  line-height: 1.2;
}

.brigades-rank-modal-field select {
  width: 100%;
  min-height: 40px;
}

.resource-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 8px;
}

.resource-pill {
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 12px;
  padding: 9px 10px;
  background: var(--surface-panel);
  display: grid;
  gap: 3px;
}

.resource-pill span {
  color: var(--muted);
  font-size: 11px;
}

.resource-pill strong {
  color: #edf4ff;
  font-size: 13px;
  line-height: 1.15;
}

.quick-nav-grid {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dual-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.simple-list {
  display: grid;
  gap: 6px;
}

.simple-list-empty {
  color: var(--muted);
  font-size: 12px;
  border: 1px dashed rgba(149, 180, 233, 0.22);
  border-radius: 10px;
  padding: 10px;
}

.simple-list-item {
  border: 1px solid rgba(149, 180, 233, 0.16);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(9, 19, 40, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.simple-list-item .name {
  color: #dce8ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simple-list-item .val {
  color: #9ff3c9;
  font-weight: 700;
}

.boss-drop-stats-total-grid {
  display: grid;
  gap: 9px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.boss-stats-page-card {
  display: grid;
  gap: 10px;
}

.boss-stats-page-head {
  align-items: flex-start;
}

.boss-stats-hero {
  border: 1px solid rgba(149, 180, 233, 0.22);
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(76, 139, 255, 0.16), transparent 52%),
    linear-gradient(180deg, rgba(11, 24, 51, 0.72), rgba(7, 14, 30, 0.68));
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.boss-stats-hero-main {
  display: grid;
  gap: 3px;
}

.boss-stats-hero-label {
  color: #9fb7df;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.boss-stats-hero-value {
  color: #ecf4ff;
  font-size: 24px;
  line-height: 1;
  font-weight: 840;
}

.boss-stats-hero-meta {
  color: #b5caec;
  font-size: 11px;
  line-height: 1.3;
}

.boss-stats-hero-side {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.boss-stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.boss-stats-overview-card {
  border: 1px solid rgba(149, 180, 233, 0.2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(11, 24, 51, 0.64), rgba(7, 14, 30, 0.66));
  padding: 9px;
  display: grid;
  gap: 8px;
}

.boss-stats-overview-card.regular {
  border-color: rgba(96, 165, 250, 0.34);
}

.boss-stats-overview-card.combo {
  border-color: rgba(251, 146, 60, 0.34);
}

.boss-stats-overview-card.total {
  border-color: rgba(16, 185, 129, 0.34);
}

.boss-stats-overview-head {
  display: grid;
  gap: 1px;
}

.boss-stats-overview-head strong {
  color: #ecf4ff;
  font-size: 13px;
  line-height: 1.2;
}

.boss-stats-overview-head span {
  color: #9cb4db;
  font-size: 11px;
  line-height: 1.2;
}

.boss-drop-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.boss-drop-chip-row.compact {
  gap: 4px;
}

.boss-drop-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  border: 1px solid rgba(134, 161, 223, 0.18);
  border-radius: 999px;
  padding: 1px 8px;
  background: rgba(12, 25, 54, 0.36);
  color: #c9dbf8;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

.boss-drop-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.boss-drop-chip-icon .cabinet-currency-icon-wrap {
  width: 16px;
  height: 16px;
}

.boss-drop-chip-icon .cabinet-currency-icon-img {
  width: 16px;
  height: 16px;
}

.boss-drop-chip strong {
  color: #deebff;
  font-size: 11px;
  font-weight: 760;
}

.boss-drop-chip.ok {
  border-color: rgba(130, 236, 202, 0.34);
  background: rgba(10, 45, 58, 0.34);
  color: #9ff2cf;
}

.boss-drop-chip.warn {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(59, 33, 7, 0.32);
  color: #f7d68c;
}

.boss-drop-stats-list {
  display: grid;
  gap: 8px;
}

.boss-stats-empty {
  border: 1px dashed rgba(149, 180, 233, 0.28);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  color: #a8bddf;
  line-height: 1.3;
}

.boss-stats-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.boss-stats-section-head strong {
  color: #e8f1ff;
  font-size: 14px;
  font-weight: 760;
}

.boss-stats-boss-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.boss-stats-boss-card {
  border: 1px solid rgba(149, 180, 233, 0.2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(11, 24, 51, 0.65), rgba(7, 14, 30, 0.66));
  padding: 9px;
  display: grid;
  gap: 7px;
}

.boss-stats-boss-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.boss-stats-boss-title-wrap {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.boss-stats-boss-title {
  color: #e0ecff;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.2;
}

.boss-stats-boss-sub {
  color: #99b1d9;
  font-size: 10px;
  line-height: 1.15;
}

.boss-stats-chip-row {
  align-items: flex-start;
}

.boss-daily-usage-block {
  margin-top: 0;
  border: 1px solid rgba(149, 180, 233, 0.2);
  border-radius: 14px;
  background: rgba(9, 18, 38, 0.55);
  padding: 10px;
  display: grid;
  gap: 9px;
}

.boss-daily-usage-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

.boss-daily-usage-head h2,
.boss-daily-usage-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.15;
  color: #e8f1ff;
}

.boss-daily-usage-head .chip {
  margin-left: auto;
  align-self: flex-start;
  text-align: center;
}

.boss-reward-sweep-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(10, 22, 47, 0.52), rgba(7, 14, 30, 0.58));
  padding: 9px 10px;
}

.boss-reward-sweep-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.boss-reward-sweep-copy strong {
  color: #e9f2ff;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.2;
}

.boss-reward-sweep-copy span {
  color: #9cb4db;
  font-size: 11px;
  line-height: 1.25;
}

.boss-reward-sweep-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.boss-reward-sweep-panel {
  display: grid;
  gap: 8px;
}

.boss-reward-sweep-summary {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(11, 24, 51, 0.58), rgba(7, 14, 30, 0.62));
  padding: 10px;
}

.boss-reward-sweep-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.boss-reward-sweep-summary-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.boss-reward-sweep-summary-copy strong {
  color: #edf5ff;
  font-size: 14px;
  font-weight: 770;
  line-height: 1.2;
}

.boss-reward-sweep-summary-copy span {
  color: #9db5db;
  font-size: 11px;
  line-height: 1.25;
}

.boss-reward-sweep-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.boss-reward-sweep-boss-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.boss-daily-usage-list-grid {
  max-height: 460px;
  overflow: auto;
  padding-right: 2px;
  display: grid;
  gap: 8px;
}

.boss-daily-usage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.boss-daily-usage-card {
  border: 1px solid rgba(149, 180, 233, 0.2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(11, 24, 51, 0.63), rgba(7, 14, 30, 0.66));
  padding: 9px;
  display: grid;
  gap: 7px;
}

.boss-daily-usage-card.limit {
  border-color: rgba(251, 113, 133, 0.26);
  background: linear-gradient(180deg, rgba(46, 14, 26, 0.36), rgba(31, 12, 21, 0.36));
}

.boss-daily-usage-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.boss-daily-usage-title-wrap {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.boss-daily-usage-title {
  color: #eaf3ff;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 760;
}

.boss-daily-usage-total {
  color: #f6d27d;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.boss-daily-usage-progressbar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.2);
}

.boss-daily-usage-progressbar > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2dd4bf, #22c55e);
}

.boss-daily-usage-card.limit .boss-daily-usage-progressbar > span {
  background: linear-gradient(90deg, #fb7185, #f97316);
}

.boss-daily-usage-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #b8cae8;
  font-size: 11px;
}

.boss-daily-usage-item-sub {
  color: #a8bddf;
  font-size: 10px;
  line-height: 1.2;
}

.boss-daily-usage-combo-drop {
  display: grid;
  gap: 4px;
  margin-top: 1px;
}

.boss-daily-usage-combo-drop-label {
  color: #9ec3ff;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 620;
}

.boss-daily-usage-combo-drop .boss-drop-chip-row {
  gap: 4px;
}

.boss-daily-usage-combo-drop-empty {
  color: #8ea7cf;
  font-size: 10px;
  line-height: 1.1;
}

.boss-daily-usage-combo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 56px;
  justify-content: center;
  font-size: 15px;
  font-weight: 780;
  letter-spacing: 0.01em;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid rgba(149, 180, 233, 0.2);
  background: rgba(7, 14, 30, 0.55);
  padding: 2px 8px;
}

.boss-daily-usage-combo-block {
  display: grid;
  gap: 5px;
}

.boss-daily-usage-combo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.boss-daily-usage-combo-label {
  color: #9ec3ff;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.boss-daily-usage-combo .ok {
  color: #85eccc;
}

.boss-daily-usage-combo .sep {
  color: #b8cae8;
  font-size: 11px;
  font-weight: 700;
}

.boss-daily-usage-combo .fail {
  color: #f7899c;
}

.boss-daily-usage-combo.empty {
  font-size: 12px;
  letter-spacing: 0;
}

@media (max-width: 1080px) {
  .boss-stats-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .boss-stats-boss-grid,
  .boss-reward-sweep-boss-grid,
  .boss-daily-usage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .boss-stats-hero {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .boss-stats-hero-side {
    justify-items: flex-start;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 6px;
    overflow: auto;
  }

  .boss-stats-overview-grid {
    grid-template-columns: 1fr;
  }

  .boss-reward-sweep-toolbar,
  .boss-reward-sweep-summary-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .boss-reward-sweep-actions {
    justify-content: flex-start;
  }
}

.boss-queue-run-status-card {
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 12px;
  background: rgba(8, 16, 34, 0.48);
  padding: 10px;
  display: grid;
  gap: 6px;
}

.boss-queue-run-status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.boss-queue-run-status-title {
  color: #dfeaff;
  font-weight: 750;
  font-size: 13px;
}

.boss-queue-run-status-main {
  color: #edf4ff;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 650;
}

.boss-queue-run-status-sub {
  color: #b6c9ea;
  font-size: 11px;
  line-height: 1.35;
}

.boss-queue-toolbar-row {
  display: grid;
  grid-template-columns: minmax(112px, 0.72fr) minmax(0, 1.28fr);
  gap: 8px;
  align-items: stretch;
}

.boss-queue-kpi-strip {
  min-width: 0;
  margin: 0;
}

.boss-queue-kpi-strip .resource-pill {
  min-height: 100%;
}

.boss-preset-trigger {
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 12px;
  background: rgba(8, 16, 34, 0.42);
  cursor: pointer;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: inherit;
  font: inherit;
  text-align: left;
  width: 100%;
  min-width: 0;
}

.boss-preset-trigger-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.boss-preset-trigger-caret {
  color: #bcd0f4;
  font-size: 12px;
  flex: 0 0 auto;
}

.boss-preset-trigger:hover {
  border-color: rgba(126, 177, 255, 0.34);
  background: rgba(17, 31, 58, 0.48);
}

.boss-preset-modal-dialog {
  width: min(720px, calc(100vw - 20px));
}

.boss-preset-summary-title {
  color: #e6f0ff;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.2;
}

.boss-preset-summary-meta {
  min-width: 0;
  color: #b6c9ea;
  font-size: 11px;
  line-height: 1.2;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-preset-panel {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.boss-preset-head {
  display: grid;
  gap: 4px;
}

.boss-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.boss-preset-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.boss-preset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.boss-preset-actions .btn {
  flex: 1 1 140px;
}

.boss-preset-list {
  display: grid;
  gap: 8px;
}

.boss-preset-empty {
  border: 1px dashed rgba(133, 164, 225, 0.28);
  border-radius: 14px;
  padding: 12px;
  color: #aebfe0;
  font-size: 12px;
  line-height: 1.35;
  background: rgba(6, 13, 30, 0.28);
}

.boss-preset-card {
  border: 1px solid rgba(117, 154, 232, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(53, 139, 255, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(18, 34, 68, 0.86), rgba(7, 15, 34, 0.92));
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 7px;
  padding: 11px 12px;
  text-align: left;
  width: 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.boss-preset-card:hover {
  border-color: rgba(111, 176, 255, 0.46);
  transform: translateY(-1px);
}

.boss-preset-card.active {
  border-color: rgba(65, 213, 169, 0.62);
  box-shadow:
    0 0 0 1px rgba(65, 213, 169, 0.16),
    0 10px 24px rgba(24, 121, 180, 0.18);
}

.boss-preset-card:disabled {
  cursor: default;
  opacity: 0.68;
  transform: none;
}

.boss-preset-card-top,
.boss-preset-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.boss-preset-card-name {
  color: #f3f7ff;
  font-size: 14px;
  font-weight: 820;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-preset-card-count {
  border: 1px solid rgba(126, 177, 255, 0.28);
  border-radius: 999px;
  color: #dfeaff;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  min-width: 34px;
  padding: 5px 8px;
  text-align: center;
  background: rgba(10, 24, 52, 0.72);
}

.boss-preset-card-sub {
  color: #aebfe0;
  font-size: 11px;
  line-height: 1.25;
  min-height: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-preset-card-chip {
  border: 1px solid rgba(126, 177, 255, 0.24);
  border-radius: 999px;
  color: #bcd0f4;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  padding: 5px 8px;
  background: rgba(7, 15, 34, 0.62);
}

.boss-preset-card-chip.ok {
  border-color: rgba(65, 213, 169, 0.42);
  color: #8ff1c8;
}

.boss-preset-card-chip.warn {
  border-color: rgba(255, 207, 125, 0.46);
  color: #ffd791;
}

.boss-preset-card-date {
  color: #8195bb;
  flex: 0 0 auto;
  font-size: 10px;
  line-height: 1;
}

@media (max-width: 720px) {
  .boss-queue-toolbar-row {
    grid-template-columns: minmax(104px, 0.72fr) minmax(0, 1.28fr);
    gap: 8px;
  }

  .boss-queue-kpi-strip .resource-pill {
    padding: 9px 10px;
  }

  .boss-preset-trigger {
    padding: 9px 10px;
    gap: 6px;
  }

  .boss-preset-summary-title {
    font-size: 13px;
  }

  .boss-preset-summary-meta {
    font-size: 10px;
  }

  .boss-preset-grid {
    grid-template-columns: 1fr;
  }

  .boss-preset-actions .btn {
    flex-basis: auto;
  }

  .boss-preset-card {
    padding: 10px;
  }

  .boss-preset-card-name {
    font-size: 13px;
  }
}

.task.task-warn {
  border-color: rgba(251, 113, 133, 0.26);
  background:
    radial-gradient(circle at 100% 0%, rgba(251, 113, 133, 0.08), transparent 42%),
    rgba(8, 13, 27, 0.82);
}

.wheel-kpi-grid {
  margin-bottom: 10px;
}

.fortune-screen {
  display: grid;
  gap: 12px;
}

.app-page[data-page="wheel"] .seg-tabs[data-seg-group="wheel"] {
  display: flex;
}

.app-page[data-page="wheel"] .seg-section[data-seg-section="wheel-feed"] {
  display: none !important;
}

.wheel-main-tabs {
  gap: 10px;
  padding-top: 0;
}

.wheel-seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
}

.wheel-seg-btn-main {
  display: inline-flex;
  align-items: center;
}

.wheel-seg-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(93, 138, 255, 0.16);
  color: #cfe0ff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wheel-seg-level-badge b {
  color: #f4f8ff;
  font-size: 12px;
}

.fortune-hero-card {
  display: grid;
  gap: 12px;
  border-color: rgba(110, 151, 255, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(69, 120, 255, 0.13), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(38, 99, 235, 0.09), transparent 45%),
    linear-gradient(160deg, rgba(14, 22, 42, 0.94), rgba(11, 17, 32, 0.94));
}

.fortune-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.fortune-hero-side {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-shrink: 0;
}

.fortune-hero-title {
  font-size: 22px;
  font-weight: 860;
  color: #fff4d8;
  line-height: 1.05;
}

.fortune-hero-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: #f0ddbf;
  line-height: 1.35;
}

.fortune-status-chip {
  min-width: 132px;
  border: 1px solid rgba(247, 188, 82, 0.3);
  border-radius: 12px;
  background: rgba(28, 20, 13, 0.58);
  padding: 8px 10px;
  display: grid;
  gap: 3px;
}

.fortune-status-chip.status {
  min-width: 118px;
  max-width: 158px;
}

.fortune-status-chip.level {
  min-width: 110px;
}

.fortune-status-chip span {
  font-size: 11px;
  color: #dfc492;
}

.fortune-status-chip strong {
  font-size: 14px;
  color: #fff1cc;
}

.fortune-status-chip.level strong {
  font-size: 16px;
  letter-spacing: 0.02em;
}

.fortune-live-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.fortune-live-strip-wheel,
.fortune-live-strip-bags {
  align-items: stretch;
}

.fortune-live-strip-wheel {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
}

.fortune-live-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fortune-live-pill {
  border: 1px solid rgba(118, 154, 234, 0.18);
  border-radius: 12px;
  background: rgba(10, 17, 31, 0.58);
  padding: 9px 10px;
  display: grid;
  gap: 2px;
}

.fortune-live-pill span {
  font-size: 11px;
  color: #aebfdf;
}

.fortune-live-pill strong {
  color: #f2f7ff;
  font-size: 14px;
  line-height: 1.15;
}

.fortune-live-pill small {
  color: #8194b8;
  font-size: 10px;
  line-height: 1.2;
}

.fortune-live-pill-compact {
  min-width: 0;
}

.fortune-live-pill-mini {
  min-width: 0;
}

.wheel-super-prize-choice {
  margin-top: -2px;
}

.wheel-super-prize-tabs {
  width: 100%;
}

.wheel-super-prize-tabs .seg-btn {
  flex: 1 1 0;
  justify-content: center;
}

.fortune-jackpot-winner-pill {
  min-width: 0;
}

.fortune-jackpot-winner-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.fortune-jackpot-winner-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(145, 178, 255, 0.26);
  background: linear-gradient(180deg, rgba(36, 58, 103, 0.8), rgba(18, 29, 55, 0.85));
  color: #f2f7ff;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}

.fortune-jackpot-winner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fortune-jackpot-winner-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.fortune-jackpot-winner-meta strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fortune-jackpot-winner-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fortune-jackpot-winner-sum {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-self: end;
  min-width: 0;
}

.fortune-jackpot-winner-ruble {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.fortune-jackpot-winner-sum strong {
  color: #f2f7ff;
  font-size: 14px;
  line-height: 1.1;
}

.fortune-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fortune-actions-grid .btn {
  min-height: 42px;
}

.fortune-option-check {
  margin-top: 2px;
  border: 1px dashed rgba(118, 154, 234, 0.26);
  background: rgba(10, 17, 31, 0.48);
}

.fortune-inline-summary {
  border-color: rgba(118, 154, 234, 0.16);
  background: rgba(10, 17, 31, 0.42);
}

.fortune-jackpot-spotlight {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(251, 192, 75, 0.28);
  border-radius: 18px;
  padding: 16px 16px 14px;
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 231, 162, 0.18), transparent 30%),
    radial-gradient(circle at 85% 25%, rgba(255, 143, 51, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(56, 35, 14, 0.92), rgba(25, 18, 28, 0.94));
}

.fortune-jackpot-label {
  color: #f5cd7b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fortune-jackpot-value {
  margin-top: 6px;
  color: #fff6de;
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-shadow: 0 10px 26px rgba(255, 182, 56, 0.22);
}

.fortune-jackpot-sub {
  margin-top: 6px;
  color: #dcbf8e;
  font-size: 12px;
  line-height: 1.35;
}

.fortune-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fortune-kpi-grid-wheel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fortune-kpi-card {
  border-radius: 14px;
  border: 1px solid rgba(108, 146, 228, 0.17);
  background:
    linear-gradient(160deg, rgba(14, 21, 39, 0.86), rgba(8, 15, 29, 0.86));
  padding: 10px 11px;
  display: grid;
  gap: 3px;
}

.fortune-kpi-card span {
  color: #a9bddf;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.fortune-kpi-card strong {
  color: #f2f7ff;
  font-size: 19px;
  font-weight: 850;
}

.fortune-kpi-card small {
  color: #8398bc;
  font-size: 11px;
  line-height: 1.2;
}

.fortune-kpi-card b {
  color: #d8e5ff;
  font-weight: 800;
}

.fortune-wheel-main-card,
.fortune-wheel-bags-card {
  gap: 14px;
}

.wheel-slot-board-wrap {
  border: 1px solid rgba(255, 210, 122, 0.18);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 12px;
  width: min(100%, 560px);
  justify-self: center;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 210, 122, 0.14), transparent 34%),
    radial-gradient(circle at 88% 100%, rgba(98, 194, 126, 0.13), transparent 38%),
    linear-gradient(160deg, rgba(30, 21, 12, 0.96), rgba(14, 22, 18, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.wheel-slot-board-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
}

.wheel-slot-board-head-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.wheel-slot-board-head-copy span {
  color: #f2d48a;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.wheel-slot-board-head-copy strong {
  color: #fff5d4;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.15;
}

.wheel-slot-board-head-copy.right {
  text-align: right;
}

.wheel-slot-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(72px, 96px));
  justify-content: center;
  gap: 6px;
}

.wheel-slot-cell {
  position: relative;
  min-height: 104px;
  aspect-ratio: 0.72;
  border-radius: 8px;
  border: 1px solid rgba(255, 225, 150, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 236, 178, 0.18), transparent 18%),
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(42, 31, 18, 0.98), rgba(12, 17, 16, 0.98));
  padding: 4px;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 -18px 26px rgba(0, 0, 0, 0.34),
    0 8px 20px rgba(0, 0, 0, 0.22);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, filter .16s ease;
}

.wheel-slot-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.18)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 30%, transparent 78%, rgba(0, 0, 0, 0.38));
  opacity: .72;
  pointer-events: none;
}

.wheel-slot-cell:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 226, 151, 0.32);
}

.wheel-slot-cell.active {
  border-color: rgba(255, 227, 154, 0.56);
  box-shadow:
    0 0 0 1px rgba(255, 227, 154, 0.22),
    0 0 22px rgba(255, 205, 74, 0.34),
    0 12px 28px rgba(255, 188, 61, 0.16);
  transform: translateY(-1px) scale(1.01);
}

.wheel-slot-cell.active::before {
  content: '';
  position: absolute;
  inset: 2px;
  z-index: 1;
  border-radius: 7px;
  border: 2px solid rgba(255, 234, 148, 0.9);
  box-shadow:
    inset 0 0 18px rgba(255, 205, 74, 0.28),
    0 0 16px rgba(255, 205, 74, 0.36);
  pointer-events: none;
}

.wheel-slot-media {
  position: absolute;
  inset: 4px 4px 18px;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.wheel-slot-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.36));
}

.wheel-slot-media-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 246, 223, 0.9);
  font-size: 26px;
  font-weight: 900;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.42);
}

.wheel-slot-cell.tone-blue {
  background:
    radial-gradient(circle at 50% 14%, rgba(175, 224, 255, 0.16), transparent 24%),
    linear-gradient(160deg, rgba(18, 32, 48, 0.96), rgba(11, 20, 31, 0.96));
}

.wheel-slot-cell.tone-gold,
.wheel-slot-cell.tone-sand {
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 226, 146, 0.2), transparent 24%),
    linear-gradient(160deg, rgba(43, 31, 14, 0.96), rgba(23, 18, 11, 0.96));
}

.wheel-slot-cell.tone-amber {
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 193, 102, 0.18), transparent 24%),
    linear-gradient(160deg, rgba(48, 27, 14, 0.96), rgba(24, 16, 11, 0.96));
}

.wheel-slot-cell.tone-weapon {
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 146, 146, 0.18), transparent 24%),
    linear-gradient(160deg, rgba(47, 18, 18, 0.96), rgba(24, 11, 11, 0.96));
}

.wheel-slot-cell.tone-prize {
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 224, 146, 0.2), transparent 24%),
    linear-gradient(160deg, rgba(57, 30, 12, 0.98), rgba(31, 18, 11, 0.98));
}

.wheel-slot-cell.tone-empty {
  background:
    linear-gradient(160deg, rgba(18, 22, 27, 0.96), rgba(12, 15, 19, 0.96));
  border-color: rgba(149, 180, 233, 0.1);
  color: #9eb0cb;
}

.wheel-slot-cell-top {
  position: absolute;
  z-index: 2;
  top: 4px;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.wheel-slot-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.wheel-slot-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.wheel-slot-icon-fallback {
  color: #f7f1dc;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.wheel-slot-cell-position {
  min-width: 18px;
  border-radius: 6px;
  padding: 2px 3px;
  color: rgba(255, 239, 193, 0.78);
  background: rgba(0, 0, 0, 0.24);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  letter-spacing: 0;
}

.wheel-slot-cell-value {
  position: absolute;
  z-index: 2;
  left: 4px;
  right: 4px;
  bottom: 14px;
  color: #fff6df;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.wheel-slot-cell-label {
  position: absolute;
  z-index: 2;
  left: 4px;
  right: 4px;
  bottom: 4px;
  overflow: hidden;
  color: rgba(255, 240, 208, 0.76);
  font-size: 7px;
  line-height: 1;
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
  letter-spacing: 0;
}

.wheel-slot-prize {
  display: grid;
}

.wheel-slot-prize-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 210, 122, 0.16);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 232, 165, 0.16), transparent 36%),
    linear-gradient(160deg, rgba(45, 27, 13, 0.96), rgba(19, 12, 10, 0.96));
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.wheel-slot-prize-card.active {
  border-color: rgba(255, 227, 154, 0.48);
  box-shadow: 0 0 0 1px rgba(255, 227, 154, 0.18), 0 12px 28px rgba(255, 178, 52, 0.16);
}

.wheel-slot-prize-kicker {
  color: #f1ca77;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.wheel-slot-prize-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.wheel-slot-prize-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #fff4d8;
  font-size: 18px;
  font-weight: 900;
}

.wheel-slot-prize-main .wheel-slot-media {
  position: static;
  width: 54px;
  height: 54px;
  inset: auto;
}

.wheel-slot-prize-main .wheel-slot-media img {
  width: 100%;
  height: 100%;
}

.wheel-slot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.wheel-spin-btn {
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 14px;
  flex: 1 1 220px;
  font-size: 15px;
}

.wheel-auto-btn {
  min-width: 88px;
}

.wheel-slot-prize-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.wheel-slot-prize-copy strong {
  color: #fff7e2;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.15;
}

.wheel-slot-prize-copy small {
  color: #d5c09a;
  font-size: 11px;
  line-height: 1.25;
}

@media (max-width: 720px) {
  .wheel-slot-board-wrap {
    width: 100%;
    justify-self: stretch;
    padding: 12px;
  }

  .wheel-slot-board-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .wheel-slot-board-head-copy.right {
    text-align: left;
  }

  .wheel-slot-board {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .wheel-slot-cell {
    min-height: 82px;
    padding: 4px;
  }

  .wheel-slot-cell-value {
    font-size: 11px;
  }

  .wheel-slot-cell-label {
    font-size: 7px;
  }

  .wheel-slot-actions {
    gap: 6px;
  }

  .wheel-spin-btn {
    flex-basis: 100%;
    width: 100%;
  }

  .wheel-auto-btn {
    flex: 0 0 auto;
  }
}

.fortune-wheel-bags-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fortune-wheel-bag-card {
  appearance: none;
  border: 1px solid rgba(118, 154, 234, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(82, 125, 255, 0.12), transparent 42%),
    linear-gradient(150deg, rgba(14, 22, 40, 0.88), rgba(10, 17, 31, 0.9));
  padding: 13px 14px;
  display: grid;
  gap: 6px;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.fortune-wheel-bag-card:hover {
  border-color: rgba(145, 178, 255, 0.3);
}

.fortune-wheel-bag-card.active {
  border-color: rgba(145, 178, 255, 0.42);
  box-shadow: 0 10px 24px rgba(66, 110, 230, 0.14);
  transform: translateY(-1px);
}

.fortune-wheel-bag-title {
  color: #f2f7ff;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.15;
}

.fortune-wheel-bag-sub {
  color: #a9bddf;
  font-size: 12px;
  line-height: 1.35;
}

.fortune-wheel-bag-cost {
  color: #d9e7ff;
  font-size: 13px;
  font-weight: 800;
}

.fortune-wheel-bag-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.fortune-layout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fortune-layout-grid-feeds {
  grid-template-columns: 1.15fr .85fr;
}

.fortune-panel {
  display: grid;
  gap: 10px;
  border-color: rgba(245, 169, 53, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 146, 58, 0.05), transparent 40%),
    rgba(10, 16, 31, 0.74);
}

.fortune-panel-super {
  border-color: rgba(255, 95, 171, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 95, 171, 0.08), transparent 42%),
    rgba(15, 14, 34, 0.76);
}

.fortune-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.fortune-panel-head h2 {
  margin: 0;
  font-size: 16px;
}

.fortune-panel-head .muted {
  margin: 3px 0 0;
}

.fortune-panel-settings,
.fortune-panel-buy {
  align-content: start;
}

.fortune-buy-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fortune-buy-presets .btn.active {
  border-color: rgba(90, 167, 255, 0.5);
  background: linear-gradient(180deg, rgba(49, 98, 220, 0.34), rgba(28, 63, 161, 0.34));
  color: #eef5ff;
}

.wheel-chest-status-field {
  grid-column: 1 / -1;
}

.wheel-chest-run-state {
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 12px;
  background: rgba(8, 16, 32, 0.52);
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.wheel-chest-run-state[hidden] {
  display: none !important;
}

.wheel-chest-run-state::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #f3cf74;
  flex-shrink: 0;
  margin-top: 4px;
}

.wheel-chest-run-state.pending {
  border-color: rgba(243, 207, 116, 0.28);
  background: linear-gradient(135deg, rgba(74, 54, 12, 0.7), rgba(28, 20, 33, 0.74));
}

.wheel-chest-run-state.pending::before {
  background: #f3cf74;
}

.wheel-chest-run-state.running {
  border-color: rgba(121, 240, 183, 0.26);
  background: linear-gradient(135deg, rgba(14, 71, 49, 0.62), rgba(12, 28, 45, 0.78));
}

.wheel-chest-run-state.running::before {
  background: #79f0b7;
  animation: work-run-live-pulse 1.8s ease-out infinite;
}

.wheel-chest-run-state.stopping {
  border-color: rgba(255, 162, 122, 0.26);
  background: linear-gradient(135deg, rgba(84, 39, 20, 0.72), rgba(28, 20, 33, 0.74));
}

.wheel-chest-run-state.stopping::before {
  background: #ffb08a;
}

.wheel-chest-run-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.wheel-chest-run-copy strong {
  color: #eef5ff;
  font-size: 13px;
  line-height: 1.2;
}

.wheel-chest-run-copy span {
  color: #bfd2ee;
  font-size: 11px;
  line-height: 1.35;
}

.fortune-rewards-list .simple-list-item {
  border-color: rgba(245, 169, 53, 0.14);
  background: rgba(26, 22, 33, 0.35);
}

.fortune-feed-list {
  display: grid;
  gap: 6px;
  max-height: 520px;
  overflow: auto;
  padding-right: 2px;
}

.fortune-feed-row {
  border-radius: 12px;
  border: 1px solid rgba(245, 169, 53, 0.13);
  background: rgba(17, 17, 31, 0.5);
  padding: 8px 9px;
  display: grid;
  gap: 4px;
}

.fortune-feed-row.super {
  border-color: rgba(255, 95, 171, 0.22);
  background: rgba(28, 15, 34, 0.5);
}

.fortune-feed-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.fortune-feed-spin {
  color: #ffe7ab;
  font-weight: 800;
}

.fortune-feed-time {
  color: #aa9a82;
}

.fortune-feed-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.fortune-feed-reward {
  color: #f7fbff;
  font-weight: 700;
}

.fortune-feed-value {
  color: #93f0b0;
  font-weight: 800;
}

.fortune-feed-main .fortune-feed-value.super {
  color: #ffb4df;
}

.fortune-feed-source {
  color: #b6a689;
  font-size: 11px;
}

.fortune-history-list {
  display: grid;
  gap: 8px;
}

.fortune-history-row {
  border-radius: 12px;
  border: 1px solid rgba(245, 169, 53, 0.13);
  background: rgba(13, 18, 31, 0.6);
  padding: 8px 10px;
  display: grid;
  gap: 4px;
}

.fortune-history-row .top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.fortune-history-row .title {
  color: #f4f8ff;
  font-weight: 760;
  font-size: 13px;
}

.fortune-history-row .meta {
  color: #b7c4dd;
  font-size: 11px;
  line-height: 1.25;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.checklist-item {
  border: 1px solid rgba(149, 180, 233, 0.2);
  border-radius: 12px;
  background: rgba(8, 18, 38, 0.54);
  padding: 10px;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 8px;
  color: #dce8ff;
  transition: border-color .16s ease, background-color .16s ease, transform .12s ease;
}

.checklist-item:hover {
  border-color: rgba(149, 180, 233, 0.32);
  background: rgba(10, 22, 46, 0.6);
}

.checklist-item input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.checklist-item .checklist-item-title {
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checklist-item small {
  color: var(--muted);
  font-size: 11px;
}

.checklist-item .checklist-item-id {
  justify-self: end;
  border: 1px solid rgba(149, 180, 233, 0.16);
  background: rgba(149, 180, 233, 0.06);
  border-radius: 999px;
  padding: 2px 7px;
  line-height: 1;
}

.checklist-item .worker-inline-progress {
  grid-column: 2 / -1;
  display: grid;
  gap: 5px;
  margin-top: 2px;
}

.checklist-item .worker-inline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.checklist-item .worker-inline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.checklist-item .worker-inline-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid rgba(149, 180, 233, 0.22);
  background: rgba(149, 180, 233, 0.08);
  color: #e8f0ff;
}

.checklist-item .worker-inline-badge.day {
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.12);
}

.checklist-item .worker-inline-badge.night {
  border-color: rgba(129, 140, 248, 0.3);
  background: rgba(129, 140, 248, 0.12);
}

.checklist-item .worker-inline-badge.level {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.12);
}

.checklist-item .worker-inline-state {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(148, 163, 184, 0.08);
  color: #e6eefb;
}

.checklist-item .worker-inline-state.ok {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
}

.checklist-item .worker-inline-state.warn {
  border-color: rgba(250, 204, 21, 0.35);
  background: rgba(250, 204, 21, 0.12);
}

.checklist-item .worker-inline-state.err {
  border-color: rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.12);
}

.checklist-item .worker-inline-state.cold {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(148, 163, 184, 0.08);
}

.checklist-item .worker-inline-progressbar {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.16);
}

.checklist-item .worker-inline-progressfill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #93c5fd, #3b82f6);
  transition: width 0.2s ease;
}

.checklist-item .worker-inline-sub {
  color: #a8bddf;
  font-size: 10px;
  line-height: 1.2;
}

.checklist-item.snapshot-ok {
  border-color: rgba(34, 197, 94, 0.22);
}

.checklist-item.snapshot-warn,
.checklist-item.snapshot-locked {
  border-color: rgba(250, 204, 21, 0.22);
}

.checklist-item.snapshot-err {
  border-color: rgba(244, 63, 94, 0.26);
}

.checklist-item:has(input:checked) {
  border-color: rgba(61, 124, 255, 0.45);
  background: rgba(33, 58, 110, 0.42);
  box-shadow: inset 0 0 0 1px rgba(61, 124, 255, 0.16);
  transform: translateY(-1px);
}

.boss-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.catala-shell {
  display: grid;
  gap: 10px;
  border-color: rgba(111, 158, 255, 0.32);
  background:
    radial-gradient(circle at 95% 0%, rgba(88, 118, 255, 0.12), transparent 42%),
    linear-gradient(160deg, rgba(27, 40, 77, 0.96), rgba(22, 33, 64, 0.96));
}

.catala-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.catala-head h2 {
  margin: 0;
}

.catala-main-tabs {
  margin-top: 2px;
}

.catala-title-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.catala-title-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(149, 180, 233, 0.22);
  background: rgba(17, 30, 58, 0.78);
  color: #dce9ff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.seg-section.active[data-seg-section="catala-poker"] {
  display: grid;
  gap: 10px;
}

.catala-table-card {
  border-radius: 14px;
  border: 1px solid rgba(149, 180, 233, 0.22);
  background:
    radial-gradient(circle at 20% 0%, rgba(60, 130, 255, 0.08), transparent 40%),
    rgba(10, 20, 42, 0.7);
  padding: 10px;
  display: grid;
  gap: 10px;
}

.catala-table-card.poker {
  border-color: rgba(116, 171, 255, 0.32);
}

.catala-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.catala-table-title {
  font-size: 15px;
  font-weight: 800;
  color: #edf4ff;
}

.catala-card-slots {
  min-height: 152px;
  border-radius: 14px;
  border: 1px solid rgba(149, 180, 233, 0.15);
  background: rgba(16, 30, 59, 0.62);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  padding: 12px;
}

.catala-card-slots.catala-cards-hand {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 118px;
}

.catala-slot {
  min-height: 74px;
  border-radius: 12px;
  border: 2px dashed rgba(149, 180, 233, 0.2);
  color: #c7d8f6;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.015);
}

.catala-ready-pill {
  width: fit-content;
  margin: 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(149, 180, 233, 0.22);
  color: #e7f0ff;
  background: rgba(22, 36, 72, 0.62);
  font-weight: 700;
}

.catala-control-card {
  margin-top: 8px;
  border-radius: 14px;
  border: 1px solid rgba(149, 180, 233, 0.2);
  background: rgba(8, 18, 38, 0.52);
  padding: 10px;
  display: grid;
  gap: 10px;
}

.catala-control-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.catala-mini-field {
  display: grid;
  gap: 5px;
}

.catala-mini-field > span {
  font-size: 11px;
  color: #bcd0f4;
}

.catala-mini-field input,
.catala-mini-field select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(149, 180, 233, 0.2);
  background: rgba(24, 36, 70, 0.78);
  color: #edf4ff;
  padding: 9px 10px;
}

.catala-mini-field.readonly {
  border-radius: 10px;
  border: 1px solid rgba(149, 180, 233, 0.14);
  background: rgba(17, 28, 56, 0.45);
  padding: 7px 10px;
  align-content: start;
}

.catala-mini-field.readonly strong {
  color: #dff0ff;
  font-size: 14px;
}

.catala-actions-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 8px;
}

.catala-play-btn {
  min-height: 46px;
  font-size: 18px;
  font-weight: 800;
}

.catala-poker-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.catala-mode-btn {
  border-radius: 12px;
  border: 1px solid rgba(149, 180, 233, 0.2);
  background: rgba(26, 39, 76, 0.72);
  color: #d8e7ff;
  padding: 11px 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.catala-mode-btn-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.catala-mode-btn .cabinet-currency-icon-wrap,
.catala-mode-btn .cabinet-currency-icon-img {
  width: 14px;
  height: 14px;
}

.catala-mode-btn .cabinet-currency-icon-text {
  font-size: 12px;
}

.catala-mode-btn.active {
  border-color: rgba(116, 171, 255, 0.55);
  background: linear-gradient(160deg, rgba(82, 126, 255, 0.9), rgba(58, 95, 210, 0.9));
  color: #fff;
  box-shadow: 0 10px 24px rgba(58, 95, 210, 0.22);
}

.catala-mode-btn:active {
  transform: translateY(1px);
}

.catala-poker-note {
  font-size: 12px;
  color: #bfd2f5;
}

.catala-poker-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.catala-poker-stat-card {
  border-radius: 12px;
  border: 1px solid rgba(149, 180, 233, 0.16);
  background: rgba(8, 18, 38, 0.42);
  padding: 8px 10px;
  display: grid;
  gap: 4px;
}

.catala-poker-stat-card.wide {
  grid-column: 1 / -1;
}

.catala-poker-stat-card span {
  font-size: 11px;
  color: #aebfe0;
}

.catala-poker-stat-card strong {
  font-size: 15px;
  color: #edf4ff;
  font-weight: 800;
}

.catala-poker-live-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.catala-poker-hand {
  min-height: 118px;
}

.catala-card-face {
  min-height: 74px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, rgba(248, 250, 252, 0.98), rgba(228, 236, 246, 0.98));
  color: #101828;
  padding: 6px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  box-shadow: 0 8px 16px rgba(4, 8, 18, 0.2);
}

.catala-card-face.marked {
  border-color: rgba(99, 179, 255, 0.75);
  box-shadow:
    0 0 0 2px rgba(74, 139, 255, 0.24) inset,
    0 12px 22px rgba(21, 63, 164, 0.28);
}

.catala-card-face.red {
  color: #b42318;
}

.catala-card-corner {
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.catala-card-suit {
  font-size: 22px;
  line-height: 1;
  justify-self: center;
}

.catala-card-corner.bottom {
  justify-self: end;
  transform: rotate(180deg);
}

.catala-poker-progress {
  font-size: 12px;
  color: #d8e7ff;
}

.catala-poker-rerolls {
  display: grid;
  gap: 6px;
}

.catala-poker-reroll-row {
  border-radius: 10px;
  border: 1px solid rgba(149, 180, 233, 0.14);
  background: rgba(8, 18, 38, 0.38);
  padding: 6px 8px;
  display: grid;
  gap: 2px;
}

.catala-poker-reroll-row .head {
  color: #e7f0ff;
  font-size: 12px;
  font-weight: 700;
}

.catala-poker-reroll-row .meta {
  color: #9fb4dc;
  font-size: 11px;
  line-height: 1.2;
}

.catala-poker-results {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}

.catala-poker-result-row {
  border-radius: 10px;
  border: 1px solid rgba(149, 180, 233, 0.16);
  background: rgba(8, 18, 38, 0.42);
  padding: 7px 9px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.catala-poker-result-row .meta {
  grid-column: 1 / -1;
  color: #9fb4dc;
  font-size: 11px;
  line-height: 1.2;
}

.catala-poker-result-row .idx {
  color: #bcd0f4;
  font-weight: 700;
}

.catala-poker-result-row .hand {
  color: #edf4ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catala-poker-result-row .reward {
  color: #9cf0b8;
  font-weight: 700;
}

.catala-poker-result-row .reward.empty {
  color: #9ab0d7;
  font-weight: 600;
}

.catala-card-results .hand {
  white-space: normal;
}

.catala-status-line {
  margin-top: 2px;
}

.catala-stats-modal-dialog {
  max-width: min(920px, calc(100vw - 18px));
}

.catala-stats-modal-body {
  display: grid;
  gap: 12px;
}

.catala-stats-sections {
  display: grid;
  gap: 12px;
}

.catala-stats-section {
  border-radius: 18px;
  border: 1px solid rgba(149, 180, 233, 0.16);
  background:
    linear-gradient(180deg, rgba(13, 23, 46, 0.9), rgba(8, 14, 28, 0.92)),
    rgba(8, 18, 38, 0.36);
  padding: 12px;
  display: grid;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.catala-stats-section.kind-poker {
  border-color: rgba(116, 171, 255, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(67, 97, 238, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(13, 23, 46, 0.9), rgba(8, 14, 28, 0.92));
}

.catala-stats-section.kind-card {
  border-color: rgba(244, 186, 84, 0.18);
  background:
    radial-gradient(circle at 0% 0%, rgba(214, 153, 56, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(17, 22, 38, 0.9), rgba(9, 13, 24, 0.92));
}

.catala-stats-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.catala-stats-section-head-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.catala-stats-section-head h3 {
  margin: 0;
  font-size: 15px;
  color: #eaf3ff;
  font-weight: 800;
}

.catala-stats-section-sub {
  color: #aec3e6;
  font-size: 12px;
  line-height: 1.35;
}

.catala-stats-feed {
  margin-top: 0;
  display: grid;
  gap: 8px;
}

.catala-stats-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.catala-stats-summary-card {
  border-radius: 14px;
  border: 1px solid rgba(149, 180, 233, 0.14);
  background: rgba(9, 16, 31, 0.66);
  padding: 10px;
  display: grid;
  gap: 5px;
}

.catala-stats-summary-card.wide {
  grid-column: 1 / -1;
}

.catala-stats-summary-card span {
  color: #aac0e4;
  font-size: 11px;
  line-height: 1.2;
}

.catala-stats-summary-card strong {
  color: #f1f6ff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}

.catala-stats-summary-card small {
  color: #94a9cc;
  font-size: 11px;
  line-height: 1.25;
}

.catala-stats-summary-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.catala-stats-summary-card.rewards,
.catala-stats-summary-card.insights {
  gap: 8px;
}

.catala-stats-game-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.catala-stats-game-row {
  border-radius: 14px;
  border: 1px solid rgba(149, 180, 233, 0.14);
  background: rgba(8, 18, 38, 0.44);
  padding: 9px 10px;
  display: grid;
  gap: 8px;
}

.catala-stats-game-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.catala-stats-game-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.catala-stats-game-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(32, 51, 93, 0.68);
  border: 1px solid rgba(149, 180, 233, 0.14);
  color: #cbdcf7;
  font-size: 10px;
  font-weight: 800;
}

.catala-stats-game-title {
  color: #edf4ff;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 780;
  min-width: 0;
}

.catala-stats-game-meta {
  color: #9fb4dc;
  text-align: right;
  font-size: 11px;
  white-space: nowrap;
}

.catala-stats-game-cards {
  color: #dfe9fb;
  font-size: 12px;
  line-height: 1.35;
  word-break: break-word;
}

.catala-stats-game-arrow {
  color: #80a6f6;
  padding: 0 3px;
}

.catala-stats-game-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.catala-stats-game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.catala-stats-game-rewards {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.catala-stats-reward-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.catala-stats-reward-strip.compact {
  gap: 5px;
  justify-content: flex-end;
}

.catala-stats-reward-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(111, 196, 138, 0.18);
  background: rgba(17, 53, 35, 0.34);
  color: #e5fff0;
  padding: 4px 9px;
}

.catala-stats-reward-pill.compact {
  min-height: 24px;
  padding: 3px 8px;
  gap: 5px;
}

.catala-stats-reward-pill strong {
  color: #f1fff6;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.catala-stats-reward-pill span {
  color: #d0eadb;
  font-size: 11px;
  line-height: 1;
}

.catala-stats-reward-icon .cabinet-currency-icon-wrap,
.catala-stats-reward-icon .cabinet-currency-icon-img {
  width: 14px;
  height: 14px;
}

.catala-stats-reward-icon .cabinet-currency-icon-text {
  font-size: 12px;
}

.catala-stats-reward-empty {
  color: #8fa6cb;
  font-size: 11px;
  line-height: 1.2;
}

.catala-stats-reward-empty.compact {
  text-align: right;
}

.catala-stats-info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.catala-stats-mini-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  border-radius: 999px;
  padding: 0 7px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid rgba(149, 180, 233, 0.2);
  background: rgba(20, 35, 68, 0.55);
  color: #dfeaff;
}

.catala-stats-info-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  border: 1px solid rgba(149, 180, 233, 0.18);
  background: rgba(17, 28, 56, 0.68);
  color: #deebff;
}

.catala-stats-info-pill.poker {
  border-color: rgba(116, 171, 255, 0.24);
  background: rgba(17, 37, 77, 0.62);
}

.catala-stats-info-pill.cards {
  border-color: rgba(244, 186, 84, 0.2);
  background: rgba(60, 43, 15, 0.54);
}

.catala-stats-info-pill span {
  font-size: 11px;
  line-height: 1;
}

.catala-stats-info-pill strong {
  font-size: 11px;
  line-height: 1;
  color: #fff4cf;
}

.catala-stats-mini-chip.jackpot {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(87, 56, 8, 0.45);
  color: #ffe7a9;
}

.catala-bags-layout {
  display: grid;
  gap: 10px;
}

.catala-bags-overview-card {
  gap: 12px;
}

.catala-bags-head {
  align-items: center;
}

.catala-bags-meta {
  margin-top: 4px;
  color: #a8bedf;
  font-size: 12px;
  line-height: 1.35;
}

.catala-bags-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.catala-bags-royal {
  border-radius: 14px;
  border: 1px solid rgba(250, 204, 21, 0.18);
  background:
    radial-gradient(circle at 0% 0%, rgba(245, 158, 11, 0.14), transparent 38%),
    linear-gradient(160deg, rgba(35, 26, 8, 0.72), rgba(22, 18, 9, 0.78));
  padding: 10px;
}

.catala-bags-royal-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catala-bags-royal-head.centered {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.catala-bags-royal-avatar {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255, 227, 146, 0.3);
  background: rgba(14, 12, 8, 0.8);
}

.catala-bags-royal-copy {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.catala-bags-royal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(253, 224, 71, 0.28);
  color: #ffe9a9;
  background: rgba(74, 51, 8, 0.5);
  font-size: 11px;
  font-weight: 700;
}

.catala-bags-royal-title {
  color: #eef4ff;
  font-weight: 800;
  line-height: 1.2;
}

.catala-bags-royal-meta {
  color: #dcc58f;
  font-size: 12px;
  line-height: 1.3;
}

.catala-bags-last-card {
  display: grid;
  gap: 8px;
}

.catala-bags-last-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.catala-bags-last-open {
  display: grid;
  gap: 8px;
}

.catala-bags-drop {
  display: grid;
  gap: 10px;
  border-radius: 14px;
  border: 1px solid rgba(149, 180, 233, 0.2);
  background: rgba(7, 15, 31, 0.56);
  padding: 10px;
}

.catala-bags-drop-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catala-bags-drop-cover {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(17, 30, 58, 0.8);
  border: 1px solid rgba(149, 180, 233, 0.24);
  flex-shrink: 0;
}

.catala-bags-drop-title {
  color: #eef5ff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.catala-bags-drop-sub {
  color: #a8c0e6;
  font-size: 12px;
  line-height: 1.3;
}

.catala-bags-drop-meta {
  color: #bfd1f3;
  font-size: 12px;
  line-height: 1.35;
}

.catala-bags-drop-rewards {
  display: grid;
  gap: 6px;
}

.catala-bags-list {
  display: grid;
  gap: 10px;
}

.catala-bag-card {
  border-radius: 16px;
  border: 1px solid rgba(149, 180, 233, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 199, 80, 0.12), transparent 34%),
    linear-gradient(160deg, rgba(15, 28, 57, 0.92), rgba(9, 18, 39, 0.92));
  padding: 12px;
  display: grid;
  gap: 10px;
}

.catala-bag-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catala-bag-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 220, 150, 0.24);
  background: rgba(18, 29, 56, 0.84);
  flex-shrink: 0;
}

.catala-bag-card-kicker {
  color: #f6d27a;
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.catala-bag-card-title {
  color: #eef5ff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.catala-bag-card-cost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(244, 114, 182, 0.2);
  background: rgba(55, 21, 56, 0.5);
  color: #ffd2ea;
  font-size: 12px;
  font-weight: 700;
}

.catala-bag-card-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid rgba(149, 180, 233, 0.14);
  background: rgba(8, 18, 38, 0.45);
  padding: 8px 10px;
  color: #bfd2f2;
  font-size: 12px;
  line-height: 1.2;
}

.catala-bag-card-progress strong {
  color: #eef5ff;
  font-size: 15px;
}

.catala-bag-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.catala-bag-card-balance {
  color: #a8bedf;
  font-size: 12px;
  line-height: 1.3;
}

.catala-bag-card-balance strong {
  color: #eef5ff;
  font-size: 15px;
}

.catala-bags-reward-modal-dialog {
  max-width: min(760px, calc(100vw - 18px));
}

.catala-bags-reward-modal-body {
  display: grid;
  gap: 12px;
}

.catala-bags-reward-hero {
  display: grid;
  gap: 12px;
  border-radius: 16px;
  border: 1px solid rgba(149, 180, 233, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 199, 80, 0.16), transparent 38%),
    linear-gradient(160deg, rgba(18, 29, 58, 0.92), rgba(10, 18, 39, 0.95));
  padding: 12px;
}

.catala-bags-reward-tattoo {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.catala-bags-reward-tattoo-cover {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(149, 180, 233, 0.26);
  background: rgba(10, 18, 36, 0.9);
}

.catala-bags-reward-tattoo-title {
  color: #eef5ff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.catala-bags-reward-tattoo-sub {
  color: #a5bddf;
  font-size: 12px;
  line-height: 1.35;
}

.catala-bags-reward-set {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: rgba(24, 44, 83, 0.55);
  color: #dceaff;
  font-size: 12px;
  font-weight: 700;
}

.catala-bags-reward-grid {
  display: grid;
  gap: 8px;
}

.catala-bags-reward-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid rgba(149, 180, 233, 0.16);
  background: rgba(8, 18, 38, 0.42);
  padding: 8px 10px;
}

.catala-bags-reward-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.catala-bags-reward-main .cabinet-currency-icon-wrap,
.catala-bags-reward-main .cabinet-currency-icon-img {
  width: 16px;
  height: 16px;
}

.catala-bags-reward-main span:last-child {
  color: #e7f0ff;
  font-size: 13px;
  line-height: 1.25;
}

.catala-bags-reward-row strong {
  color: #8df4b0;
  font-size: 13px;
}

.catala-bags-reward-summary {
  color: #a6bce0;
  font-size: 12px;
  line-height: 1.35;
}

.boss-catalog-grid {
  display: block;
}

.boss-catalog-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.boss-catalog-column {
  border: 1px solid rgba(76, 124, 255, 0.2);
  border-radius: 14px;
  background: rgba(9, 18, 38, 0.58);
  overflow: hidden;
}

.boss-catalog-column.active {
  border-color: rgba(76, 124, 255, 0.42);
  box-shadow: 0 10px 26px rgba(38, 96, 199, 0.12);
}

.boss-catalog-column-head {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #d9e7ff;
  background: linear-gradient(180deg, rgba(63, 74, 155, 0.45), rgba(42, 34, 97, 0.32));
  border-bottom: 1px solid rgba(149, 180, 233, 0.14);
}

.boss-catalog-column-head-switch {
  display: flex;
  gap: 6px;
  padding: 6px 8px;
}

.boss-catalog-switch-tab {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 10px;
  background: rgba(10, 20, 44, 0.44);
  color: #c7d8f8;
  font-size: 11px;
  font-weight: 760;
  padding: 7px 10px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.boss-catalog-switch-tab:hover {
  border-color: rgba(149, 180, 233, 0.32);
  color: #eaf2ff;
}

.boss-catalog-switch-tab.active {
  border-color: rgba(103, 155, 255, 0.42);
  background: rgba(37, 68, 132, 0.42);
  color: #eef5ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.boss-catalog-column-list {
  display: grid;
  gap: 5px;
  padding: 7px;
  max-height: 520px;
  overflow-y: auto;
}

.app-page[data-page="bosses"] .seg-section[data-seg-section="bossesMode-bosses"].active {
  min-height: calc(100svh - 270px);
}

.app-page[data-page="bosses"] .seg-section[data-seg-section="bossesMode-bosses"].active > .panel-card {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 270px);
}

.app-page[data-page="bosses"] .seg-section[data-seg-section="bossesMode-bosses"].active #boss-catalog-grid {
  flex: 1;
  min-height: 0;
}

.app-page[data-page="bosses"] .seg-section[data-seg-section="bossesMode-bosses"].active .boss-catalog-board {
  height: 100%;
  min-height: 0;
}

.app-page[data-page="bosses"] .seg-section[data-seg-section="bossesMode-bosses"].active .boss-catalog-column {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.app-page[data-page="bosses"] .seg-section[data-seg-section="bossesMode-bosses"].active .boss-catalog-column-list {
  max-height: none;
  flex: 1;
  min-height: 0;
}

.boss-catalog-card {
  border: 1px solid rgba(149, 180, 233, 0.22);
  border-radius: 12px;
  background: rgba(10, 20, 42, 0.78);
  padding: 10px;
  display: grid;
  gap: 6px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.boss-catalog-card.compact {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 4px;
  padding: 6px 9px;
  border-radius: 11px;
  background: rgba(18, 30, 62, 0.74);
}

.boss-catalog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
}

.boss-catalog-card:hover {
  transform: translateY(-1px);
  border-color: rgba(116, 171, 255, 0.42);
}

.boss-catalog-card.active {
  border-color: rgba(116, 171, 255, 0.62);
  box-shadow: 0 10px 20px rgba(38, 96, 199, 0.18);
  background: linear-gradient(160deg, rgba(31, 53, 102, 0.88), rgba(10, 20, 42, 0.88));
}

.boss-catalog-title {
  font-size: 13px;
  font-weight: 740;
  color: #edf4ff;
  line-height: 1.05;
  min-width: 0;
}

.boss-catalog-substats {
  grid-column: 1 / -1;
  font-size: 10px;
  line-height: 1.25;
  color: #9fb8e6;
  letter-spacing: 0.1px;
}

.boss-catalog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.boss-catalog-meta.top {
  align-items: center;
  gap: 3px;
}

.boss-catalog-meta.combo-row {
  justify-content: flex-start;
  gap: 3px;
}

.boss-catalog-meta > span {
  font-size: 10px;
  color: #bfd2f5;
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 999px;
  padding: 1px 5px;
  background: rgba(255, 255, 255, 0.02);
}

.boss-catalog-meta .boss-usage-badge {
  color: #b4ffe1;
  border-color: rgba(47, 181, 119, 0.35);
  background: rgba(24, 92, 61, 0.22);
  font-weight: 700;
}

.boss-catalog-meta .boss-usage-badge.neutral {
  color: #bfd2f5;
  border-color: rgba(149, 180, 233, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.boss-catalog-meta .boss-usage-badge.limit {
  color: #ffd6dd;
  border-color: rgba(239, 93, 114, 0.38);
  background: rgba(96, 26, 43, 0.22);
}

.boss-catalog-meta .boss-usage-badge.queue {
  color: #e2d4ff;
  border-color: rgba(171, 125, 255, 0.34);
  background: rgba(89, 45, 156, 0.2);
  font-weight: 700;
}

.boss-catalog-meta .boss-usage-badge.combo-cache {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #d9e8ff;
  border-color: rgba(120, 164, 229, 0.26);
  background: rgba(21, 41, 76, 0.28);
  font-weight: 700;
  padding-inline: 5px 7px;
  min-height: 0;
}

.boss-catalog-meta .boss-combo-cache-token {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
}

.boss-catalog-meta .boss-combo-cache-mark {
  font-size: 10px;
  font-weight: 800;
}

.boss-catalog-meta .boss-combo-cache-mark.ok {
  color: #72e3a9;
}

.boss-catalog-meta .boss-combo-cache-mark.miss {
  color: #ff8ea0;
}

.boss-catalog-meta.combo-row .boss-usage-badge.combo-cache {
  justify-content: flex-start;
}

.boss-catalog-meta .boss-usage-badge.keys {
  color: #ffe8b3;
  border-color: rgba(247, 188, 82, 0.28);
  background: rgba(90, 61, 16, 0.2);
  font-weight: 700;
}

.boss-catalog-meta .boss-usage-badge.keys.neutral {
  color: #bfd2f5;
  border-color: rgba(149, 180, 233, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.boss-catalog-card.in-queue {
  border-color: rgba(171, 125, 255, 0.28);
}

.boss-catalog-card.locked {
  border-color: rgba(239, 93, 114, 0.26);
  background:
    linear-gradient(160deg, rgba(48, 20, 34, 0.36), rgba(18, 30, 62, 0.72));
}

.boss-catalog-card.locked:hover {
  border-color: rgba(239, 93, 114, 0.34);
  transform: translateY(0);
}

.boss-catalog-card.locked.active {
  border-color: rgba(239, 93, 114, 0.42);
  box-shadow: 0 8px 18px rgba(96, 26, 43, 0.2);
  background:
    linear-gradient(160deg, rgba(63, 24, 42, 0.42), rgba(18, 30, 62, 0.78));
}

.boss-catalog-card.locked .boss-catalog-title {
  color: #d4deef;
  text-decoration-line: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(255, 130, 154, 0.7);
}

.boss-catalog-meta .boss-usage-badge.locked {
  color: #ffd8df;
  border-color: rgba(239, 93, 114, 0.38);
  background: rgba(96, 26, 43, 0.22);
  font-weight: 800;
}

.boss-catalog-empty {
  grid-column: 1 / -1;
  border: 1px dashed rgba(149, 180, 233, 0.24);
  border-radius: 12px;
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
}

.boss-catalog-empty.small {
  grid-column: auto;
  border-style: solid;
  border-color: rgba(149, 180, 233, 0.12);
  background: rgba(8, 18, 38, 0.34);
  font-size: 11px;
  padding: 8px;
}

html.has-boss-modal,
body.has-boss-modal {
  overflow: hidden;
}

body.has-boss-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  top: var(--modal-lock-top, 0px);
}

.boss-config-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  overscroll-behavior: contain;
}

.boss-config-modal.open {
  display: block;
}

.boss-config-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.74);
  backdrop-filter: blur(6px);
  touch-action: none;
}

.boss-config-modal-dialog {
  position: absolute;
  left: 50%;
  top: calc(50% + (env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) / 2);
  transform: translate(-50%, -50%);
  width: min(760px, calc(100vw - 20px));
  max-height: calc(100vh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border-radius: 16px;
  border: 1px solid rgba(86, 130, 255, 0.34);
  background:
    radial-gradient(circle at 100% 0%, rgba(76, 132, 255, 0.14), transparent 44%),
    linear-gradient(180deg, rgba(16, 26, 50, 0.98), rgba(9, 16, 33, 0.98));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.boss-config-modal-dialog-boss {
  width: min(900px, calc(100vw - 16px));
  max-height: min(calc(100vh - 14px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)), 900px);
  max-height: min(calc(100dvh - 14px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)), 900px);
  border-radius: 18px;
  padding: 0;
  gap: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.boss-config-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.boss-config-modal-dialog-boss .boss-config-modal-head {
  align-items: center;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(149, 180, 233, 0.18);
  background:
    radial-gradient(130% 120% at 100% 0%, rgba(72, 116, 205, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(19, 30, 57, 0.94), rgba(15, 25, 47, 0.9));
}

.boss-config-modal-title {
  color: #edf4ff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
}

.boss-config-modal-sub {
  margin-top: 3px;
  color: #b8caec;
  font-size: 12px;
  line-height: 1.25;
}

.boss-config-modal-dialog-boss .boss-config-modal-sub {
  margin-top: 4px;
  color: #c3d5f8;
}

.boss-modal-head-close {
  min-width: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
}

.boss-config-modal-body-boss {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 10px 14px 14px;
  display: grid;
  gap: 10px;
}

.boss-modal-section {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(139, 175, 236, 0.2);
  border-radius: 14px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(14, 26, 51, 0.76), rgba(9, 18, 36, 0.72));
}

.boss-modal-section-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #e8f1ff;
}

.boss-modal-form-grid {
  margin-top: 2px;
  gap: 8px;
}

.boss-modal-form-grid > label,
.boss-key-bonus-grid > label {
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 11px;
  background: rgba(7, 14, 30, 0.5);
  padding: 8px;
}

.boss-modal-form-grid > label > span,
.boss-key-bonus-grid > label > span {
  color: #c7dafd;
  font-size: 11px;
  letter-spacing: 0.01em;
}

.boss-modal-form-grid input,
.boss-modal-form-grid select,
.boss-key-bonus-grid input,
.boss-key-bonus-grid select {
  min-height: 34px;
}

.boss-modal-section .check {
  border-style: solid;
  border-color: rgba(149, 180, 233, 0.2);
  border-radius: 10px;
  padding: 8px 9px;
  background: rgba(7, 14, 30, 0.38);
}

.boss-key-bonus-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(236, 196, 84, 0.4);
  border-radius: 14px;
  padding: 10px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(247, 209, 86, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(39, 32, 13, 0.74), rgba(24, 21, 10, 0.6));
}

.boss-key-bonus-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  line-height: 1.2;
}

.boss-key-bonus-head strong {
  color: #f6e8bf;
  font-size: 13px;
  font-weight: 800;
}

.boss-key-bonus-head small {
  color: #d7cfae;
  font-size: 11px;
}

.boss-key-bonus-grid {
  margin: 0;
}

.boss-key-bonus-grid label {
  margin: 0;
}

.boss-key-bonus-thresholds {
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
}

.boss-mode-progress-hint {
  display: grid;
  margin-top: 5px;
  color: #9eb8df;
  font-size: 11px;
  line-height: 1.25;
  gap: 4px;
}

.boss-mode-progress-hint.empty {
  color: #b8caec;
}

.boss-mode-progress-line {
  display: block;
}

.boss-mode-bonus-groups {
  display: grid;
  gap: 4px;
}

.boss-mode-bonus-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.boss-mode-bonus-group-label {
  min-height: 16px;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(120, 148, 197, 0.26);
  background: rgba(12, 22, 40, 0.55);
  color: #dbe7fb;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.boss-mode-bonus-group[data-kind="tattoo"] .boss-mode-bonus-group-label {
  border-color: rgba(167, 139, 250, 0.32);
  background: rgba(49, 31, 95, 0.4);
  color: #e9deff;
}

.boss-mode-bonus-group[data-kind="clothing"] .boss-mode-bonus-group-label {
  border-color: rgba(96, 165, 250, 0.32);
  background: rgba(21, 48, 86, 0.42);
  color: #d8ebff;
}

.boss-mode-bonus-chip-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.boss-mode-bonus-chip {
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px 0 5px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: rgba(10, 18, 34, 0.5);
  color: #deebff;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  max-width: min(100%, 210px);
}

.boss-mode-bonus-chip img {
  width: 12px;
  height: 12px;
  object-fit: contain;
  display: block;
}

.boss-mode-bonus-chip-icon {
  font-size: 11px;
  line-height: 1;
}

.boss-mode-bonus-chip span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-config-modal-dialog-boss textarea {
  min-height: 124px;
  max-height: min(42vh, 320px);
}

.boss-config-modal-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.boss-config-modal-dialog-boss .boss-config-modal-actions {
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(149, 180, 233, 0.16);
  background:
    linear-gradient(180deg, rgba(14, 23, 44, 0.92), rgba(11, 19, 38, 0.98));
}

.wheel-stats-modal-dialog {
  width: min(980px, calc(100vw - 20px));
}

.wheel-compact-modal-dialog {
  width: min(760px, calc(100vw - 20px));
}

.wheel-compact-modal-body {
  display: grid;
  gap: 10px;
}

.wheel-chest-mini-grid {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .fortune-kpi-grid-wheel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fortune-wheel-bag-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wheel-seg-btn {
    justify-content: space-between;
  }

  .fortune-live-strip,
  .fortune-wheel-bags-grid,
  .fortune-kpi-grid-wheel {
    grid-template-columns: 1fr;
  }
}

.wheel-stats-modal-body {
  display: grid;
  gap: 12px;
}

.wheel-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wheel-stats-tile {
  border: 1px solid rgba(149, 180, 233, 0.16);
  border-radius: 12px;
  background: rgba(8, 18, 38, 0.56);
  padding: 10px;
  display: grid;
  gap: 4px;
}

.wheel-stats-tile.wide {
  grid-column: 1 / -1;
}

.wheel-stats-tile span {
  color: #a9bedf;
  font-size: 12px;
}

.wheel-stats-tile strong {
  color: #eef4ff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}

.wheel-stats-tile small {
  color: #b8caec;
  font-size: 11px;
  line-height: 1.25;
}

.wheel-stats-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wheel-stats-col {
  border: 1px solid rgba(149, 180, 233, 0.14);
  border-radius: 12px;
  background: rgba(8, 18, 38, 0.48);
  padding: 10px;
  display: grid;
  gap: 7px;
}

.wheel-stats-col.super {
  border-color: rgba(255, 95, 171, 0.22);
  background: rgba(28, 15, 34, 0.44);
}

.wheel-stats-col-title {
  color: #e9f1ff;
  font-size: 13px;
  font-weight: 800;
}

.wheel-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 9px;
  border: 1px solid rgba(149, 180, 233, 0.1);
  background: rgba(255, 255, 255, 0.02);
  padding: 6px 8px;
  font-size: 12px;
}

.wheel-stats-row span {
  color: #cfe0ff;
}

.wheel-stats-row strong {
  color: #eafff3;
  font-weight: 800;
  white-space: nowrap;
}

.wheel-stats-feed {
  border: 1px solid rgba(149, 180, 233, 0.14);
  border-radius: 12px;
  background: rgba(8, 18, 38, 0.46);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.wheel-stats-feed-row {
  border-radius: 10px;
  border: 1px solid rgba(149, 180, 233, 0.12);
  background: rgba(255, 255, 255, 0.02);
  padding: 7px 8px;
  display: grid;
  gap: 3px;
}

.wheel-stats-feed-row.super {
  border-color: rgba(255, 95, 171, 0.22);
  background: rgba(255, 95, 171, 0.04);
}

.wheel-stats-feed-row .top,
.wheel-stats-feed-row .main {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.wheel-stats-feed-row .top {
  color: #a9bedf;
  font-size: 11px;
}

.wheel-stats-feed-row .main {
  color: #edf4ff;
  font-size: 12px;
}

.wheel-stats-feed-row .main strong {
  color: #9cf0b8;
  font-weight: 800;
  white-space: nowrap;
}

.boss-active-card {
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 14px;
  padding: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(79, 70, 229, 0.12), transparent 52%),
    linear-gradient(180deg, rgba(18, 29, 56, 0.92), rgba(13, 24, 47, 0.92));
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
}

.boss-active-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.boss-active-head-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.boss-active-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.boss-active-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f75;
  box-shadow: 0 0 0 4px rgba(255, 95, 117, 0.14);
}

.boss-active-status-label {
  font-size: 13px;
  font-weight: 760;
  color: #f1f6ff;
}

.boss-active-head-side {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.boss-active-head-timer {
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  color: #fef08a;
  letter-spacing: 0.02em;
}

.boss-active-refresh-cd {
  font-size: 11px;
  font-weight: 650;
  color: #9cb4de;
}

.boss-active-title {
  font-size: 18px;
  font-weight: 800;
  color: #edf4ff;
  line-height: 1.12;
}

.boss-active-sub {
  margin-top: 2px;
  color: #b9cdef;
  font-size: 12px;
  line-height: 1.3;
}

.boss-active-feedback {
  border: 1px solid rgba(149, 180, 233, 0.2);
  border-radius: 10px;
  padding: 7px 9px;
  font-size: 12px;
  line-height: 1.3;
  color: #d8e8ff;
  background: rgba(10, 24, 48, 0.6);
}

.boss-active-feedback.ok {
  border-color: rgba(52, 211, 153, 0.26);
  background: rgba(12, 48, 43, 0.52);
  color: #96f3cf;
}

.boss-active-feedback.warn {
  border-color: rgba(251, 113, 133, 0.3);
  background: rgba(58, 20, 31, 0.58);
  color: #ffc5d0;
}

.boss-active-hp-line {
  color: #e1edff;
  font-size: 12px;
  font-weight: 640;
}

.boss-active-hp-bar {
  position: relative;
  height: 11px;
  border-radius: 999px;
  background: rgba(10, 22, 42, 0.78);
  border: 1px solid rgba(149, 180, 233, 0.2);
  overflow: hidden;
}

.boss-active-hp-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #23c97c, #55e7ad);
  transition: width 260ms ease;
}

.boss-active-hp-bar.warn .boss-active-hp-fill {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.boss-active-hp-bar.danger .boss-active-hp-fill {
  background: linear-gradient(90deg, #ef4444, #fb7185);
}

.boss-active-hp-bar.indeterminate .boss-active-hp-fill {
  animation: boss-active-indeterminate 1.25s ease-in-out infinite;
  width: 28%;
  background: linear-gradient(90deg, #4d82ec, #81bcff);
}

.boss-active-time-line {
  color: #d4e4ff;
  font-size: 12px;
  font-weight: 640;
}

.boss-active-time-bar {
  position: relative;
  height: 11px;
  border-radius: 999px;
  background: rgba(13, 29, 58, 0.72);
  border: 1px solid rgba(96, 165, 250, 0.28);
  overflow: hidden;
}

.boss-active-time-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  transform: translateX(0);
  background: linear-gradient(90deg, #3b82f6, #38bdf8);
  transition: width 260ms linear;
}

.boss-active-time-bar.warn .boss-active-time-fill {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.boss-active-time-bar.danger .boss-active-time-fill {
  background: linear-gradient(90deg, #ef4444, #fb7185);
}

.boss-active-time-bar.blue-fixed .boss-active-time-fill {
  background: linear-gradient(90deg, #3b82f6, #38bdf8) !important;
}

.boss-active-time-bar.indeterminate .boss-active-time-fill {
  animation: boss-active-indeterminate 1.25s ease-in-out infinite;
  width: 28%;
  background: linear-gradient(90deg, #3b82f6, #38bdf8);
}

.boss-active-needle-card {
  margin-top: 2px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.26);
  background: rgba(14, 31, 61, 0.72);
  padding: 9px 10px;
}

.boss-active-weapon-card {
  border-color: rgba(129, 140, 248, 0.28);
  background: rgba(19, 30, 64, 0.74);
}

.boss-active-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.boss-active-actions .btn {
  width: 100%;
  min-height: 40px;
}

.boss-active-action-btn {
  border-radius: 18px;
  border-width: 2px;
  border-style: solid;
  font-weight: 820;
  font-size: 13px;
  letter-spacing: 0;
  gap: 7px;
  padding: 6px 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 22px rgba(4, 12, 30, 0.34);
}

#btn-boss-active-weapon-open {
  border-color: rgba(82, 166, 255, 0.62);
  background: linear-gradient(180deg, #2f6bd8 0%, #255cc4 100%);
}

.boss-active-buff-btn {
  color: #f4efff;
  border-color: rgba(153, 125, 255, 0.62);
  background: linear-gradient(180deg, #6d4fd5 0%, #5f42c3 100%);
}

#btn-boss-skip-current {
  border-color: rgba(255, 192, 84, 0.68);
  background: linear-gradient(180deg, #ef960f 0%, #e17f03 100%);
}

.boss-active-buff-btn:hover:not(:disabled) {
  box-shadow: 0 10px 24px rgba(104, 89, 233, 0.28);
}

#btn-boss-active-weapon-open::before,
#btn-boss-active-buff-open::before,
#btn-boss-skip-current::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

#btn-boss-active-weapon-open::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19l6.5-6.5'/%3E%3Cpath d='M13.3 10.7l5.7-5.7 1.9 1.9-5.7 5.7'/%3E%3Cpath d='M10.6 13.4l-2.9-2.9'/%3E%3Cpath d='M4 20l2.3-.7.7-2.3'/%3E%3C/svg%3E");
}

#btn-boss-active-buff-open::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3.2v5.8c0 4.4-2.9 7.4-7 9-4.1-1.6-7-4.6-7-9V6.2L12 3z'/%3E%3Cpath d='M12 7v9'/%3E%3C/svg%3E");
}

#btn-boss-skip-current::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3s-5 5.1-5 9a5 5 0 0 0 10 0c0-3.9-5-9-5-9z'/%3E%3Cpath d='M10.2 13.7a2.5 2.5 0 0 0 3.6 0'/%3E%3C/svg%3E");
}

.boss-active-stats-block {
  border: 1px solid rgba(149, 180, 233, 0.14);
  border-radius: 12px;
  padding: 8px;
  background: rgba(9, 19, 40, 0.44);
  display: grid;
  gap: 8px;
}

.boss-active-stats-head {
  margin: 0;
  color: #d5e4ff;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.boss-active-stats-head.with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.boss-active-my-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.boss-active-my-item {
  border: 1px solid rgba(149, 180, 233, 0.14);
  border-radius: 10px;
  padding: 7px 8px;
  background: rgba(8, 16, 34, 0.56);
  display: grid;
  gap: 3px;
}

.boss-active-my-item > span {
  color: #9db6dd;
  font-size: 11px;
}

.boss-active-my-item > strong {
  color: #eff6ff;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 800;
}

.boss-active-top5-list,
.boss-active-future-queue-list {
  display: grid;
  gap: 6px;
}

.boss-active-top-row {
  display: grid;
  grid-template-columns: 28px 36px 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(149, 180, 233, 0.14);
  border-radius: 10px;
  padding: 6px 8px;
  background: rgba(8, 16, 34, 0.56);
}

.boss-active-top-row.mine {
  border-color: rgba(52, 211, 153, 0.34);
  background: rgba(12, 40, 36, 0.48);
}

.boss-active-top-rank {
  color: #b9cdef;
  font-size: 13px;
  font-weight: 750;
}

.boss-active-top-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(149, 180, 233, 0.22);
  background: rgba(12, 24, 46, 0.7);
  display: grid;
  place-items: center;
}

.boss-active-top-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.boss-active-top-avatar-fallback {
  color: #9bb5dc;
  font-size: 14px;
  font-weight: 760;
}

.boss-active-top-name {
  min-width: 0;
  color: #e5efff;
  font-size: 13px;
  font-weight: 680;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-active-top-damage {
  color: #f6e27e;
  font-size: 18px;
  line-height: 1;
  font-weight: 820;
  white-space: nowrap;
}

.boss-active-queue-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  align-items: center;
}

.boss-active-queue-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.boss-active-queue-main {
  border: 1px solid rgba(149, 180, 233, 0.14);
  border-radius: 10px;
  padding: 6px 8px;
  background: rgba(8, 16, 34, 0.5);
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
  text-align: left;
  width: 100%;
  min-width: 0;
  color: inherit;
}

.boss-active-queue-main:hover {
  border-color: rgba(96, 165, 250, 0.34);
}

.boss-active-queue-main:disabled {
  opacity: 0.62;
  cursor: default;
}

.boss-active-queue-remove {
  width: 24px;
  height: 24px;
  font-size: 16px;
}

.boss-active-queue-pos {
  color: #aac2e7;
  font-size: 12px;
  font-weight: 740;
}

.boss-active-queue-name {
  min-width: 0;
  color: #dce9ff;
  font-size: 13px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-active-queue-meta {
  color: #a6bddf;
  font-size: 11px;
  text-align: right;
  white-space: nowrap;
}

.boss-weapon-modal-dialog {
  max-width: 520px;
}

.boss-weapon-pick-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.boss-weapon-pick {
  border: 1px solid rgba(149, 180, 233, 0.2);
  border-radius: 11px;
  padding: 8px 10px;
  background: rgba(9, 20, 43, 0.66);
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: center;
  color: #dce9ff;
  text-align: left;
}

.boss-free-hit-panel {
  display: grid;
  gap: 8px;
}

.boss-free-hit-panel-title {
  color: #c5d7f6;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.boss-free-hit-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.boss-weapon-pick-free {
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  min-height: 40px;
  padding: 5px 6px;
  border-radius: 10px;
  text-align: center;
}

.boss-weapon-pick-free .boss-weapon-pick-name {
  font-size: 11px;
}

.boss-weapon-pick-free .boss-weapon-pick-available {
  font-size: 10px;
  color: #b9cef0;
}

.boss-weapon-pick-free .boss-weapon-pick-available strong {
  color: #e9f3ff;
  font-weight: 760;
}

.boss-weapon-pick img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.boss-weapon-pick-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #e6f0ff;
  background: rgba(96, 165, 250, 0.22);
}

.boss-weapon-pick-icon-needle {
  background: linear-gradient(140deg, rgba(36, 184, 122, 0.34), rgba(59, 130, 246, 0.24));
}

.boss-weapon-pick:hover {
  border-color: rgba(96, 165, 250, 0.36);
}

.boss-weapon-pick.active {
  border-color: rgba(129, 140, 248, 0.48);
  background: rgba(31, 41, 87, 0.78);
}

.boss-weapon-pick-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.boss-weapon-pick-name {
  color: #edf4ff;
  font-size: 14px;
  font-weight: 760;
}

.boss-weapon-pick-available {
  color: #9eb8df;
  font-size: 12px;
}

.boss-weapon-count-field {
  display: grid;
  gap: 6px;
}

.boss-weapon-count-field > span {
  color: #c5d7f6;
  font-size: 12px;
  font-weight: 700;
}

.boss-weapon-count-field input {
  width: 100%;
}

.boss-weapon-modal-hidden {
  display: none;
}

.boss-weapon-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.boss-buff-modal-dialog {
  max-width: 780px;
}

.boss-buff-modal-body {
  min-height: min(62vh, 560px);
}

.boss-buff-topline {
  display: grid;
  gap: 10px;
}

.boss-buff-section {
  display: grid;
  gap: 10px;
}

.boss-buff-section-title {
  padding: 0 2px;
  color: #dce8ff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.boss-buff-list {
  display: grid;
  gap: 10px;
}

.boss-buff-card {
  border: 1px solid rgba(109, 136, 214, 0.24);
  border-radius: 16px;
  padding: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.13), transparent 42%),
    linear-gradient(180deg, rgba(18, 30, 61, 0.88), rgba(13, 22, 46, 0.86));
  display: grid;
  gap: 10px;
}

.boss-buff-card.is-active {
  border-color: rgba(114, 208, 149, 0.38);
  box-shadow: inset 0 0 0 1px rgba(70, 191, 121, 0.12);
}

.boss-buff-card.is-disabled {
  opacity: 0.74;
}

.boss-buff-card-head {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.boss-buff-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(170, 189, 237, 0.22);
  background: rgba(9, 18, 38, 0.7);
  display: grid;
  place-items: center;
  color: #f1f6ff;
  font-size: 22px;
  font-weight: 800;
}

.boss-buff-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.boss-buff-card-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.boss-buff-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.boss-buff-card-title {
  color: #f4f7ff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.boss-buff-card-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.boss-buff-card-desc {
  color: #d6e0f5;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-line;
}

.boss-buff-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.boss-buff-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.boss-buff-card-price {
  color: #bcd0f5;
  font-size: 12px;
  line-height: 1.35;
}

.boss-buff-card-price strong {
  color: #f2f7ff;
  font-size: 13px;
}

.boss-buff-card-actions .btn {
  min-width: 160px;
}

.boss-buff-modal-actions {
  display: grid;
  grid-template-columns: 1fr;
}

.boss-unlock-modal-dialog {
  max-width: 520px;
}

.boss-unlock-modal-body {
  display: grid;
  gap: 10px;
}

.boss-unlock-condition {
  border: 1px solid rgba(239, 93, 114, 0.18);
  border-radius: 12px;
  background: rgba(40, 15, 28, 0.35);
  color: #f1d6dd;
  padding: 10px;
  font-size: 13px;
  line-height: 1.3;
}

.boss-unlock-progress-list {
  display: grid;
  gap: 8px;
}

.boss-unlock-progress-empty {
  border: 1px dashed rgba(149, 180, 233, 0.2);
  border-radius: 11px;
  padding: 10px;
  font-size: 12px;
  color: #a9bedf;
  background: rgba(8, 18, 38, 0.34);
}

.boss-unlock-progress-item {
  border: 1px solid rgba(149, 180, 233, 0.14);
  border-radius: 11px;
  background: rgba(8, 18, 38, 0.46);
  padding: 8px 9px;
  display: grid;
  gap: 6px;
}

.boss-unlock-progress-item.done {
  border-color: rgba(47, 181, 119, 0.24);
  background: rgba(11, 34, 28, 0.42);
}

.boss-unlock-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.boss-unlock-progress-label {
  min-width: 0;
  color: #e6efff;
  font-size: 12px;
  font-weight: 760;
}

.boss-unlock-progress-value {
  color: #c9dbfb;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.boss-unlock-progress-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(149, 180, 233, 0.12);
  overflow: hidden;
}

.boss-unlock-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.95), rgba(251, 191, 36, 0.92));
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.18);
}

.boss-unlock-progress-fill.done {
  background: linear-gradient(90deg, rgba(40, 198, 122, 0.92), rgba(92, 235, 173, 0.9));
  box-shadow: 0 0 14px rgba(47, 181, 119, 0.2);
}

.boss-unlock-progress-sub {
  color: #a9bedf;
  font-size: 11px;
  line-height: 1.25;
}

.boss-weapon-modal-body {
  display: grid;
  gap: 10px;
}

.boss-active-needle-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.boss-active-needle-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d4e5ff;
}

.boss-active-needle-meta {
  min-width: 0;
  font-size: 12px;
  line-height: 1.25;
  color: #b5ccf3;
  word-break: break-word;
}

@media (max-width: 640px) {
  .boss-active-card {
    padding: 10px;
  }

  .boss-active-head-timer {
    font-size: 18px;
  }

  .boss-active-top-row {
    grid-template-columns: 24px 32px 1fr auto;
    gap: 7px;
  }

  .boss-active-top-avatar {
    width: 32px;
    height: 32px;
  }

  .boss-active-top-damage {
    font-size: 16px;
  }

  .boss-active-my-grid {
    grid-template-columns: 1fr;
  }

  .boss-active-actions .btn {
    width: 100%;
  }

  .boss-weapon-modal-actions {
    grid-template-columns: 1fr;
  }

  .boss-buff-topline {
    grid-template-columns: 1fr;
  }

  .boss-buff-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .boss-buff-card-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .boss-weapon-pick-list {
    grid-template-columns: 1fr;
  }

  .boss-free-hit-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@keyframes boss-active-indeterminate {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(360%); }
}

.cabinet-screen {
  display: grid;
  gap: 8px;
}

.cabinet-section-title {
  font-size: 13px;
  font-weight: 760;
  color: #eaf3ff;
  margin-bottom: 7px;
}

.cabinet-sub-card {
  position: relative;
  overflow: hidden;
  padding: 9px 12px;
  border-color: rgba(149, 180, 233, 0.24);
  background:
    linear-gradient(160deg, rgba(24, 36, 60, 0.96), rgba(18, 29, 49, 0.96));
}

.cabinet-sub-card::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 10px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(72, 191, 117, 0.92), rgba(72, 191, 117, 0.18));
}

.cabinet-sub-card::after {
  content: "";
  position: absolute;
  top: -26px;
  right: -24px;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
  opacity: 0.22;
  pointer-events: none;
}

.cabinet-sub-card.inactive::before {
  background: linear-gradient(180deg, rgba(239, 93, 114, 0.92), rgba(239, 93, 114, 0.18));
}

.cabinet-sub-card .cabinet-section-title {
  display: none;
}

.cabinet-sub-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  position: relative;
  padding-left: 10px;
  min-height: 28px;
}

.cabinet-sub-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: #edfff4;
  background: rgba(46, 127, 84, 0.2);
  border: 1px solid rgba(95, 208, 145, 0.28);
  box-shadow: none;
}

.cabinet-sub-icon.inactive {
  color: #ffe8ec;
  background: rgba(135, 34, 55, 0.16);
  border-color: rgba(239, 93, 114, 0.26);
  box-shadow: none;
}

.cabinet-sub-main {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  gap: 8px;
}

.cabinet-sub-head {
  display: contents;
}

.cabinet-sub-status {
  order: 1;
  flex: 0 0 auto;
  align-self: center;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: 0.1px;
  white-space: nowrap;
}

.cabinet-sub-badge {
  order: 3;
  flex: 0 0 auto;
  align-self: center;
  margin-left: auto;
  border-radius: 999px;
  border: 1px solid rgba(149, 180, 233, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: #d7e8ff;
  padding: 2px 7px;
  font-size: 9px;
  letter-spacing: 0.42px;
  text-transform: uppercase;
}

.cabinet-sub-badge.active {
  border-color: rgba(72, 191, 117, 0.3);
  color: #ccffe0;
  background: rgba(28, 83, 54, 0.18);
}

.cabinet-sub-badge.inactive {
  border-color: rgba(239, 93, 114, 0.28);
  color: #ffd6de;
  background: rgba(103, 24, 42, 0.18);
}

.cabinet-sub-lines {
  display: contents;
}

#s-license-end {
  order: 2;
  flex: 1 1 auto;
  align-self: center;
  min-width: 0;
  color: #eef4ff;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.2;
  letter-spacing: 0.04px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#cabinet-license-days {
  display: none !important;
}

.cabinet-sub-note {
  display: none !important;
}

.cabinet-profile-card {
  border-color: rgba(76, 124, 255, 0.4);
  background:
    radial-gradient(circle at 100% 0%, rgba(70, 106, 255, 0.15), transparent 45%),
    linear-gradient(160deg, rgba(25, 38, 82, 0.95), rgba(22, 34, 70, 0.95));
}

.cabinet-profile-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.cabinet-player-main {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.cabinet-avatar-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(76, 124, 255, 0.35);
  background: linear-gradient(160deg, rgba(47, 71, 132, 0.9), rgba(22, 35, 69, 0.95));
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.cabinet-player-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cabinet-player-avatar-fallback {
  color: #eaf3ff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.cabinet-player-name {
  font-size: 20px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cabinet-player-id {
  margin-top: 2px;
  font-size: 12px;
  color: #bfd2f5;
}

.cabinet-theme-visual {
  justify-self: end;
  display: flex;
  align-items: center;
  align-self: center;
}

.cabinet-theme-visual-toggle {
  appearance: none;
  border: 1px solid rgba(149, 180, 233, 0.2);
  background: rgba(9, 19, 39, 0.44);
  border-radius: 999px;
  min-height: 24px;
  padding: 3px 7px 3px 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-self: end;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.cabinet-theme-visual-toggle:hover {
  border-color: rgba(149, 180, 233, 0.3);
  background: rgba(12, 24, 49, 0.56);
}

.cabinet-theme-visual-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 145, 255, 0.18);
}

.cabinet-theme-visual-track {
  width: 24px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(149, 180, 233, 0.16);
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  padding: 1px;
  transition: border-color 160ms ease, background 160ms ease;
}

.cabinet-theme-visual-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d8e6ff, #9ebaf8);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.22) inset;
  transform: translateX(0);
  transition: transform 180ms ease, background 180ms ease;
}

.cabinet-theme-visual-label {
  font-size: 10px;
  color: #edf4ff;
  line-height: 1;
  font-weight: 760;
  letter-spacing: 0.12px;
  white-space: nowrap;
}

.cabinet-theme-visual-toggle.is-dark .cabinet-theme-visual-track {
  border-color: rgba(120, 157, 224, 0.28);
  background: rgba(74, 114, 206, 0.34);
}

.cabinet-theme-visual-toggle.is-dark .cabinet-theme-visual-thumb {
  transform: translateX(10px);
  background: linear-gradient(135deg, #7ea8ff, #4e78f3);
}

.cabinet-hidden-compat {
  display: none;
}

.cabinet-vpi-card {
  min-width: 0;
  border-radius: 12px;
  border: 1px solid rgba(252, 176, 64, 0.36);
  background: linear-gradient(160deg, rgba(43, 37, 69, 0.78), rgba(24, 22, 48, 0.78));
  padding: 7px;
  display: grid;
  gap: 6px;
}

.cabinet-mini-cards-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 6px;
}

.cabinet-vpi-card.compact {
  align-content: start;
}

.cabinet-vpi-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.cabinet-vpi-title {
  font-size: 11px;
  font-weight: 760;
  color: #a8c1ea;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  line-height: 1.1;
  white-space: nowrap;
}

.cabinet-vpi-tier {
  font-size: 11px;
  font-weight: 760;
  color: #ffe6a3;
  line-height: 1.1;
  white-space: normal;
  text-align: right;
  max-width: 72%;
}

.cabinet-vpi-time {
  font-size: 11px;
  color: #d7e4ff;
}

.cabinet-vpi-claim-btn {
  border: 1px solid rgba(74, 222, 128, 0.58);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.9), rgba(21, 128, 61, 0.9));
  color: #ecfdf5;
  border-radius: 8px;
  width: 100%;
  min-height: 30px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 760;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cabinet-vpi-claim-btn:disabled {
  opacity: 0.75;
  cursor: default;
}

.cabinet-vpi-claim-timer {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
  border-radius: 8px;
  width: 100%;
  min-height: 30px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.cabinet-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  align-items: start;
}

.cabinet-kpi {
  border-radius: 10px;
  padding: 7px 8px;
  border: 1px solid rgba(149, 180, 233, 0.16);
  background: rgba(9, 20, 48, 0.46);
  display: grid;
  gap: 3px;
}

.cabinet-kpi.purple {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.08);
}

.cabinet-kpi.red {
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.07);
}

.cabinet-kpi.amber {
  border-color: rgba(245, 158, 11, 0.36);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.07);
}

.cabinet-kpi-label {
  font-size: 10px;
  color: #bfd2f5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.15;
}

.cabinet-kpi-label-row {
  justify-content: space-between;
  gap: 5px;
}

.cabinet-kpi-mini-btn {
  appearance: none;
  border: 1px solid rgba(149, 180, 233, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #dfeaff;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, opacity 120ms ease;
}

.cabinet-kpi-mini-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(149, 180, 233, 0.42);
}

.cabinet-kpi-mini-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.cabinet-kpi-mini-btn.loading {
  animation: cabinet-kpi-spin 0.9s linear infinite;
}

@keyframes cabinet-kpi-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cabinet-kpi-label img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.cabinet-kpi-value {
  font-size: 16px;
  font-weight: 780;
  line-height: 1.05;
}

.cabinet-kpi-subgrid {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cabinet-kpi-subtile {
  border-radius: 999px;
  border: 1px solid rgba(149, 180, 233, 0.2);
  background: rgba(12, 24, 52, 0.38);
  padding: 2px 6px;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}

.cabinet-kpi-subtile-label {
  font-size: 9px;
  color: #9db4dd;
  line-height: 1;
  text-transform: uppercase;
}

.cabinet-kpi-subtile-value {
  font-size: 11px;
  color: #eef5ff;
  line-height: 1;
  font-weight: 760;
}

.cabinet-energy-card {
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid rgba(65, 196, 107, 0.34);
  background: rgba(20, 49, 36, 0.24);
  padding: 8px;
  display: grid;
  gap: 6px;
}

.cabinet-energy-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: #d6fbe6;
}

.cabinet-energy-head strong {
  color: #87f5ae;
  font-size: 14px;
}

.cabinet-energy-bar {
  height: 11px;
  border-radius: 999px;
  border: 1px solid rgba(65, 196, 107, 0.32);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.cabinet-energy-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(58, 206, 100, 0.94), rgba(119, 246, 156, 0.92));
  box-shadow: 0 0 18px rgba(58, 206, 100, 0.2);
  transition: width .3s ease;
}

.cabinet-energy-inline {
  margin-top: 4px;
  display: grid;
  gap: 4px;
}

.cabinet-energy-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: #b9f7d1;
  font-size: 10px;
  line-height: 1.1;
}

.cabinet-energy-inline-head strong {
  color: #85f4ae;
  font-size: 12px;
  font-weight: 760;
}

.cabinet-energy-bar.compact {
  height: 8px;
}

.cabinet-subsection-title {
  margin-top: 5px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 760;
  color: #dfeafc;
}

.cabinet-subsection-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cabinet-subsection-head .cabinet-subsection-title {
  margin-bottom: 0;
}

.cabinet-currency-refresh-btn {
  margin-left: auto;
  min-height: 30px;
  padding: 5px 10px;
  font-size: 11px;
}

.cabinet-currency-pnl-meta {
  margin-top: 4px;
  margin-bottom: 6px;
  font-size: 11px;
  color: #8ea5cb;
  line-height: 1.2;
}

.cabinet-currency-pnl-meta.error {
  color: #fca5a5;
}

.cabinet-currency-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.cabinet-currency-item {
  min-height: 50px;
  border-radius: 10px;
  border: 1px solid rgba(149, 180, 233, 0.2);
  background: rgba(8, 18, 38, 0.52);
  padding: 6px 8px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "icon label delta"
    "icon value delta";
  gap: 1px 7px;
  align-items: center;
}

.cabinet-currency-icon {
  grid-area: icon;
  min-width: 16px;
  min-height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cabinet-currency-icon-wrap {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
}

.cabinet-currency-icon-img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
}

.cabinet-currency-icon-text {
  font-size: 12px;
  line-height: 1;
  opacity: 0.92;
}

.cabinet-currency-label {
  grid-area: label;
  font-size: 10px;
  color: #bcd0f4;
  line-height: 1.15;
}

.cabinet-currency-value {
  grid-area: value;
  font-size: 14px;
  font-weight: 770;
  color: #edf4ff;
  line-height: 1.15;
  white-space: nowrap;
}

.cabinet-currency-delta {
  grid-area: delta;
  font-size: 10px;
  line-height: 1.15;
  color: #8ea5cb;
  white-space: nowrap;
  align-self: center;
  justify-self: end;
  text-align: right;
}

.cabinet-currency-delta.positive {
  color: #4ade80;
}

.cabinet-currency-delta.negative {
  color: #f87171;
}

.cabinet-currency-delta.na {
  color: #7f90b0;
}

.cabinet-empty {
  grid-column: 1 / -1;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  padding: 24px 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  text-align: center;
}

.cabinet-weapon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cabinet-weapon-card {
  position: relative;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.cabinet-weapon-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  opacity: 0.9;
}

.cabinet-weapon-card.poison::before { background: #a855f7; box-shadow: 0 0 12px #a855f7; }
.cabinet-weapon-card.gunshot::before { background: #f43f5e; box-shadow: 0 0 12px #f43f5e; }
.cabinet-weapon-card.knife::before { background: #f59e0b; box-shadow: 0 0 12px #f59e0b; }
.cabinet-weapon-card.needle::before { background: #3b82f6; box-shadow: 0 0 12px #3b82f6; }

.cabinet-weapon-card.poison { border-color: rgba(168, 85, 247, 0.2); }
.cabinet-weapon-card.gunshot { border-color: rgba(244, 63, 94, 0.2); }
.cabinet-weapon-card.knife { border-color: rgba(245, 158, 11, 0.2); }
.cabinet-weapon-card.needle { border-color: rgba(59, 130, 246, 0.2); }

.cabinet-weapon-name {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.cabinet-weapon-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 500;
}

.cabinet-weapon-row strong {
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  font-weight: 700;
  text-align: right;
}

.cabinet-weapon-toggle {
  margin-top: 2px;
}

.cabinet-toilet-row {
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cabinet-toilet-top {
  margin: 0 0 16px;
  padding: 16px 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
}

.cabinet-toilet-secondary {
  margin-top: 0;
}

.cabinet-toilet-row .cabinet-weapon-toggle {
  margin-top: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.cabinet-toilet-row .arsenal-switch-text {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.cabinet-toilet-top .arsenal-switch-text {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.cabinet-toilet-timer {
  min-width: 72px;
  text-align: right;
  color: #f59e0b;
  font-size: 14px;
  line-height: 1;
  font-family: var(--font-mono);
  font-weight: 600;
}

.cabinet-auto-strip {
  margin: 0 0 16px;
  padding: 16px 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  backdrop-filter: blur(12px);
}

.cabinet-auto-strip:hover {
  background: rgba(255, 255, 255, 0.05);
}

.cabinet-auto-item {
  min-width: 0;
  flex: 0 1 auto;
}

.cabinet-auto-item .cabinet-weapon-toggle {
  margin-top: 0;
}

.cabinet-auto-item .arsenal-switch-text {
  font-size: 12px;
  white-space: nowrap;
}

.cabinet-auto-strip .cabinet-toilet-timer {
  display: none;
}

.cabinet-bot-group-link {
  width: 100%;
  min-height: 48px;
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.cabinet-bot-group-link:hover,
.cabinet-bot-group-link:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cabinet-bot-group-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cabinet-bot-group-icon svg {
  width: 13px;
  height: 13px;
  display: block;
  fill: currentColor;
}

.cabinet-crow-card {
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.34);
  background:
    radial-gradient(120% 110% at 100% 0%, rgba(99, 102, 241, 0.18), transparent 52%),
    linear-gradient(180deg, rgba(12, 22, 44, 0.82), rgba(8, 16, 34, 0.78));
  padding: 7px;
  display: grid;
  gap: 6px;
}

.cabinet-crow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cabinet-crow-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #eef4ff;
  font-weight: 780;
  line-height: 1.1;
}

.cabinet-crow-lock {
  font-size: 11px;
  line-height: 1;
}

.cabinet-crow-head .chip {
  min-height: 22px;
  padding: 2px 7px;
  font-size: 9px;
  letter-spacing: 0.25px;
}

.cabinet-crow-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 6px;
}

.cabinet-crow-actions .btn {
  min-height: 30px;
  font-size: 10px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.cabinet-crow-modal-body {
  display: grid;
  gap: 10px;
}

.cabinet-crow-reward-list {
  display: grid;
  gap: 6px;
}

.cabinet-crow-reward-row {
  border: 1px solid rgba(149, 180, 233, 0.16);
  border-radius: 10px;
  background: rgba(8, 16, 32, 0.56);
  padding: 7px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cabinet-crow-reward-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #dce9ff;
  font-size: 12px;
}

.cabinet-crow-reward-main .cabinet-currency-icon-wrap {
  width: 16px;
  height: 16px;
}

.cabinet-crow-reward-main .cabinet-currency-icon-img {
  width: 16px;
  height: 16px;
}

.cabinet-crow-reward-main .cabinet-currency-icon-text {
  font-size: 13px;
}

.cabinet-crow-reward-row strong {
  color: #93f7bf;
  font-size: 13px;
  font-weight: 820;
  white-space: nowrap;
}

.cabinet-crow-history-list {
  display: grid;
  gap: 8px;
}

.cabinet-crow-history-row {
  border: 1px solid rgba(149, 180, 233, 0.16);
  border-radius: 11px;
  background: rgba(8, 16, 32, 0.52);
  padding: 8px 9px;
  display: grid;
  gap: 7px;
}

.cabinet-crow-history-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cabinet-crow-history-row-head strong {
  color: #ecf3ff;
  font-size: 13px;
  line-height: 1.1;
}

.cabinet-crow-history-row-head span {
  color: #9fb4d8;
  font-size: 11px;
}

.cabinet-crow-history-empty {
  color: #9fb4d8;
  font-size: 11px;
}

.cabinet-smuggling-card,
.cabinet-smuggling-compact-card {
  margin: 2px 0 8px;
  border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, 0.34);
  background:
    radial-gradient(145% 120% at 100% 0%, rgba(59, 130, 246, 0.2), transparent 55%),
    linear-gradient(180deg, rgba(10, 22, 45, 0.84), rgba(7, 14, 30, 0.82));
  padding: 9px;
  display: grid;
  gap: 8px;
}

.cabinet-smuggling-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cabinet-smuggling-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #eff6ff;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 780;
}

.cabinet-smuggling-title-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 auto;
}

.cabinet-smuggling-title-icon.large {
  width: 18px;
  height: 18px;
}

.cabinet-smuggling-modal-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cabinet-smuggling-head .chip {
  min-height: 22px;
  font-size: 9px;
  letter-spacing: 0.2px;
}

.cabinet-smuggling-meta {
  color: #b8cff2;
  font-size: 11px;
  line-height: 1.3;
}

.cabinet-smuggling-compact-actions {
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
}

.cabinet-smuggling-compact-actions .btn {
  min-height: 26px;
  font-size: 8px;
  padding: 0 8px;
}

.cabinet-smuggling-compact-card {
  margin: 0 0 4px;
  padding: 5px 6px;
  border-radius: 11px;
  gap: 4px;
}

.cabinet-smuggling-compact-card .cabinet-smuggling-title {
  font-size: 11px;
}

.cabinet-smuggling-compact-card .cabinet-smuggling-meta {
  font-size: 9px;
  line-height: 1.15;
}

.cabinet-smuggling-compact-card .cabinet-smuggling-head .chip {
  min-height: 17px;
  font-size: 7px;
  letter-spacing: 0.1px;
  padding: 0 6px;
}

.cabinet-smuggling-compact-card .cabinet-smuggling-compact-actions .btn {
  min-height: 24px;
  font-size: 8px;
}

.cabinet-monthly-card {
  margin: 0 0 6px;
  padding: 7px 8px;
  border-radius: 11px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  background:
    radial-gradient(130% 110% at 100% 0%, rgba(245, 158, 11, 0.18), transparent 56%),
    linear-gradient(180deg, rgba(12, 22, 44, 0.82), rgba(8, 16, 34, 0.78));
  display: grid;
  gap: 4px;
}

.cabinet-monthly-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.cabinet-monthly-title {
  font-size: 11px;
  color: #eff6ff;
  font-weight: 780;
  line-height: 1;
  white-space: nowrap;
  padding-top: 1px;
}

.cabinet-monthly-meta {
  color: #b8cff2;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 640;
  text-align: right;
  justify-self: end;
  align-self: start;
  margin-top: -1px;
}

.cabinet-monthly-actions {
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
}

.cabinet-monthly-actions .btn {
  min-height: 24px;
  font-size: 8px;
  padding: 0 8px;
}

.cabinet-luska-card {
  margin: 0 0 6px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(236, 72, 153, 0.38);
  background:
    radial-gradient(125% 115% at 100% 0%, rgba(236, 72, 153, 0.26), transparent 56%),
    radial-gradient(130% 120% at 0% 100%, rgba(250, 204, 21, 0.2), transparent 60%),
    linear-gradient(180deg, rgba(14, 24, 49, 0.88), rgba(9, 16, 34, 0.86));
  display: grid;
  gap: 6px;
}

.cabinet-luska-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cabinet-luska-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff3fc;
  font-size: 12px;
  font-weight: 820;
  line-height: 1.1;
}

.cabinet-luska-title-img {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  object-fit: cover;
  flex: 0 0 auto;
}

.cabinet-luska-head .chip {
  min-height: 19px;
  font-size: 8px;
  padding: 0 7px;
}

.cabinet-luska-meta {
  color: #f5d2ea;
  font-size: 10px;
  line-height: 1.2;
}

.cabinet-luska-actions {
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
}

.cabinet-luska-actions .btn {
  min-height: 24px;
  font-size: 8px;
  padding: 0 8px;
}

.cabinet-luska-modal .boss-config-modal-backdrop {
  background: rgba(2, 7, 18, 0.84);
  backdrop-filter: blur(10px);
}

.cabinet-luska-modal-dialog,
.cabinet-luska-reward-modal-dialog {
  width: min(920px, calc(100vw - 14px));
  border-radius: 20px;
  border: 1px solid rgba(236, 72, 153, 0.46);
  background:
    radial-gradient(130% 120% at 100% 0%, rgba(236, 72, 153, 0.26), transparent 58%),
    radial-gradient(128% 120% at 0% 100%, rgba(245, 158, 11, 0.18), transparent 62%),
    linear-gradient(180deg, rgba(5, 11, 22, 0.98), rgba(3, 8, 17, 0.99));
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  padding: 14px;
  gap: 10px;
}

.cabinet-luska-modal-head {
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0 0 2px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.cabinet-luska-modal-title-wrap {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.cabinet-luska-modal-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 820;
  line-height: 1.08;
}

.cabinet-luska-modal-title-img {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  object-fit: cover;
  flex: 0 0 auto;
}

.cabinet-luska-modal-head-side {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cabinet-luska-modal-timer {
  color: #fbd2ed;
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
  font-family: var(--font-mono);
}

.cabinet-luska-modal-body {
  display: grid;
  gap: 10px;
  max-height: min(66vh, 620px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.cabinet-luska-summary {
  border-radius: 14px;
  border: 1px solid rgba(255, 179, 217, 0.34);
  background: linear-gradient(180deg, rgba(18, 28, 56, 0.86), rgba(11, 18, 39, 0.86));
  padding: 11px;
  display: grid;
  gap: 8px;
}

.cabinet-luska-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cabinet-luska-summary-head strong {
  color: #ffe2f4;
  font-size: 13px;
  font-weight: 820;
}

.cabinet-luska-summary-head span {
  color: #f7cae9;
  font-size: 11px;
  font-weight: 700;
}

.cabinet-luska-summary-sub {
  color: #d6e4ff;
  font-size: 12px;
  line-height: 1.3;
}

.cabinet-luska-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.cabinet-luska-cell {
  border-radius: 12px;
  border: 1px solid rgba(255, 190, 225, 0.34);
  background:
    radial-gradient(130% 140% at 100% 0%, rgba(236, 72, 153, 0.2), transparent 55%),
    linear-gradient(180deg, rgba(14, 25, 52, 0.9), rgba(9, 18, 38, 0.9));
  padding: 8px;
  display: grid;
  gap: 6px;
  align-content: start;
}

.cabinet-luska-cell.is-opened {
  border-color: rgba(74, 222, 128, 0.46);
  background:
    radial-gradient(130% 140% at 100% 0%, rgba(74, 222, 128, 0.2), transparent 55%),
    linear-gradient(180deg, rgba(12, 31, 36, 0.9), rgba(9, 20, 30, 0.9));
}

.cabinet-luska-cell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.cabinet-luska-cell-head strong {
  color: #f8e6f8;
  font-size: 11px;
}

.cabinet-luska-cell-state {
  color: #f3c3e6;
  font-size: 10px;
}

.cabinet-luska-cell.is-opened .cabinet-luska-cell-state {
  color: #baf6d0;
}

.cabinet-luska-cell-cost {
  color: #d6e5ff;
  font-size: 10px;
  line-height: 1.2;
}

.cabinet-luska-cell .btn {
  min-height: 30px;
  font-size: 11px;
  padding: 0 8px;
}

.cabinet-monthly-modal .boss-config-modal-backdrop {
  background: rgba(1, 6, 15, 0.82);
  backdrop-filter: blur(10px);
}

.cabinet-monthly-modal-dialog {
  width: min(920px, calc(100vw - 14px));
  border-radius: 20px;
  border: 1px solid rgba(178, 124, 43, 0.44);
  background:
    radial-gradient(130% 120% at 100% 0%, rgba(156, 107, 14, 0.3), transparent 60%),
    linear-gradient(180deg, rgba(5, 11, 22, 0.98), rgba(3, 8, 17, 0.99));
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 14px;
  gap: 10px;
}

.cabinet-monthly-modal-head {
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0 0 2px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.cabinet-monthly-modal-title-wrap {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.cabinet-monthly-modal-title {
  font-size: 19px;
  font-weight: 820;
  line-height: 1.08;
  letter-spacing: 0.2px;
}

.cabinet-monthly-modal-head-side {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cabinet-monthly-modal-timer {
  color: #f8d08c;
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
  font-family: var(--font-mono);
}

.cabinet-monthly-modal-body {
  display: grid;
  gap: 8px;
}

.cabinet-monthly-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.9fr);
  gap: 8px;
}

.cabinet-monthly-today-card,
.cabinet-monthly-summary-card,
.cabinet-monthly-rewards-card,
.cabinet-monthly-list-card {
  border-radius: 14px;
  border: 1px solid rgba(178, 124, 43, 0.38);
  background: linear-gradient(180deg, rgba(13, 21, 40, 0.86), rgba(8, 14, 28, 0.86));
  padding: 11px;
  display: grid;
  gap: 8px;
}

.cabinet-monthly-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cabinet-monthly-card-head strong {
  color: #f4ddb3;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.cabinet-monthly-card-head span {
  color: #c7d6ee;
  font-size: 11px;
}

.cabinet-monthly-today-card,
.cabinet-monthly-summary-card {
  padding: 10px;
  gap: 6px;
}

.cabinet-monthly-today-title {
  color: #eef5ff;
  font-size: 17px;
  line-height: 1.18;
  font-weight: 800;
}

.cabinet-monthly-today-sub {
  color: #bdcde8;
  font-size: 12px;
  line-height: 1.25;
}

.cabinet-monthly-today-actions {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.cabinet-monthly-today-actions .btn {
  min-width: 170px;
  min-height: 36px;
  justify-content: center;
}

.cabinet-monthly-run-hint {
  color: #bcd0ea;
  font-size: 11px;
  line-height: 1.3;
  text-align: left;
}

.cabinet-monthly-run-hint.warn {
  color: #f3c39c;
}

.cabinet-monthly-run-hint.error {
  color: #f8b4b4;
}

.cabinet-monthly-progress-bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(178, 124, 43, 0.34);
  background: rgba(255, 255, 255, 0.06);
}

.cabinet-monthly-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.95), rgba(245, 158, 11, 0.92));
  transition: width .24s ease;
}

.cabinet-monthly-summary-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.cabinet-monthly-summary-main strong {
  color: #f7fbff;
  font-size: 24px;
  line-height: 1;
  font-weight: 840;
}

.cabinet-monthly-summary-main span {
  color: #b7c8e7;
  font-size: 11px;
  line-height: 1.3;
  text-align: right;
}

.cabinet-monthly-rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.cabinet-monthly-reward-tier {
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 12px;
  background: rgba(8, 18, 38, 0.48);
  padding: 9px;
  display: grid;
  gap: 8px;
}

.cabinet-monthly-reward-tier.status-done {
  border-color: rgba(34, 197, 94, 0.42);
  background: linear-gradient(180deg, rgba(8, 47, 27, 0.7), rgba(8, 32, 23, 0.72));
}

.cabinet-monthly-reward-tier.status-claimable {
  border-color: rgba(245, 158, 11, 0.48);
  background: linear-gradient(180deg, rgba(74, 47, 8, 0.72), rgba(48, 31, 7, 0.74));
}

.cabinet-monthly-reward-tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cabinet-monthly-reward-tier-title {
  color: #eef5ff;
  font-size: 14px;
  font-weight: 780;
}

.cabinet-monthly-reward-list {
  display: grid;
  gap: 6px;
}

.cabinet-monthly-reward-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cabinet-monthly-reward-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #dbe8fb;
  font-size: 12px;
  min-width: 0;
}

.cabinet-monthly-reward-main span:last-child {
  min-width: 0;
  word-break: break-word;
}

.cabinet-monthly-reward-row strong {
  color: #fff5de;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.cabinet-monthly-reward-row .cabinet-currency-icon-wrap,
.cabinet-monthly-reward-row .cabinet-currency-icon-img {
  width: 16px;
  height: 16px;
}

.cabinet-monthly-reward-row .cabinet-currency-icon-text {
  font-size: 13px;
}

.cabinet-monthly-reward-actions {
  display: grid;
  gap: 6px;
}

.cabinet-monthly-claim-btn {
  min-width: 150px;
  justify-content: center;
}

.cabinet-monthly-claim-error {
  width: 100%;
  text-align: center;
}

.cabinet-monthly-list {
  display: grid;
  gap: 6px;
  max-height: min(54vh, 410px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding-right: 2px;
}

.cabinet-monthly-row {
  border: 1px solid rgba(149, 180, 233, 0.2);
  border-radius: 11px;
  background: rgba(10, 18, 37, 0.6);
  padding: 10px 10px 12px;
  display: grid;
  gap: 9px;
}

.cabinet-monthly-row-title {
  color: #eaf3ff;
  font-size: 16px;
  line-height: 1.28;
  font-weight: 760;
  min-width: 0;
  text-align: center;
  word-break: break-word;
}

.cabinet-monthly-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.cabinet-monthly-day-badge {
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(248, 190, 92, 0.45);
  background: linear-gradient(180deg, rgba(95, 56, 6, 0.6), rgba(56, 35, 4, 0.58));
  color: #ffd899;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.34px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cabinet-monthly-row.status-done {
  border-color: rgba(37, 198, 106, 0.45);
  background: linear-gradient(180deg, rgba(9, 43, 28, 0.72), rgba(8, 30, 21, 0.72));
}

.cabinet-monthly-row.status-today {
  border-color: rgba(95, 142, 255, 0.52);
  background: linear-gradient(180deg, rgba(20, 42, 81, 0.72), rgba(13, 29, 58, 0.74));
}

.cabinet-monthly-row.status-expired {
  border-color: rgba(239, 68, 68, 0.45);
  background: linear-gradient(180deg, rgba(67, 16, 24, 0.72), rgba(45, 12, 19, 0.72));
}

.cabinet-monthly-row.status-locked {
  border-color: rgba(149, 180, 233, 0.2);
  background: rgba(9, 16, 31, 0.56);
  opacity: 0.7;
}

.cabinet-monthly-row-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cabinet-monthly-row.status-expired .cabinet-monthly-row-title {
  margin-bottom: 2px;
}

.cabinet-monthly-row-actions {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.cabinet-monthly-chip {
  min-height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(149, 180, 233, 0.25);
  background: rgba(10, 20, 42, 0.58);
  color: #c9d8ef;
  font-size: 10px;
  font-weight: 760;
  line-height: 1;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.28px;
}

.cabinet-monthly-chip.done {
  border-color: rgba(34, 197, 94, 0.48);
  background: rgba(4, 70, 39, 0.44);
  color: #9df7c8;
}

.cabinet-monthly-chip.today {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(120, 53, 15, 0.36);
  color: #fed7aa;
}

.cabinet-monthly-chip.expired {
  border-color: rgba(248, 113, 113, 0.46);
  background: rgba(127, 29, 29, 0.42);
  color: #fecaca;
}

.cabinet-monthly-chip.locked {
  border-color: rgba(120, 120, 120, 0.3);
  background: rgba(28, 32, 42, 0.52);
  color: #9ca3af;
}

.cabinet-monthly-chip.claimable {
  border-color: rgba(245, 158, 11, 0.48);
  background: rgba(120, 53, 15, 0.38);
  color: #fde68a;
}

.cabinet-monthly-restore-btn {
  min-width: min(100%, 260px);
  justify-content: center;
}

.cabinet-monthly-restore-cost {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cabinet-monthly-restore-cost .cabinet-currency-icon-wrap,
.cabinet-monthly-restore-cost .cabinet-currency-icon-img {
  width: 15px;
  height: 15px;
}

.cabinet-monthly-restore-cost .cabinet-currency-icon-text {
  font-size: 13px;
}

.cabinet-monthly-restore-error {
  width: 100%;
  text-align: center;
}

.cabinet-achievements-modal-dialog {
  width: min(930px, calc(100vw - 14px));
  border-radius: 22px;
  border: 1px solid rgba(80, 120, 215, 0.46);
  background:
    radial-gradient(135% 120% at 100% 0%, rgba(58, 101, 206, 0.32), transparent 58%),
    linear-gradient(180deg, rgba(8, 17, 39, 0.985), rgba(4, 10, 24, 0.995));
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  padding: 11px;
  gap: 7px;
}

.cabinet-achievements-modal-dialog .boss-config-modal-head {
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(92, 126, 200, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(125% 150% at 0% 0%, rgba(49, 79, 148, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(18, 31, 62, 0.88), rgba(12, 22, 45, 0.84));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 28px rgba(0, 0, 0, 0.16);
}

.cabinet-achievements-modal-dialog .boss-config-modal-title {
  font-size: 25px;
  line-height: 0.98;
  font-weight: 860;
  letter-spacing: -0.03em;
}

.cabinet-achievements-modal-dialog .boss-config-modal-sub {
  margin-top: 6px;
  color: #b6c6e2;
  font-size: 12px;
  line-height: 1.24;
}

.cabinet-achievements-head-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
}

.cabinet-achievements-head-actions .btn {
  min-width: 104px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 14px;
  border-color: rgba(103, 136, 216, 0.34);
  background: linear-gradient(180deg, rgba(47, 69, 113, 0.76), rgba(35, 53, 91, 0.78));
  font-size: 13px;
  font-weight: 780;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 20px rgba(0, 0, 0, 0.12);
}

.cabinet-achievements-head-actions .btn:hover {
  border-color: rgba(133, 165, 235, 0.5);
  background: linear-gradient(180deg, rgba(58, 83, 134, 0.84), rgba(41, 62, 103, 0.84));
}

.cabinet-achievements-modal-body {
  min-height: 0;
  display: grid;
  gap: 8px;
}

.cabinet-achievements-modal-dialog .boss-config-modal-actions {
  display: none;
}

.cabinet-achievements-summary {
  display: grid;
  gap: 8px;
}

.cabinet-achievements-summary-card {
  border: 1px solid rgba(103, 136, 216, 0.28);
  border-radius: 20px;
  background:
    radial-gradient(125% 120% at 0% 0%, rgba(35, 57, 102, 0.24), transparent 58%),
    linear-gradient(180deg, rgba(13, 26, 54, 0.8), rgba(9, 18, 38, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 13px 15px;
}

.cabinet-achievements-score-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cabinet-achievements-score-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cabinet-achievements-score-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(181, 124, 59, 0.55);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 208, 96, 0.32), transparent 45%),
    linear-gradient(180deg, rgba(107, 61, 27, 0.96), rgba(72, 42, 18, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 30px rgba(0, 0, 0, 0.28);
}

.cabinet-achievements-score-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.24));
}

.cabinet-achievements-score-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cabinet-achievements-score-copy span {
  color: #c5d5f3;
  font-size: 15px;
  line-height: 1.08;
}

.cabinet-achievements-score-copy small {
  color: #9eb4da;
  font-size: 11px;
  line-height: 1.12;
}

.cabinet-achievements-score-card strong {
  color: #f1f5ff;
  font-size: clamp(22px, 3.8vw, 38px);
  line-height: 1;
  font-weight: 860;
  letter-spacing: -0.03em;
  text-align: right;
  white-space: nowrap;
}

.cabinet-achievements-meta {
  color: #a9bddf;
  font-size: 12px;
  line-height: 1.22;
}

.cabinet-achievements-meta.error {
  color: #ffb0b0;
}

.cabinet-achievements-category-list {
  display: grid;
  gap: 7px;
}

.cabinet-achievements-group-list {
  display: grid;
  gap: 8px;
}

.cabinet-achievements-group {
  border: 1px solid rgba(74, 112, 192, 0.36);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(12, 24, 50, 0.88), rgba(8, 16, 35, 0.84));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 34px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.cabinet-achievements-group > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 13px;
  cursor: pointer;
}

.cabinet-achievements-group > summary::-webkit-details-marker {
  display: none;
}

.cabinet-achievements-group-title {
  display: flex;
  align-items: center;
  min-height: 28px;
  min-width: 0;
}

.cabinet-achievements-group-title strong {
  color: #f1f5ff;
  font-size: 14px;
  line-height: 1.02;
  font-weight: 860;
}

.cabinet-achievements-group-side {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
}

.cabinet-achievements-group-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  min-width: 50px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(93, 128, 196, 0.44);
  background: rgba(35, 51, 87, 0.7);
  color: #dbe7fb;
  font-size: 9px;
  font-weight: 780;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cabinet-achievements-group-caret {
  width: 10px;
  height: 10px;
  border-right: 2px solid #a9c2ea;
  border-bottom: 2px solid #a9c2ea;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  margin-right: 2px;
  flex: 0 0 auto;
}

.cabinet-achievements-group[open] .cabinet-achievements-group-caret {
  transform: rotate(-135deg);
}

.cabinet-achievements-group-body {
  display: grid;
  gap: 7px;
  padding: 0 8px 8px;
  border-top: 1px solid rgba(92, 124, 188, 0.16);
}

.cabinet-achievements-category {
  border: 1px solid rgba(74, 112, 192, 0.44);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(13, 27, 57, 0.9), rgba(8, 16, 35, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 36px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.cabinet-achievements-category > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 10px;
  cursor: pointer;
}

.cabinet-achievements-category > summary::-webkit-details-marker {
  display: none;
}

.cabinet-achievements-category-title {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  min-height: 24px;
}

.cabinet-achievements-category-title strong {
  color: #f1f5ff;
  font-size: 13px;
  line-height: 1.02;
  font-weight: 840;
}

.cabinet-achievements-category-title span {
  color: #a9bedf;
  font-size: 9px;
  line-height: 1.05;
}

.cabinet-achievements-category-side {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: nowrap;
  align-self: center;
}

.cabinet-achievements-category-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  min-width: 50px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(93, 128, 196, 0.44);
  background: rgba(35, 51, 87, 0.7);
  color: #dbe7fb;
  font-size: 9px;
  font-weight: 780;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cabinet-achievements-category-badge.muted {
  color: #b3c3df;
  border-color: rgba(93, 128, 196, 0.2);
  background: rgba(28, 39, 66, 0.54);
}

.cabinet-achievements-category-caret {
  width: 9px;
  height: 9px;
  border-right: 2px solid #a9c2ea;
  border-bottom: 2px solid #a9c2ea;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  margin-right: 2px;
  flex: 0 0 auto;
}

.cabinet-achievements-category[open] .cabinet-achievements-category-caret {
  transform: rotate(-135deg);
}

.cabinet-achievements-category-body {
  display: grid;
  gap: 5px;
  padding: 0 8px 8px;
  border-top: 1px solid rgba(92, 124, 188, 0.18);
}

.cabinet-achievement-row {
  border: 1px solid rgba(72, 109, 183, 0.22);
  border-radius: 14px;
  background: rgba(10, 20, 42, 0.78);
  padding: 7px 9px 6px;
  display: grid;
  gap: 4px;
}

.cabinet-achievement-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 7px;
}

.cabinet-achievement-row-top strong {
  color: #f4f7ff;
  font-size: 12px;
  line-height: 1.08;
  font-weight: 840;
}

.cabinet-achievement-reward {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  min-height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(165, 122, 67, 0.44);
  background:
    linear-gradient(180deg, rgba(70, 49, 34, 0.88), rgba(54, 38, 27, 0.96));
  color: #f7d98c;
  font-size: 9px;
  font-weight: 820;
}

.cabinet-achievement-reward img {
  width: 10px;
  height: 10px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.28));
}

.cabinet-achievement-row-title {
  color: #cddcf5;
  font-size: 10px;
  line-height: 1.12;
}

.cabinet-achievement-progress-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px;
  align-items: center;
}

.cabinet-achievement-progress-check {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  flex: 0 0 auto;
}

.cabinet-achievement-progress-check.done {
  color: #dfffe9;
  border: 1px solid rgba(90, 206, 132, 0.62);
  background:
    radial-gradient(circle at 50% 35%, rgba(116, 249, 161, 0.26), transparent 55%),
    rgba(17, 60, 39, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cabinet-achievement-progress-check.pending {
  border: 1px solid rgba(95, 127, 193, 0.44);
  background: rgba(22, 33, 60, 0.7);
}

.cabinet-achievement-progress-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cabinet-achievement-progress-bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(30, 49, 83, 0.85);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.24);
}

.cabinet-achievement-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.cabinet-achievement-progress-fill.done {
  background: linear-gradient(90deg, #2ecf6f, #4ce07d);
}

.cabinet-achievement-progress-fill.pending {
  background: linear-gradient(90deg, #4f79d8, #5f8ef0);
}

.cabinet-achievement-progress-text {
  color: #9eb7dc;
  font-size: 9px;
  line-height: 1.08;
}

@media (max-width: 680px) {
  .cabinet-achievements-modal-dialog {
    width: min(100vw - 10px, 930px);
    padding: 9px;
    gap: 7px;
  }

  .cabinet-achievements-modal-dialog .boss-config-modal-head {
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 16px;
  }

  .cabinet-achievements-head-actions {
    margin-left: auto;
    width: auto;
    justify-content: flex-end;
    gap: 8px;
  }

  .cabinet-achievements-head-actions .btn {
    min-width: 86px;
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .cabinet-achievements-modal-dialog .boss-config-modal-title {
    font-size: 18px;
  }

  .cabinet-achievements-modal-dialog .boss-config-modal-sub {
    font-size: 11px;
  }

  .cabinet-achievements-summary-card {
    padding: 12px 13px;
  }

  .cabinet-achievements-score-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .cabinet-achievements-score-icon img {
    width: 33px;
    height: 33px;
  }

  .cabinet-achievements-score-copy span {
    font-size: 13px;
  }

  .cabinet-achievements-score-copy small {
    font-size: 10px;
  }

  .cabinet-achievements-score-card strong {
    font-size: 19px;
    text-align: right;
  }

  .cabinet-achievements-category > summary {
    padding: 7px 9px;
    align-items: center;
    flex-direction: row;
    gap: 6px;
  }

  .cabinet-achievements-category-side {
    justify-content: flex-end;
  }

  .cabinet-achievements-category-title strong {
    font-size: 12px;
  }

  .cabinet-achievements-group > summary {
    padding: 9px 11px;
  }

  .cabinet-achievements-group-title strong {
    font-size: 13px;
  }

  .cabinet-achievements-group-body {
    padding: 0 7px 7px;
  }

  .cabinet-achievements-category-body {
    padding: 0 7px 7px;
  }

  .cabinet-achievement-row {
    padding: 6px 8px 5px;
    border-radius: 13px;
  }

  .cabinet-achievement-row-top strong {
    font-size: 11px;
  }

  .cabinet-achievement-row-title {
    font-size: 9px;
  }
}

.cabinet-smuggling-balance-label-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cabinet-smuggling-balance-label-inline .cabinet-currency-icon-wrap,
.cabinet-smuggling-balance-label-inline .cabinet-currency-icon-img {
  width: 13px;
  height: 13px;
}

.cabinet-smuggling-balance-label-inline .cabinet-currency-icon-text {
  font-size: 11px;
}

.cabinet-smuggling-balance-label-text {
  display: inline-flex;
  align-items: center;
}

.cabinet-smuggling-modal .boss-config-modal-backdrop {
  background: rgba(1, 6, 15, 0.82);
  backdrop-filter: blur(10px);
}

.cabinet-smuggling-modal-dialog {
  width: min(920px, calc(100vw - 14px));
  border-radius: 20px;
  border: 1px solid rgba(110, 128, 168, 0.38);
  background:
    radial-gradient(130% 120% at 100% 0%, rgba(40, 54, 88, 0.34), transparent 60%),
    linear-gradient(180deg, rgba(5, 11, 22, 0.98), rgba(3, 8, 17, 0.99));
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 14px;
  gap: 10px;
}

.cabinet-smuggling-modal .boss-config-modal-head.cabinet-smuggling-modal-head {
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0 0 2px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.cabinet-smuggling-modal-title-wrap {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.cabinet-smuggling-modal-title {
  font-size: 19px;
  font-weight: 820;
  line-height: 1.08;
  letter-spacing: 0.2px;
}

.cabinet-smuggling-modal-head-side {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cabinet-smuggling-modal-timer {
  color: #b4bed0;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.cabinet-smuggling-modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(133, 149, 184, 0.34);
  background: rgba(8, 14, 28, 0.78);
  color: #f2f6ff;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .16s ease, filter .16s ease, border-color .16s ease;
}

.cabinet-smuggling-modal-close-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  border-color: rgba(163, 181, 219, 0.52);
}

#cabinet-smuggling-modal .boss-config-modal-actions {
  display: none;
}

.cabinet-smuggling-modal-body {
  display: grid;
  gap: 10px;
}

.cabinet-smuggling-modal-body .seg-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(118, 136, 171, 0.34);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(28, 33, 45, 0.85), rgba(21, 27, 40, 0.8));
}

.cabinet-smuggling-modal-body .seg-btn {
  min-height: 42px;
  min-width: 0;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 760;
  justify-content: center;
  background: rgba(5, 10, 19, 0.72);
  border-color: rgba(134, 152, 191, 0.24);
  color: #aeb8cb;
}

.cabinet-smuggling-modal-body .seg-btn.active {
  background: rgba(3, 7, 14, 0.96);
  border-color: rgba(137, 152, 183, 0.5);
  color: #f2f5fb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cabinet-smuggling-modal-body .seg-section {
  margin: 0;
  gap: 10px;
}

.cabinet-smuggling-balance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cabinet-smuggling-balance-pill {
  border-radius: 12px;
  border: 1px solid rgba(106, 124, 160, 0.34);
  background: linear-gradient(180deg, rgba(16, 22, 33, 0.9), rgba(10, 15, 24, 0.88));
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.cabinet-smuggling-balance-pill span {
  color: #b7c0d3;
  font-size: 12px;
  line-height: 1.15;
}

.cabinet-smuggling-balance-pill strong {
  color: #f3f6fb;
  font-size: 18px;
  font-weight: 840;
  line-height: 1.05;
}

.cabinet-smuggling-exchange-meta {
  margin-top: -2px;
}

.cabinet-smuggling-exchange-target-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.cabinet-smuggling-exchange-target {
  border-radius: 14px;
  border: 1px solid rgba(95, 112, 145, 0.4);
  background: linear-gradient(180deg, rgba(8, 15, 27, 0.94), rgba(7, 12, 21, 0.9));
  padding: 12px;
  display: grid;
  gap: 9px;
}

.cabinet-smuggling-exchange-target-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cabinet-smuggling-exchange-target-head strong {
  color: #f0f4fb;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 820;
}

.cabinet-smuggling-exchange-target-head span {
  color: #9aa8c4;
  font-size: 12px;
}

.cabinet-smuggling-exchange-target-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.cabinet-smuggling-exchange-target-row input {
  width: 100%;
  min-width: 0;
  background: rgba(4, 9, 17, 0.94);
  border: 1px solid rgba(108, 125, 157, 0.36);
  color: #f1f4fa;
  border-radius: 12px;
  min-height: 48px;
  padding: 0 14px;
  font-size: 17px;
  font-weight: 700;
}

.cabinet-smuggling-exchange-target-row input:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}

.cabinet-smuggling-exchange-target-row .btn {
  min-height: 48px;
  min-width: 154px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 780;
}

.cabinet-smuggling-subtext {
  color: #9eabc4;
  font-size: 14px;
  line-height: 1.25;
}

.cabinet-smuggling-actions {
  margin-top: -2px;
}

.cabinet-smuggling-actions .btn {
  min-height: 30px;
  font-size: 10px;
}

.cabinet-smuggling-offers-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.cabinet-smuggling-offer-card {
  border-radius: 18px;
  border: 1px solid rgba(92, 108, 141, 0.5);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(57, 77, 112, 0.25), transparent 56%),
    linear-gradient(180deg, rgba(23, 30, 45, 0.9), rgba(13, 19, 32, 0.9));
  padding: 12px;
  display: grid;
  gap: 10px;
}

.cabinet-smuggling-offer-card.is-disabled {
  opacity: 0.74;
}

.cabinet-smuggling-offer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cabinet-smuggling-offer-title-wrap {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cabinet-smuggling-offer-code {
  min-width: 40px;
  height: 32px;
  border-radius: 12px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(187, 195, 219, 0.28);
  background: rgba(19, 26, 40, 0.82);
  color: #d7deee;
  font-size: 17px;
  line-height: 1;
  font-weight: 820;
}

.cabinet-smuggling-offer-title {
  color: #edf2fb;
  font-size: 19px;
  line-height: 1.15;
  font-weight: 820;
}

.cabinet-smuggling-offer-price {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #e8edf8;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 760;
  white-space: nowrap;
}

.cabinet-smuggling-offer-price strong {
  color: #f5f7fc;
  font-weight: 840;
}

.cabinet-smuggling-offer-price .cabinet-currency-icon-wrap,
.cabinet-smuggling-offer-price .cabinet-currency-icon-img {
  width: 18px;
  height: 18px;
}

.cabinet-smuggling-offer-state {
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(22, 158, 93, 0.7);
  background: rgba(5, 44, 25, 0.5);
  color: #3be18f;
  font-size: 15px;
  font-weight: 790;
  line-height: 1;
  white-space: nowrap;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cabinet-smuggling-offer-loot {
  display: grid;
  gap: 6px;
}

.cabinet-smuggling-loot-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.cabinet-smuggling-loot-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  border-radius: 11px;
  border: 1px solid rgba(112, 128, 157, 0.26);
  background: rgba(9, 14, 24, 0.7);
  padding: 4px 10px;
  color: #dce4f3;
  font-size: 13px;
  line-height: 1.1;
}

.cabinet-smuggling-loot-chip-main {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cabinet-smuggling-loot-chip-label {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cabinet-smuggling-loot-chip .cabinet-currency-icon-wrap {
  width: 18px;
  height: 18px;
}

.cabinet-smuggling-loot-chip .cabinet-currency-icon-img {
  width: 18px;
  height: 18px;
}

.cabinet-smuggling-loot-chip .cabinet-currency-icon-text {
  font-size: 16px;
}

.cabinet-smuggling-loot-chip strong {
  font-size: 18px;
  color: #f3f6fc;
  font-weight: 840;
}

.cabinet-smuggling-offer-card .btn {
  min-height: 52px;
  border-radius: 13px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.cabinet-smuggling-empty {
  grid-column: 1 / -1;
}

.cabinet-smuggling-offer-card.offer-tone-f {
  border-color: rgba(109, 120, 144, 0.52);
}

.cabinet-smuggling-offer-card.offer-tone-f .cabinet-smuggling-offer-code {
  border-color: rgba(160, 172, 196, 0.42);
}

.cabinet-smuggling-offer-card.offer-tone-p {
  border-color: rgba(39, 99, 186, 0.74);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(41, 90, 177, 0.35), transparent 56%),
    linear-gradient(180deg, rgba(14, 38, 80, 0.96), rgba(9, 29, 64, 0.92));
}

.cabinet-smuggling-offer-card.offer-tone-p .cabinet-smuggling-offer-code {
  border-color: rgba(98, 147, 221, 0.62);
  color: #c6dcff;
}

.cabinet-smuggling-offer-card.offer-tone-b {
  border-color: rgba(122, 68, 180, 0.76);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(107, 58, 162, 0.38), transparent 56%),
    linear-gradient(180deg, rgba(46, 22, 67, 0.95), rgba(36, 16, 52, 0.9));
}

.cabinet-smuggling-offer-card.offer-tone-b .cabinet-smuggling-offer-code {
  border-color: rgba(151, 102, 209, 0.62);
  color: #dbc4ff;
}

.cabinet-smuggling-offer-card.offer-tone-a {
  border-color: rgba(170, 121, 24, 0.78);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(156, 107, 14, 0.42), transparent 56%),
    linear-gradient(180deg, rgba(60, 41, 9, 0.95), rgba(48, 33, 7, 0.9));
}

.cabinet-smuggling-offer-card.offer-tone-a .cabinet-smuggling-offer-code {
  border-color: rgba(209, 164, 61, 0.62);
  color: #f7e2ae;
}

@media (max-width: 900px) {
  .cabinet-smuggling-balance-grid {
    grid-template-columns: 1fr;
  }

  .cabinet-smuggling-exchange-target-row {
    grid-template-columns: 1fr;
  }

  .cabinet-smuggling-exchange-target-row .btn {
    min-width: 0;
    width: 100%;
  }

  .cabinet-luska-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cabinet-smuggling-modal-dialog {
    border-radius: 18px;
    padding: 11px;
  }

  .cabinet-smuggling-modal-title {
    font-size: 16px;
  }

  .cabinet-smuggling-modal-timer {
    font-size: 10px;
  }

  .cabinet-smuggling-modal-close-btn {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }

  .cabinet-smuggling-modal-body .seg-btn {
    min-height: 38px;
    font-size: 12px;
  }

  .cabinet-smuggling-balance-pill strong {
    font-size: 16px;
  }

  .cabinet-smuggling-exchange-target-row input {
    min-height: 42px;
    font-size: 16px;
  }

  .cabinet-smuggling-exchange-target-row .btn {
    min-height: 42px;
    font-size: 14px;
  }

  .cabinet-smuggling-subtext {
    font-size: 12px;
  }

  .cabinet-smuggling-offer-title {
    font-size: 16px;
  }

  .cabinet-smuggling-offer-code {
    min-width: 34px;
    height: 28px;
    font-size: 17px;
  }

  .cabinet-smuggling-offer-price {
    font-size: 14px;
  }

  .cabinet-smuggling-offer-state {
    min-height: 26px;
    font-size: 12px;
    padding: 0 10px;
  }

  .cabinet-smuggling-loot-row {
    grid-template-columns: 1fr;
  }

  .cabinet-smuggling-loot-chip {
    min-height: 34px;
    font-size: 12px;
  }

  .cabinet-smuggling-loot-chip strong {
    font-size: 16px;
  }

  .cabinet-smuggling-offer-card .btn {
    min-height: 46px;
    font-size: 15px;
  }

  .cabinet-monthly-modal-dialog {
    border-radius: 18px;
    padding: 11px;
  }

  .cabinet-monthly-modal-title {
    font-size: 16px;
  }

  .cabinet-monthly-modal-timer {
    font-size: 10px;
  }

  .cabinet-monthly-overview-grid {
    grid-template-columns: 1fr;
  }

  .cabinet-monthly-today-title {
    font-size: 16px;
  }

  .cabinet-monthly-summary-main strong {
    font-size: 24px;
  }

  .cabinet-monthly-list {
    max-height: min(52vh, 320px);
  }

  .cabinet-monthly-row-title {
    font-size: 14px;
  }

  .cabinet-monthly-today-actions {
    justify-items: stretch;
  }

  .cabinet-monthly-today-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .cabinet-luska-modal-dialog,
  .cabinet-luska-reward-modal-dialog {
    border-radius: 18px;
    padding: 11px;
  }

  .cabinet-luska-modal-title {
    font-size: 16px;
  }

  .cabinet-luska-modal-timer {
    font-size: 10px;
  }

  .cabinet-luska-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cabinet-weapon-sub {
  color: #bcd0f4;
  font-size: 11px;
  line-height: 1.3;
  min-height: 14px;
}

.arsenal-potential-card {
  margin-top: 8px;
  border: 1px solid rgba(149, 180, 233, 0.24);
  border-radius: 16px;
  padding: 14px;
  background:
    radial-gradient(130% 130% at 100% 0%, rgba(56, 189, 248, 0.2), transparent 54%),
    radial-gradient(140% 120% at 0% 100%, rgba(16, 185, 129, 0.15), transparent 60%),
    linear-gradient(180deg, rgba(10, 22, 45, 0.92), rgba(7, 15, 31, 0.9));
  display: grid;
  gap: 12px;
}

.arsenal-potential-main {
  display: grid;
  gap: 4px;
}

.arsenal-potential-kicker {
  color: #8cf8d5;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 11px;
  font-weight: 780;
}

.arsenal-potential-value {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1;
  color: #f7fbff;
  font-weight: 860;
  font-family: var(--font-mono);
}

.arsenal-potential-note {
  color: #b6caef;
  font-size: 12px;
  line-height: 1.25;
}

.arsenal-potential-controls {
  display: grid;
  gap: 9px;
}

.arsenal-potential-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.arsenal-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  cursor: pointer;
}

.arsenal-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.arsenal-switch-track {
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.6);
  position: relative;
  transition: all .16s ease;
}

.arsenal-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: transform .16s ease;
}

.arsenal-switch input:checked + .arsenal-switch-track {
  background: linear-gradient(90deg, #f59e0b, #f97316);
  border-color: rgba(251, 146, 60, 0.85);
}

.arsenal-switch input:checked + .arsenal-switch-track .arsenal-switch-thumb {
  transform: translateX(20px);
}

.arsenal-switch-text {
  font-size: 12px;
  color: #d9e7ff;
  font-weight: 700;
}

.arsenal-switch.small .arsenal-switch-track {
  width: 38px;
  height: 20px;
}

.arsenal-switch.small .arsenal-switch-thumb {
  width: 14px;
  height: 14px;
}

.arsenal-switch.small input:checked + .arsenal-switch-track .arsenal-switch-thumb {
  transform: translateX(18px);
}

.arsenal-switch.small .arsenal-switch-text {
  font-size: 11px;
}

.arsenal-weapon-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.arsenal-weapon-card {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.arsenal-weapon-card.poison {
  border-color: rgba(52, 211, 153, 0.36);
}

.arsenal-weapon-card.gunshot {
  border-color: rgba(96, 165, 250, 0.34);
}

.arsenal-weapon-card.knife {
  border-color: rgba(248, 113, 113, 0.34);
}

.arsenal-weapon-card .simple-list-item .val {
  font-weight: 750;
  color: #eaf3ff;
}

.arsenal-weapon-promo {
  display: grid;
  gap: 6px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px dashed rgba(149, 180, 233, 0.2);
}

.arsenal-promo-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.arsenal-promo-input-wrap input {
  width: 100px;
  min-height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(149, 180, 233, 0.28);
  background: rgba(8, 18, 39, 0.6);
  color: #ecf4ff;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 9px;
}

.arsenal-promo-input-wrap span {
  font-size: 11px;
  color: #fcd34d;
  font-weight: 800;
}

.arsenal-weapon-buy {
  display: grid;
  gap: 6px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px dashed rgba(149, 180, 233, 0.2);
}

.arsenal-weapon-buy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.arsenal-weapon-buy-row input {
  width: 100%;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(149, 180, 233, 0.28);
  background: rgba(8, 18, 39, 0.6);
  color: #ecf4ff;
  font-size: 13px;
  font-family: var(--font-mono);
  padding: 6px 10px;
}

.arsenal-weapon-buy-row .btn {
  min-height: 34px;
  padding: 0 12px;
}

.arsenal-weapon-buy-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #b7caeb;
}

.arsenal-weapon-buy-meta strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #eef6ff;
  font-size: 14px;
  line-height: 1;
  font-family: var(--font-mono);
}

.arsenal-weapon-buy-meta strong .cabinet-currency-icon-wrap {
  width: 15px;
  height: 15px;
}

.arsenal-weapon-buy-status {
  display: grid;
  gap: 6px;
  min-height: 36px;
}

.arsenal-weapon-buy-unit {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(149, 180, 233, 0.16);
  background: rgba(9, 18, 37, 0.64);
}

.arsenal-weapon-buy-unit-label {
  color: #9fb3d8;
  font-size: 11px;
  line-height: 1.2;
}

.arsenal-weapon-buy-unit-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #eef6ff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  font-family: var(--font-mono);
}

.arsenal-weapon-buy-unit-value .cabinet-currency-icon-wrap {
  width: 15px;
  height: 15px;
}

.arsenal-weapon-buy-feedback {
  font-size: 11px;
  color: #9fb3d8;
  min-height: 14px;
  line-height: 1.3;
}

.arsenal-weapon-buy-feedback.ok {
  color: #86efac;
}

.arsenal-weapon-buy-feedback.err {
  color: #fda4af;
}

.arsenal-weapon-buy-feedback.warn {
  color: #fcd34d;
}

.arsenal-weapon-total {
  margin-top: 2px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgba(149, 180, 233, 0.16);
  padding-top: 8px;
  font-size: 11px;
  color: #b7caeb;
  text-transform: uppercase;
  letter-spacing: 0.45px;
}

.arsenal-weapon-total strong {
  color: #eef6ff;
  font-size: 16px;
  font-family: var(--font-mono);
}

.arsenal-weapon-bottom-grid {
  margin-top: 10px;
}

.arsenal-calc-card {
  overflow: hidden;
}

.arsenal-talent-calc-card {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(56, 189, 248, 0.1), transparent 52%),
    radial-gradient(120% 110% at 0% 100%, rgba(59, 130, 246, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(10, 22, 45, 0.9), rgba(7, 15, 30, 0.88));
}

.arsenal-talent-calc-head {
  align-items: flex-start;
  gap: 10px;
}

.arsenal-calc-head-actions {
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.arsenal-calc-head-actions .btn {
  min-height: 34px;
}

.arsenal-calc-head-actions-inline {
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.arsenal-calc-head-actions-inline .btn {
  flex: 0 0 auto;
}

.arsenal-talent-calc-mode-tabs {
  margin-top: 8px;
}

.talent-calc-mode-panel {
  display: none;
}

.talent-calc-mode-panel.active {
  display: grid;
}

.arsenal-calc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.arsenal-calc-kpi {
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 12px;
  padding: 10px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(35, 73, 149, 0.18), transparent 55%),
    rgba(8, 18, 38, 0.52);
  display: grid;
  gap: 4px;
}

.arsenal-calc-kpi.needle {
  border-color: rgba(59, 130, 246, 0.28);
}

.arsenal-calc-kpi span {
  font-size: 11px;
  color: #b7c8e8;
}

.arsenal-calc-kpi strong {
  font-size: 18px;
  line-height: 1.05;
  color: #edf4ff;
}

.arsenal-calc-kpi small {
  font-size: 11px;
  color: #cad8f3;
}

.arsenal-calc-layout {
  margin-top: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.arsenal-calc-panel {
  border: 1px solid rgba(149, 180, 233, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(12, 22, 44, 0.74), rgba(8, 16, 31, 0.7));
  padding: 12px;
  display: grid;
  gap: 10px;
}

.arsenal-calc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.arsenal-calc-panel-head.compact h3 {
  font-size: 15px;
}

.arsenal-calc-panel h3 {
  margin: 0;
  font-size: 16px;
}

.arsenal-calc-auto-block {
  margin-top: 2px;
  border-top: 1px solid rgba(149, 180, 233, 0.12);
  padding-top: 10px;
  display: grid;
  gap: 8px;
}

.arsenal-calc-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.arsenal-calc-result {
  border: 1px solid rgba(149, 180, 233, 0.16);
  border-radius: 12px;
  padding: 9px 10px;
  background: rgba(7, 15, 30, 0.56);
  display: grid;
  gap: 3px;
}

.arsenal-calc-result span {
  font-size: 11px;
  color: #b8caea;
}

.arsenal-calc-result strong {
  font-size: 16px;
  color: #eff6ff;
}

#arsenal-calc-bar {
  margin: 0;
  padding: 0;
  height: 10px;
  border: 1px solid rgba(149, 180, 233, 0.14);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  overflow: hidden;
}

#arsenal-calc-bar .progress-fill {
  background: linear-gradient(90deg, #ef4444, #f97316);
}

#arsenal-calc-bar.warn .progress-fill {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

#arsenal-calc-bar.ok .progress-fill {
  background: linear-gradient(90deg, #22c55e, #14b8a6);
}

.cabinet-service-card {
  border-color: rgba(149, 180, 233, 0.22);
}

.cabinet-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cabinet-service-item {
  border-radius: 12px;
  border: 1px solid rgba(149, 180, 233, 0.18);
  background: rgba(8, 18, 38, 0.48);
  padding: 10px;
  display: grid;
  gap: 4px;
}

.cabinet-service-item.wide {
  grid-column: 1 / -1;
}

.cabinet-service-label {
  font-size: 11px;
  color: #b8c9ea;
}

.cabinet-service-value {
  font-size: 18px;
  font-weight: 760;
}

.cabinet-service-meta {
  font-size: 12px;
  color: #c9daf8;
  line-height: 1.3;
}

.cabinet-actions {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.cabinet-actions .btn {
  width: 100%;
}

.visually-hidden-wrap {
  display: none;
}

.work-progress-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.work-energy-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.work-run-progress-box {
  margin: 10px 0 4px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(13, 25, 48, 0.45), rgba(9, 17, 33, 0.4));
}

.work-status-card {
  position: relative;
  border: 1px solid rgba(149, 180, 233, 0.16);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(8, 18, 38, 0.52), rgba(8, 18, 38, 0.42));
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease, transform .22s ease;
}

.work-status-card[data-work-task-state="running"] {
  border-color: rgba(52, 211, 153, 0.34);
  box-shadow: 0 16px 36px rgba(5, 46, 22, 0.2), inset 0 0 0 1px rgba(52, 211, 153, 0.08);
  background:
    radial-gradient(circle at top right, rgba(52, 211, 153, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(8, 31, 27, 0.62), rgba(8, 18, 38, 0.52));
}

.work-status-card[data-work-task-state="queued"] {
  border-color: rgba(250, 204, 21, 0.3);
  box-shadow: 0 14px 32px rgba(120, 53, 15, 0.16), inset 0 0 0 1px rgba(250, 204, 21, 0.06);
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(42, 30, 9, 0.58), rgba(8, 18, 38, 0.48));
}

.work-status-card[data-work-task-state="failed"] {
  border-color: rgba(248, 113, 113, 0.28);
  background:
    radial-gradient(circle at top right, rgba(248, 113, 113, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(52, 18, 26, 0.52), rgba(8, 18, 38, 0.42));
}

.work-status-card[data-work-task-state="done"] {
  border-color: rgba(96, 165, 250, 0.28);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(16, 31, 58, 0.54), rgba(8, 18, 38, 0.42));
}

.work-run-live-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.18), rgba(10, 20, 42, 0.62));
}

.work-run-live-indicator[hidden] {
  display: none;
}

.work-run-live-indicator[data-state="running"] {
  border-color: rgba(52, 211, 153, 0.36);
  background: linear-gradient(135deg, rgba(6, 95, 70, 0.42), rgba(8, 32, 29, 0.72));
}

.work-run-live-indicator[data-state="queued"] {
  border-color: rgba(250, 204, 21, 0.34);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.34), rgba(49, 26, 5, 0.72));
}

.work-run-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: #93c5fd;
  box-shadow: 0 0 0 0 rgba(147, 197, 253, 0.55);
  animation: work-run-live-pulse 1.8s ease-out infinite;
}

.work-run-live-indicator[data-state="running"] .work-run-live-dot {
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
}

.work-run-live-indicator[data-state="queued"] .work-run-live-dot {
  background: #fbbf24;
  box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.5);
}

.work-run-live-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.work-run-live-copy strong {
  color: #eff6ff;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 800;
}

.work-run-live-copy span {
  color: #cfe0fb;
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.work-status-card[data-work-task-state="running"] .work-run-progress-box {
  border-color: rgba(52, 211, 153, 0.24);
  background: linear-gradient(180deg, rgba(7, 51, 40, 0.46), rgba(8, 24, 31, 0.46));
}

.work-status-card[data-work-task-state="queued"] .work-run-progress-box {
  border-color: rgba(250, 204, 21, 0.22);
  background: linear-gradient(180deg, rgba(66, 38, 6, 0.44), rgba(23, 15, 10, 0.42));
}

@keyframes work-run-live-pulse {
  0% {
    transform: scale(1);
  }
  30% {
    box-shadow: 0 0 0 8px transparent;
  }
  60% {
    transform: scale(1.08);
    box-shadow: 0 0 0 12px transparent;
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 transparent;
  }
}

.work-hideouts-card {
  display: grid;
  gap: 10px;
}

.work-hideouts-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.work-hideouts-kpi-card {
  border-radius: 12px;
  border: 1px solid rgba(149, 180, 233, 0.16);
  background: rgba(8, 18, 38, 0.38);
  padding: 10px;
  display: grid;
  gap: 4px;
}

.work-hideouts-kpi-card .label {
  color: #bcd0ef;
  font-size: 11px;
  line-height: 1.2;
}

.work-hideouts-kpi-card strong {
  color: #edf4ff;
  font-size: 20px;
  line-height: 1.05;
  font-weight: 800;
}

.work-hideouts-kpi-card .meta {
  color: #9cb4da;
  font-size: 11px;
  line-height: 1.25;
  word-break: break-word;
}

.work-hideouts-actions {
  gap: 8px;
  flex-wrap: wrap;
}

.work-hideouts-progress-box {
  margin-top: 0;
  margin-bottom: 0;
}

.work-escape-route-box {
  margin-top: 8px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(12, 22, 41, 0.52), rgba(7, 14, 28, 0.45));
}

.work-live-feed-box {
  margin-top: 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  padding: 10px;
  background: rgba(8, 18, 38, 0.34);
}

.work-live-feed-list {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  max-height: 168px;
  overflow: auto;
}

.work-live-feed-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border-radius: 10px;
  border: 1px solid rgba(149, 180, 233, 0.12);
  background: rgba(8, 18, 38, 0.24);
  padding: 6px 8px;
}

.work-live-feed-row.ok {
  border-color: rgba(16, 185, 129, 0.22);
}

.work-live-feed-row.warn {
  border-color: rgba(250, 204, 21, 0.2);
}

.work-live-feed-row.err {
  border-color: rgba(244, 63, 94, 0.24);
}

.work-live-feed-time {
  color: #bcd0ef;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.work-live-feed-msg {
  color: #e8f0ff;
  font-size: 12px;
  line-height: 1.25;
  word-break: break-word;
}

.work-escape-route-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.work-escape-step {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(8, 18, 38, 0.28);
  padding: 8px;
  display: grid;
  gap: 6px;
}

.work-escape-step.done {
  border-color: rgba(16, 185, 129, 0.32);
  background: rgba(6, 24, 20, 0.34);
}

.work-escape-step.current {
  border-color: rgba(59, 130, 246, 0.36);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.work-escape-step.queued {
  border-color: rgba(148, 163, 184, 0.2);
  opacity: 0.96;
}

.work-escape-step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.work-escape-step-head-text {
  min-width: 0;
}

.work-escape-step-title {
  font-size: 13px;
  font-weight: 700;
  color: #eff6ff;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-escape-step-meta {
  margin-top: 2px;
  color: #bcd0ef;
  font-size: 11px;
  line-height: 1.25;
}

.work-escape-step-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #cfe0fb;
}

.work-escape-step-progress-row strong {
  font-size: 12px;
  color: #f1f7ff;
}

.work-escape-step-bar {
  height: 6px;
}

.work-escape-step-bar .progress-fill {
  background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.work-escape-step.done .work-escape-step-bar .progress-fill {
  background: linear-gradient(90deg, #34d399, #10b981);
}

.work-escape-step.current .work-escape-step-bar .progress-fill {
  background: linear-gradient(90deg, #93c5fd, #3b82f6);
}

.work-escape-step-sub {
  color: #9fb5d7;
  font-size: 11px;
  line-height: 1.2;
}

.work-energy-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(13, 25, 48, 0.6), rgba(9, 17, 33, 0.55));
  display: grid;
  gap: 6px;
}

.work-energy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  color: #d9e7ff;
}

.work-energy-top strong {
  color: #f4f8ff;
  font-size: 13px;
}

.work-energy-card .progress-bar,
.work-run-progress-box .progress-bar,
.work-refresh-box .progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
  position: relative;
}

.work-energy-card .progress-fill,
.work-run-progress-box .progress-fill,
.work-refresh-box .progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transition: width 0.2s ease;
}

.work-progress-actions {
  align-items: stretch;
  gap: 8px;
  margin-top: 8px;
}

.work-progress-actions .btn {
  white-space: nowrap;
}

.work-refresh-box {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: rgba(8, 18, 38, 0.36);
  padding: 8px 10px;
  display: grid;
  gap: 6px;
}

.work-refresh-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.work-refresh-head #work-progress-refresh-main {
  font-size: 12px;
  color: #dbeafe;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-refresh-head #work-progress-refresh-meta {
  font-size: 11px;
  color: #bfdbfe;
}

.work-progress-pane {
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 12px;
  background: rgba(8, 18, 38, 0.42);
  padding: 10px;
  min-width: 0;
}

.work-progress-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.work-progress-pane-head .muted {
  font-size: 12px;
  white-space: nowrap;
}

.work-progress-list {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
}

.work-progress-item {
  border: 1px solid rgba(149, 180, 233, 0.16);
  border-radius: 10px;
  background: rgba(8, 18, 38, 0.22);
  padding: 8px 10px;
}

.work-progress-item .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.work-progress-item .meta {
  margin-top: 4px;
  font-size: 12px;
  color: #d7e3f8;
}

.work-progress-item .sub {
  margin-top: 4px;
  font-size: 12px;
  color: #b7c8ea;
  line-height: 1.3;
}

.work-progress-item.warn {
  border-color: rgba(250, 204, 21, 0.32);
}

.work-progress-item.err {
  border-color: rgba(244, 63, 94, 0.32);
}

.work-progress-row-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px;
  line-height: 1;
  border: 1px solid rgba(149, 180, 233, 0.2);
  background: rgba(149, 180, 233, 0.08);
  color: #eff6ff;
}

.work-progress-row-badge.ok {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
}

.work-progress-row-badge.warn {
  border-color: rgba(250, 204, 21, 0.35);
  background: rgba(250, 204, 21, 0.12);
}

.work-progress-row-badge.err {
  border-color: rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.12);
}

.app-page[data-page="work"] {
  min-width: 0;
  overflow-x: hidden;
}

.app-page[data-page="work"] .panel-card {
  min-width: 0;
  overflow-x: hidden;
}

.app-page[data-page="work"] .work-top-tabs-card .card-head,
.app-page[data-page="work"] .work-top-tabs-card .resource-strip {
  display: none;
}

.app-page[data-page="work"] .work-top-tabs-card {
  padding-top: 10px;
  padding-bottom: 10px;
}

.app-page[data-page="work"] .work-top-tabs-card .seg-tabs {
  margin-top: 0;
}

.app-page[data-page="work"] .work-launch-card { order: 2; }
.app-page[data-page="work"] .seg-section[data-seg-section^="work-"] { order: 3; }
.app-page[data-page="work"] .work-status-card { order: 4; }

.app-page[data-page="work"][data-work-active-seg="work-hideouts"] .work-launch-card,
.app-page[data-page="work"][data-work-active-seg="work-hideouts"] .work-status-card {
  display: none;
}

.app-page[data-page="work"] .card-head {
  flex-wrap: wrap;
  align-items: flex-start;
}

.app-page[data-page="work"] .card-head > * {
  min-width: 0;
}

.app-page[data-page="work"] .card-head .muted,
.app-page[data-page="work"] .task-progress,
.app-page[data-page="work"] .work-run-sub,
.app-page[data-page="work"] .work-progress-pane-head .muted,
.app-page[data-page="work"] .work-live-feed-meta {
  overflow-wrap: anywhere;
}

.app-page[data-page="work"] .inline-actions {
  width: 100%;
  justify-content: flex-start;
}

.app-page[data-page="work"] .seg-tabs {
  min-width: 0;
}

.work-advanced-details {
  margin-top: 10px;
  border: 1px solid rgba(149, 180, 233, 0.16);
  border-radius: 12px;
  background: rgba(8, 18, 38, 0.28);
  overflow: hidden;
}

.work-advanced-summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #e8f0ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.work-advanced-summary::-webkit-details-marker {
  display: none;
}

.work-advanced-summary::after {
  content: "▾";
  color: #bcd0f4;
  font-size: 12px;
  transition: transform .18s ease;
}

.work-advanced-details[open] .work-advanced-summary {
  border-bottom: 1px solid rgba(149, 180, 233, 0.12);
  background: rgba(17, 31, 58, 0.34);
}

.work-advanced-details[open] .work-advanced-summary::after {
  transform: rotate(180deg);
}

.work-advanced-grid {
  padding: 10px;
}

.work-launch-actions {
  margin-top: 10px;
}

.work-picker-actions {
  margin-top: 8px;
}

.work-status-tabs {
  margin-top: 8px;
}

.work-list-filters {
  margin: -2px 0 10px;
  justify-content: flex-start;
}

.work-pane-empty {
  border: 1px dashed rgba(149, 180, 233, 0.18);
  border-radius: 12px;
  padding: 10px;
  background: rgba(8, 18, 38, 0.2);
}

.work-picker-modal-dialog {
  width: min(700px, calc(100vw - 24px));
}

.work-picker-modal-body {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  max-height: min(62vh, 620px);
  overflow: auto;
  padding-right: 2px;
}

.work-picker-modal-body .checklist-grid {
  grid-template-columns: 1fr;
  gap: 6px;
}

.work-picker-modal-body .checklist-item {
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 10px;
  border-color: rgba(149, 180, 233, 0.16);
  background: linear-gradient(180deg, rgba(15, 28, 54, 0.56), rgba(8, 18, 38, 0.5));
  transition: border-color .14s ease, background-color .14s ease, transform .12s ease, box-shadow .14s ease;
}

.work-picker-modal-body .checklist-item:hover {
  border-color: rgba(149, 180, 233, 0.26);
  background: linear-gradient(180deg, rgba(20, 36, 66, 0.62), rgba(10, 21, 42, 0.56));
  transform: translateX(1px);
}

.work-picker-modal-body .checklist-item input {
  width: 14px;
  height: 14px;
}

.work-picker-modal-body .checklist-item .checklist-item-title {
  font-size: 12px;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.work-picker-modal-body .checklist-item .checklist-item-id {
  padding: 1px 6px;
  font-size: 10px;
  border-color: rgba(149, 180, 233, 0.14);
  background: rgba(149, 180, 233, 0.05);
}

.work-picker-modal-body .checklist-item:has(input:checked) {
  border-color: rgba(96, 165, 250, 0.42);
  background: linear-gradient(180deg, rgba(27, 46, 84, 0.68), rgba(15, 30, 56, 0.62));
  box-shadow:
    inset 2px 0 0 rgba(96, 165, 250, 0.8),
    inset 0 0 0 1px rgba(96, 165, 250, 0.08);
  transform: translateX(2px);
}

.boss-combo-tools {
  margin-top: 6px;
  margin-bottom: 4px;
}

/* Prevent iOS Safari focus-zoom in modal inputs/selects. */
@supports (-webkit-touch-callout: none) {
  .boss-config-modal input,
  .boss-config-modal select,
  .boss-config-modal textarea,
  [role="dialog"][aria-modal="true"] input,
  [role="dialog"][aria-modal="true"] select,
  [role="dialog"][aria-modal="true"] textarea {
    font-size: 16px !important;
  }

  .boss-config-modal-dialog,
  [role="dialog"][aria-modal="true"] {
    -webkit-text-size-adjust: 100%;
  }
}

@media (max-width: 1080px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .resource-strip {
    grid-template-columns: 1fr;
  }

  .dual-grid {
    grid-template-columns: 1fr;
  }

  .checklist-grid {
    grid-template-columns: 1fr;
  }

  .inline-actions {
    justify-content: flex-start;
  }

  .cabinet-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cabinet-currency-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fortune-live-strip,
  .fortune-layout-grid,
  .fortune-layout-grid-feeds,
  .work-energy-strip,
  .work-progress-grid,
  .work-escape-route-grid {
    grid-template-columns: 1fr;
  }

  .zaruba-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zaruba-bags-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zaruba-modes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zaruba-bags-group-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  .page {
    width: min(100vw, calc(100vw - 10px));
    margin: 6px auto 18px;
    gap: 8px;
  }

  .card {
    padding: 11px;
    border-radius: 14px;
  }

  .zaruba-overview-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .zaruba-bags-overview-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .zaruba-auto-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .zaruba-overview-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .zaruba-bags-overview-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .zaruba-changer-grid {
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
  }

  .zaruba-changer-swap-mark {
    justify-self: center;
    transform: none;
  }

  .app-page[data-page="zaruba"] .row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .app-page[data-page="zaruba"] .row .btn {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .zaruba-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zaruba-bags-kpi-grid {
    grid-template-columns: 1fr;
  }

  .zaruba-modes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zaruba-auto-grid {
    grid-template-columns: 1fr;
  }

  .zaruba-task-row-head {
    flex-direction: row;
    align-items: center;
  }

  .zaruba-task-row-head span {
    white-space: nowrap;
  }

  .zaruba-task-row-foot {
    flex-wrap: wrap;
  }

  .zaruba-bags-drop-head {
    align-items: flex-start;
  }

  .app-page[data-page="work"] .row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .app-page[data-page="work"] .row > .btn,
  .app-page[data-page="work"] .work-progress-actions .btn {
    width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }

  .app-page[data-page="work"] .work-progress-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .app-page[data-page="work"] .work-refresh-box {
    width: 100%;
  }

  .app-page[data-page="work"] .work-status-tabs .seg-btn {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 10px;
  }

  .app-page[data-page="work"] .work-list-filters .btn {
    flex: 1 1 calc(50% - 6px);
  }

  .app-page[data-page="work"] .work-picker-actions .btn {
    flex: 1 1 calc(50% - 6px);
  }

  .work-hideouts-kpi-grid {
    grid-template-columns: 1fr;
  }

  .work-hideouts-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .app-page[data-page="work"] .checklist-item {
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
  }

  .app-page[data-page="work"] .checklist-item .checklist-item-id {
    grid-column: 2 / 3;
    justify-self: start;
    margin-top: 2px;
  }

  .app-page[data-page="work"] .checklist-item .worker-inline-progress {
    grid-column: 1 / -1;
    margin-top: 4px;
  }

  .app-page[data-page="work"] .checklist-item .worker-inline-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .app-page[data-page="work"] .work-picker-modal-body .checklist-item {
    grid-template-columns: 16px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    padding: 7px 8px;
  }

  .app-page[data-page="work"] .work-picker-modal-body .checklist-item .checklist-item-id {
    grid-column: auto;
    justify-self: end;
    margin-top: 0;
  }

  .boss-catalog-column-list {
    max-height: none;
  }

  .app-page[data-page="bosses"] .seg-section[data-seg-section="bossesMode-bosses"].active {
    min-height: calc(100svh - 235px);
  }

  .app-page[data-page="bosses"] .seg-section[data-seg-section="bossesMode-bosses"].active > .panel-card {
    min-height: calc(100svh - 235px);
  }

  .boss-config-modal-dialog {
    top: auto;
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    width: auto;
    transform: none;
    max-height: calc(100vh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    border-radius: 16px;
    padding: 10px;
  }

  .work-picker-modal-body {
    max-height: calc(100vh - 190px);
  }

  .boss-config-modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: -10px -10px 0;
    padding: 10px;
    background: linear-gradient(180deg, rgba(17, 27, 53, 0.98), rgba(17, 27, 53, 0.84));
    border-bottom: 1px solid rgba(149, 180, 233, 0.12);
    border-radius: 16px 16px 10px 10px;
  }

  .boss-config-modal-actions {
    grid-template-columns: 1fr;
  }

  .boss-config-modal-dialog-boss {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100vw;
    max-height: calc(100svh - env(safe-area-inset-top, 0px));
    max-height: calc(100dvh - env(safe-area-inset-top, 0px));
    min-height: min(84svh, 760px);
    border-radius: 18px 18px 0 0;
    padding: 0;
  }

  .boss-config-modal-dialog-boss .boss-config-modal-head {
    position: sticky;
    top: 0;
    z-index: 4;
    margin: 0;
    padding: 11px 12px 10px;
    border-radius: 18px 18px 0 0;
  }

  .boss-config-modal-dialog-boss .boss-config-modal-title {
    font-size: 18px;
  }

  .boss-config-modal-dialog-boss .boss-config-modal-sub {
    font-size: 11px;
    line-height: 1.2;
  }

  .boss-config-modal-body-boss {
    padding: 9px 12px 12px;
    gap: 8px;
  }

  .boss-modal-section {
    padding: 9px;
    gap: 7px;
  }

  .boss-modal-form-grid,
  .boss-key-bonus-grid {
    grid-template-columns: 1fr;
  }

  .boss-config-modal-dialog-boss .boss-config-modal-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .boss-config-modal-dialog-boss .boss-config-modal-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .catala-card-slots {
    min-height: 132px;
    gap: 6px;
    padding: 10px;
  }

  .catala-slot {
    min-height: 64px;
    font-size: 18px;
  }

  .catala-card-face {
    min-height: 64px;
    padding: 5px;
  }

  .catala-card-suit {
    font-size: 18px;
  }

  .catala-actions-row {
    grid-template-columns: 1fr;
  }

  .fortune-hero-top {
    flex-direction: column;
  }

  .fortune-hero-side {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 8px;
  }

  .fortune-status-chip {
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .fortune-actions-grid,
  .fortune-kpi-grid {
    grid-template-columns: 1fr;
  }

  .brigades-kpis {
    grid-template-columns: 1fr;
  }

  .brigades-toolbar-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .brigades-toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .brigades-member-card,
  .brigades-list-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .brigades-member-actions,
  .brigades-member-controls,
  .brigades-list-actions {
    justify-content: flex-start;
  }

  .brigades-member-stats {
    min-width: 0;
    width: 100%;
  }

  .brigades-top-line {
    flex-direction: column;
    align-items: stretch;
  }

  .brigades-top-title-wrap {
    justify-content: space-between;
  }

  .brigades-top-damage {
    width: 100%;
    text-align: left;
  }

  .brigades-log-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .brigades-log-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .fortune-feed-list {
    max-height: 280px;
  }

  .wheel-stats-grid,
  .wheel-stats-columns {
    grid-template-columns: 1fr;
  }

  .catala-stats-summary-grid {
    grid-template-columns: 1fr;
  }

  .catala-stats-section {
    padding: 10px;
  }

  .catala-stats-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .catala-stats-game-head,
  .catala-stats-game-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .catala-stats-game-meta,
  .catala-stats-game-rewards,
  .catala-stats-reward-strip.compact {
    text-align: left;
    justify-content: flex-start;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .btn {
    flex: 1;
  }

  .topbar-kpis {
    width: 100%;
  }

  .topbar-kpi {
    flex: 1;
    min-width: 0;
  }

  .btn-grid {
    grid-template-columns: 1fr;
  }

  .quick-nav-grid {
    grid-template-columns: 1fr;
  }

  .bratva-toolbar {
    align-items: stretch;
  }

  .bratva-toolbar .grow {
    flex-basis: 100%;
  }

  .bratva-filter-select {
    width: 100%;
    min-width: 0;
  }

  .bratva-filter-select select {
    width: 100%;
    min-width: 0;
  }

  .bratva-top-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bratva-load-row {
    flex-wrap: wrap;
  }

  .bratva-load-row .btn {
    flex: 1 1 100%;
  }

  .bratva-load-row .chip {
    width: 100%;
    text-align: center;
  }

  .bratva-toolbar .btn {
    flex: 1 1 calc(50% - 4px);
  }

  .bratva-item {
    grid-template-columns: auto 40px minmax(0, 1fr);
  }

  .bratva-item-side {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    padding-left: 24px;
  }

  .bratva-item.single-metric {
    grid-template-columns: auto 38px minmax(0, 1fr) auto;
    align-items: center;
  }

  .bratva-item.single-metric .bratva-item-side {
    grid-column: auto;
    min-width: 104px;
    padding-left: 0;
    align-self: center;
    justify-self: end;
    margin-left: auto;
  }

  .bratva-item.single-metric.is-players .bratva-item-side {
    justify-self: stretch;
    display: flex;
    justify-content: flex-end;
    min-width: 112px;
  }

  .bratva-item.multi-metric.is-players {
    grid-template-columns: auto 40px minmax(0, 1fr) 102px;
    align-items: center;
  }

  .bratva-item.multi-metric.is-players .bratva-item-side {
    grid-column: auto;
    min-width: 96px;
    padding-left: 0;
    justify-self: stretch;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .bratva-request-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bratva-request-actions {
    flex-direction: row;
    min-width: 0;
  }

  .bratva-request-actions .btn {
    flex: 1 1 0;
  }

  .bratva-action-bar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bratva-action-bar-actions {
    width: 100%;
  }

  .bratva-action-bar-actions .btn {
    flex: 1 1 0;
  }

  .bratva-action-bar-meta {
    white-space: normal;
  }

  .bratva-podogrev-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bratva-podogrev-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .bratva-podogrev-toolbar .btn {
    width: 100%;
  }

  .bratva-podogrev-send-actions {
    width: 100%;
  }

  .bratva-podogrev-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bratva-podogrev-actions .btn {
    flex: 1 1 calc(50% - 4px);
  }

  .bratva-podogrev-item {
    grid-template-columns: auto 36px minmax(0, 1fr);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    width: calc(100vw - 10px);
    border-radius: 14px;
    bottom: 6px;
  }

  .cabinet-profile-top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .cabinet-theme-visual {
    justify-self: end;
  }

  .cabinet-mini-cards-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cabinet-vpi-card {
    min-width: 0;
  }

  .cabinet-player-name {
    font-size: 18px;
  }

  .cabinet-sub-card {
    padding: 8px 10px;
  }

  .cabinet-sub-status {
    font-size: 13px;
  }

  .cabinet-sub-icon {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  #s-license-end {
    font-size: 11px;
  }

  .cabinet-smuggling-balance-grid,
  .cabinet-smuggling-offers-list,
  .cabinet-smuggling-exchange-target-grid,
  .cabinet-weapon-grid,
  .cabinet-service-grid,
  .arsenal-weapon-grid {
    grid-template-columns: 1fr;
  }

  .cabinet-currency-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cabinet-crow-actions {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .arsenal-potential-card {
    padding: 12px;
  }

  .arsenal-potential-value {
    font-size: 32px;
  }

  .arsenal-promo-input-wrap input {
    width: 84px;
  }

  .arsenal-calc-kpi-grid,
  .arsenal-calc-result-grid {
    grid-template-columns: 1fr;
  }

  .arsenal-calc-head-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .baryga-zsh-hero {
    padding: 12px;
  }

  .baryga-zsh-head {
    flex-wrap: wrap;
  }

  .baryga-zsh-launch {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .baryga-zsh-main-btn {
    min-width: 0;
  }

  .baryga-zsh-status-grid {
    grid-template-columns: 1fr;
  }

  .baryga-zsh-status-top .chip {
    min-width: 0;
  }

  .baryga-zsh-summary-row {
    grid-template-columns: 1fr;
  }

  .baryga-stew-head {
    flex-wrap: wrap;
  }

  .baryga-stew-actions {
    grid-template-columns: 1fr;
  }

  .baryga-stew-main-btn {
    min-width: 0;
  }

  .baryga-stew-kpis {
    grid-template-columns: 1fr;
  }

  .baryga-stew-rewards-list {
    max-height: 220px;
  }

  .baryga-stew-hides-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .baryga-parcels-grid {
    grid-template-columns: 1fr;
  }

  .baryga-parcels-box-head {
    flex-wrap: wrap;
  }

  .baryga-parcels-box-head-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .baryga-parcels-list {
    max-height: 240px;
  }

  .baryga-parcels-inbox-row {
    grid-template-columns: 1fr;
  }

  .baryga-parcels-inbox-actions {
    justify-items: start;
  }

  .baryga-parcels-buy-controls {
    grid-template-columns: 1fr;
  }

  .baryga-parcels-send-grid.two {
    grid-template-columns: 1fr;
  }

  .baryga-baul-head {
    flex-wrap: wrap;
  }

  .baryga-baul-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .baryga-baul-actions .btn {
    width: 100%;
  }

  .baryga-baul-kpi-grid {
    grid-template-columns: 1fr;
  }

  .baryga-baul-lists {
    grid-template-columns: 1fr;
  }

  .baryga-baul-rewards-list {
    max-height: 220px;
  }

  .baryga-talents-card .card-head {
    align-items: flex-start;
  }

  .baryga-talents-card .card-head .row {
    margin-left: 0;
  }

  .baryga-talents-summary-grid {
    grid-template-columns: 1fr;
  }

  .baryga-talents-grid {
    grid-template-columns: 1fr;
  }

  .baryga-sets-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .baryga-sets-filter-pills {
    justify-content: flex-start;
  }

  .baryga-sets-select-grid {
    grid-template-columns: 1fr;
  }

  .arsenal-kolsik-grid {
    grid-template-columns: 1fr;
  }

  .baryga-sets-list {
    max-height: 320px;
  }

  .baryga-zsh-status-top,
  .baryga-zsh-results-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .baryga-sets-row-top {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .baryga-sets-row-side {
    justify-content: flex-start;
  }

  .baryga-sets-row-footer {
    flex-wrap: wrap;
  }

  .baryga-zsh-purchases-list {
    max-height: 220px;
  }
}

@media (min-width: 980px) {
  .arsenal-calc-layout {
    grid-template-columns: 1.1fr 1fr;
  }
}

.boss-gadalka-card {
  display: grid;
  gap: 12px;
}

.boss-gadalka-locked {
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.5);
  padding: 14px;
}

.boss-gadalka-locked-title {
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
}

.boss-gadalka-locked-meta {
  margin-top: 6px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.35;
}

.boss-gadalka-main {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.boss-gadalka-launch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.boss-gadalka-launch-grid label {
  display: grid;
  gap: 5px;
}

.boss-gadalka-launch-grid label > span {
  color: #cbd5e1;
  font-size: 12px;
}

.boss-gadalka-launch-grid select {
  width: 100%;
}

#boss-gadalka-seed-input,
#boss-gadalka-template,
#boss-gadalka-boss-select,
#boss-gadalka-mode-select,
#boss-gadalka-attack-mode-select {
  font-size: 16px;
  min-width: 0;
  max-width: 100%;
}

#boss-gadalka-seed-input,
#boss-gadalka-template {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.boss-gadalka-launch-btn-wrap {
  display: flex;
  align-items: flex-end;
}

.boss-gadalka-launch-btn-wrap .btn {
  width: 100%;
}

.boss-gadalka-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.boss-gadalka-kpi {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.52);
  padding: 10px 11px;
  display: grid;
  gap: 4px;
}

.boss-gadalka-kpi span {
  color: #93c5fd;
  font-size: 11px;
  letter-spacing: .02em;
}

.boss-gadalka-kpi strong {
  color: #f8fafc;
  font-size: 15px;
  line-height: 1.2;
}

.boss-gadalka-kpi small {
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.25;
}

.boss-gadalka-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.boss-gadalka-template-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.boss-gadalka-template-head .label {
  margin: 0;
}

.boss-gadalka-seq-card,
.boss-gadalka-log-card {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.52);
  padding: 10px 11px;
  min-width: 0;
  max-width: 100%;
}

.boss-gadalka-seq-head,
.boss-gadalka-log-head {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.boss-gadalka-seq {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
}

.boss-gadalka-seq-empty {
  color: #94a3b8;
  font-size: 12px;
}

.boss-gadalka-seq-chip {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: rgba(37, 99, 235, 0.22);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 700;
}

.boss-gadalka-log {
  max-height: 280px;
  overflow: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.boss-gadalka-log-empty {
  color: #94a3b8;
  font-size: 12px;
}

.boss-gadalka-log-row {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.4);
  padding: 7px 9px;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
  max-width: 100%;
}

.boss-gadalka-log-row.ok {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(22, 101, 52, 0.28);
}

.boss-gadalka-log-row.warn {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(146, 64, 14, 0.28);
}

.boss-gadalka-log-row.err {
  border-color: rgba(239, 68, 68, 0.34);
  background: rgba(127, 29, 29, 0.28);
}

#boss-gadalka-template {
  width: 100%;
  resize: vertical;
  min-height: 110px;
}

.app-page[data-page="bosses"] {
  min-width: 0;
  overflow-x: hidden;
}

.app-page[data-page="bosses"] .panel-card,
.app-page[data-page="bosses"] .seg-section {
  min-width: 0;
  overflow-x: hidden;
}

@media (max-width: 740px) {
  .boss-gadalka-launch-grid {
    grid-template-columns: 1fr;
  }

  .boss-gadalka-kpi-row {
    grid-template-columns: 1fr;
  }
}

.app-update-toast {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 1301;
  border-radius: 14px;
  border: 1px solid rgba(149, 180, 233, 0.34);
  background:
    radial-gradient(160% 180% at 100% 0%, rgba(59, 130, 246, 0.24), transparent 55%),
    linear-gradient(180deg, rgba(16, 31, 61, 0.96), rgba(10, 22, 45, 0.94));
  box-shadow: 0 14px 34px rgba(2, 8, 21, 0.45);
  padding: 12px;
  display: none;
}

.app-update-toast.open {
  display: block;
}

.app-update-toast-title {
  color: #eff6ff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.app-update-toast-text {
  margin-top: 6px;
  color: #bfdbfe;
  font-size: 12px;
  line-height: 1.35;
}

.app-update-toast-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.smuggling-arrival-banner {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 10px);
  left: 50%;
  transform: translate(-50%, -14px);
  width: min(96vw, 560px);
  z-index: 1302;
  border-radius: 14px;
  border: 1px solid rgba(119, 191, 255, 0.36);
  background:
    radial-gradient(150% 150% at 100% 0%, rgba(52, 211, 153, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(12, 30, 57, 0.97), rgba(9, 21, 42, 0.96));
  box-shadow: 0 14px 32px rgba(2, 8, 21, 0.44);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.smuggling-arrival-banner.open {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.smuggling-arrival-banner-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 8px;
  flex: 0 0 auto;
}

.smuggling-arrival-banner-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.smuggling-arrival-banner-title {
  color: #eff9ff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
}

.smuggling-arrival-banner-text {
  color: #b9dbff;
  font-size: 11px;
  line-height: 1.3;
}

.smuggling-arrival-banner-close {
  appearance: none;
  border: 1px solid rgba(149, 180, 233, 0.26);
  background: rgba(9, 20, 42, 0.64);
  color: #e7f2ff;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 760px) {
  .bratva-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-update-toast {
    left: auto;
    right: 16px;
    width: min(92vw, 360px);
    bottom: 16px;
  }
}
