/* ============ WPS.guru — Variant E «Console» ============
   Финансовый терминал: почти чёрный, максимальная плотность,
   фосфорно-зелёный акцент, статус-бары, квадратные углы.
   JetBrains Mono (данные и UI) / Inter (текст) */

:root {
  --bg: #0b0f14;
  --panel: #10161d;
  --panel2: #151d26;
  --line: #1f2a35;
  --line-bright: #2c3a48;
  --text: #d7e0e7;
  --muted: #647585;
  --green: #3ddc97;
  --green-dim: rgba(61,220,151,.12);
  --amber: #ffb454;
  --red: #ff5c57;
  --red-dim: rgba(255,92,87,.12);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 15px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.5; }
a { color: var(--green); }
:focus-visible { outline: 1px solid var(--green); outline-offset: 2px; }

/* ---------- status bars (signature) ---------- */
.statusbar {
  display: flex; align-items: center; gap: 0;
  background: var(--panel); border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .05em;
  color: var(--muted); text-transform: uppercase; white-space: nowrap; overflow-x: auto;
}
.statusbar .cell { padding: .5rem .9rem; border-right: 1px solid var(--line); }
.statusbar .cell b { color: var(--text); font-weight: 600; }
.statusbar .cell.brand { color: var(--green); font-weight: 700; }
.statusbar .cell.brand a { text-decoration: none; color: var(--green); }
.statusbar .grow { flex: 1; border-right: none; }
.statusbar .cell a { color: var(--muted); text-decoration: none; }
.statusbar .cell a:hover { color: var(--text); }
.statusbar .cell a.active { color: var(--green); }
.hintbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  display: flex; gap: 1.6rem; padding: .45rem 1rem;
  background: var(--panel); border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .72rem; color: var(--muted);
}
.hintbar b { color: var(--text); font-weight: 600; background: var(--panel2); border: 1px solid var(--line-bright); padding: 0 .35rem; border-radius: 2px; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 1.4rem 1.2rem 6rem; }
.wrap-narrow { max-width: 430px; margin: 0 auto; padding: 3rem 1.2rem 6rem; }

