@font-face {
  font-family: "Akzidenz Grotesk Pro Cnd";
  src: url("/static/fonts/AkzidenzGroteskPro-Cn.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --panel-scale: clamp(1, calc((100vw - 76px) / 948), 1.9);
  --bg: #1b1b1a;
  --panel: #262625;
  --panel2: #2b2b2a;
  --panel3: #373835;
  --line: #151515;
  --txt: #c8c8c2;
  --muted: #727271;
  --accent: #ebebeb;
  --green: #b0cb1f;
  --green-dim: #7f980f;
  --amber: #b0cb1f;
  --red: #727271;
  --chip: transparent;
  --focus-in: rgba(176, 203, 31, 0.1);
  --focus-out: rgba(114, 114, 113, 0.1);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font: clamp(12px, 1.25vw, 22.8px)/1.25 "Akzidenz Grotesk Pro Cnd", "Arial Narrow", Arial, sans-serif;
  background: var(--bg);
  color: var(--txt);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-user-select: text;
  user-select: text;
}
button,
.ios-go-btn,
.ios-stop-btn,
.confirm,
.icon-refresh {
  -webkit-user-select: none;
  user-select: none;
}
main { flex: 1; padding: clamp(50px, 4.9vw, 95px) 38px 24px; max-width: none; margin: 0 auto; width: 100%; }
main[hidden] { display: none !important; }
.page-footer {
  text-align: center;
  padding: 14px 24px 20px;
  flex-shrink: 0;
}
.page-id { color: var(--muted); font-size: 11px; }
.page-footer .page-id { margin-bottom: 6px; }
.footer-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  white-space: nowrap;
}
.footer-sep {
  color: var(--muted);
  font-size: 11px;
}
.footer-link {
  display: inline-block;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}
.footer-link:hover { color: var(--txt); text-decoration: underline; }
.footer-gap {
  display: block;
  font-size: 11px;
  margin-bottom: 6px;
  color: var(--muted);
}
.footer-gap.warn { color: #fcd34d; }
#authGate.auth-gate,
#patternPresetGate.auth-gate,
#farmPreflightGate.auth-gate {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  margin: 0;
  padding: 24px;
  border: 0;
  background: rgba(15, 20, 25, 0.88);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
}
#authGate.auth-gate.is-open,
#patternPresetGate.auth-gate.is-open,
#farmPreflightGate.auth-gate.is-open {
  display: flex !important;
}
#authGate.auth-gate[hidden],
#patternPresetGate.auth-gate[hidden],
#farmPreflightGate.auth-gate[hidden] {
  display: none !important;
}
.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px 24px;
  width: min(400px, calc(100vw - 48px));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}
body.auth-locked {
  overflow: hidden;
}
body.auth-locked #authGate {
  pointer-events: auto;
}
body.auth-locked main,
body.auth-locked #cardView,
body.auth-locked .page-id {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
.auth-card h2 { margin: 0 0 8px; font-size: 18px; }
.auth-card .hint { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.auth-card input {
  width: 100%; padding: 10px 12px; margin-bottom: 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel2); color: var(--txt);
}
.auth-card button {
  width: 100%; padding: 10px; border: 0; border-radius: 8px;
  background: var(--accent); color: #fff; font-weight: 600; cursor: pointer;
}
.auth-card button:disabled { opacity: 0.6; cursor: wait; }
.auth-error { min-height: 1.2em; margin: 0 0 10px; color: var(--red); font-size: 13px; }
.auth-card code { font-size: 12px; color: var(--muted); }
.pattern-card .hint {
  margin-bottom: 12px;
}
.pattern-card .pattern-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.pattern-card .pattern-actions button {
  width: auto;
  flex: 1 1 0;
}
.pattern-card .pattern-actions .secondary {
  background: var(--panel2);
  color: var(--txt);
}
.pattern-card .pattern-actions .secondary:hover:not(:disabled) {
  background: #283245;
}
#cardView {
  position: fixed; inset: 0; z-index: 20; background: var(--bg); overflow-y: auto;
  padding: 28px 24px 24px;
}
#cardView[hidden] { display: none !important; }
#cardView:not([hidden]) { display: block; }
.card-screen { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }

