[hidden] { display: none !important; }

:root {
  color-scheme: light;
  --bg: #f3f6fb;
  --bg-soft: #e9eff7;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --ink: #111827;
  --ink-soft: #1f2937;
  --muted: #667085;
  --line: #d9e2ee;
  --line-strong: #bdc9d8;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff6ff;
  --green: #12805c;
  --green-soft: #ecfdf5;
  --red: #c24141;
  --red-soft: #fef2f2;
  --amber: #a16207;
  --amber-soft: #fffbeb;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .09);
  --shadow-lg: 0 24px 70px rgba(15, 23, 42, .14);
  --radius: 8px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, .06), transparent 260px),
    var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}

button, input, textarea, select {
  font: inherit;
}

button {
  border: 1px solid #c7d2df;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: var(--ink);
  border-radius: 7px;
  padding: 9px 13px;
  cursor: pointer;
  min-height: 38px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, background .15s ease, transform .12s ease, box-shadow .15s ease;
}

button:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: .48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

button.primary {
  background: linear-gradient(180deg, #3478f6, var(--blue));
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .22);
}

button.primary:hover {
  background: linear-gradient(180deg, #2563eb, var(--blue-dark));
}

button.danger {
  background: linear-gradient(180deg, #dc5252, var(--red));
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 8px 18px rgba(194, 65, 65, .18);
}

button.ghost {
  background: #fff;
  min-height: 32px;
  padding: 5px 10px;
}

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .08), transparent 34%),
    linear-gradient(180deg, #f8fbff, #e9eff7);
}

