:root {
  --bg: #0a1228;
  --bg-soft: #111c37;
  --surface: #152443;
  --surface-2: #1b2c4f;
  --line: rgba(137, 170, 229, 0.24);
  --line-strong: rgba(137, 170, 229, 0.42);
  --text: #e8f0ff;
  --muted: #9db0d4;
  --primary: #3d7cff;
  --primary-2: #2b5fe7;
  --success: #2fb577;
  --danger: #ea445a;
  --warn: #f9ba49;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow: 0 22px 46px rgba(1, 8, 22, 0.52);
  --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: none;
}

body {
  margin: 0;
  min-height: 100vh;
  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));
  margin: 10px auto 24px;
  display: grid;
  gap: 10px;
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
  padding: 13px;
}

.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: 18px;
  font-weight: 760;
}

.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 transparent;
  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(45, 65, 102, 0.72);
  border-color: var(--line);
}

.muted {
  color: var(--muted);
  font-size: 12px;
  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: 88px;
}

.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;
}

.app-page {
  display: none;
  gap: 10px;
}

.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.26);
  border-radius: 12px;
  background: rgba(24, 38, 70, 0.72);
  color: #d7e5ff;
  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.92), rgba(43, 95, 231, 0.92));
  border-color: rgba(125, 171, 255, 0.55);
  box-shadow: 0 10px 20px rgba(61, 124, 255, 0.2);
}

.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-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.zaruba-overview-actions .btn.compact {
  min-height: 34px;
}

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

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

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

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

.zaruba-kpi .muted {
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
}

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

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

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

.zaruba-progress-bar {
  width: 100%;
  height: 8px;
  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-modes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.zaruba-mode-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-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: 14px;
  line-height: 1.25;
}

.zaruba-mode-meta {
  display: grid;
  gap: 2px;
  color: #b8caeb;
  font-size: 12px;
  line-height: 1.3;
}

.zaruba-mode-start {
  width: 100%;
}

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

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

.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: 13px;
  font-weight: 740;
}

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

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

.zaruba-task-row-bar {
  width: 100%;
  height: 6px;
  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: 12px;
}

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

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

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

.baryga-zsh-head {
  align-items: flex-start;
  gap: 8px;
}

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

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

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

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

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

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

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

.baryga-zsh-presets .btn.compact {
  min-width: 0;
  padding: 7px 10px;
  border-radius: 10px;
}

.baryga-zsh-status-grid {
  display: grid;
  grid-template-columns: 1.2fr .95fr;
  gap: 8px;
}

.baryga-zsh-status-box,
.baryga-zsh-results-box {
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 12px;
  background: rgba(8, 16, 34, 0.42);
  padding: 10px;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.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: 13px;
  font-weight: 760;
  line-height: 1.2;
  min-width: 0;
}

.baryga-zsh-status-top .chip,
.baryga-zsh-summary-row .chip {
  min-height: 18px;
  border-radius: 999px;
  padding: 0 7px;
  font-size: 10px;
  font-weight: 700;
}

.baryga-zsh-status-sub {
  color: #b6c9ea;
  font-size: 12px;
  line-height: 1.3;
  min-height: 16px;
}

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

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

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

.mini-kpi.compact {
  padding: 8px;
  border-radius: 10px;
  gap: 2px;
}

.mini-kpi.compact span {
  font-size: 10px;
}

.mini-kpi.compact strong {
  font-size: 13px;
}

.baryga-zsh-last-purchase {
  font-size: 11px;
  line-height: 1.3;
}

.baryga-zsh-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

.baryga-zsh-purchase-row {
  border: 1px solid rgba(149, 180, 233, 0.16);
  border-radius: 10px;
  background: rgba(10, 19, 38, 0.52);
  padding: 7px 8px;
  display: grid;
  gap: 4px;
}

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

.baryga-zsh-purchase-item {
  color: #eaf2ff;
  font-size: 12px;
  font-weight: 650;
  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: #ffd58a;
}

.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-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-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-pct {
  color: #c7d6ee;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.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.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-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 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;
}

