:root {
  --bg: #030405;
  --panel: rgba(12, 13, 13, .92);
  --panel-soft: rgba(22, 23, 22, .86);
  --panel-deep: rgba(5, 6, 6, .9);
  --ink: #f3f3ed;
  --muted: #8e8e87;
  --muted-2: #b8b8af;
  --line: rgba(255, 205, 0, .24);
  --line-soft: rgba(255, 255, 255, .12);
  --yellow: #ffd000;
  --yellow-2: #ffb800;
  --green: #59bd4e;
  --blue: #2f8cff;
  --red: #e74848;
  --shadow: 0 24px 70px rgba(0, 0, 0, .58);
  --condensed: "Bahnschrift Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --mono: "Bahnschrift", "Agency FB", "Segoe UI", Arial, sans-serif;
  --ui-scale: .75;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  zoom: var(--ui-scale);
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 208, 0, .08), transparent 22%),
    radial-gradient(circle at 20% 100%, rgba(255, 208, 0, .06), transparent 22%),
    linear-gradient(90deg, rgba(255, 208, 0, .025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 208, 0, .018) 1px, transparent 1px),
    #040505;
  background-size: auto, auto, 54px 54px, 54px 54px, auto;
  font-family: var(--mono);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 12%, transparent 86%, rgba(255,208,0,.04)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px);
  opacity: .42;
  mix-blend-mode: screen;
}


@supports not (zoom: 1) {
  body {
    overflow-x: hidden;
  }

  .shell,
  .login-screen {
    transform: scale(var(--ui-scale));
    transform-origin: top left;
    width: calc(100% / var(--ui-scale));
  }
}

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

button,
.link-button {
  border: 0;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background .16s ease, transform .12s ease, box-shadow .16s ease;
}

button:active,
.link-button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: .62;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(255, 208, 0, .8);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  color: #f3f3ed;
  font-family: var(--condensed);
  font-size: 36px;
  line-height: .92;
  letter-spacing: .02em;
  text-transform: uppercase;
}

h1 span {
  color: var(--yellow);
}

h2 {
  color: #f4f4ee;
  font-family: var(--condensed);
  font-size: clamp(40px, 3.25vw, 56px);
  line-height: .9;
  letter-spacing: .045em;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(255, 255, 255, .18);
}

h3 {
  font-family: var(--condensed);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  min-height: 100vh;
  padding: clamp(22px, 4vw, 70px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(2, 3, 4, .98) 0 34%, rgba(2, 3, 4, .74) 48%, rgba(2, 3, 4, .2) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .74)),
    url("/assets/login-bg.png") center / cover no-repeat;
}

.login-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 208, 0, .9) 0 1px, transparent 1px) 42% 16% / 430px 2px no-repeat,
    linear-gradient(112deg, transparent 0 43%, rgba(255, 208, 0, .72) 43% calc(43% + 2px), transparent calc(43% + 2px)),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  opacity: .46;
}

.login-screen::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: 0;
  width: 170px;
  height: 280px;
  pointer-events: none;
  background: repeating-linear-gradient(135deg, var(--yellow) 0 22px, #090909 22px 42px);
  transform: skewX(-18deg);
  box-shadow: 0 0 55px rgba(255, 208, 0, .18);
}

.auth-locked {
  overflow: hidden;
}

.auth-locked .login-screen {
  display: grid;
  grid-template-columns: minmax(300px, 520px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 90px);
}

.auth-locked .shell {
  pointer-events: none;
  user-select: none;
  filter: blur(8px);
}

.login-brand,
.login-card {
  position: relative;
  z-index: 1;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  align-self: start;
}

.login-brand small {
  display: block;
  margin-top: 8px;
  color: var(--yellow);
  font-family: var(--condensed);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-mark {
  width: 82px;
  height: 88px;
}

.login-mark span {
  font-size: 52px;
}

.login-card {
  width: min(100%, 500px);
  align-self: center;
  padding: 34px 32px 28px;
  border: 1px solid rgba(255, 208, 0, .36);
  background:
    linear-gradient(135deg, rgba(255, 208, 0, .08), transparent 36%),
    rgba(4, 5, 5, .82);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .65);
  backdrop-filter: blur(10px);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--yellow), var(--yellow)) left top / 48px 1px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) left top / 1px 48px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) right bottom / 48px 1px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) right bottom / 1px 48px no-repeat;
}