.login-panel {
  width: min(100%, 440px);
  display: grid;
  gap: 17px;
  padding: 26px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(215, 226, 234, .9);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.shell {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background:
    linear-gradient(180deg, #111827 0%, #101624 62%, #0b1220 100%);
  color: #f8fafc;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 8px 0 24px rgba(15, 23, 42, .12);
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
}

.brand.big { min-height: 58px; }

.brand strong {
  display: block;
  line-height: 1.05;
}

.brand span {
  display: block;
  color: #aab4c4;
  font-size: 13px;
  margin-top: 3px;
}

.mark {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, #60a5fa, #2563eb 56%, #1d4ed8);
  font-weight: 850;
  color: #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, .28);
}

.brand.big .mark {
  width: 46px;
  height: 46px;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav-btn {
  color: #dbeafe;
  border-color: transparent;
  background: transparent;
  text-align: left;
  width: 100%;
  box-shadow: none;
}

.nav-btn.active,
.nav-btn:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(148, 163, 184, .25);
  color: #fff;
  box-shadow: none;
}

.side-note {
  margin-top: auto;
  color: #cbd5e1;
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ef4444;
  display: inline-block;
}

.dot.ok { background: #22c55e; }

.role-label {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid #334155;
  border-radius: 999px;
  color: #dbeafe;
  font-size: 12px;
}

.role-label.admin {
  border-color: #60a5fa;
  background: #1d4ed8;
  color: #fff;
}

.main {
  min-width: 0;
  padding: 22px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

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

h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 760;
}

h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

p {
  margin: 6px 0 0;
  color: var(--muted);
}

input, textarea, select {
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
  width: 100%;
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, .03);
  transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, .22);
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

select {
  min-height: 38px;
}

.view { display: none; }
.view.active { display: block; }

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

.stat, .panel {
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stat {
  padding: 15px;
  border-left: 4px solid #94a3b8;
}

.stat.good { border-left-color: var(--green); }
.stat.warn { border-left-color: #f59e0b; }

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.stat strong {
  display: block;
  font-size: 29px;
  margin-top: 4px;
  line-height: 1;
}

.panel {
  padding: 17px;
  min-width: 0;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.hint {
  color: var(--muted);
  font-size: 13px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.grid.split {
  grid-template-columns: minmax(360px, .9fr) minmax(0, 1.1fr);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 14px 0;
}

.toolbar.compact {
  margin-top: 0;
}

.toolbar.compact button {
  padding-inline: 10px;
}

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

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

label.wide, .wide { grid-column: 1 / -1; }

.confirm {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.confirm input { width: auto; }

.output {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  overflow: auto;
  min-height: 120px;
  max-height: 460px;
  white-space: pre-wrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.muted-output { color: #94a3b8; }

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

.empty { color: var(--muted); }

.row {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfdff;
  box-shadow: var(--shadow-sm);
}

.row.clickable { cursor: pointer; }
.row.clickable:hover, .row.selected {
  border-color: #93c5fd;
  background: #eff6ff;
}

.row-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 720;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  border: 1px solid #cbd5e1;
  color: #334155;
  white-space: nowrap;
  background: #fff;
}

.badge.active, .badge.completed, .badge.sent {
  border-color: #86efac;
  color: var(--green);
  background: var(--green-soft);
}

.badge.running, .badge.pending, .badge.paused {
  border-color: #fcd34d;
  color: var(--amber);
  background: var(--amber-soft);
}

.badge.failed, .badge.error, .badge.stopped {
  border-color: #fecaca;
  color: var(--red);
  background: var(--red-soft);
}

.toast {
  margin-bottom: 14px;
  padding: 11px 12px;
  border-radius: 7px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
}

.error-text {
  min-height: 18px;
  color: var(--red);
  font-size: 13px;
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.lang-btn {
  min-height: 30px;
  padding: 4px 10px;
  border-color: transparent;
  background: transparent;
  font-size: 13px;
  box-shadow: none;
}

.lang-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.compact-lang { align-self: stretch; }

.qr-box {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin: 10px 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.qr-box img {
  width: min(260px, 100%);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.qr-box p {
  margin: 0;
  font-size: 13px;
}

.admin-token-warning {
  color: var(--amber);
  font-size: 13px;
}

.admin-disabled-note {
  padding: 10px 12px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #9a3412;
  border-radius: 7px;
}

.details-view {
  display: grid;
  gap: 12px;
}

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

.mini-stat {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  background: #fbfdff;
}

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

.mini-stat strong {
  display: block;
  margin-top: 3px;
  font-size: 20px;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.data-table th,
.data-table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-weight: 740;
  background: #f8fafc;
}

.data-table tr:last-child td { border-bottom: 0; }

.table-wrap { overflow: auto; }

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

.form-meta.warn { color: var(--amber); }
.form-meta.error { color: var(--red); }

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

.preview-item {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  background: #fbfdff;
}

.preview-item strong {
  display: block;
  margin-bottom: 4px;
}

.preview-message {
  white-space: pre-wrap;
  color: var(--ink);
}

.onboarding {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  background: #eff6ff;
  box-shadow: var(--shadow-sm);
}

.onboarding h2 { margin: 0; }

.step-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid #dbeafe;
  border-radius: 7px;
  background: #fff;
}

.step-num {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.step-list li.done .step-num { background: var(--green); }
.step-title { font-weight: 740; }

.step-copy {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 4px;
}

.flow-step {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
  color: var(--muted);
}

.flow-step span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #cbd5e1;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}

.flow-step.active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: var(--ink);
}

.flow-step.active span {
  background: var(--blue);
  color: #fff;
}

.flow-step.done {
  border-color: #86efac;
  background: #f0fdf4;
  color: var(--green);
}

.flow-step.done span {
  background: var(--green);
  color: #fff;
}

@media (max-width: 1100px) {
  .grid.two, .grid.split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    box-shadow: none;
  }
  .nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-btn { text-align: center; padding-inline: 6px; }
  .topbar {
    display: grid;
    grid-template-columns: 1fr;
  }
  .top-actions { justify-content: stretch; }
  .top-actions > button { flex: 1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid, .account-form { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-steps { grid-template-columns: 1fr; }
  .step-list li {
    grid-template-columns: 26px minmax(0, 1fr);
  }
  .step-list li button { grid-column: 2; }
}

@media (max-width: 560px) {
  .main { padding: 14px; }
  .stats { grid-template-columns: 1fr; }
  .nav { grid-template-columns: 1fr 1fr; }
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
  h1 { font-size: 26px; }
}


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

.mode-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}

.mode-option input {
  width: auto;
}

.api-guide {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #eff6ff;
  color: var(--ink);
}

.api-guide strong {
  display: block;
  margin-bottom: 6px;
}

.api-guide ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 700px) {
  .account-mode {
    grid-template-columns: 1fr;
  }
}


.nav-btn.locked {
  opacity: .42;
  cursor: not-allowed;
}

.setup-locked #accounts .panel:last-child {
  border-color: #93c5fd;
  box-shadow: 0 10px 30px rgba(37, 99, 235, .12);
}


input.field-error,
textarea.field-error,
select.field-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .14);
}

.field-error-text {
  color: #b91c1c;
  font-size: 12px;
  line-height: 1.3;
}

.api-guide a {
  color: var(--blue);
  font-weight: 760;
  text-decoration: none;
}

.api-guide a:hover {
  text-decoration: underline;
}

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

.wizard-step {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.wizard-step strong {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  flex: 0 0 auto;
}

.wizard-step.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: var(--ink);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .08);
}

.wizard-step.active strong {
  background: #2563eb;
  color: #fff;
}

.wizard-step.done {
  border-color: #86efac;
  background: #ecfdf5;
  color: #166534;
}

.wizard-step.done strong {
  background: #059669;
  color: #fff;
}

.account-actions {
  align-items: stretch;
}

.account-actions button {
  min-height: 42px;
}

.account-row {
  border-width: 2px;
}

.account-row.account-owner {
  border-color: #2563eb;
  background: linear-gradient(90deg, #eff6ff 0%, #ffffff 72%);
  box-shadow: inset 4px 0 0 #2563eb;
}

.account-row.account-worker {
  border-color: #a7f3d0;
  background: linear-gradient(90deg, #ecfdf5 0%, #ffffff 72%);
  box-shadow: inset 4px 0 0 #059669;
}

.account-row.account-owner .badge.owner,
.account-row.account-owner .badge.основной {
  border-color: #2563eb;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 800;
}

.account-row.account-worker .badge.worker,
.account-row.account-worker .badge.рабочий {
  border-color: #059669;
  background: #d1fae5;
  color: #047857;
  font-weight: 800;
}

.mode-option:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .08);
  font-weight: 760;
}

.mode-option:has(#accountRoleWorker:checked) {
  border-color: #059669;
  background: #ecfdf5;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, .08);
}

@media (max-width: 820px) {
  .account-wizard {
    grid-template-columns: 1fr;
  }
}

#authLabel {
  display: inline-block;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
  font-weight: 720;
}

.status-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
}

.status-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  font-weight: 850;
}

.status-body strong {
  display: block;
  margin-bottom: 3px;
}

.status-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.status-success {
  border-color: #86efac;
  background: #ecfdf5;
}

.status-success .status-icon {
  background: #059669;
  color: #fff;
}

.status-warning {
  border-color: #fcd34d;
  background: #fffbeb;
}

.status-warning .status-icon {
  background: #d97706;
  color: #fff;
}

.status-error {
  border-color: #fecaca;
  background: #fef2f2;
}

.status-error .status-icon {
  background: #dc2626;
  color: #fff;
}

.link-button {
  margin-top: 8px;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  box-shadow: none;
  font-weight: 760;
}

.link-button:hover {
  text-decoration: underline;
}

.status-details {
  margin-top: 10px;
}

.onboarding-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.onboarding p {
  margin: 4px 0 0;
  color: var(--muted);
}

.step-list li.active {
  border-color: #2563eb;
  background: #f8fbff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .08);
}

.step-list li.locked {
  opacity: .62;
  background: #f8fafc;
}

.step-list li.locked .step-num {
  background: #94a3b8;
}

.step-list li.locked button {
  cursor: not-allowed;
}

.mode-option.disabled {
  opacity: .55;
  cursor: not-allowed;
  background: #f8fafc;
}

.mode-option.disabled input,
.mode-option.disabled span {
  cursor: not-allowed;
}

.checker-result {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.result-head h3 {
  margin: 0;
  font-size: 18px;
}

.result-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.clean-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
}

.clean-list div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.clean-list span {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 760;
}

.clean-list em {
  color: var(--muted);
  font-style: normal;
}

.safety-box {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #fcd34d;
  border-radius: 7px;
  background: #fffbeb;
  color: #78350f;
}

.safety-box strong {
  display: block;
  margin-bottom: 6px;
}

.safety-box ul {
  margin: 0;
  padding-left: 18px;
}

.safety-box li + li {
  margin-top: 4px;
}

.sender-result {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.safety-warning {
  padding: 10px 12px;
  border: 1px solid #f59e0b;
  border-radius: 7px;
  background: #fffbeb;
  color: #92400e;
  font-weight: 740;
}

.campaign-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
}

.campaign-detail-head h3 {
  margin: 0;
  font-size: 18px;
}

.campaign-detail-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

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

.progress-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #059669);
}

.error-cell {
  color: var(--red);
}

.muted-cell,
.empty-cell {
  color: var(--muted);
}

.empty-cell {
  padding: 14px;
  text-align: center;
}

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

.event-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.event-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--blue);
}

