/* OXBOX Генератор — вид снят с higgsfield.ai/ai/image (30.09.2026, экран 1920×1039).
   Числа — computed style их страницы; где своё — помечено. Замеры: _ref/higgsfield/ЗАМЕРЫ.md */

:root {
  --bg: #0f1113;
  --tile: #222222;
  --chip: #222222;
  --chip-line: rgba(209, 254, 23, 0.05);
  --pop: rgba(28, 30, 32, 0.95);        /* меню: oklab(0.2337…) → #1c1e20 */
  --pop-line: rgba(217, 217, 217, 0.04);
  --hover: rgba(255, 255, 255, 0.05);
  --text: #f7f7f8;
  --white: #ffffff;
  --muted: #898a8b;
  --dim: rgba(255, 255, 255, 0.3);      /* неактивный пункт меню */
  --soft: rgba(255, 255, 255, 0.6);     /* стрелка у плашки, «/4» у счётчика */
  --primary: #d1fe17;
  --on-primary: #14151a;
  --switch: #5e636e;
  --danger: #ff6b5e;

  --font: "Inter", ui-sans-serif, system-ui, sans-serif;
  --nav-h: 36px;
  --grid-top: 92px;                     /* у них: меню 36, 8, строка 36, 12 → лента */
  --gap: 2px;
  --dock-h: 300px;

  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background-color: var(--bg);
  /* четыре мягких свечения по углам — дословно с их body */
  background-image:
    radial-gradient(23.93% 26.98% at 100% 0%, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 73.08%, rgba(255,255,255,0) 100%),
    radial-gradient(34.93% 41.39% at 92.71% 106.14%, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 73.08%, rgba(255,255,255,0) 100%),
    radial-gradient(31.57% 33.97% at -2.15% 107.04%, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 73.08%, rgba(255,255,255,0) 100%),
    radial-gradient(39.39% 24% at -13.58% 35.4%, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 73.08%, rgba(255,255,255,0) 99.97%);
  background-attachment: fixed;
  color: var(--text);
  font: 400 16px/24px var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { display: block; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico--fill { fill: currentColor; stroke: none; }

/* ---------- меню сверху ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  height: var(--nav-h); padding: 0 16px;
  display: flex; align-items: center;
}
/* знак как у донора: белый квадрат 20×20 скр. 6, внутри тёмный знак (#1a1a1a); до первого пункта 12 */
.logo { display: grid; place-items: center; width: 20px; height: 20px; margin-right: 12px; border-radius: 6px; background: var(--white); flex: none; }
.logo svg { width: 14px; height: 9.4px; fill: #1a1a1a; }
.nav-links { display: flex; }
.nav-links a, .nav-item {
  padding: 4px 8px; border-radius: 8px;
  font-size: 14px; line-height: 20px; font-weight: 500;
  color: var(--dim); text-decoration: none; white-space: nowrap;
}
.nav-links a.is-on { color: var(--primary); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-item { color: var(--white); display: inline-flex; align-items: center; gap: 6px; }
.nav-item b { font-weight: 500; }
.nav-item .more { color: var(--dim); }
.nav-mock { color: #f5b94a; }
.nav-mock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- строка над лентой ---------- */

.toolbar {
  position: fixed; top: calc(var(--nav-h) + 8px); left: 16px; right: 16px; z-index: 20;
  height: 36px; display: flex; align-items: center;
}
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 21px; }
.menu-wrap { position: relative; }
.tb-filter {
  width: 40px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.85);
}
.tb-filter .ico { width: 18px; height: 18px; stroke-width: 2.2; }
.tb-filter.is-active { color: var(--primary); }
.zoom { width: 148px; height: 36px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.zoom-track { position: relative; width: 100%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); }
.zoom-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: rgba(255, 255, 255, 0.2); }
.zoom-thumb { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--white); }

/* ---------- лента ---------- */

.feed {
  position: fixed; top: var(--grid-top); left: 0; right: 0; bottom: 0;
  overflow-y: auto; overscroll-behavior: contain;
  padding-bottom: calc(var(--dock-h) + 32px);
}
.row { display: flex; gap: var(--gap); margin-bottom: var(--gap); }

.tile { position: relative; flex: none; overflow: hidden; background: var(--tile); cursor: pointer; }
.tile > img, .tile > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tile > img { opacity: 0; transition: opacity .2s; }
.tile > img.is-in { opacity: 1; }

.play { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; color: var(--white); pointer-events: none; transition: opacity .15s; }
.play .ico { width: 24px; height: 24px; }

/* затемнения при наведении — их три слоя: сверху 44, снизу 44, справа 74 */
.shade { position: absolute; pointer-events: none; opacity: 0; transition: opacity .15s; }
.shade--top { left: 0; right: 0; top: -2px; height: 44px; background: linear-gradient(rgba(0,0,0,.4) 0%, rgba(0,0,0,.3) 12%, rgba(0,0,0,.2) 25%, rgba(0,0,0,.1) 38%, rgba(0,0,0,.05) 50%, rgba(0,0,0,0) 60%); }
.shade--bottom { left: 0; right: 0; bottom: -2px; height: 44px; background: linear-gradient(0deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.3) 12%, rgba(0,0,0,.2) 25%, rgba(0,0,0,.1) 38%, rgba(0,0,0,.05) 50%, rgba(0,0,0,0) 60%); }
.shade--right { top: 0; bottom: 0; right: 0; width: 74px; background: linear-gradient(to left, rgba(0,0,0,.64) 0%, rgba(0,0,0,.47) 19%, rgba(0,0,0,.345) 34%, rgba(0,0,0,.243) 47%, rgba(0,0,0,.176) 56.5%, rgba(0,0,0,0) 100%); }