.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.27);
  border-radius: 13px;
  padding: 9px;
  background: rgba(9, 20, 43, 0.82);
  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 {
  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-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: #b8c9ea;
}

.task-progress {
  font-size: 12px;
  color: #dce8ff;
  border: 1px solid rgba(149, 180, 233, 0.25);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(11, 23, 48, 0.6);
}

.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;
  background: rgba(4, 12, 28, 0.9);
  border: 1px solid rgba(149, 180, 233, 0.22);
  border-radius: 10px;
  padding: 8px;
  font-size: 11px;
  color: #d3dff5;
  white-space: pre-wrap;
  font-family: var(--font-mono);
}

.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: 8px;
  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: 10px 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-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(149, 180, 233, 0.14);
  background:
    linear-gradient(180deg, rgba(18, 31, 61, 0.55), rgba(11, 22, 43, 0.38));
}

.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-list {
  display: grid;
  gap: 8px;
  max-height: min(58vh, 620px);
  overflow: auto;
  padding: 2px;
  grid-template-columns: 1fr;
}

.bratva-empty {
  border: 1px dashed rgba(149, 180, 233, 0.22);
  border-radius: 12px;
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  background: rgba(9, 18, 37, 0.35);
}

.bratva-item {
  position: relative;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(149, 180, 233, 0.16);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(42, 88, 173, 0.18), transparent 54%),
    linear-gradient(180deg, rgba(12, 22, 44, 0.82), rgba(8, 16, 33, 0.78));
  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 14px 28px rgba(4, 12, 26, 0.32);
  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: 12px;
  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: 3px;
}

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

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

.bratva-item-meta {
  margin-top: 2px;
  color: #c9d8f3;
  font-size: 11px;
  line-height: 1.3;
  word-break: break-word;
}

.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: 12px;
  border-radius: 14px;
  border: 1px solid rgba(149, 180, 233, 0.2);
  background:
    radial-gradient(120% 170% at 100% 0%, rgba(49, 103, 207, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(12, 22, 44, 0.84), rgba(9, 18, 36, 0.84));
  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;
}

.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;
}

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

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

.bratva-action-bar {
  position: sticky;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 76px);
  z-index: 18;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(149, 180, 233, 0.22);
  background:
    radial-gradient(120% 180% at 100% 0%, rgba(63, 126, 255, 0.22), transparent 58%),
    rgba(10, 20, 40, 0.88);
  box-shadow: 0 14px 30px rgba(2, 7, 18, 0.34);
  backdrop-filter: blur(12px);
}

.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: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.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;
}

.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.22);
  border-radius: 12px;
  padding: 9px 10px;
  background: rgba(8, 18, 38, 0.62);
  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.2);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(9, 19, 40, 0.48);
  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: 8px;
  margin-top: 4px;
  margin-bottom: 6px;
}

.boss-drop-total-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.boss-drop-total-head strong {
  color: #e8f1ff;
  font-size: 13px;
  font-weight: 760;
}

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

.boss-drop-chip-row.compact {
  gap: 5px;
}

.boss-drop-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  border: 1px solid rgba(134, 161, 223, 0.22);
  border-radius: 999px;
  padding: 2px 9px;
  background: rgba(12, 25, 54, 0.46);
  color: #c4d7f5;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.boss-drop-chip strong {
  color: #deebff;
  font-size: 12px;
  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-stats-list {
  grid-template-columns: 1fr;
}

.boss-drop-by-boss-item {
  align-items: stretch;
  display: grid;
  gap: 7px;
}

.boss-drop-by-boss-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.boss-drop-by-boss-head .name {
  font-size: 13px;
  font-weight: 730;
  color: #e0ecff;
}

.boss-drop-by-boss-head .val {
  color: #ffe782;
  font-size: 13px;
}

.boss-daily-usage-block {
  margin-top: 10px;
  border-top: 1px solid rgba(149, 180, 233, 0.16);
  padding-top: 10px;
  display: grid;
  gap: 8px;
}

.boss-daily-usage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.boss-daily-usage-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 760;
  color: #e8f1ff;
}