.event-item p {
  margin: 3px 0;
  color: var(--ink);
}

.event-item span {
  color: var(--muted);
  font-size: 12px;
}

.admin-result {
  margin-top: 12px;
}

.admin-note-list,
.admin-list,
.token-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.admin-note-list p {
  margin: 0;
  color: var(--muted);
}

.admin-note-list p.bad { color: var(--red); }
.admin-note-list p.warn { color: var(--amber); }

.admin-list-row {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
}

.admin-list-row span {
  color: var(--muted);
  font-size: 12px;
}

.token-box {
  border-color: #86efac;
  background: #ecfdf5;
}

.token-box code {
  display: block;
  overflow-wrap: anywhere;
  padding: 10px;
  border-radius: 7px;
  background: #0f172a;
  color: #e2e8f0;
}

.updates-list {
  display: grid;
  gap: 12px;
}

.update-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.update-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.update-head span {
  color: var(--muted);
  font-size: 12px;
}

.update-head h3 {
  margin: 3px 0 0;
  font-size: 18px;
}

.update-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
}

.update-card li + li {
  margin-top: 5px;
}



.admin-draft-panel {
  border-color: #bfdbfe;
  background: #f8fbff;
}

#adminUpdateDraft {
  min-height: 210px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  background: #0f172a;
  color: #e5e7eb;
  border-color: #1e293b;
}