/* ---------- type ---------- */
.h1 { font-family: var(--mono); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; margin: 0; color: var(--text); }
.label { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: var(--mono); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--mono); font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  border-radius: 3px; padding: .5rem 1rem; cursor: pointer; text-transform: uppercase;
  border: 1px solid var(--line-bright); background: var(--panel2); color: var(--text); text-decoration: none;
}
.btn:hover { border-color: var(--muted); }
.btn-go { background: var(--green); border-color: var(--green); color: #06120c; }
.btn-go:hover { filter: brightness(1.1); border-color: var(--green); }
.btn-ghost { background: transparent; }
.btn-link { background: none; border: none; color: var(--green); cursor: pointer; font-family: var(--mono); font-size: .78rem; padding: .5rem .3rem; text-decoration: underline; text-underline-offset: 3px; text-transform: none;}
.statusbar a.btn-go, .mkt-nav a.btn-go { color: #06120c; }

/* ---------- panels & tables ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.panel-title {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding: .55rem .9rem; border-bottom: 1px solid var(--line);
  display: flex; gap: 1rem; align-items: center;
}
.panel-title b { color: var(--green); font-weight: 600; }

.tbl { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .8rem; }
.tbl th {
  font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); text-align: left; padding: .5rem .8rem;
  border-bottom: 1px solid var(--line-bright); background: var(--panel2);
}
.tbl td { padding: .42rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.tbl tbody tr:hover td { background: var(--panel2); }
.tbl .num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .dim { color: var(--muted); }
.tbl .idx { color: var(--muted); font-size: .7rem; width: 2rem; }
.tbl tfoot td { border-top: 1px solid var(--line-bright); border-bottom: none; color: var(--green); font-weight: 600; background: var(--panel2); }
.rowlink { color: var(--text); text-decoration: none; font-weight: 600; }
.rowlink:hover { color: var(--green); }
.cell-actions a { font-size: .72rem; margin-right: .6rem; color: var(--muted); text-transform: uppercase; letter-spacing:.05em; }
.cell-actions a:hover { color: var(--green); }
tr.err td { background: var(--red-dim); }
tr.err:hover td { background: rgba(255,92,87,.18); }

.st-ok { color: var(--green); }
.st-bad { color: var(--red); font-weight: 600; }
.st-warn { color: var(--amber); }

/* ---------- control line (toolbar) ---------- */
.controls {
  display: flex; align-items: stretch; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px; margin-bottom: 1rem;
}
.controls .c-group { display: flex; flex-direction: column; gap: .25rem; padding: .7rem 1rem; border-right: 1px solid var(--line); justify-content: center; }
.controls .spacer { flex: 1; border-right: none; }
.controls select, .controls input {
  background: var(--bg); border: 1px solid var(--line-bright); color: var(--text);
  font-family: var(--mono); font-size: .8rem; padding: .4rem .55rem; border-radius: 3px;
}
.controls input::placeholder { color: var(--muted); }

/* ---------- forms ---------- */
.form-panel { padding: 1.6rem 1.8rem; }
.form-panel h2 { font-family: var(--mono); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 1.3rem; color: var(--green); font-weight: 700; }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.field input, .field select {
  width: 100%; font-family: var(--mono); font-size: .85rem; color: var(--text);
  padding: .55rem .7rem; border: 1px solid var(--line-bright); border-radius: 3px; background: var(--bg);
}
.field input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 1px var(--green); }
.field .help { font-size: .76rem; color: var(--muted); margin-top: .3rem; font-family: var(--sans); }
.field .help.ok { color: var(--green); font-family: var(--mono); }
.field .error { font-size: .76rem; color: var(--red); margin-top: .3rem; font-weight: 600; font-family: var(--mono); }
.field input.invalid { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.field-row { display: flex; gap: 1rem; }
.field-row .field { flex: 1; }
.form-actions { display: flex; gap: .6rem; margin-top: 1.4rem; }
.input-btn { display: flex; gap: .5rem; }
.input-btn input { flex: 1; }

/* ---------- modal ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(4,7,10,.8); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 1rem; overflow: auto; z-index: 50; }
.modal { background: var(--panel); border: 1px solid var(--line-bright); width: 500px; max-width: 100%; border-radius: 4px; box-shadow: 0 0 0 1px rgba(61,220,151,.15), 0 30px 80px rgba(0,0,0,.7); }

/* ---------- onboarding ---------- */
.boot { max-width: 620px; margin: 3rem auto; }
.boot .panel { padding: 2rem 2.2rem; }
.boot h1 { font-family: var(--mono); font-size: 1.25rem; margin: 0 0 .3rem; color: var(--text); }
.boot .lede { color: var(--muted); font-size: .9rem; margin: 0 0 1.5rem; }
.bootlist { font-family: var(--mono); font-size: .85rem; margin: 0 0 1.8rem; display: flex; flex-direction: column; gap: .55rem; }
.bootlist .row { display: flex; gap: .8rem; align-items: baseline; }
.bootlist .tag { color: var(--muted); }
.bootlist .row.now .tag { color: var(--green); }
.bootlist .row.now b { color: var(--green); }
.bootlist b { font-weight: 600; }
.bootlist span.d { color: var(--muted); font-family: var(--sans); font-size: .82rem; }

/* ---------- landing ---------- */
.mkt-nav { display: flex; align-items: center; gap: 1.5rem; padding: .8rem 1.4rem; border-bottom: 1px solid var(--line); }
.mkt-nav .logo { font-family: var(--mono); font-weight: 700; color: var(--green); text-decoration: none; font-size: .95rem; letter-spacing: .04em; }
.mkt-nav nav { margin-left: auto; display: flex; gap: 1rem; align-items: center; }
.mkt-nav nav > a { color: var(--muted); text-decoration: none; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.mkt-nav nav > a:hover { color: var(--text); }
.hero { max-width: 900px; margin: 0 auto; padding: 4.5rem 1.4rem 2.5rem; }
.hero .prompt { font-family: var(--mono); font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }
.hero .prompt b { color: var(--green); }
.hero h1 {
  font-family: var(--mono); font-weight: 700; font-size: clamp(1.7rem, 4.2vw, 2.9rem);
  line-height: 1.15; letter-spacing: -.02em; margin: 0 0 1.1rem;
}
.hero h1 .cursor { display: inline-block; width: .55em; height: 1.05em; background: var(--green); vertical-align: text-bottom; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero h1 .cursor { animation: none; } }
.hero p { color: var(--muted); font-size: 1.02rem; max-width: 40em; margin: 0 0 1.8rem; }
.termlog { font-family: var(--mono); font-size: .8rem; line-height: 1.9; padding: 1rem 1.2rem; }
.termlog .p { color: var(--green); }
.termlog .c { color: var(--muted); }
.statrow { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 4px; margin-top: 2.5rem; background: var(--panel); }
.statrow .stat { flex: 1; padding: 1rem 1.2rem; border-right: 1px solid var(--line); }
.statrow .stat:last-child { border-right: none; }
.statrow b { font-family: var(--mono); font-size: 1.25rem; color: var(--green); display: block; }
.statrow span { color: var(--muted); font-size: .8rem; }

/* ---------- OTP ---------- */
.otp-row { display: flex; gap: .45rem; justify-content: center; margin: 1.1rem 0; }
.otp-row input {
  width: 2.9rem; height: 3.3rem; text-align: center; font-family: var(--mono); font-size: 1.25rem;
  border: 1px solid var(--line-bright); border-radius: 3px; background: var(--bg); color: var(--green);
}
.hint-box { background: var(--green-dim); border: 1px solid rgba(61,220,151,.3); padding: .75rem .95rem; font-size: .82rem; color: var(--green); border-radius: 3px; font-family: var(--mono); }

/* ---------- variant switcher ---------- */
.ds-switch {
  position: fixed; bottom: 40px; right: 14px; z-index: 99;
  background: var(--panel2); border: 1px solid var(--line-bright); border-radius: 999px;
  padding: .35rem .8rem; font-size: .78rem; color: var(--muted);
}
.ds-switch a { margin: 0 .3rem; text-decoration: none; color: var(--muted); font-weight: 700; }
.ds-switch a.cur { color: var(--green); text-decoration: underline; }

@media (max-width: 900px) {
  .statusbar .hide-m { display: none; }
  .field-row { flex-direction: column; gap: 0; }
  .statrow { flex-direction: column; }
  .statrow .stat { border-right: none; border-bottom: 1px solid var(--line); }
}