.boss-daily-usage-list-grid {
  max-height: 220px;
  overflow: auto;
  padding-right: 2px;
  grid-template-columns: 1fr;
}

.boss-daily-usage-item {
  align-items: flex-start;
}

.boss-daily-usage-item.limit {
  border-color: rgba(251, 113, 133, 0.26);
  background: rgba(46, 14, 26, 0.26);
}

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

.boss-daily-usage-item .name {
  white-space: normal;
  line-height: 1.2;
}

.boss-daily-usage-item-sub {
  color: #a8bddf;
  font-size: 11px;
  line-height: 1.2;
}

.boss-daily-usage-combo-drop {
  margin-top: 3px;
  display: grid;
  gap: 4px;
}

.boss-daily-usage-combo-drop-label {
  color: #9ec3ff;
  font-size: 11px;
  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: 11px;
  line-height: 1.1;
}

.boss-daily-usage-combo {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 64px;
  justify-content: flex-end;
  font-size: 18px;
  font-weight: 780;
  letter-spacing: 0.01em;
}

.boss-daily-usage-combo .ok {
  color: #85eccc;
}

.boss-daily-usage-combo .sep {
  color: #b8cae8;
  font-size: 13px;
  font-weight: 700;
}

.boss-daily-usage-combo .fail {
  color: #f7899c;
}

.boss-daily-usage-combo.empty {
  font-size: 14px;
  letter-spacing: 0;
}

.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;
}

.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: none !important;
}

.app-page[data-page="wheel"] .seg-section[data-seg-section="wheel-feed"],
.app-page[data-page="wheel"] .seg-section[data-seg-section="wheel-chest"] {
  display: none !important;
}

.fortune-hero-card {
  display: grid;
  gap: 12px;
  border-color: rgba(248, 177, 52, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 176, 65, 0.16), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(255, 111, 25, 0.11), transparent 45%),
    linear-gradient(160deg, rgba(39, 29, 18, 0.92), rgba(26, 23, 33, 0.92));
}

.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-pill {
  border: 1px solid rgba(247, 188, 82, 0.2);
  border-radius: 12px;
  background: rgba(17, 18, 28, 0.45);
  padding: 9px 10px;
  display: grid;
  gap: 2px;
}

.fortune-live-pill span {
  font-size: 11px;
  color: #d7be94;
}

.fortune-live-pill strong {
  color: #fff4d8;
  font-size: 14px;
  line-height: 1.15;
}

.fortune-live-pill small {
  color: #a99674;
  font-size: 10px;
  line-height: 1.2;
}

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

.fortune-actions-grid .btn {
  min-height: 42px;
}

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

.fortune-kpi-card {
  border-radius: 14px;
  border: 1px solid rgba(245, 169, 53, 0.18);
  background:
    linear-gradient(160deg, rgba(22, 18, 31, 0.82), rgba(14, 16, 29, 0.82));
  padding: 10px 11px;
  display: grid;
  gap: 3px;
}

.fortune-kpi-card span {
  color: #d5c4a2;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.fortune-kpi-card strong {
  color: #fff3d3;
  font-size: 19px;
  font-weight: 850;
}

.fortune-kpi-card small {
  color: #b8a588;
  font-size: 11px;
  line-height: 1.2;
}

.fortune-kpi-card b {
  color: #ffe6a8;
  font-weight: 800;
}

.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;
}

.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-balance-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.catala-balance-pill {
  border: 1px solid rgba(149, 180, 233, 0.2);
  border-radius: 12px;
  background: rgba(8, 18, 38, 0.48);
  padding: 9px 10px;
  display: grid;
  gap: 3px;
}

.catala-balance-pill.compact {
  background: linear-gradient(160deg, rgba(24, 40, 76, 0.72), rgba(15, 27, 51, 0.72));
}