.empty-update p {
  max-width: 640px;
}


.update-publish-box {
  display: grid;
  gap: 10px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.checkbox-line input {
  width: auto;
}

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

.admin-update-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.admin-update-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}


.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.auth-tab {
  border: 0;
  background: transparent;
}

.auth-tab.active {
  background: #2563eb;
  color: #fff;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.token-fallback {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.token-fallback summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}


.invite-token-box {
  display: grid;
  gap: 9px;
}

.invite-token-box p {
  margin: 0;
}

.invite-token-box button {
  width: max-content;
}


/* LeekrosisFlow visual refresh */
:root {
  --blue: #2f6df2;
  --blue-dark: #1d4ed8;
  --ink: #17130f;
  --muted: #6f6257;
  --bg: #f3eee7;
  --line: #decfbd;
  --green: #0f8a63;
  --amber: #b7791f;
  --red: #b42318;
  --shadow-sm: 0 1px 2px rgba(49, 35, 24, .08);
  --shadow-lg: 0 24px 70px rgba(49, 35, 24, .22);
}

body {
  background:
    linear-gradient(180deg, rgba(101, 75, 50, .09), transparent 280px),
    #f4efe8;
  color: var(--ink);
}

.login {
  place-items: center;
  background:
    linear-gradient(120deg, rgba(18, 14, 12, .55), rgba(89, 63, 42, .30)),
    url("/app/assets/leekrosis-flow.jpg") center / cover no-repeat;
  position: relative;
}

.login::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 13, 10, .74), rgba(57, 42, 29, .42) 48%, rgba(244, 239, 232, .68)),
    radial-gradient(circle at 18% 22%, rgba(255, 230, 185, .16), transparent 34%);
  pointer-events: none;
}

.login-panel {
  position: relative;
  width: min(100%, 760px);
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 22px;
  background: rgba(255, 252, 247, .95);
  border: 1px solid rgba(255, 244, 230, .72);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(15, 12, 10, .34);
}