.login-card-head {
  margin-bottom: 28px;
}

.login-card h2 {
  margin-top: 6px;
  font-size: clamp(40px, 4vw, 58px);
}

.login-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.login-card label span {
  color: #d9d9d2;
  font-family: var(--condensed);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-card input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  background: rgba(0, 0, 0, .58);
}

.login-card input:focus {
  border-color: rgba(255, 208, 0, .72);
}

.login-submit {
  width: 100%;
  min-width: 0;
  margin-top: 8px;
}

.login-error {
  min-height: 20px;
  margin: -4px 0 8px;
  color: #ff6d57;
  font-size: 14px;
}

.login-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  color: rgba(255, 208, 0, .78);
  font-family: var(--condensed);
  font-size: 13px;
  letter-spacing: .08em;
}

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100vh;
  padding: 10px;
  gap: 12px;
}

.sidebar {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) auto auto;
  align-items: stretch;
  min-width: 0;
  min-height: 78px;
  border: 1px solid rgba(255, 208, 0, .18);
  background:
    linear-gradient(180deg, rgba(255,208,0,.06), transparent 17%),
    linear-gradient(90deg, rgba(255,255,255,.04), transparent 1px),
    rgba(4, 5, 5, .94);
  box-shadow: var(--shadow);
}

.sidebar::before,
.panel::before,
.tactical-card::before,
.run-card::before,
.intel-rail::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--yellow), var(--yellow)) left top / 34px 1px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) left top / 1px 34px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) right bottom / 34px 1px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) right bottom / 1px 34px no-repeat;
  opacity: .86;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px 16px;
  border-right: 1px solid rgba(255, 208, 0, .18);
}

.brand::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 18px;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 4px;
}

.brand p {
  margin-top: 6px;
  color: var(--yellow);
  font-family: var(--condensed);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 52px;
  flex: 0 0 auto;
  color: var(--yellow);
  filter: drop-shadow(0 0 12px rgba(255, 208, 0, .25));
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  border: 3px solid var(--yellow);
  background: rgba(255, 208, 0, .08);
}

.brand-mark span {
  position: relative;
  z-index: 1;
  font-family: var(--condensed);
  font-size: 32px;
  font-weight: 900;
}

.tabs {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  overflow-x: auto;
  border-right: 1px solid rgba(255, 208, 0, .12);
  scrollbar-width: thin;
}

.tab {
  position: relative;
  display: grid;
  grid-template-columns: 30px max-content;
  align-items: center;
  flex: 0 0 auto;
  min-height: 56px;
  padding: 0 12px;
  border: 1px solid transparent;
  color: #d6d6ce;
  background: transparent;
  text-align: left;
  text-transform: uppercase;
}

.tab::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 9px;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255, 208, 0, .9);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0;
}

.tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, .035);
}

.tab.active {
  color: var(--yellow);
  border-color: rgba(255, 208, 0, .88);
  background:
    linear-gradient(90deg, rgba(255, 208, 0, .12), rgba(255, 208, 0, .02)),
    rgba(255, 255, 255, .035);
  box-shadow: inset 0 0 22px rgba(255, 208, 0, .05), 0 0 18px rgba(255, 208, 0, .08);
}

.tab.active::after {
  opacity: 1;
}

.tab span:not(.tab-icon) {
  display: grid;
  gap: 1px;
  font-family: var(--condensed);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .05em;
}

.tab small {
  display: block;
  color: #a0a098;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: none;
  white-space: nowrap;
}

.mini-stats {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: max-content;
  padding: 10px 12px;
  border-right: 1px solid rgba(255, 208, 0, .12);
}

.mini-stats div {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 208, 0, .35);
  background: linear-gradient(90deg, rgba(255, 208, 0, .06), rgba(255,255,255,.025));
}