.catala-balance-label {
  font-size: 11px;
  color: #bcd0f4;
  line-height: 1.15;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.catala-balance-label .cabinet-currency-icon-wrap,
.catala-balance-label .cabinet-currency-icon-img {
  width: 14px;
  height: 14px;
}

.catala-balance-label .cabinet-currency-icon-text {
  font-size: 12px;
}

.catala-balance-label-text {
  min-width: 0;
}

.catala-balance-pill strong {
  font-size: 16px;
  color: #edf4ff;
  line-height: 1.1;
}

.catala-main-tabs {
  margin-top: 2px;
}

.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.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(980px, calc(100vw - 18px));
}

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

.catala-stats-sections {
  display: grid;
  gap: 10px;
}

.catala-stats-section {
  border-radius: 14px;
  border: 1px solid rgba(149, 180, 233, 0.16);
  background: rgba(8, 18, 38, 0.36);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.catala-stats-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.catala-stats-section-head h3 {
  margin: 0;
  font-size: 14px;
  color: #eaf3ff;
  font-weight: 780;
}

.catala-stats-section-sub {
  color: #aec3e6;
  font-size: 11px;
  line-height: 1.35;
}

.catala-stats-grid {
  gap: 8px;
}

.catala-stats-feed {
  margin-top: 0;
}

.catala-stats-game-list {
  display: grid;
  gap: 6px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.catala-stats-game-row {
  border-radius: 10px;
  border: 1px solid rgba(149, 180, 233, 0.14);
  background: rgba(8, 18, 38, 0.4);
  padding: 7px 8px;
  display: grid;
  gap: 3px;
}

.catala-stats-game-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.catala-stats-game-top .idx {
  color: #bdd2f5;
  font-weight: 700;
}

.catala-stats-game-top .meta {
  color: #9fb4dc;
  text-align: right;
}

.catala-stats-game-main {
  color: #edf4ff;
  font-size: 12px;
  line-height: 1.25;
  word-break: break-word;
}

.catala-stats-game-sub {
  color: #a8bddf;
  font-size: 11px;
  line-height: 1.2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.catala-stats-game-reward {
  color: #9cf0b8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.catala-stats-game-reward.empty {
  color: #9ab0d7;
  font-weight: 600;
}

.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-mini-chip.jackpot {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(87, 56, 8, 0.45);
  color: #ffe7a9;
}

.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-list {
  display: grid;
  gap: 6px;
  padding: 8px;
  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: 5px;
  padding: 8px 10px;
  border-radius: 11px;
  background: rgba(18, 30, 62, 0.74);
}

.boss-catalog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 6px;
}

.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: 14px;
  font-weight: 740;
  color: #edf4ff;
  line-height: 1.15;
  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: 6px;
  justify-content: flex-end;
}

.boss-catalog-meta.top {
  align-items: center;
  gap: 4px;
}

.boss-catalog-meta.combo-row {
  justify-content: flex-start;
  gap: 4px;
}

.boss-catalog-meta > span {
  font-size: 11px;
  color: #bfd2f5;
  border: 1px solid rgba(149, 180, 233, 0.18);
  border-radius: 999px;
  padding: 2px 6px;
  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: 6px;
  color: #d9e8ff;
  border-color: rgba(120, 164, 229, 0.26);
  background: rgba(21, 41, 76, 0.28);
  font-weight: 700;
  padding-inline: 6px 8px;
  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;
}

body.has-boss-modal {
  overflow: hidden;
}

.boss-config-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}

.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);
}

.boss-config-modal-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, calc(100vw - 20px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  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-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.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-modal-form-grid {
  margin-top: 2px;
}

.boss-mode-progress-hint {
  display: block;
  margin-top: 5px;
  color: #9eb8df;
  font-size: 11px;
  line-height: 1.25;
}

.boss-mode-progress-hint.empty {
  color: #b8caec;
}

.boss-config-modal textarea {
  min-height: 132px;
}

.boss-config-modal-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.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;
}

.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(2, minmax(0, 1fr));
  gap: 10px;
}

.boss-active-actions .btn {
  width: 100%;
  min-height: 44px;
}

.boss-active-action-btn {
  border-radius: 12px;
  font-weight: 760;
}

.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-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;
}

.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-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-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;
  }
}

@keyframes boss-active-indeterminate {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(360%); }
}

.cabinet-screen {
  display: grid;
  gap: 10px;
}