.t-side { position: absolute; top: 9px; right: 7px; display: flex; flex-direction: column; gap: 1px; opacity: 0; transition: opacity .15s; }
.t-btn {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.4); color: var(--white);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
}
.t-btn .ico { width: 12px; height: 12px; }
.t-btn.is-on { color: var(--primary); }
.t-btn.is-on .ico { fill: currentColor; }
.t-foot { position: absolute; right: 4px; bottom: 3px; display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.t-pill {
  height: 24px; padding: 0 8px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0, 0, 0, 0.4); color: var(--white);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap;
}
.t-pill .ico { width: 12px; height: 12px; }
.t-fav { position: absolute; top: 9px; right: 7px; width: 24px; height: 24px; display: grid; place-items: center; color: var(--primary); pointer-events: none; }
.t-fav .ico { width: 12px; height: 12px; fill: currentColor; }

@media (hover: hover) {
  .tile:hover .shade, .tile:focus-within .shade { opacity: .9; }
  .tile:hover .t-side, .tile:hover .t-foot, .tile:focus-within .t-side, .tile:focus-within .t-foot { opacity: 1; }
  .tile:hover .t-fav { opacity: 0; }
  .tile:hover .play { opacity: 0; }
  .t-btn:hover, .t-pill:hover { background: rgba(0, 0, 0, 0.6); }
  .nav-links a:not(.is-on):hover { color: rgba(255, 255, 255, 0.6); }
  .tb-filter:hover { color: var(--white); }
}

/* выбор: чекбокс 16×16 скр. 6 рамка 2 #a8a8a8 на (8,12), зона нажатия 40×40; выбранная — #000/0.3 и рамка 2 белая */
.t-check { position: absolute; left: -4px; top: 0; z-index: 2; width: 40px; height: 40px; padding: 12px; opacity: 0; transition: opacity .15s; }
.t-check .box { width: 16px; height: 16px; border-radius: 6px; border: 2px solid #a8a8a8; display: grid; place-items: center; color: var(--on-primary); }
.t-check .box .ico { width: 12px; height: 12px; stroke-width: 2.5; opacity: 0; }
.t-selshade { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.3); opacity: 0; pointer-events: none; }
.t-selring { position: absolute; inset: 0; border: 2px solid var(--white); opacity: 0; pointer-events: none; }
.tile.is-selected .t-selshade, .tile.is-selected .t-selring { opacity: 1; }
.tile.is-selected .t-check .box { background: var(--white); border-color: transparent; }
.tile.is-selected .t-check .box .ico { opacity: 1; }
body.is-selecting .t-check { opacity: 1; }
body.is-selecting .t-side, body.is-selecting .t-foot, body.is-selecting .shade--right, body.is-selecting .play { display: none; }
@media (hover: hover) { .tile:hover .t-check { opacity: 1; } }
@media (hover: none) { .t-check { opacity: 1; } }

/* в работе — своё: у донора не снято */
.tile.is-running { cursor: default; }
.tile.is-running::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(209, 254, 23, .06) 50%, transparent 65%) 0 0 / 250% 100%;
  animation: sweep 1.8s linear infinite;
}
@keyframes sweep { from { background-position: 125% 0; } to { background-position: -125% 0; } }
.run { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 12px; text-align: center; }
.run-model { font-size: 12px; line-height: 18px; font-weight: 500; color: var(--muted); }
.run-time { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--white); font-variant-numeric: tabular-nums; }
.run-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--primary); transition: width 1s linear; }
.run .t-btn { position: absolute; top: 9px; right: 7px; }