.mini-stats span {
  color: #fff;
  font-family: var(--condensed);
  font-size: 28px;
  line-height: .9;
  font-weight: 900;
}

.mini-stats small {
  color: #aaa9a0;
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
}

.operator-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 28px;
  align-items: center;
  gap: 8px;
  min-height: 78px;
  padding: 10px 12px;
  border-left: 1px solid rgba(255, 208, 0, .12);
}

.operator-badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  clip-path: polygon(50% 0, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
  color: var(--yellow);
  background: rgba(255, 208, 0, .1);
  font-family: var(--condensed);
  font-size: 22px;
  font-weight: 900;
}

.operator-card strong {
  display: block;
  font-family: var(--condensed);
  font-size: 17px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.operator-card p {
  color: #9b9b94;
  font-size: 13px;
}

.operator-card p span,
.status-pill::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(89, 189, 78, .6);
}

.logout-button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, .18);
  color: #d8d8d1;
  background: rgba(0, 0, 0, .42);
  font-size: 20px;
  line-height: 1;
}

.logout-button:hover {
  color: var(--yellow);
  border-color: rgba(255, 208, 0, .56);
}

.workspace {
  min-width: 0;
}

.panel {
  position: relative;
  display: none;
  min-height: calc(100vh - 112px);
  padding: 22px 20px 12px;
  border: 1px solid rgba(255, 208, 0, .18);
  background:
    linear-gradient(90deg, rgba(255,255,255,.02), transparent 16%, transparent 84%, rgba(255,208,0,.025)),
    rgba(3, 4, 4, .86);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel.active {
  display: block;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(280px, 20vw, 330px);
  gap: 18px;
  min-height: calc(100vh - 154px);
}

.main-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
}

.panel-head > div:first-child {
  min-width: 0;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--yellow);
  font-family: var(--condensed);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 35px;
  padding: 0 18px;
  border: 1px solid rgba(255, 208, 0, .42);
  color: #f1f1eb;
  background: rgba(15, 16, 15, .82);
  font-family: var(--condensed);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill::before {
  margin-left: 0;
}

.status-pill.busy::before {
  background: var(--yellow);
}

.tactical-card,
.batch-block,
.log-wrap,
.integration-box,
.setup-panel,
.ai-toolbar,
.table-shell,
.message-area textarea {
  position: relative;
  border: 1px solid rgba(255, 208, 0, .34);
  background:
    linear-gradient(135deg, rgba(255, 208, 0, .035), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)),
    rgba(10, 11, 11, .88);
  box-shadow: inset 0 0 28px rgba(255, 255, 255, .025), 0 0 28px rgba(0, 0, 0, .32);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px 28px;
  padding: 22px 26px 12px;
}

.settings-form {
  grid-template-columns: 1fr;
}

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

.batch-block {
  padding: 18px 26px 30px;
}

.batch-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.batch-head h3 {
  color: #fff;
  font-size: 27px;
}

.batch-head > span {
  color: #9a9a93;
  font-size: 14px;
}

label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #d0d0c9;
  font-family: var(--condensed);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

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

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 0;
  color: #f4f4ee;
  background:
    linear-gradient(90deg, rgba(255,255,255,.04), transparent),
    rgba(4, 5, 5, .7);
  outline: none;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .32);
}

input,
select {
  height: 42px;
  padding: 0 15px;
  font-family: var(--mono);
  font-size: 16px;
}

textarea {
  min-height: 132px;
  padding: 14px 18px;
  resize: vertical;
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.55;
}

input::placeholder,
textarea::placeholder {
  color: rgba(220, 220, 213, .45);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 208, 0, .82);
  box-shadow: 0 0 0 2px rgba(255, 208, 0, .1), inset 0 0 20px rgba(255, 208, 0, .04);
}

.toggle {
  display: flex;
  align-items: center;
  align-self: end;
  gap: 14px;
  min-height: 49px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .19);
  color: #f4f4ee;
  background: rgba(4, 5, 5, .65);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.toggle input {
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid var(--yellow);
  accent-color: var(--yellow);
}