.cabinet-section-title {
  font-size: 14px;
  font-weight: 760;
  color: #eaf3ff;
  margin-bottom: 10px;
}

.cabinet-sub-card {
  border-color: rgba(72, 191, 117, 0.35);
  background:
    radial-gradient(circle at 0% 0%, rgba(55, 199, 118, 0.14), transparent 40%),
    linear-gradient(160deg, rgba(26, 45, 67, 0.96), rgba(20, 38, 58, 0.96));
}

.cabinet-sub-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.cabinet-sub-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
  color: #dffff0;
  background: linear-gradient(135deg, rgba(55, 199, 118, 0.9), rgba(32, 155, 90, 0.9));
  border: 1px solid rgba(104, 233, 163, 0.42);
  box-shadow: 0 10px 22px rgba(36, 146, 89, 0.25);
}

.cabinet-sub-icon.inactive {
  color: #ffe3e8;
  background: linear-gradient(135deg, rgba(239, 93, 114, 0.88), rgba(180, 40, 70, 0.88));
  border-color: rgba(255, 153, 171, 0.42);
  box-shadow: 0 10px 22px rgba(180, 40, 70, 0.2);
}

.cabinet-sub-main {
  display: grid;
  gap: 8px;
}

.cabinet-sub-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cabinet-sub-status {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
}

.cabinet-sub-badge {
  border-radius: 999px;
  border: 1px solid rgba(149, 180, 233, 0.32);
  background: rgba(8, 18, 38, 0.45);
  color: #d2e4ff;
  padding: 5px 10px;
  font-size: 11px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.cabinet-sub-badge.active {
  border-color: rgba(72, 191, 117, 0.44);
  color: #b9ffd8;
  background: rgba(24, 87, 55, 0.28);
}

.cabinet-sub-badge.inactive {
  border-color: rgba(239, 93, 114, 0.42);
  color: #ffd3dc;
  background: rgba(103, 24, 42, 0.24);
}

.cabinet-sub-lines {
  display: grid;
  gap: 3px;
  color: #cde2ff;
  font-size: 13px;
}

.cabinet-sub-note {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(149, 180, 233, 0.16);
  color: #addfc0;
  font-size: 12px;
  line-height: 1.35;
}

.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: 1fr auto;
  gap: 10px;
  align-items: start;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(149, 180, 233, 0.18);
}

.cabinet-player-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.cabinet-avatar-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  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: 28px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.cabinet-player-id {
  margin-top: 4px;
  font-size: 14px;
  color: #bfd2f5;
}

.cabinet-hidden-compat {
  display: none;
}

.cabinet-vpi-card {
  min-width: 160px;
  border-radius: 14px;
  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: 10px;
  display: grid;
  gap: 4px;
}

.cabinet-vpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cabinet-vpi-title {
  font-size: 12px;
  color: #a8c1ea;
}

.cabinet-vpi-tier {
  font-size: 16px;
  font-weight: 760;
  color: #ffe6a3;
}

.cabinet-vpi-time {
  font-size: 12px;
  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: 10px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 760;
  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: 10px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

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

.cabinet-kpi {
  border-radius: 12px;
  padding: 10px;
  border: 1px solid rgba(149, 180, 233, 0.2);
  background: rgba(9, 20, 48, 0.55);
  display: grid;
  gap: 5px;
}

.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: 11px;
  color: #bfd2f5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cabinet-kpi-label-row {
  justify-content: space-between;
  gap: 8px;
}

.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: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  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: 14px;
  height: 14px;
  object-fit: contain;
}

.cabinet-kpi-value {
  font-size: 20px;
  font-weight: 780;
  line-height: 1.1;
}