.login-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 18px;
  align-items: stretch;
}

.login-photo {
  min-height: 154px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(20, 16, 13, .05), rgba(20, 16, 13, .18)),
    url("/app/assets/leekrosis-flow.jpg") center 35% / cover no-repeat;
  border: 1px solid rgba(76, 54, 37, .18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}

.brand.big {
  align-content: center;
}

.brand strong {
  font-size: 18px;
}

.brand span {
  color: #7b6a5b;
}

.mark {
  background:
    linear-gradient(145deg, #17120f, #3a2a20 56%, #90673f);
  color: #fff8ec;
  box-shadow: 0 12px 24px rgba(54, 38, 27, .26);
}

.auth-tabs {
  background: #efe4d7;
  border-color: #dcc9b5;
  padding: 5px;
}

.auth-tab {
  color: #4c3b2d;
  box-shadow: none;
  min-height: 40px;
}

.auth-tab.active {
  background: linear-gradient(180deg, #1f1712, #3b2a1f);
  color: #fff7eb;
  border-color: transparent;
}

.auth-form label,
.token-fallback label {
  display: grid;
  gap: 7px;
  color: #4b3a2d;
  font-size: 13px;
  font-weight: 690;
}

.login-panel input {
  min-height: 44px;
  border: 1px solid #b99f82;
  border-radius: 7px;
  background: #fffdfa;
  color: #17130f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 1px 2px rgba(50, 35, 24, .05);
}

.login-panel input::placeholder {
  color: #9b8a78;
}

.login-panel input:focus {
  border-color: #8d6239;
  box-shadow: 0 0 0 3px rgba(141, 98, 57, .22);
}

button.primary,
.login-panel button.primary {
  background: linear-gradient(180deg, #18120e, #3b2a1f);
  border-color: #2b2018;
  color: #fff8ed;
  box-shadow: 0 12px 28px rgba(44, 31, 22, .24);
}

button.primary:hover,
.login-panel button.primary:hover {
  background: linear-gradient(180deg, #271c15, #4a3425);
}

.token-fallback {
  border-top-color: #dfcfbd;
}

.token-fallback summary {
  color: #705d4b;
}

.lang-switch {
  border-color: #ddccb9;
  background: #fffaf4;
}

.lang-btn.active {
  background: #1f1712;
  color: #fff8ed;
}

.sidebar {
  background:
    linear-gradient(180deg, #17120f 0%, #241913 58%, #0f0c0a 100%);
  box-shadow: 8px 0 24px rgba(49, 35, 24, .16);
}

.nav-btn {
  color: #eadfd2;
}

.nav-btn.active,
.nav-btn:hover {
  background: rgba(255, 245, 232, .10);
  border-color: rgba(224, 202, 176, .28);
}

.role-label.admin {
  border-color: #c69a63;
  background: #6b4424;
}

.main {
  background:
    linear-gradient(180deg, rgba(110, 78, 47, .08), transparent 320px),
    #f4efe8;
}

.stat,
.panel {
  background: rgba(255, 253, 249, .96);
  border-color: #dfcfbd;
}

@media (max-width: 680px) {
  .login-panel {
    width: min(100%, 430px);
  }

  .login-hero {
    grid-template-columns: 1fr;
  }

  .login-photo {
    min-height: 180px;
  }
}


/* LeekrosisFlow background update */
.login {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.80), rgba(8, 22, 10, 0.58) 46%, rgba(218, 241, 205, 0.22)),
    url("/app/assets/leekrosis-money-bg.jpg") center / cover no-repeat;
}

.login::before {
  background:
    linear-gradient(90deg, rgba(12, 9, 7, .48), rgba(33, 23, 17, .24) 48%, rgba(244, 239, 232, .42)),
    radial-gradient(circle at 50% 16%, rgba(255, 225, 180, .10), transparent 30%);
  backdrop-filter: none;
}

.login-panel {
  background: rgba(255, 251, 245, .93);
  box-shadow: 0 34px 90px rgba(12, 9, 7, .38);
}

/* Login identity polish */
.login-panel {
  background: rgba(255, 252, 247, .97);
}

.login-hero {
  grid-template-columns: 1fr;
  min-height: 96px;
}

.login-photo {
  display: none;
}

.login .brand.big {
  display: flex;
  align-items: center;
  min-height: 96px;
  gap: 14px;
}

.login .brand.big .mark {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .02), rgba(0, 0, 0, .16)),
    url("/app/assets/leekrosis-flow.jpg") center 34% / cover no-repeat;
  border: 1px solid rgba(72, 50, 34, .22);
  box-shadow: 0 14px 30px rgba(25, 17, 12, .28);
  color: transparent;
  font-size: 0;
  overflow: hidden;
}

.login .brand.big strong {
  display: block;
  font-size: 21px;
  line-height: 1.05;
  font-weight: 850;
  color: #100c09;
  text-rendering: geometricPrecision;
}

.login .brand.big span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 680;
  color: #5c4b3d;
}