.command-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 12px;
}

.command-row p {
  color: #94948d;
  font-size: 13px;
  line-height: 1.45;
}

.primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 390px;
  min-height: 64px;
  padding: 0 52px;
  color: #080908;
  background:
    linear-gradient(135deg, transparent 0 18px, var(--yellow) 19px),
    linear-gradient(90deg, var(--yellow), #f2bc00);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%, 16px 50%);
  font-family: var(--condensed);
  font-size: 27px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 0 28px rgba(255, 208, 0, .18);
}

.primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 38px rgba(255, 208, 0, .28);
}

.primary.compact {
  min-width: 150px;
  min-height: 42px;
  padding: 0 26px;
  font-size: 19px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.secondary-size {
  min-width: 280px;
  min-height: 50px;
  font-size: 21px;
}

.button-sight {
  position: relative;
  width: 34px;
  height: 34px;
  border: 2px solid #070807;
  border-radius: 50%;
}

.button-sight::before,
.button-sight::after {
  content: "";
  position: absolute;
  background: #070807;
}

.button-sight::before {
  left: 50%;
  top: -8px;
  bottom: -8px;
  width: 2px;
  transform: translateX(-50%);
}

.button-sight::after {
  top: 50%;
  left: -8px;
  right: -8px;
  height: 2px;
  transform: translateY(-50%);
}

.ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 0 17px;
  border: 1px solid rgba(255, 208, 0, .42);
  color: #ededdf;
  background: rgba(8, 9, 9, .72);
  font-family: var(--condensed);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ghost:hover {
  color: var(--yellow);
  border-color: rgba(255, 208, 0, .82);
  background: rgba(255, 208, 0, .055);
  box-shadow: 0 0 20px rgba(255, 208, 0, .11);
}

.ghost.is-loading {
  color: var(--yellow);
  pointer-events: none;
}

.ghost.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 208, 0, .22), transparent);
  transform: translateX(-100%);
  animation: sweep 1s infinite;
}

.ghost.is-success {
  color: #071007;
  border-color: var(--green);
  background: var(--green);
}

.ghost.is-error,
.danger:hover {
  color: #fff;
  border-color: var(--red);
  background: rgba(231, 72, 72, .7);
}

.danger {
  color: #ff5f56;
  border-color: rgba(231, 72, 72, .55);
}

.mini {
  min-height: 28px;
  padding: 0 10px;
  font-size: 14px;
}

@keyframes sweep {
  to { transform: translateX(100%); }
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.log-wrap {
  overflow: hidden;
}

.log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.log-head strong {
  color: var(--yellow);
  font-family: var(--condensed);
  font-size: 18px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.job-progress {
  display: grid;
  gap: 8px;
  padding: 14px 16px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background:
    linear-gradient(90deg, rgba(255, 208, 0, .06), transparent 55%),
    rgba(5, 6, 6, .72);
}

.job-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #f2f2eb;
  font-family: var(--condensed);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.job-progress-top strong {
  color: var(--yellow);
  font-size: 24px;
}

.job-progress-track {
  position: relative;
  height: 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 208, 0, .45);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 8px, transparent 8px 16px),
    rgba(0, 0, 0, .55);
}

.job-progress-fill {
  width: 0%;
  height: 100%;
  background:
    linear-gradient(90deg, #b88a00, var(--yellow), #fff0a0);
  box-shadow: 0 0 18px rgba(255, 208, 0, .34);
  transition: width .35s ease;
}

.job-progress.is-indeterminate .job-progress-fill {
  width: 34%;
  animation: progressSweep 1.1s linear infinite;
}

.job-progress.is-error .job-progress-fill {
  background: linear-gradient(90deg, #7c1717, #ff5f56);
}

.job-progress small {
  color: #999991;
  font-size: 12px;
}

@keyframes progressSweep {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(320%); }
}

pre {
  min-height: 165px;
  max-height: 260px;
  margin: 0;
  padding: 14px 16px;
  overflow: auto;
  color: #c8c8bd;
  background: rgba(1, 2, 2, .82);
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.5;
}

.intel-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px;
  border: 1px solid rgba(255, 208, 0, .22);
  background: rgba(4, 5, 5, .72);
  overflow: hidden;
}