.status {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(5px, 0.49vw, 9.5px);
  margin-bottom: clamp(11px, 1.07vw, 20.9px);
}
.stat {
  background: var(--panel);
  border: 0;
  border-radius: clamp(3px, 0.29vw, 5.7px);
  min-height: clamp(95px, 9.28vw, 180.5px);
  padding: clamp(19px, 1.86vw, 36.1px) clamp(21px, 2.05vw, 39.9px) clamp(14px, 1.37vw, 26.6px);
}
.stat .l {
  color: var(--muted);
  font-size: clamp(14.7px, 1.43vw, 27.9px);
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1;
}
.stat .v {
  font-size: clamp(24px, 2.34vw, 45.6px);
  font-weight: 400;
  line-height: 1;
  margin-top: clamp(7px, 0.68vw, 13.3px);
}
.stat .v small { font-size: clamp(24px, 2.34vw, 45.6px); color: var(--txt); font-weight: 400; }
.stat-monitor .monitor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.stat-monitor .monitor-row.warn { color: var(--green); }
.icon-refresh {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--txt);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s, border-color 0.15s;
}
.icon-refresh:hover:not(:disabled) { color: var(--green); border-color: transparent; }
.icon-refresh:disabled { opacity: 0.6; cursor: wait; }
.icon-refresh.spinning svg {
  animation: refresh-spin 0.9s linear infinite;
}
#mailRefreshBtn {
  display: none;
}
#farmRefreshBtn {
  width: clamp(14px, 1.37vw, 26.6px);
  height: clamp(14px, 1.37vw, 26.6px);
  background-image: url("/static/icons/monitoring.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
#farmRefreshBtn svg {
  display: none;
}
@keyframes refresh-spin {
  to { transform: rotate(360deg); }
}

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 0; }
.card h2 { margin: 0; padding: 16px 18px; font-size: 15px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
#dash .card.clickable {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.link-btn {
  margin-left: auto; background: none; border: 0; color: var(--accent); font-size: 12px;
  cursor: pointer; padding: 0; text-transform: none; letter-spacing: normal; font-weight: 500;
}
.link-btn:hover { text-decoration: underline; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.clickable tbody tr { cursor: pointer; }
.clickable tbody tr:hover { background: var(--panel2); }
.num { font-weight: 600; letter-spacing: 0.02em; }
.muted { color: var(--muted); }
.right { text-align: right; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--chip); font-size: 12px; white-space: nowrap; }
.chip.ready { background: rgba(34, 197, 94, 0.15); color: #86efac; }
.chip.cool { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.chip.timer { background: var(--chip); color: var(--muted); font-variant-numeric: tabular-nums; }
.chip.cooldown-gradient { font-variant-numeric: tabular-nums; transition: color 0.9s ease, background 0.9s ease; }
.chip.session-cool { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.status-with-mail-wait {
  white-space: nowrap;
}
.dash-mail-wait {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 6px;
}
.dash-mail-spinner {
  display: block;
  color: #fcd34d;
  animation: confirm-spin 0.75s linear infinite;
}
.clickable tbody tr.row-cooldown td,
.clickable tbody tr.row-mail-cooldown td {
  color: #484f51;
}
.clickable tbody tr.row-cooldown .num,
.clickable tbody tr.row-mail-cooldown .num {
  color: #484f51;
  font-weight: 500;
}
.clickable tbody tr.row-cooldown .ob .v,
.clickable tbody tr.row-mail-cooldown .ob .v {
  color: #484f51;
}
.clickable tbody tr.row-cooldown .bar > i,
.clickable tbody tr.row-mail-cooldown .bar > i {
  opacity: 0.4;
}
.clickable tbody tr.row-cooldown .chip,
.clickable tbody tr.row-mail-cooldown .chip {
  color: #484f51;
}
.clickable tbody tr.row-cooldown:hover,
.clickable tbody tr.row-mail-cooldown:hover {
  background: var(--panel2);
}
.ob { min-width: 150px; }
.ob .v { font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 999px; background: var(--panel2); overflow: hidden; margin-top: 5px; }
.bar > i { display: block; height: 100%; background: var(--muted); }
.bar.warn > i { background: var(--amber); }
.pos { color: #86efac; }
.neg { color: #fca5a5; }

.cardhead { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 0; }
.cardhead-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.cardhead-top {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45em;
  max-width: 100%;
}
.cardhead-address {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: #000;
  background: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #ddd;
}
.cardhead-name {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--txt);
  background: none;
  padding: 0;
  white-space: nowrap;
}
.cardhead-creds {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--txt);
  word-break: break-all;
}
.cardhead-line {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1.2;
}
.cardhead .title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0.4em 0 0;
  flex-shrink: 0;
}
.cardhead .sub {
  color: var(--muted);
  font-size: 14px;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
  flex-shrink: 1;
}
.cardhead .sub .num,
.cardhead .sub .card-login,
.cardhead .sub .card-meta-sep {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}
.cardhead .sub .num,
.cardhead .sub .card-login {
  overflow: hidden;
  text-overflow: ellipsis;
}
.cardhead-identity .cooldown-tag {
  display: inline;
  margin: 0;
  color: var(--amber);
  font-size: 12px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}
#cCooldown[hidden],
#cardView.stage-initial-balance:not(.stage-cooldown) #cCooldown {
  display: none !important;
}
.block24 { margin-left: auto; font-size: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.block24 .block-status {
  color: #fca5a5;
  font-size: 11px;
  max-width: 220px;
  text-align: right;
}
.block24 button {
  background: var(--panel2); color: var(--muted); border: 1px solid var(--line);
  border-radius: 8px; padding: 5px 10px; cursor: pointer; font-size: 12px;
}
.block24 button:hover { color: var(--txt); }
.block24 button:disabled { opacity: 0.45; cursor: default; }
.block24 button.is-busy { opacity: 0.7; cursor: wait; }
.block24 button.has-error { color: #fca5a5; }

.ok { color: #86efac; }
.no { color: #fca5a5; }
.wait { color: #fcd34d; }

.balance-corr {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap;
}
.balance-corr .hint { flex: 1 1 100%; color: var(--muted); font-size: 12px; margin: 0 0 4px; }
.balance-corr .fld { display: flex; flex-direction: column; gap: 6px; min-width: 120px; }
.balance-corr .fld-balance { flex: 0 0 auto; }
.fld-input-with-confirm {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.confirm-action.confirm-infield {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #fff;
}
.confirm-action.confirm-infield .confirm-mark {
  width: 20px;
  height: 20px;
}
.confirm-action.confirm-infield:hover:not(:disabled):not(.disabled) {
  background: rgba(255, 255, 255, 0.08);
}
.confirm-action.confirm-infield.disabled,
.confirm-action.confirm-infield:disabled.disabled {
  background: transparent;
  color: var(--muted);
  opacity: 0.55;
}
.balance-corr .fld label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.balance-corr .fld-input-with-confirm input {
  background: var(--bg); border: 1px solid var(--line); color: var(--txt); border-radius: 8px;
  padding: 0 46px 0 10px; text-align: right; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums;
  width: 168px; height: 44px; box-sizing: border-box;
}
.balance-corr .hint.sub { margin-top: -4px; font-size: 11px; opacity: 0.9; }
.balance-corr.is-primary {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15);
}
.balance-corr.is-saving,
.balance-corr.is-locked,
.op-panel.is-saving,
.op-panel.is-locked {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.06);
}
.balance-corr.is-saving .fld-input-with-confirm input,
.balance-corr.is-locked .fld-input-with-confirm input,
.op-panel.is-saving .op-in,
.op-panel.is-locked .op-in {
  border-color: rgba(59, 130, 246, 0.45);
  color: var(--muted);
  cursor: wait;
  pointer-events: none;
  opacity: 0.72;
  background: rgba(15, 23, 42, 0.35);
}
.balance-corr.is-locked .confirm-action,
.op-panel.is-locked .confirm-action {
  display: none !important;
}
.balance-corr .panel-action-status { flex: 1 1 100%; margin: 2px 0 0; }
.panel-action-status {
  margin: 10px 0 0;
  font-size: 12px;
}
.panel-action-status.is-wait {
  color: #93c5fd;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-action-status.is-wait::before {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border: 2px solid rgba(147, 197, 253, 0.35);
  border-top-color: #93c5fd;
  border-radius: 50%;
  animation: confirm-spin 0.75s linear infinite;
}
.panel-action-status.is-error { color: #fca5a5; }
.panel-action-status.is-hint { color: var(--muted); font-size: 11px; margin-top: 8px; }
.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: #93c5fd;
  cursor: pointer;
  font: inherit;
  font-size: inherit;
  text-decoration: underline;
}
.link-btn:hover { color: #bfdbfe; }
.op-panel-mail-wait {
  border-color: rgba(252, 211, 77, 0.45);
  box-shadow: 0 0 0 1px rgba(252, 211, 77, 0.2);
  background: rgba(252, 211, 77, 0.06);
}
.op-panel .hint.op-mail-wait {
  margin: 0 0 12px;
  padding: 8px 10px;
  font-size: 12px;
  color: #fcd34d;
  background: rgba(252, 211, 77, 0.08);
  border-radius: 8px;
}
.mail-wait-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.mail-wait-spinner {
  display: block;
  flex-shrink: 0;
  color: #fcd34d;
  animation: confirm-spin 0.75s linear infinite;
}
.mail-wait-title {
  font-size: 15px;
  font-weight: 600;
  color: #fcd34d;
  margin-bottom: 4px;
}
.mail-wait-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.mail-wait-amount {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  margin-bottom: 8px;
}
.mail-wait-amount .lbl {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mail-wait-amount .val {
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fca5a5;
}
.mail-wait-btn {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(252, 211, 77, 0.45);
  background: rgba(252, 211, 77, 0.12);
  color: #fcd34d;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.mail-wait-btn:hover:not(:disabled) {
  background: rgba(252, 211, 77, 0.2);
}
.mail-wait-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.confirm.confirm-action {
  width: 44px; height: 44px; min-width: 44px; padding: 0; margin: 0;
  border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 0;
}
.confirm.confirm-action .confirm-mark { display: block; flex-shrink: 0; }
.confirm.confirm-action .confirm-spinner { display: none; }
.confirm.confirm-action:disabled:not(.disabled) { opacity: 0.85; cursor: wait; }
.is-saving .confirm-action .confirm-mark { display: none; }
.is-saving .confirm-action .confirm-spinner {
  display: block;
  animation: confirm-spin 0.75s linear infinite;
}
@keyframes confirm-spin {
  to { transform: rotate(360deg); }
}
#cardView.stage-initial-balance #opPanelWrap,
.balance-corr-stage ~ #opPanelWrap {
  display: none !important;
}
#cardView.stage-initial-balance .block24 button {
  pointer-events: none;
  opacity: 0.45;
}
.ios-batch-wrap {
  margin: 0 0 12px;
}
.farm-dash-controls {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.17vw, 22.8px);
  justify-content: flex-end;
  margin: 0 clamp(15px, 1.46vw, 28.5px) clamp(7px, 0.68vw, 13.3px) 0;
}
.farm-dash-left {
  display: inline-flex;
  align-items: center;
  gap: clamp(15px, 1.46vw, 28.5px);
}
.farm-dash-status-wrap {
  display: none;
}
.farm-dash-status-wrap .is-warn {
  color: #fbbf24;
}
.sim-registry-body {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 0.98vw, 19px);
}
.sim-group {
  border-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(5px, 0.49vw, 9.5px);
  margin-bottom: clamp(5px, 0.49vw, 9.5px);
}
.sim-group:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}
.sim-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.42fr;
  gap: clamp(10px, 0.98vw, 19px);
  min-height: clamp(44px, 4.3vw, 83.6px);
  padding: 0 clamp(20px, 1.95vw, 38px);
  align-items: center;
  background: var(--panel);
  border-radius: clamp(3px, 0.29vw, 5.7px);
}
.sim-row-label {
  display: none;
}
.sim-row-val {
  margin-top: 0;
  font-size: clamp(14.7px, 1.43vw, 27.9px);
  font-weight: 400;
  color: var(--txt);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.sim-row-val small {
  color: var(--txt);
  font-size: clamp(14.7px, 1.43vw, 27.9px);
}
.sim-row-number {
  justify-self: start;
}
.sim-row-balance {
  justify-self: start;
  text-align: left;
  margin-left: clamp(-68px, -3.6vw, -28px);
}
.sim-row-val.is-stale {
  color: var(--warn, #e8b84a);
}
.sim-stale-badge {
  display: inline-block;
  margin-left: 0.35em;
  font-size: 0.92em;
  line-height: 1;
  vertical-align: middle;
}
.preflight-card .preflight-body {
  width: 100%;
  max-height: min(52vh, 420px);
  overflow: auto;
  margin: 8px 0 4px;
}
.preflight-card {
  width: min(600px, calc(100vw - 48px));
  max-width: none;
}
.preflight-card .pattern-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.preflight-card .pattern-actions button {
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  background: #333;
  color: #fff;
  border: 1px solid #444;
}
.preflight-card .pattern-actions button:hover:not(:disabled) {
  background: #3d3d3d;
}
.preflight-account {
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel2);
}
.preflight-account p {
  margin: 0 0 4px;
  font-size: 13px;
}
.preflight-account p:last-child {
  margin-bottom: 0;
}
.preflight-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.preflight-table th,
.preflight-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border, #2a2b2a);
}
.preflight-table tr.is-stale td {
  color: var(--warn, #e8b84a);
}
.sim-row-turnover {
  justify-self: end;
  text-align: left;
  min-width: clamp(380px, 29vw, 560px);
}
.sim-progress {
  display: inline-block;
  vertical-align: middle;
  width: clamp(88px, 8.6vw, 167.2px);
  height: clamp(7px, 0.68vw, 13.3px);
  margin: 0 0 0 clamp(22px, 2.15vw, 41.8px);
  background: #252624;
  border-radius: 2px;
}
.sim-accounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(5px, 0.49vw, 9.5px);
  padding: 0;
}
.sim-problem-strip {
  margin: 0;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(180, 83, 9, 0.12);
  color: #b45309;
  font-size: 5px;
  line-height: 1.2;
  white-space: normal;
}
.sim-registry-empty {
  padding: 14px 16px;
}
.account-cell {
  border: 0;
  border-radius: clamp(3px, 0.29vw, 5.7px);
  min-height: clamp(95px, 9.28vw, 180.5px);
  padding: clamp(16px, 1.56vw, 30.4px) clamp(20px, 1.95vw, 38px) clamp(12px, 1.17vw, 22.8px);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.17vw, 22.8px);
  position: relative;
  overflow: hidden;
}
.account-cell.is-running {
  background: var(--panel3);
  box-shadow: none;
}
.account-cell.is-disabled {
  opacity: 1;
}
.account-cell.is-no-udid {
  opacity: 0.48;
  filter: grayscale(0.7);
}
.account-cell.is-no-udid .account-cell-title,
.account-cell.is-no-udid .muted {
  color: var(--muted);
}
.account-cell.is-no-udid .account-cell-actions {
  opacity: 0.45;
  pointer-events: none;
}
.account-cell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(30px, 2.93vw, 57px);
}
.account-cell-title {
  font-size: clamp(14.7px, 1.43vw, 27.9px);
  font-weight: 400;
  line-height: 1;
  color: var(--txt);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-cell-sub {
  color: var(--muted);
  font-size: clamp(9.3px, 0.91vw, 17.7px);
  line-height: 1;
}
.account-cell-status {
  min-height: auto;
}
.account-cell-actions {
  display: inline-flex;
  gap: clamp(11px, 1.07vw, 20.9px);
  position: absolute;
  top: clamp(18px, 1.76vw, 34.2px);
  right: clamp(18px, 1.76vw, 34.2px);
  align-items: center;
}
.account-cell-actions .ios-go-btn,
.account-cell-actions .ios-stop-btn {
  width: clamp(8px, 0.78vw, 15.2px);
  min-width: clamp(8px, 0.78vw, 15.2px);
  height: clamp(9px, 0.88vw, 17.1px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  overflow: hidden;
  text-indent: -999px;
}
.account-cell-actions .acc-go { background-image: url("/static/icons/go_ready.svg"); }
.account-cell-actions .acc-go:disabled { background-image: url("/static/icons/go_running.svg"); opacity: 1; }
.account-cell-actions .acc-go.is-running { background-image: url("/static/icons/go_running.svg"); opacity: 1; }
.account-cell-actions .acc-stop { background-image: url("/static/icons/stop_ready.svg"); }
.account-cell-actions .acc-stop:disabled { background-image: url("/static/icons/stop_inactive.svg"); opacity: 1; }
.account-cell-actions .acc-ready {
  width: clamp(7px, 0.68vw, 13.3px);
  height: clamp(7px, 0.68vw, 13.3px);
  background-image: url("/static/icons/ready.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.account-cell-actions .acc-ready.is-outline {
  background-image: url("/static/icons/ready_running.svg");
}
.account-cell-actions .acc-go.is-problem-blink,
.account-cell-actions .acc-ready.is-problem-blink {
  animation: farm-problem-blink 1.1s ease-in-out infinite;
}
@keyframes farm-problem-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.account-cell-open {
  position: absolute;
  inset: 0;
  opacity: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
}
.account-cell-open:hover {
  text-decoration: none;
}
.account-cell-metrics {
  color: var(--muted);
  font-size: clamp(9.3px, 0.91vw, 17.7px);
  font-variant-numeric: tabular-nums;
}
.account-pattern-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(18px, 1.76vw, 34.2px);
  row-gap: clamp(3px, 0.29vw, 5.7px);
  max-width: clamp(245px, 23.9vw, 465.5px);
}
.account-pattern-cell {
  color: var(--txt);
  font-size: clamp(9.3px, 0.91vw, 17.7px);
  line-height: 1.15;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.account-pattern-cell.is-go,
.account-pattern-cell.is-running-step {
  color: var(--green);
}
.account-pattern-cell.is-pending {
  color: var(--txt);
}
.account-pattern-cell.is-stuck {
  position: relative;
  z-index: 2;
  color: #fca5a5;
  cursor: pointer;
  animation: farm-stuck-blink 0.9s ease-in-out infinite;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.account-pattern-cell.is-stuck:focus-visible {
  outline: 2px solid rgba(248, 113, 113, 0.75);
  outline-offset: 2px;
  border-radius: 3px;
}
@keyframes farm-stuck-blink {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 0 rgba(248, 113, 113, 0);
  }
  50% {
    opacity: 0.35;
    text-shadow: 0 0 10px rgba(248, 113, 113, 0.7);
  }
}
.account-pattern-status {
  color: var(--txt);
  font-size: clamp(9.3px, 0.91vw, 17.7px);
  line-height: 1.2;
}
.account-pattern-status.is-ready {
  color: var(--txt);
}
.account-cell .muted {
  display: none;
}
.account-cell-placeholder {
  border: 0;
  border-radius: clamp(3px, 0.29vw, 5.7px);
  min-height: 95px;
  background: var(--panel2);
}
.ios-dash-go-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: rgba(255, 255, 255, 0.02);
}
.ios-dash-go-status {
  font-size: 13px;
  line-height: 1.35;
  display: block;
}
.ios-dash-go-main {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ios-wda-progress {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.ios-wda-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.ios-wda-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.65), rgba(96, 165, 250, 0.95));
  transition: width 0.45s ease;
}
.ios-wda-progress.is-waiting .ios-wda-progress-fill {
  animation: ios-wda-progress-pulse 1.6s ease-in-out infinite;
}
@keyframes ios-wda-progress-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.ios-wda-progress.is-blocked .ios-wda-progress-fill {
  background: rgba(251, 191, 36, 0.85);
  width: 100% !important;
  opacity: 0.35;
}
.ios-wda-progress-label.is-warn {
  color: #fbbf24;
}
.ios-dash-go-status.is-warn {
  color: #fbbf24;
}
.ios-wda-progress-label {
  font-size: 11px;
  line-height: 1.2;
}
.ios-dash-go-wrap .ios-go-btn {
  flex: 0 0 auto;
}
.ios-batch-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ios-go-btn {
  min-width: 52px;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.farm-dash-left .ios-go-btn,
.farm-dash-left .ios-stop-btn {
  width: clamp(14px, 1.37vw, 26.6px);
  min-width: clamp(14px, 1.37vw, 26.6px);
  height: clamp(16px, 1.56vw, 30.4px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  overflow: hidden;
  text-indent: -999px;
}
.farm-dash-left .ios-go-btn { background-image: url("/static/icons/all_go_ready.svg"); }
.farm-dash-left .ios-go-btn.is-busy,
.farm-dash-left .ios-go-btn:disabled { background-image: url("/static/icons/all_go_running.svg"); opacity: 1; }
.farm-dash-left .ios-stop-btn { background-image: url("/static/icons/all_stop_ready.svg"); }
.farm-dash-left .ios-stop-btn:disabled { background-image: url("/static/icons/all_stop_inactive.svg"); opacity: 1; }
.ios-go-btn:hover:not(:disabled):not(.disabled) {
  background: rgba(59, 130, 246, 0.22);
  color: var(--txt);
}
.ios-go-btn:disabled,
.ios-go-btn.disabled {
  opacity: 0.45;
  cursor: default;
}
.ios-go-btn.is-busy {
  opacity: 0.7;
  cursor: wait;
}
.ios-batch-progress {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--txt);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ios-stop-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  font-size: 12px;
  cursor: pointer;
}
.ios-stop-btn:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
}
.ios-stop-btn:disabled,
.ios-stop-btn.is-busy {
  opacity: 0.6;
  cursor: wait;
}
.ios-batch-status {
  margin-top: 6px;
  font-size: 12px;
}
.ios-batch-status-warn {
  color: #fbbf24;
}
#cardView.stage-cooldown #iosGoBtn.disabled,
#cardView.stage-cooldown #iosGoBtn:disabled {
  pointer-events: none;
  opacity: 0.45;
}
.op-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 16px; margin-bottom: 0; }
.op-dt { color: var(--muted); font-size: 12px; margin-bottom: 14px; }
.op-body {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px 10px;
  align-items: end;
}
.op-cell {
  min-width: 0;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 72px;
}
.op-cell .lbl {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  line-height: 1.25;
  white-space: normal;
}
.op-cell .val {
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
  text-align: right;
  min-height: 32px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.op-cell.is-field .val { color: var(--txt); }
.op-cell.is-field.is-idle .val { color: var(--txt); }
.op-cell.focus-in.is-active { background: var(--focus-in); border-color: rgba(59, 130, 246, 0.35); }
.op-cell.focus-in.is-active .lbl { color: #93c5fd; }
.op-cell.focus-in.is-active .val,
.op-cell.focus-in.is-active .op-in { font-size: 24px; font-weight: 700; min-height: 38px; }
.op-cell.focus-out.is-active { background: var(--focus-out); border-color: rgba(239, 68, 68, 0.25); }
.op-cell.focus-out.is-active .lbl { color: #fca5a5; }
.op-cell.focus-out.is-active .val { font-size: 24px; font-weight: 700; color: #fca5a5; min-height: 38px; }
.op-cell.is-idle { opacity: 0.4; }
.op-cell.is-empty .val { color: var(--muted); }
.op-in {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--bg);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: var(--txt);
  border-radius: 8px;
  padding: 6px 8px;
  text-align: right;
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-height: 32px;
}
.op-cell.focus-in .op-in:not(.op-in-readonly) {
  width: min(100%, 9.5ch);
  margin-left: auto;
}
.op-panel .op-input-with-confirm,
.op-panel .op-value-with-confirm,
.op-panel .fld-input-with-confirm {
  width: min(100%, 11.5rem);
  margin-left: auto;
}
.op-panel .fld-input-with-confirm .op-in {
  width: 100%;
  padding-right: 42px;
}
.op-cell.focus-in.is-active .fld-input-with-confirm {
  width: min(100%, 12.5rem);
}
.op-panel .op-in-readonly {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 32px;
  cursor: default;
  pointer-events: none;
}
.op-cell.focus-out.is-active .op-in-readonly {
  color: #fca5a5;
}
.confirm {
  border-radius: 8px; border: 0; background: var(--green);
  color: #05210f; cursor: pointer; flex-shrink: 0;
}
.confirm.confirm-action.confirm-infield {
  background: transparent;
  color: #fff;
}
.confirm:hover:not(:disabled):not(.disabled) { background: #4ade80; }
.confirm.disabled,
.confirm:disabled.disabled {
  background: var(--panel2); color: var(--muted); cursor: not-allowed; opacity: 1;
}

.op-panel.op-panel-leave {
  animation: opPanelLeave 0.38s ease forwards;
  pointer-events: none;
  transform-origin: center top;
}
@keyframes opPanelLeave {
  to {
    opacity: 0;
    transform: translateY(32px) scale(0.94);
  }
}
.op-panel.op-panel-enter {
  opacity: 0;
  transform: translateY(-14px);
}
.op-panel.op-panel-enter.op-panel-show {
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 1;
  transform: translateY(0);
}
.op-panel-wait .muted { padding: 16px; text-align: center; }

#opBody tr.journal-month-split td {
  padding: 14px 0 10px;
  border: none;
  background: transparent;
}
#opBody tr.journal-month-split .journal-month-split-line {
  height: 1px;
  background: rgba(148, 163, 184, 0.35);
}

#journalCard #opBody tr.journal-row-past td {
  color: var(--muted);
}
#journalCard #opBody tr.journal-row-past td.pos,
#journalCard #opBody tr.journal-row-past td.neg {
  color: rgba(139, 151, 167, 0.82);
}
#journalCard #opBody tr.journal-row-today td {
  color: var(--txt);
  font-weight: 700;
}
#journalCard #opBody tr.journal-row-today td.muted {
  color: var(--muted);
  font-weight: 700;
}