.login,
.login-panel,
.login-panel input,
.login-panel button,
.login-panel summary {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.login-panel label {
  color: #19110b;
  font-size: 13px;
  font-weight: 850;
}

.login-panel input {
  min-height: 48px;
  padding: 0 15px;
  border: 1.5px solid #a7783f;
  border-radius: 10px;
  background: rgba(255, 254, 251, .98);
  color: #11100d;
  font-size: 15px;
  font-weight: 720;
  outline: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .5);
}

.login-panel input::placeholder {
  color: #7d7063;
  font-size: 15px;
  font-weight: 720;
  opacity: 1;
}

.login-panel input:focus {
  border-color: #d3a300;
  box-shadow: 0 0 0 3px rgba(211, 163, 0, .18), 0 0 0 1px rgba(68, 45, 20, .16);
}

.auth-tabs {
  padding: 4px;
  border-radius: 10px;
}

.auth-tab {
  font-weight: 760;
}

.login-panel button.primary {
  min-height: 46px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 820;
}

.token-fallback summary {
  font-weight: 760;
}

@media (max-width: 680px) {
  .login .brand.big .mark {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }
}

/* Sidebar avatar polish */
.sidebar-brand {
  align-items: center;
}

.sidebar-brand .avatar-mark {
  border: 1px solid rgba(255, 245, 232, .18);
  background-position: center 34%;
  background-size: cover;
  background-repeat: no-repeat;
  cursor: pointer;
  padding: 0;
}

.sidebar-brand .avatar-mark:hover {
  border-color: rgba(255, 245, 232, .52);
  transform: translateY(-1px);
}

#workspaceLabel {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dark workspace and sharper typography */
:root {
  --ink: #0b1220;
  --muted: #475569;
  --bg: #070b12;
  --line: #cbd5e1;
  --shadow-sm: 0 1px 2px rgba(2, 6, 23, .12);
  --shadow-lg: 0 24px 70px rgba(2, 6, 23, .26);
}