.rail-image {
  flex: 1 1 auto;
  min-height: 430px;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(.7) contrast(1.1);
  opacity: .9;
  mix-blend-mode: screen;
}

.collect-rail .rail-image { background-image: url("/assets/operator-collect.png"); }
.archive-rail .rail-image { background-image: url("/assets/operator-archive.png"); }
.google-rail .rail-image { background-image: url("/assets/operator-google.png"); }
.message-rail .rail-image { background-image: url("/assets/operator-message.png"); }

.rail-box,
.operator-tip,
.wide-blueprint,
.bottom-map {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 208, 0, .45);
  background: rgba(5, 6, 6, .76);
}

.rail-box strong,
.operator-tip strong,
.bottom-map {
  display: block;
  color: var(--yellow);
  font-family: var(--condensed);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rail-box span,
.operator-tip p,
.bottom-map span {
  color: #a5a59e;
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
}

.rail-box img {
  display: block;
  width: 100%;
  margin-top: 8px;
  opacity: .85;
}

.chart-box img {
  height: 88px;
  object-fit: cover;
}

.runs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 18px;
}

.run-card {
  position: relative;
  min-height: 377px;
  padding: 27px 16px 15px;
  border: 1px solid rgba(255, 208, 0, .34);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent),
    rgba(11, 12, 12, .86);
}

.run-card::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 15px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(89, 189, 78, .65);
}

.run-card h3 {
  min-height: 54px;
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
  word-break: break-word;
  text-transform: none;
}

.run-card p {
  color: #a7a7a0;
  font-size: 13px;
  line-height: 1.5;
}

.run-card .run-meta {
  display: grid;
  gap: 5px;
  margin: 18px 0 15px;
}

.run-card .run-sample {
  min-height: 44px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.13);
  text-transform: uppercase;
}

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

.run-actions .danger {
  grid-column: 1 / -1;
  justify-self: start;
}

.archive-note {
  min-height: 42px;
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,.12);
  color: #8f8f88;
  background: rgba(255,255,255,.03);
  font-size: 13px;
}

.lead-tabs {
  display: flex;
  gap: 12px;
  margin: 0 0 16px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.lead-filter,
.tone-btn {
  flex: 0 0 auto;
  min-height: 39px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, .18);
  color: #e1e1d8;
  background: rgba(6, 7, 7, .78);
  font-family: var(--condensed);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .04em;
}

.lead-filter:hover,
.lead-filter.active,
.tone-btn:hover,
.tone-btn.active {
  color: #090a09;
  border-color: var(--yellow);
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(255, 208, 0, .22);
}

.search {
  width: min(380px, 100%);
  min-width: 260px;
  background-image: linear-gradient(90deg, rgba(255,255,255,.04), transparent);
}

.ai-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  min-height: 80px;
  margin-bottom: 16px;
  padding: 14px 18px;
}