#journalCard #opBody tr.journal-row-tech td {
  color: rgba(148, 163, 184, 0.92);
  font-style: italic;
}
#journalCard #opBody tr.journal-row-tech td.pos,
#journalCard #opBody tr.journal-row-tech td.neg {
  color: rgba(148, 163, 184, 0.92);
}
.journal-tech-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.95);
  background: rgba(148, 163, 184, 0.12);
}
#journalCard .journal-loading td {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  padding: 18px 8px;
}
.journal-more-wrap {
  display: flex;
  justify-content: center;
  padding: 12px 8px 4px;
}
.journal-more-btn {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.45);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
}
.journal-more-btn:hover:not(:disabled) {
  border-color: rgba(96, 165, 250, 0.55);
}
.journal-more-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
#journalCard #opBody tr.journal-row-inconsistent td {
  background: rgba(239, 68, 68, 0.06);
}
.journal-integrity-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(248, 113, 113, 0.95);
  background: rgba(239, 68, 68, 0.12);
}
.op-integrity-warn {
  color: rgba(248, 113, 113, 0.95);
  font-size: 12px;
  margin: 0 0 6px;
}
.op-pattern-hint {
  margin: 4px 0 0;
  font-size: 11px;
  color: rgba(252, 211, 77, 0.95);
}