html,
body,
button,
input,
textarea,
select {
  font-family: "Segoe UI", Arial, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body {
  background: #070b12;
  color: #0f172a;
}

.main {
  background:
    radial-gradient(circle at 18% 0%, rgba(37, 99, 235, .18), transparent 34%),
    linear-gradient(180deg, #0b1020 0%, #080c14 100%);
}

.topbar h1 {
  color: #f8fafc;
  font-weight: 850;
}

.topbar p,
.hint {
  color: #cbd5e1;
  font-weight: 520;
}

.panel,
.stat,
.onboarding,
.row,
.card {
  background: rgba(255, 255, 255, .98);
  border-color: rgba(203, 213, 225, .72);
  color: #0f172a;
}

.panel h2,
.onboarding h3,
.row-title,
.stat strong,
label,
.brand strong {
  color: #020617;
  font-weight: 850;
}

.stat span,
.meta,
.panel .hint,
.row .meta {
  color: #475569;
  font-weight: 560;
}

button,
.nav-btn,
.auth-tab {
  font-weight: 760;
}

input,
textarea,
select {
  color: #0f172a;
  font-weight: 650;
}

.sidebar {
  background:
    linear-gradient(180deg, #080b12 0%, #111827 58%, #05070c 100%);
}

.nav-btn.active,
.nav-btn:hover {
  background: rgba(37, 99, 235, .20);
  border-color: rgba(96, 165, 250, .42);
}

.lang-switch,
.topbar button {
  background: #ffffff;
  border-color: #cbd5e1;
}

.onboarding {
  background: rgba(239, 246, 255, .98);
}

.setup-locked .nav-btn.locked {
  opacity: .45;
}

/* Owner-focused admin dashboard */
.technical-admin {
  margin-top: 10px;
  border: 1px solid rgba(203, 213, 225, .72);
  border-radius: 8px;
  background: rgba(248, 250, 252, .9);
  padding: 10px;
}

.technical-admin summary {
  cursor: pointer;
  color: #475569;
  font-weight: 800;
}

.technical-admin .toolbar {
  margin-top: 10px;
}

.owner-admin-note {
  margin: 12px 0 0;
  color: #475569;
  font-weight: 620;
}

.admin-owner-stats .stat strong {
  font-size: 28px;
}

/* Admin buttons visible feedback */
#admin .toolbar button.active-action {
  background: #1d4ed8;
  border-color: #60a5fa;
  color: #ffffff;
}

.admin-visible-output {
  margin: 12px 0 0;
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  background: #0f172a;
  color: #e5edff;
  border-radius: 8px;
  border: 1px solid rgba(96, 165, 250, .22);
  padding: 14px;
  font-weight: 650;
}

/* Admin updates usability */
.update-form-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: #020617;
}

.update-form-head p {
  margin: 4px 0 0;
  color: #475569;
  font-weight: 600;
}

.update-field {
  display: grid;
  gap: 7px;
  font-weight: 850;
  color: #020617;
}

.update-field > span {
  display: block;
}

.update-field input,
.update-field textarea,
.update-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #94a3b8;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  padding: 10px 12px;
  font-weight: 650;
}

.update-field textarea {
  min-height: 118px;
  resize: vertical;
}

.updates-admin-head {
  display: grid;
  gap: 3px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #cbd5e1;
}

.updates-admin-head strong {
  font-weight: 900;
  color: #020617;
}

.updates-admin-head span {
  color: #475569;
  font-weight: 600;
}

.admin-update-row p {
  margin: 6px 0 0;
  color: #334155;
  font-size: 13px;
  font-weight: 560;
}

.danger-button {
  border-color: #fecaca;
  color: #991b1b;
  background: #fff5f5;
}

.danger-button:hover {
  background: #fee2e2;
}

/* Force admin update fields visible */
#adminUpdateTitle,
#adminUpdateBody,
#adminUpdateStatus {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  box-sizing: border-box;
  width: 100% !important;
}

#adminUpdateTitle {
  min-height: 46px !important;
}

#adminUpdateBody {
  min-height: 140px !important;
}

#adminUpdateStatus {
  min-height: 46px !important;
}

/* Client subscription controls */
.client-subscription-row {
  align-items: flex-start;
}

.subscription-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.subscription-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid transparent;
}

.subscription-badge.starter {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

.subscription-badge.demo {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.subscription-badge.beta {
  background: #ede9fe;
  color: #6d28d9;
  border-color: #c4b5fd;
}

.subscription-badge.expired,
.subscription-badge.none {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.subscription-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 420px;
}

.subscription-actions select {
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  font-weight: 700;
}

/* Owner account warning */
.owner-warning-box {
  display: grid;
  gap: 5px;
  margin: 10px 0;
  padding: 12px 14px;
  border: 1px solid #f59e0b;
  border-left: 4px solid #dc2626;
  border-radius: 8px;
  background: #fff7ed;
  color: #7c2d12;
}

.owner-warning-box strong {
  color: #991b1b;
  font-weight: 950;
}

.owner-warning-box p {
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
}

/* Copyable invite token */
.invite-token-box code {
  user-select: all;
  cursor: text;
}


.side-note #authLabel {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.side-note #authLabel strong,
.side-note #authLabel small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-note #authLabel small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  line-height: 1.25;
}

.sidebar-brand #workspaceLabel {
  display: grid;
  gap: 6px;
  line-height: 1.2;
}