.cabinet-energy-card {
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid rgba(65, 196, 107, 0.34);
  background: rgba(20, 49, 36, 0.24);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.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-subsection-title {
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 760;
  color: #dfeafc;
}

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

.cabinet-currency-item {
  min-height: 58px;
  border-radius: 12px;
  border: 1px solid rgba(149, 180, 233, 0.2);
  background: rgba(8, 18, 38, 0.52);
  padding: 8px 9px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon label"
    "icon value";
  gap: 2px 8px;
  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: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
}

.cabinet-currency-icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.cabinet-currency-icon-text {
  font-size: 14px;
  line-height: 1;
  opacity: 0.92;
}

.cabinet-currency-label {
  grid-area: label;
  font-size: 11px;
  color: #bcd0f4;
  line-height: 1.15;
}

.cabinet-currency-value {
  grid-area: value;
  font-size: 15px;
  color: #edf4ff;
  line-height: 1.15;
}

.cabinet-empty {
  grid-column: 1 / -1;
  border-radius: 12px;
  border: 1px dashed rgba(149, 180, 233, 0.22);
  background: rgba(8, 18, 38, 0.34);
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
}

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

.cabinet-weapon-card {
  border-radius: 12px;
  padding: 10px;
  border: 1px solid rgba(149, 180, 233, 0.22);
  background: rgba(8, 18, 38, 0.5);
  display: grid;
  gap: 6px;
}

.cabinet-weapon-card.poison { border-color: rgba(168, 85, 247, 0.45); }
.cabinet-weapon-card.gunshot { border-color: rgba(244, 63, 94, 0.42); }
.cabinet-weapon-card.knife { border-color: rgba(245, 158, 11, 0.4); }
.cabinet-weapon-card.needle { border-color: rgba(59, 130, 246, 0.42); }

.cabinet-weapon-name {
  font-size: 13px;
  font-weight: 760;
  color: #ecf4ff;
}

.cabinet-weapon-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  color: #bcd0f4;
  font-size: 12px;
}

.cabinet-weapon-row strong {
  color: #f0f6ff;
  font-size: 13px;
  text-align: right;
}

.arsenal-damage-grid {
  margin-top: 8px;
}

.arsenal-damage-card .simple-list-item .val {
  font-weight: 700;
  color: #ecf4ff;
}

.arsenal-calc-card {
  overflow: hidden;
}

.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: 10px;
}

.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-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.14);
  border-radius: 10px;
  background: rgba(8, 18, 38, 0.28);
  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: 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-modes-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-overview-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .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: 1fr;
  }

  .zaruba-mode-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .zaruba-task-row-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .zaruba-task-row-head span {
    white-space: normal;
  }

  .zaruba-task-row-foot {
    flex-wrap: wrap;
  }

  .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: 8px;
    width: auto;
    transform: none;
    max-height: calc(100vh - 16px);
    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;
  }

  .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;
  }

  .fortune-feed-list {
    max-height: 280px;
  }

  .wheel-stats-grid,
  .wheel-stats-columns {
    grid-template-columns: 1fr;
  }

  .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-toolbar .btn {
    flex: 1 1 calc(50% - 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;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 74px);
  }

  .bratva-action-bar-actions {
    width: 100%;
  }

  .bratva-action-bar-actions .btn {
    flex: 1 1 0;
  }

  .bratva-action-bar-meta {
    white-space: normal;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    width: calc(100vw - 10px);
    border-radius: 14px;
    bottom: 6px;
  }

  .cabinet-profile-top {
    grid-template-columns: 1fr;
  }

  .cabinet-vpi-card {
    min-width: 0;
  }

  .cabinet-player-name {
    font-size: 24px;
  }

  .cabinet-sub-status {
    font-size: 18px;
  }

  .cabinet-currency-grid,
  .cabinet-weapon-grid,
  .cabinet-service-grid {
    grid-template-columns: 1fr;
  }

  .arsenal-calc-kpi-grid,
  .arsenal-calc-result-grid {
    grid-template-columns: 1fr;
  }

  .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-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-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;
  }

  .baryga-sets-list {
    max-height: 320px;
  }

  .baryga-zsh-status-top,
  .baryga-zsh-results-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .baryga-sets-card .card-head {
    align-items: flex-start;
  }

  .baryga-sets-card .card-head .row {
    margin-left: 0;
    justify-content: flex-start;
  }

  .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;
  }
}

@media (min-width: 760px) {
  .bratva-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