#opBody tr.journal-row-new {
  opacity: 0;
  transform: translateY(-10px);
  background: rgba(34, 197, 94, 0.1);
}
#opBody tr.journal-row-new.journal-row-show {
  transition: opacity 0.35s ease, transform 0.35s ease, background-color 0.8s ease;
  opacity: 1;
  transform: translateY(0);
  background: transparent;
}
#journalCard #opBody tr.journal-row-today.journal-row-new.journal-row-show td {
  color: var(--txt);
  font-weight: 700;
}
#journalCard #opBody tr.journal-row-today.journal-row-new.journal-row-show td.pos {
  color: #86efac;
}
#journalCard #opBody tr.journal-row-today.journal-row-new.journal-row-show td.neg {
  color: #fca5a5;
}

#opBody tr.journal-row-mail-wait {
  background: rgba(234, 179, 8, 0.08);
}
#opBody tr.journal-row-mail-wait td {
  vertical-align: middle;
}
#opBody tr.journal-row-mail-wait .mail-wait-time {
  width: 28px;
  text-align: center;
}
#opBody tr.journal-row-mail-wait .mail-wait-time .mail-wait-spinner {
  display: none;
  margin: 0 auto;
}
#opBody tr.journal-row-mail-wait.is-polling .mail-wait-time .mail-wait-spinner {
  display: block;
}
#opBody tr.journal-row-mail-wait .mail-wait-status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
#opBody tr.journal-row-mail-wait .mail-wait-status-line .mail-wait-spinner {
  display: none;
  flex-shrink: 0;
  color: #fcd34d;
  animation: confirm-spin 0.75s linear infinite;
}
#opBody tr.journal-row-mail-wait.is-polling .mail-wait-status-line .mail-wait-spinner {
  display: block;
}
#opBody tr.journal-row-mail-wait .mail-wait-status-cell {
  font-size: 0.85rem;
  line-height: 1.35;
}
.journal-pending-status-row {
  display: inline-flex;
  align-items: center;
  gap: 25px;
}
.journal-pending-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  line-height: 1;
}
.journal-pending-status-icon .wait,
.journal-pending-status-icon .ok,
.journal-pending-status-icon .no,
.journal-pending-status-icon .muted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 22px;
  line-height: 1;
}
.journal-pending-storno {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #fca5a5;
  cursor: pointer;
  line-height: 1;
}
.journal-pending-storno:hover:not(:disabled) {
  color: #f87171;
}
.journal-pending-storno:disabled {
  opacity: 0.45;
  cursor: default;
}
.journal-pending-storno-icon {
  display: block;
  width: 22px;
  height: 22px;
}
#opBody tr.journal-row-mail-wait .mail-wait-status {
  display: block;
}
.mail-wait-inline-btn {
  font: inherit;
  font-size: 0.8rem;
  padding: 2px 8px;
  border: 1px solid rgba(234, 179, 8, 0.45);
  border-radius: 4px;
  background: rgba(234, 179, 8, 0.12);
  color: inherit;
  cursor: pointer;
}
.mail-wait-inline-btn:hover:not(:disabled) {
  background: rgba(234, 179, 8, 0.22);
}
.mail-wait-inline-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

@media (max-width: 900px) {
  .op-body { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .status { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .op-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

#rrHintTip {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  max-width: 320px;
  padding: 6px 10px;
  color: var(--txt);
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
#rrHintTip[hidden],
#rrHintTip:not(.is-visible) {
  display: none !important;
}