.sidebar-subscription-badge {
  width: max-content;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.sidebar-subscription-badge.starter {
  color: #fecaca;
  background: rgba(185, 28, 28, .22);
  border-color: rgba(248, 113, 113, .45);
}

.sidebar-subscription-badge.demo {
  color: #bfdbfe;
  background: rgba(29, 78, 216, .22);
  border-color: rgba(96, 165, 250, .48);
}

.sidebar-subscription-badge.beta {
  color: #eadcff;
  background: rgba(124, 58, 237, .28);
  border-color: rgba(196, 181, 253, .55);
}

.sidebar-subscription-badge.expired,
.sidebar-subscription-badge.none {
  color: #e5e7eb;
  background: rgba(107, 114, 128, .22);
  border-color: rgba(209, 213, 219, .35);
}

.premium-accounts-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 10px 0;
  padding: 14px 16px;
  border: 1px solid rgba(34, 197, 94, .45);
  border-left: 4px solid #22c55e;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(20, 83, 45, .11), rgba(236, 253, 245, .9));
  color: #173224;
}

.premium-accounts-box strong {
  display: block;
  margin-bottom: 5px;
  color: #116232;
  font-size: 14px;
}

.premium-accounts-box p {
  margin: 0;
  color: #28433a;
  font-size: 13px;
  line-height: 1.45;
}

.premium-accounts-box a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(22, 101, 52, .35);
  border-radius: 8px;
  background: #052e1a;
  color: #ecfdf5;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(5, 46, 26, .16);
}

.premium-accounts-box a:hover {
  background: #064e2a;
}

@media (max-width: 860px) {
  .premium-accounts-box {
    grid-template-columns: 1fr;
  }

  .premium-accounts-box a {
    width: 100%;
  }
}

/* account-role-cards-20260625 */

.account-row.account-owner {
  border-color: #1d4ed8;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 58%, #ffffff 100%);
  box-shadow: inset 6px 0 0 #2563eb, 0 10px 24px rgba(37, 99, 235, .12);
}

.account-row.account-worker {
  border-color: #facc15;
  background: linear-gradient(135deg, #fefce8 0%, #fffbe6 58%, #ffffff 100%);
  box-shadow: inset 6px 0 0 #eab308, 0 10px 22px rgba(234, 179, 8, .1);
}

.account-row.account-owner .badge.owner,
.account-row.account-owner .badge.основной {
  border-color: #1d4ed8;
  background: #2563eb;
  color: #ffffff;
  font-weight: 900;
}

.account-row.account-worker .badge.worker,
.account-row.account-worker .badge.рабочий {
  border-color: #ca8a04;
  background: #fde047;
  color: #422006;
  font-weight: 900;
}

.account-row .badge.active {
  border-color: #16a34a;
  background: #22c55e;
  color: #ffffff;
  font-weight: 900;
}

.account-row .badge.inactive {
  border-color: #dc2626;
  background: #ef4444;
  color: #ffffff;
  font-weight: 900;
}


/* Admin proxy pool */
.proxy-admin-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.96);
}

.proxy-admin-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.proxy-admin-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.proxy-admin-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

#adminProxyInput {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  box-sizing: border-box;
}

.proxy-admin-view {
  margin-top: 12px;
}

.proxy-list {
  margin-top: 12px;
}

.proxy-row strong {
  font-family: "JetBrains Mono", Consolas, monospace;
}


.proxyshard-auto-box {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(240, 253, 244, 0.9));
}

.proxyshard-auto-box h4 {
  margin: 0 0 10px;
  font-size: 16px;
}

.proxyshard-auto-box .hint {
  margin: 8px 0 0;
}


.proxy-limit-warning {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-left: 4px solid #ef4444;
  border-radius: 10px;
  background: #fff7ed;
  color: #7f1d1d;
  font-weight: 800;
  line-height: 1.45;
}


.manual-proxy-guide {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 12px;
  background: #f0fdf4;
  color: #052e16;
}

.manual-proxy-guide strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.manual-proxy-guide ol {
  margin: 0;
  padding-left: 20px;
  line-height: 1.55;
}

.proxy-import-status {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eff6ff;
  color: #0f172a;
  font-weight: 800;
}

.proxyshard-disabled summary {
  cursor: pointer;
  font-weight: 900;
  color: #7f1d1d;
}