.ai-toolbar strong {
  display: block;
  color: #fff;
  font-family: var(--condensed);
  font-size: 20px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.ai-toolbar span,
.ai-toolbar small {
  color: #999991;
  font-size: 13px;
}

.ai-toolbar small {
  justify-self: end;
  white-space: nowrap;
}

.assistant-panel {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.assistant-head,
.assistant-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.assistant-head strong {
  color: #fff;
  font-family: var(--condensed);
  font-size: 22px;
  text-transform: uppercase;
}

.assistant-head span {
  color: #9b9b92;
  font-size: 12px;
  white-space: nowrap;
}

.assistant-log {
  display: grid;
  gap: 9px;
  max-height: 220px;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(0, 0, 0, .28);
}

.assistant-msg {
  max-width: 86%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  color: #e5e5dd;
  background: rgba(255, 255, 255, .04);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.assistant-msg-user {
  justify-self: end;
  border-color: rgba(255, 208, 0, .35);
  color: #fff;
  background: rgba(255, 208, 0, .09);
}

.assistant-form input {
  flex: 1;
}

.table-shell {
  max-height: calc(100vh - 250px);
  overflow: auto;
}

.table-shell::-webkit-scrollbar,
pre::-webkit-scrollbar,
textarea::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.table-shell::-webkit-scrollbar-track,
pre::-webkit-scrollbar-track,
textarea::-webkit-scrollbar-track {
  background: rgba(255,255,255,.06);
}

.table-shell::-webkit-scrollbar-thumb,
pre::-webkit-scrollbar-thumb,
textarea::-webkit-scrollbar-thumb {
  background: rgba(255, 208, 0, .5);
}

table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  border-right: 1px dashed rgba(255, 255, 255, .09);
  text-align: left;
  vertical-align: top;
  color: #dbdbd3;
  background: rgba(11, 12, 12, .72);
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #9e9e96;
  background: rgba(16, 17, 17, .98);
  font-family: var(--condensed);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .09em;
  line-height: 1.05;
  text-transform: uppercase;
}

tbody tr:hover td {
  background: rgba(255, 208, 0, .035);
}

td a {
  color: #f3f3ed;
  text-decoration: none;
}

td a:hover {
  color: var(--yellow);
}

.lead-name {
  display: grid;
  gap: 4px;
}

.lead-name strong {
  color: #fff;
  font-size: 14px;
}

.subtle {
  color: #8f8f88;
  font-size: 12px;
  line-height: 1.35;
}

.chip,
.priority,
.contact-difficulty,
.vk-status,
td select {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(255, 208, 0, .25);
  color: var(--yellow);
  background: rgba(255, 208, 0, .08);
  font-size: 12px;
  font-weight: 800;
}

td select {
  width: 130px;
  color: #fff;
}

.status-new { color: var(--yellow); border-color: rgba(255, 184, 0, .5); background: rgba(255, 184, 0, .08); }
.status-sent { color: var(--blue); border-color: rgba(47, 140, 255, .55); background: rgba(47, 140, 255, .1); }
.status-reply { color: var(--green); border-color: rgba(89, 189, 78, .55); background: rgba(89, 189, 78, .1); }
.status-no { color: #ff6666; border-color: rgba(231, 72, 72, .55); background: rgba(231, 72, 72, .1); }

.contact-cell {
  min-width: 190px;
}

.note-cell {
  min-width: 220px;
}

.note-input {
  width: 100%;
  min-width: 210px;
  min-height: 62px;
  padding: 8px 10px;
  color: #e8e8df;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.35;
  resize: vertical;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.row-actions {
  min-width: 120px;
  white-space: nowrap;
}

.row-actions .mini {
  min-width: 34px;
  margin: 2px;
  padding: 0 8px;
}

.vk-status {
  display: grid;
  gap: 2px;
  margin-top: 7px;
  padding: 6px 8px;
}

.vk-status span {
  color: #999991;
  font-size: 11px;
}

.vk-good strong { color: var(--green); }
.vk-warn strong { color: var(--yellow); }
.vk-blocked strong,
.vk-empty strong { color: #ff7770; }

.empty {
  padding: 45px;
  color: #999991;
  text-align: center;
}

.leads-bottom {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
  margin-top: 22px;
}

.wide-blueprint {
  margin: 0;
}

.bottom-map {
  min-height: 78px;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255, 208, 0, .18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 208, 0, .1) 1px, transparent 1px),
    rgba(5, 6, 6, .7);
  background-size: 20px 20px;
}

.corner-operator {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 215px;
  height: 315px;
  background: url("/assets/operator-leads.png") right bottom / contain no-repeat;
  pointer-events: none;
  opacity: .88;
}

.price-control {
  padding: 18px;
}

.price-control-grid,
.price-add {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 130px repeat(3, auto);
  align-items: end;
  gap: 12px;
}

.price-add {
  grid-template-columns: minmax(180px, 260px) minmax(260px, 1fr) auto;
  margin-top: 12px;
}

.price-progress {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 208, 0, .22);
  color: #cfcfc5;
  background: rgba(0, 0, 0, .24);
  font-size: 13px;
}

.price-console {
  margin-top: 12px;
  border: 1px solid rgba(255, 208, 0, .18);
  background: rgba(0, 0, 0, .35);
}

.price-console-head {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: var(--yellow);
  font-family: var(--condensed);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.price-console pre {
  max-height: 130px;
  margin: 0;
  overflow: auto;
  padding: 10px 12px;
  color: #b8b8ad;
  font-size: 12px;
  white-space: pre-wrap;
}

.price-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.price-box {
  padding: 0;
  overflow: hidden;
}

.price-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.price-box-head strong {
  color: var(--yellow);
  font-family: var(--condensed);
  font-size: 19px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.price-box-head span {
  color: #999991;
  font-size: 12px;
}

.price-head-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.price-head-tools .mini {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 11px;
}

.summary-site {
  color: #8f8f86;
  font-size: 11px;
}

.price-table-shell {
  max-height: 520px;
  overflow: auto;
}

.price-table-shell.products {
  max-height: 430px;
}

.price-table {
  min-width: 760px;
}

.price-table th,
.price-table td {
  padding: 8px 10px;
  font-size: 12px;
  vertical-align: top;
}

.price-candidates {
  max-width: 420px;
  color: #a8a89f;
}

.price-picks,
.title-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 220px;
}

.title-picks {
  min-width: 320px;
}

.price-pick,
.title-pick {
  border: 1px solid rgba(255, 208, 0, .28);
  background: rgba(255, 208, 0, .05);
  color: #e4e0c8;
  cursor: pointer;
  font-family: var(--condensed);
  font-size: 12px;
  letter-spacing: .03em;
  padding: 6px 8px;
  text-transform: uppercase;
}

.title-pick {
  max-width: 360px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-pick:hover,
.price-pick.active,
.title-pick:hover,
.title-pick.active {
  background: var(--yellow);
  color: #080806;
}

.prices-rail .rail-image {
  background-image: url("/assets/operator-archive.png");
}

.message-controls {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 28px;
}

.tone-group {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
}

.tone-group > span {
  flex: 0 0 100%;
  color: #d0d0c9;
  font-family: var(--condensed);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.message-area textarea {
  min-height: 470px;
  padding: 20px;
  font-size: 18px;
}

.wide-action {
  min-width: 420px;
  min-height: 55px;
  font-size: 22px;
}

.copy-strong {
  min-width: 170px;
  min-height: 45px;
}

.operator-tip {
  padding: 24px;
}

.operator-tip p {
  margin-top: 10px;
  font-size: 15px;
  text-transform: none;
}

.integration-box {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 18px 22px;
}

.integration-box strong {
  display: block;
  color: #fff;
  font-family: var(--condensed);
  font-size: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.integration-box p {
  margin-top: 5px;
  color: #9a9a93;
  font-size: 13px;
}

.setup-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr);
  gap: 22px;
  padding: 18px 24px;
}

.setup-panel h3 {
  margin-bottom: 13px;
  color: #fff;
  font-size: 22px;
}

.setup-panel p {
  color: #c7c7bf;
  font-size: 15px;
  line-height: 1.65;
}

.setup-panel b {
  display: inline-block;
  min-width: 20px;
  color: var(--yellow);
}

.setup-panel code {
  padding: 2px 7px;
  color: var(--yellow);
  background: rgba(255, 208, 0, .12);
}

.radar-panel {
  min-height: 170px;
  border: 1px solid rgba(255, 208, 0, .42);
  background:
    radial-gradient(circle at center, transparent 0 28px, rgba(255,208,0,.7) 29px 30px, transparent 31px 58px, rgba(255,208,0,.4) 59px 60px, transparent 61px),
    linear-gradient(90deg, transparent calc(50% - 1px), var(--yellow) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), var(--yellow) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(90deg, rgba(255,208,0,.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,208,0,.08) 1px, transparent 1px),
    rgba(5, 6, 6, .72);
  background-size: auto, auto, auto, 22px 22px, 22px 22px, auto;
}

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


/* Top-header layout overrides */
.topbar .brand h1 {
  font-size: 30px;
}

.topbar .brand p {
  margin-top: 4px;
  font-size: 10px;
}

.topbar .mini-stats {
  align-self: stretch;
}

.topbar .mini-stats small {
  font-size: 10px;
}

.topbar .operator-card strong {
  font-size: 15px;
}

.topbar .operator-card p {
  font-size: 11px;
}

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

.panel-prices .prices-rail {
  display: none;
}

.panel-prices .price-table-shell {
  max-height: min(46vh, 520px);
}

.panel-prices .price-table-shell.products {
  max-height: min(56vh, 640px);
}

.panel-prices .price-table {
  min-width: 900px;
}



.panel-collect .job-status-card {
  margin-top: -6px;
}

.log-output pre {
  margin: 0;
  border: 0;
  min-height: 210px;
}

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

.panel-prices .price-grid .price-table-shell {
  max-height: min(42vh, 520px);
}

.panel-prices .price-table {
  width: 100%;
  min-width: 1100px;
}

.panel-prices .price-probe-table {
  min-width: 1320px;
}

/* Compact desktop header fit */
@media (min-width: 1081px) {
  .sidebar {
    grid-template-columns: 220px minmax(0, 1fr) 210px;
  }

  .tabs {
    gap: 6px;
    overflow: hidden;
  }

  .tab {
    grid-template-columns: 25px max-content;
    min-height: 54px;
    padding: 0 9px;
  }

  .tab span:not(.tab-icon) {
    font-size: 16px;
  }

  .tab small {
    display: none;
  }

  .mini-stats {
    display: none;
  }

  .mini-stats div {
    min-width: 86px;
    min-height: 58px;
    padding: 8px 9px;
    gap: 7px;
  }

  .mini-stats span {
    font-size: 25px;
  }

  .mini-stats small {
    font-size: 9px;
    line-height: 1.05;
  }

  .operator-card {
    min-width: 210px;
  }
}

@media (max-width: 1350px) {
  .panel-grid {
    grid-template-columns: minmax(0, 1fr) 285px;
  }

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

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

@media (max-width: 1080px) {
  .auth-locked .login-screen {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .login-brand {
    align-self: auto;
  }

  .shell {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .sidebar {
    position: sticky;
    top: 8px;
    height: auto;
    grid-template-columns: 1fr;
  }

  .brand {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 208, 0, .18);
  }

  .tabs {
    overflow-x: auto;
    border-right: 0;
  }

  .mini-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .operator-card {
    display: none;
  }

  .topbar .mini-stats {
    display: none;
  }

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

  .intel-rail {
    display: none;
  }

  .message-controls,
  .setup-panel,
  .price-grid,
  .price-control-grid,
  .price-add {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .login-screen {
    padding: 18px;
    background-position: 58% center;
  }

  .login-screen::after {
    width: 86px;
    height: 150px;
  }

  .login-brand {
    gap: 12px;
  }

  .login-mark {
    width: 60px;
    height: 64px;
  }

  .login-card {
    padding: 26px 18px 22px;
  }

  .login-foot {
    display: grid;
  }

  .shell {
    padding: 8px;
  }

  .brand {
    min-height: 76px;
  }

  .tab {
    grid-template-columns: 26px max-content;
    min-height: 48px;
    padding: 0 10px;
  }

  .tab small {
    display: none;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 38px;
  }

  .panel {
    min-height: auto;
    padding: 18px 12px;
  }

  .panel-head,
  .command-row,
  .integration-box,
  .ai-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .form-grid,
  .batch-form {
    grid-template-columns: 1fr;
    padding-left: 14px;
    padding-right: 14px;
  }

  .primary,
  .wide-action {
    min-width: 0;
    width: 100%;
  }

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

  .leads-bottom,
  .corner-operator {
    display: none;
  }

  .actions {
    justify-content: stretch;
  }

  .actions > *,
  .search {
    width: 100%;
    min-width: 0;
  }
}