.tile.is-failed { cursor: default; }
.fail { position: absolute; inset: 0; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.fail-head { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--danger); }
.fail-text { margin: 0; font-size: 12px; line-height: 18px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fail-acts { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.tile.is-failed { container-type: inline-size; }
@container (max-width: 220px) { .fail-text { display: none; } }

.empty { padding: 120px 16px; text-align: center; }
.empty-title { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.empty-text { margin: 0 auto; max-width: 420px; font-size: 14px; line-height: 20px; color: var(--muted); }

/* ---------- панель запроса ---------- */

.dock {
  position: fixed; z-index: 40; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(1120px, calc(100% - 32px));
  padding: 2px; border-radius: 26px;
  background-color: rgba(15, 17, 19, 0.96);
  background-image: linear-gradient(115deg, rgba(36, 43, 50, 0.12) 27.54%, rgba(219, 219, 219, 0.12) 85.5%);
}
.composer {
  position: relative; padding: 22px; border-radius: 24px;
  border: 1px solid var(--chip-line);
  backdrop-filter: blur(10.45px); -webkit-backdrop-filter: blur(10.45px);
}
.composer.is-drop { border-color: var(--primary); }
.drop-hint { position: absolute; inset: 0; border-radius: inherit; display: none; place-items: center; background: rgba(15, 17, 19, 0.94); color: var(--primary); font-size: 14px; font-weight: 500; pointer-events: none; }
.composer.is-drop .drop-hint { display: grid; }

.c-field { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; gap: 12px; }
.c-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.c-aside { flex: none; width: 144px; display: flex; flex-direction: column; justify-content: flex-end; }

.refs { display: flex; gap: 8px; }
.refs:empty { display: none; }
.slot {
  position: relative; flex: none; width: 56px; height: 56px; border-radius: 12px;
  background: var(--chip); color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.slot .ico { width: 16px; height: 16px; }
.slot-label { font-size: 10px; line-height: 14px; font-weight: 500; color: var(--muted); }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.slot.is-loading img { opacity: .4; }
.slot-tag { position: absolute; left: 4px; bottom: 4px; padding: 0 5px; border-radius: 6px; background: rgba(0, 0, 0, .55); font-size: 10px; line-height: 16px; font-weight: 500; }
.slot-rm {
  position: absolute; right: -12px; top: -12px; z-index: 1;
  width: 24px; height: 24px; border-radius: 8px;
  display: grid; place-items: center;
  background: #1f2228; border: 1px solid var(--chip-line); color: var(--text);
  opacity: 0; transition: opacity .15s;
}
.slot-rm .ico { width: 14px; height: 14px; }
.slot:hover .slot-rm, .slot:focus-within .slot-rm { opacity: 1; }
@media (hover: none) { .slot-rm { opacity: 1; } }

.prompt-wrap { max-height: 140px; overflow-y: auto; }
#prompt {
  display: block; width: 100%; min-height: 40px; max-height: 140px;
  padding: 0; border: 0; outline: none; resize: none; background: none; overflow: hidden;
  font-size: 14px; line-height: 20px; color: var(--text);
}
#prompt::placeholder { color: var(--muted); }

.c-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.chip-wrap { position: relative; flex: none; }
.chip {
  height: 40px; padding: 10px 12px; border-radius: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--chip); border: 1px solid var(--chip-line);
  color: var(--white); font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap;
}
.chip--light { font-weight: 400; }
.chip--square { width: 40px; padding: 0; justify-content: center; }
.chip .ico { width: 16px; height: 16px; }
.chip .brand { color: var(--primary); }
.chip .chev { color: var(--soft); margin-left: -4px; }
.chip[aria-expanded="true"] { background: #2a2a2a; }
.chip-accent { color: var(--primary); }

.counter { gap: 4px; }
.counter button { width: 20px; height: 20px; display: grid; place-items: center; color: var(--muted); }
.counter button:disabled { opacity: .4; cursor: default; }
.counter button .ico { width: 20px; height: 20px; }
.counter .val { min-width: 32px; text-align: center; font-weight: 600; }
.counter .val span { color: var(--soft); }

.switch { position: relative; width: 36px; height: 24px; border-radius: 999px; background: var(--switch); flex: none; transition: background .15s; }
.switch::after { content: ""; position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); transition: transform .15s; }
.chip[aria-pressed="true"] .switch { background: var(--primary); }
.chip[aria-pressed="true"] .switch::after { transform: translateX(12px); background: var(--on-primary); }

@media (hover: hover) {
  .chip:hover { background: #2a2a2a; }
  .counter:hover { background: var(--chip); }
  .counter button:not(:disabled):hover { color: var(--white); }
}

.go {
  width: 144px; height: 84px; padding: 0 10px; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  padding-bottom: 3px; color: var(--on-primary);
}
/* «Создать» как у донора (higgsfield.ai/audio): поверх #d1fe17 книзу желтеет в #ffff14,
   снизу тёмная кромка 3px — кнопка выглядит выпуклой, под ней двойная тень */
.go, .vl-go, .auth-go {
  background: linear-gradient(rgba(255, 255, 20, 0), #ffff14), #d1fe17;
  box-shadow: inset 0 -3px 0 #829b19, 0 32px 24px rgba(0, 0, 0, 0.15), 0 6px 4px rgba(0, 0, 0, 0.25);
  transition: transform .15s ease-out, filter .15s ease-out;
}
.go:not(:disabled):active, .vl-go:not(:disabled):active, .auth-go:not(:disabled):active { transform: scale(.98); }
@media (hover: hover) { .go:not(:disabled):hover, .vl-go:not(:disabled):hover, .auth-go:not(:disabled):hover { filter: brightness(1.04); } }
.go-label { font-size: 16px; line-height: 24px; font-weight: 600; }
.go-price { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; line-height: 20px; font-weight: 600; }
/* как у донора: кнопка всегда салатовая; пустой промт просто не отправляется */
.go:disabled { cursor: default; }
.go-price .ico { width: 16px; height: 16px; }

/* ---------- панель выбранного: вместо панели запроса, как у донора ---------- */

.dock { transition: opacity .15s; }
body.is-selecting .dock { opacity: 0; pointer-events: none; }
.selbar {
  position: fixed; z-index: 45; left: 50%; bottom: 24px; transform: translateX(-50%);
  height: 56px; padding: 0 6px; border-radius: 16px;
  display: flex; align-items: center; gap: 4px;
  background: rgba(28, 30, 32, 0.8);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.sel-count { display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); white-space: nowrap; }
.sel-count img { width: 17px; height: 17px; border-radius: 4px; object-fit: cover; }
.sel-count .ico { width: 17px; height: 17px; color: var(--muted); }
.sel-btn {
  height: 40px; padding: 12px 16px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(217, 217, 217, 0.04);
  color: var(--white); font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap;
}
.sel-btn .ico { width: 16px; height: 16px; }
.sel-btn--icon { width: 52px; padding: 0; }
.sel-btn.is-on { color: var(--primary); }
.sel-btn.is-on .ico { fill: currentColor; }
.sel-btn--danger { color: var(--danger); }
.sel-close { width: 42px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--white); }
@media (hover: hover) {
  .sel-btn:hover { background: rgba(255, 255, 255, 0.1); }
  .sel-close:hover { background: rgba(255, 255, 255, 0.05); }
}

/* ---------- всплывающие меню ---------- */

.pop {
  position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 60;
  width: max-content; min-width: 200px; max-height: min(642px, calc(100vh - 140px)); overflow-y: auto;
  padding: 0 0 4px; border-radius: 16px;
  background: var(--pop); border: 1px solid var(--pop-line);
  backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
}
.pop--wide { width: 402px; }
.pop--down { top: calc(100% + 8px); bottom: auto; left: auto; right: 0; }
.pop-head { display: flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 12px; line-height: 18px; font-weight: 500; color: var(--muted); }
.pop-head .ico { width: 14px; height: 14px; }
.pop-list { display: flex; flex-direction: column; gap: 4px; padding: 0 12px; }
.opt {
  width: 100%; min-height: 40px; padding: 6px 12px 6px 6px; border-radius: 12px;
  display: flex; align-items: center; gap: 8px; text-align: left;
}
.opt.is-on { background: var(--hover); }
@media (hover: hover) { .opt:hover { background: var(--hover); } }
.opt-ico { width: 40px; height: 40px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--hover); color: var(--muted); }
.opt.is-on .opt-ico { color: var(--primary); }
.opt-ico--s { width: 28px; height: 28px; }
.opt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-left: 2px; }
.opt-name { font-size: 12px; line-height: 18px; font-weight: 500; color: var(--white); }
.opt-name--l { font-size: 14px; line-height: 20px; }
.opt-desc { font-size: 10px; line-height: 14px; color: var(--muted); }
.opt-price { font-size: 12px; line-height: 18px; font-weight: 500; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.opt-check { width: 20px; height: 20px; flex: none; color: var(--primary); }
.opt-check .ico { width: 20px; height: 20px; }
.pop-note { margin: 4px 12px 8px; padding-top: 8px; border-top: 1px solid var(--pop-line); font-size: 10px; line-height: 14px; color: var(--muted); }
.ratio { display: inline-block; border: 1.5px solid currentColor; border-radius: 2px; }

/* ---------- просмотр — по их окну просмотра (30.09–01.10.2026, экран 1920×983) ----------
   Фон — размытая копия картинки; панель справа 350 с отступом 8 от краёв окна (рамка и шапка сняты с кадра,
   внутренность — computed style): блоки на #fff/0.05, скр. 12 и 8, заголовки 12/16 прописными #828282,
   строки 14/20; кнопки 40 скр. 10: главная #d1fe17 текст #1a1a1a 14/16 500, прочие #fff/0.05 рамка #fff/0.1 blur 12. */

.viewer { position: fixed; inset: 0; z-index: 70; background: #0f1113; overflow: hidden; }
.v-bg { position: absolute; inset: -60px; background: center / cover no-repeat; filter: blur(60px) brightness(.45) saturate(1.2); pointer-events: none; }
.v-stage { position: absolute; left: 8px; top: 8px; bottom: 8px; right: 368px; display: flex; align-items: center; justify-content: center; }
.v-stage img, .v-stage video { max-width: 100%; max-height: 100%; display: block; }
.v-round {
  position: absolute; z-index: 2; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; color: var(--white);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.v-round .ico { width: 20px; height: 20px; }
.v-round:disabled { opacity: .3; cursor: default; }
.v-prev { left: 8px; top: 50%; margin-top: -20px; }
.v-next { right: 8px; top: 50%; margin-top: -20px; }

.v-panel {
  position: absolute; top: 8px; right: 8px; bottom: 8px; width: 352px; z-index: 3; /* 1 рамка + 8 + 334 внутри + 8 + 1 — как у донора */
  display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 16px;
  background: rgba(28, 30, 33, 0.72); border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.v-head { display: flex; align-items: center; gap: 10px; padding: 4px 4px 0 6px; min-height: 40px; }
.v-head .ava { width: 24px; height: 24px; font-size: 10px; }
.v-who { flex: 1; min-width: 0; }
.v-name { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-role { font-size: 12px; line-height: 16px; color: #828282; }
.v-x { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--white); background: rgba(255, 255, 255, 0.05); flex: none; }
.v-x .ico { width: 16px; height: 16px; }

.v-scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.v-box { padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; gap: 8px; }
.v-sec { display: flex; align-items: center; gap: 8px; padding: 6px 4px; font-size: 12px; line-height: 16px; font-weight: 500; color: #828282; text-transform: uppercase; }
.v-sec .ico { width: 16px; height: 16px; }
.v-sec .grow { flex: 1; }
.v-copy { height: 24px; padding: 0 6px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255, 255, 255, 0.1); color: var(--white); font-size: 12px; line-height: 16px; font-weight: 500; text-transform: none; }
.v-copy .ico { width: 12px; height: 12px; }
.v-body { border-radius: 8px; background: rgba(255, 255, 255, 0.05); }
.v-refs { display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 12px 0; }
.v-refs img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; display: block; }
.v-text { margin: 0; padding: 12px; font-size: 14px; line-height: 20px; color: var(--white); white-space: pre-wrap; overflow-wrap: anywhere; }
.v-text.is-clamped { max-height: 160px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.v-text.is-empty { color: #828282; }
.v-more { display: flex; align-items: center; gap: 0; padding: 8px 12px; font-size: 14px; line-height: 20px; font-weight: 500; color: #828282; }
.v-more .ico { width: 20px; height: 20px; }
.v-dl { margin: 0; padding: 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; line-height: 20px; }
.v-dl dt { color: #828282; }
.v-dl dd { margin: 0; text-align: right; color: var(--white); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-dl.is-closed { display: none; }
.v-sec button.v-fold { margin-left: auto; color: #828282; display: grid; place-items: center; }
.v-sec button.v-fold .ico { transition: transform .15s; }
.v-sec button.v-fold[aria-expanded="false"] .ico { transform: rotate(180deg); }

.v-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; } /* у донора блок действий с отступом 8: кнопки 318, половинки 155 */
.v-acts .v-row3 { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 46px 46px 46px; gap: 8px; }
.v-btn {
  position: relative; height: 40px; padding: 10px 16px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--white);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 14px; line-height: 16px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.v-btn .ico { width: 20px; height: 20px; }
.v-btn--icon { padding: 10px 0; }
.v-btn--main { grid-column: 1 / -1; background: var(--primary); border-color: var(--primary); color: #1a1a1a; padding: 8px 16px 10px; }
.v-btn.is-on { color: var(--primary); }
.v-btn.is-on .ico { fill: currentColor; }
.v-menu { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 5; }
@media (hover: hover) {
  .v-btn:hover, .v-round:not(:disabled):hover, .v-x:hover { background: rgba(255, 255, 255, 0.1); }
  .v-btn--main:hover { background: #dcff4a; }
  .v-copy:hover { background: rgba(255, 255, 255, 0.05); }
}

.toast {
  position: fixed; z-index: 80; left: 50%; bottom: calc(var(--dock-h) + 28px);
  transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  padding: 10px 14px; border-radius: 12px;
  background: var(--pop); border: 1px solid var(--pop-line);
  backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
  font-size: 14px; line-height: 20px; transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast.has-act { pointer-events: auto; display: flex; align-items: center; gap: 16px; }
.toast-act { color: var(--primary); font-weight: 600; }

/* ---------- телефон: у донора своя мобильная панель, не снята — пока ужатая версия ---------- */

@media (max-width: 767px) {
  .zoom { display: none; }
  .selbar { left: 12px; right: 12px; transform: none; bottom: calc(12px + env(safe-area-inset-bottom)); overflow-x: auto; scrollbar-width: none; }
  .selbar .sel-btn:not(.sel-btn--icon) { padding: 0 12px; }
  .dock { left: 0; right: 0; bottom: 0; transform: none; width: 100%; border-radius: 20px 20px 0 0; padding: 2px 2px 0; }
  .composer { padding: 14px 12px calc(12px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; }
  .c-field { flex-direction: column; gap: 10px; }
  .c-aside { width: 100%; }
  .go { width: 100%; height: 48px; flex-direction: row; gap: 10px; }
  .c-row { overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
  .c-row::-webkit-scrollbar { display: none; }
  #prompt { font-size: 16px; line-height: 22px; }
  .pop { position: fixed; left: 12px; right: 12px; width: auto; bottom: calc(var(--dock-h) + 8px); }
  .pop--down { top: calc(var(--grid-top) + 4px); bottom: auto; }
  .viewer { overflow-y: auto; }
  .v-stage { position: relative; inset: auto; height: 50vh; margin: 8px; }
  .v-prev, .v-next { top: auto; bottom: 8px; margin: 0; }
  .v-panel { position: relative; inset: auto; width: auto; margin: 0 8px 8px; }
  .v-scroll { overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
  .tile.is-running::before { animation: none; }
  .run-bar, .shade, .t-side, .t-foot, .toast, .tile > img, .switch, .switch::after { transition: none; }
}

/* ================= кабинет ================= */

body.is-booting .nav, body.is-booting .toolbar, body.is-booting .feed, body.is-booting .dock { visibility: hidden; }

.nav-budget { font-variant-numeric: tabular-nums; }
.nav-budget .more { color: var(--muted); }
.nav-budget.is-warn b { color: #f5b94a; }
.nav-budget.is-over b { color: var(--danger); }
/* аватар как у донора: кнопка 24, кольцо r16.5 толщиной 3 в поле 36 (дорожка #717684, остаток — салатовым), внутри 16 */
.avatar-btn { width: 24px; height: 24px; border-radius: 50%; padding: 0; margin-left: 8px; display: grid; place-items: center; }
.ring { position: relative; display: grid; place-items: center; width: 24px; height: 24px; flex: none; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-track { fill: none; stroke: #717684; stroke-width: 3; }
.ring-val { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: butt; transition: stroke-dashoffset .4s; }
.ring.is-warn .ring-val { stroke: #f5b94a; }
.ring.is-over .ring-val { stroke: var(--danger); }
.ring .ava { width: 16px; height: 16px; font-size: 8px; }
.ring--m { width: 31px; height: 31px; }
.ring--m .ava { width: 23px; height: 23px; font-size: 10px; }
.acct-eq { font-size: 10px; line-height: 14px; color: var(--muted); text-align: left; font-weight: 400; }

/* ---------- аудио: своё — у донора аудио-ленты не снимали ---------- */
.tile.is-audio { cursor: pointer; }
.au { position: absolute; inset: 0; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; }
.au-top { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted); }
.au-top b { color: var(--white); font-weight: 500; font-variant-numeric: tabular-nums; }
.au-wave { position: relative; height: 38%; min-height: 28px; }
.wave { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; }
.wave i { flex: 1; min-width: 1px; border-radius: 1px; background: rgba(255, 255, 255, 0.28); }
.wave--on { clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0); }
.wave--on i { background: var(--primary); }
.au-text { margin: 0; font-size: 12px; line-height: 18px; color: rgba(255, 255, 255, 0.7); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.au-play {
  position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; z-index: 2;
  border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--on-primary);
}
.au-play .ico { width: 16px; height: 16px; }
.tile.is-playing .au-play { background: var(--primary); }
body.is-selecting .au-play { display: none; }
.v-audio { width: min(720px, 100%); padding: 32px; border-radius: 16px; background: var(--tile); display: flex; flex-direction: column; gap: 24px; }
.v-audio .au-wave { height: 120px; }
.v-audio audio { width: 100%; }
.chip .count { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.chip .count.is-over { color: var(--danger); }
.voice-play { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--white); background: var(--hover); flex: none; }
.voice-play .ico { width: 12px; height: 12px; }
.ava {
  display: inline-grid; place-items: center; flex: none; border-radius: 50%;
  width: 28px; height: 28px; font-size: 11px; line-height: 1; font-weight: 600;
  color: var(--on-primary); background: var(--c, var(--primary));
}
.ava--s { width: 20px; height: 20px; font-size: 9px; }
.ava--m { width: 31px; height: 31px; font-size: 12px; }

/* меню аккаунта — снято с их меню под аватаром: 279 шириной, скр. 20, фон #1c1e21, рамка #fff/0.05, поля 6, зазор 4 */
.acct {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  width: 279px; padding: 6px; border-radius: 20px;
  display: flex; flex-direction: column; gap: 4px;
  background: #1c1e21; border: 1px solid rgba(255, 255, 255, 0.05);
}
.acct-head { padding: 8px 8px 0; display: flex; align-items: center; gap: 10px; }
.acct-name { font-size: 12px; line-height: 18px; font-weight: 500; color: var(--white); }
.acct-role { font-size: 12px; line-height: 18px; font-weight: 500; color: var(--muted); }
.acct-add {
  margin-top: 8px; height: 31px; border-radius: 99px; padding: 0 6px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  background: rgba(255, 255, 255, 0.05); font-size: 12px; line-height: 18px; font-weight: 500; color: var(--white);
}
.acct-add .ico { color: var(--muted); }
.acct-card { margin: 6px 0; padding: 2px 4px 4px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); }
.acct-card-top { padding: 8px; display: flex; flex-direction: column; gap: 6px; border-radius: 12px; }
.acct-card-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 18px; font-weight: 500; }
.acct-card-line span { white-space: nowrap; }
.acct-card-line span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.dots { display: flex; gap: 1.45px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.05); flex: none; }
.dots i.on { background: var(--primary); }
.dots.is-warn i.on { background: #f5b94a; }
.dots.is-over i.on { background: var(--danger); }
.acct-sep { height: 1px; margin: 4px 7px 0; background: rgba(255, 255, 255, 0.1); }
.acct-row {
  width: 100%; min-height: 31px; padding: 4px; border-radius: 99px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  font-size: 12px; line-height: 18px; font-weight: 500; color: var(--white); text-decoration: none; text-align: left;
}
.acct-row .lead { display: flex; align-items: center; gap: 6px; }
.acct-row .lead i { width: 23px; height: 23px; display: grid; place-items: center; color: var(--muted); }
.acct-row .lead i.acc { color: var(--primary); }
.acct-row .val { font-size: 12px; line-height: 16px; font-weight: 400; color: var(--muted); padding-right: 6px; }
.acct-get { height: 23px; padding: 0 12px; border-radius: 99px; display: grid; place-items: center; background: var(--primary); color: #131517; font-size: 10px; line-height: 14px; font-weight: 600; }
.acct-list { display: flex; flex-direction: column; padding-bottom: 8px; }
.acct-list .acct-row { padding: 0 10px 0 4px; }
.acct-line { height: 1px; background: rgba(255, 255, 255, 0.1); }
@media (hover: hover) {
  .acct-row:hover, .acct-add:hover { background: rgba(255, 255, 255, 0.05); }
  .acct-card .acct-row:hover { background: rgba(255, 255, 255, 0.04); }
}

/* автор на плитке — своё, у донора нет */
.t-author {
  position: absolute; left: 6px; bottom: 5px; max-width: calc(100% - 140px);
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px 0 2px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 12px; line-height: 16px; font-weight: 500; color: var(--white);
  opacity: 0; transition: opacity .15s; pointer-events: none; white-space: nowrap; overflow: hidden;
}
@media (hover: hover) { .tile:hover .t-author { opacity: 1; } }
body.is-selecting .t-author { display: none; }

/* плашка проекта в панели запроса */
.chip .proj-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.chip.is-empty { color: var(--muted); font-weight: 400; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--c, var(--muted)); }
.pop-input, .pop-search { margin: 4px 12px 8px; width: calc(100% - 24px); }
.pop-sec { padding: 12px 12px 4px; font-size: 12px; line-height: 18px; font-weight: 500; color: var(--muted); }
.opt-text { font-size: 10px; line-height: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.opt-del { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); flex: none; }
.opt-del .ico { width: 14px; height: 14px; }
@media (hover: hover) { .opt-del:hover { color: var(--danger); background: rgba(255, 255, 255, 0.05); } }
.pop-empty { padding: 8px 12px 12px; font-size: 12px; line-height: 18px; color: var(--muted); }
.pop-save { margin: 0 12px 8px; width: calc(100% - 24px); }

/* поля ввода и кнопки кабинета */
.field {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 12px;
  background: var(--chip); border: 1px solid var(--chip-line); color: var(--white);
  font-size: 14px; line-height: 20px; outline: none;
}
.field::placeholder { color: var(--muted); }
.field:focus { border-color: rgba(209, 254, 23, 0.4); }
select.field { appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field--s { height: 32px; border-radius: 10px; font-size: 13px; }
.btn {
  height: 40px; padding: 0 16px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(217, 217, 217, 0.04);
  color: var(--white); font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap;
}
.btn .ico { width: 16px; height: 16px; }
.btn--main { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn--s { height: 32px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.btn:disabled { opacity: .4; cursor: default; }
@media (hover: hover) { .btn:not(:disabled):hover { background: rgba(255, 255, 255, 0.1); } .btn--main:not(:disabled):hover { background: #dcff4a; } }

/* окна кабинета */
.modal { position: fixed; inset: 0; z-index: 75; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.6); }
.m-panel {
  width: min(760px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 24px; border-radius: 20px; background: #1c1e21; border: 1px solid rgba(255, 255, 255, 0.05);
}
.m-panel--s { width: min(420px, 100%); }
.m-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.m-title { margin: 0; font-size: 18px; line-height: 26px; font-weight: 600; }
.m-close { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--white); background: rgba(255, 255, 255, 0.05); flex: none; }
.m-sub { margin: -12px 0 20px; font-size: 13px; line-height: 20px; color: var(--muted); }
.m-sec { margin-top: 24px; }
.m-sec-title { margin: 0 0 10px; font-size: 12px; line-height: 18px; font-weight: 500; color: var(--muted); }
.m-card { padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); }
.m-grid { display: grid; gap: 8px; }
/* два ряда по три: в один ряд шесть полей не влезали — подсказки обрезались («Логин (лати») */
.m-grid--add { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; }
.m-note { margin: 8px 0 0; font-size: 12px; line-height: 18px; color: var(--muted); }
.m-err { margin: 8px 0 0; font-size: 13px; line-height: 20px; color: var(--danger); min-height: 20px; }
.m-ok { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(209, 254, 23, 0.08); border: 1px solid rgba(209, 254, 23, 0.2); font-size: 13px; line-height: 20px; white-space: pre-wrap; }
.m-ok .btn { margin-top: 10px; }
.m-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.m-inline .field { flex: 1; min-width: 120px; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 20px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); padding: 0 8px 8px; font-size: 12px; }
.tbl td { padding: 8px; border-top: 1px solid rgba(255, 255, 255, 0.05); vertical-align: middle; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who b { font-weight: 500; display: block; }
.who small { color: var(--muted); font-size: 12px; }
.tbl .field--s { width: 110px; }
.tbl select.field--s { width: 136px; }
.sw { position: relative; width: 36px; height: 24px; border-radius: 999px; background: var(--switch); flex: none; }
.sw::after { content: ""; position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); transition: transform .15s; }
.sw[aria-checked="true"] { background: var(--primary); }
.sw[aria-checked="true"]::after { transform: translateX(12px); background: var(--on-primary); }
.is-off-row td { opacity: .45; }

.month-nav { display: flex; align-items: center; gap: 8px; }
.month-nav span { min-width: 130px; text-align: center; font-weight: 600; font-size: 14px; }
.big-sum { font-size: 32px; line-height: 40px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: 13px; line-height: 20px; }
.bar-row .num { color: var(--white); font-variant-numeric: tabular-nums; }
.bar-row .cnt { color: var(--muted); font-weight: 400; }
.bar-track { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar-track i { display: block; height: 100%; background: var(--primary); border-radius: 2px; }
.stats-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/* вход — снят с higgsfield.ai/auth/sign-in на 1440×900:
   слева витрина 708×876 с полями 12 и скр. 12, справа колонка 368 по центру; знак 32, заголовок 30/36 600,
   подпись 14/20 #898a8b, кнопки 368×52 скр. 12 рамка 2 #fff/0.1, зазор 12 */
.auth { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); }
.auth-show { position: relative; margin: 12px 0 12px 12px; border-radius: 12px; overflow: hidden; background: var(--tile); }
.auth-show .show-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.auth-show .show-media.is-on { opacity: 1; }
/* ролик 16:9 в почти квадратной панели: целиком, иначе обрежет края знака; поля — цветом фона самого ролика */
.auth-show video.show-media { object-fit: contain; background: #0a090f; }
.auth-show::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0)); pointer-events: none; }
.show-cap { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1; }
.show-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 8px; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 11px; line-height: 16px; font-weight: 600; color: var(--white); }
/* у донора Space Grotesk 40/48 700, −0.8px; кириллицы в нём нет — Inter той же жирности */
.show-title { margin: 12px 0 6px; font-size: 40px; line-height: 48px; font-weight: 700; letter-spacing: -0.8px; color: var(--white); }
.show-text { margin: 0; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, 0.5); }
.show-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 32px; }
.show-tab { text-align: left; font-size: 12px; line-height: 18px; font-weight: 400; color: rgba(255, 255, 255, 0.4); }
.show-tab.is-on { color: var(--white); font-weight: 500; }
.show-bar { display: block; height: 4px; margin-bottom: 8px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.show-bar i { display: block; height: 100%; width: 0; background: var(--white); }
.show-tab.is-done .show-bar i { width: 100%; }
.show-tab.is-on .show-bar i { animation: showfill 5s linear forwards; }
@keyframes showfill { from { width: 0; } to { width: 100%; } }

.auth-side { display: grid; place-items: center; padding: 24px 16px; overflow-y: auto; }
.auth-box { width: min(368px, 100%); text-align: center; }
.auth-mark { width: 32px; height: 32px; margin: 0 auto 20px; border-radius: 8px; background: var(--primary); display: grid; place-items: center; }
.auth-mark svg { width: 21px; height: 14px; fill: #0f1113; }
.auth-title { margin: 0; font-size: 30px; line-height: 36px; font-weight: 600; color: var(--text); }
.auth-text { margin: 8px 0 32px; font-size: 14px; line-height: 20px; color: var(--muted); }
.auth form { display: grid; gap: 12px; }
.auth-field {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 12px;
  background: transparent; border: 2px solid rgba(255, 255, 255, 0.1); color: var(--white);
  font-size: 14px; line-height: 20px; font-weight: 500; outline: none; text-align: left;
}
.auth-field::placeholder { color: var(--muted); font-weight: 400; }
.auth-field:focus { border-color: rgba(209, 254, 23, 0.5); }
.auth-go { height: 52px; padding-bottom: 3px; border-radius: 12px; color: var(--on-primary); font-size: 14px; line-height: 20px; font-weight: 600; }
.auth-go:disabled { opacity: .5; }
@media (hover: hover) { .auth-link:hover { color: var(--white); } }
.auth .m-err { margin: 0; min-height: 20px; text-align: center; }
.auth-foot { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; line-height: 20px; color: var(--muted); }
.auth-link { color: var(--primary); font-weight: 500; }
@media (max-width: 899px) {
  .auth { grid-template-columns: 1fr; }
  .auth-show { display: none; }
}

@media (max-width: 767px) {
  .nav-budget .more { display: none; }
  .acct { position: fixed; left: 12px; right: 12px; top: 44px; width: auto; }
  .stats-cols, .m-grid--add { grid-template-columns: 1fr; }
  .m-panel { padding: 18px 14px; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tr { padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
  .tbl td { border: 0; padding: 4px 0; }
  .tbl .num { text-align: left; }
}
