/* fybri studio — тёмная студия в духе OpenArt, акцент из логотипа */

:root {
  --bg: #08080c;
  --bg-2: #0e0e15;
  --panel: #12121b;
  --panel-2: #171722;
  --line: #24243a;
  --line-soft: #1c1c2b;
  --text: #edeef5;
  --muted: #9a9ab5;
  --dim: #6d6d88;
  --accent: #6d5cff;
  --accent-2: #ff4d8d;
  --ok: #2fd39a;
  --warn: #ffb020;
  --grad: linear-gradient(95deg, #22c1f0 0%, #3d6dff 28%, #8b46ff 52%, #ff3f8e 74%, #ff9a2e 100%);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .55);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; }

button { font-family: inherit; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #22222f; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2e2e42; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- ЛОГИН-ГЕЙТ ---------- */

.gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(1100px 620px at 50% -10%, rgba(109, 92, 255, .22), transparent 60%),
    radial-gradient(900px 500px at 80% 110%, rgba(255, 77, 141, .16), transparent 60%),
    var(--bg);
  overflow: auto;
}

.gate__glow {
  position: absolute;
  inset: auto 0 -30% 0;
  height: 60%;
  background: var(--grad);
  filter: blur(140px);
  opacity: .16;
  pointer-events: none;
}

.gate__card {
  position: relative;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 28px 24px;
  background: rgba(18, 18, 27, .88);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.gate__card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: var(--grad);
  opacity: .5;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.gate__logo {
  width: 100%;
  max-width: 300px;
  align-self: center;
  /* логотип с прозрачным фоном и светлыми буквами — подложка не нужна */
  filter: drop-shadow(0 8px 26px rgba(109, 92, 255, .28));
}

.gate__lead {
  margin: 0 0 4px;
  text-align: center;
  color: var(--muted);
}

.gate__remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.gate__error {
  margin: 0;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 77, 141, .12);
  border: 1px solid rgba(255, 77, 141, .35);
  color: #ff9ec0;
  font-size: 13px;
  text-align: center;
}

.gate__note {
  margin: 2px 0 0;
  color: var(--dim);
  font-size: 11.5px;
  text-align: center;
}

/* ---------- ОБЩИЕ ЭЛЕМЕНТЫ ---------- */

.field { display: flex; flex-direction: column; gap: 7px; }

.field__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }

.field__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.field__hint { font-size: 11.5px; color: var(--dim); }

.input {
  width: 100%;
  padding: 11px 13px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.input::placeholder { color: var(--dim); }

.input:focus {
  border-color: #4b45a8;
  box-shadow: 0 0 0 3px rgba(109, 92, 255, .18);
}

.input--area { resize: vertical; min-height: 96px; line-height: 1.55; }

.input--select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .08s, opacity .15s;
}

.btn:hover { background: #1f1f2e; border-color: #32324c; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--grad);
  border: none;
  color: #0b0b12;
  font-weight: 700;
}

.btn--primary:hover { filter: brightness(1.08); background: var(--grad); }
.btn--primary:disabled { opacity: .5; cursor: not-allowed; filter: none; }

.btn--ghost { background: transparent; }
.btn--lg { padding: 12px 18px; font-size: 14.5px; }
.btn--full { width: 100%; }
.btn--icon { padding: 6px 10px; background: transparent; border-color: transparent; font-size: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  transition: all .14s;
}

.chip:hover { color: var(--text); border-color: #3a3a58; }

.chip.is-active {
  color: #0b0b12;
  background: var(--grad);
  border-color: transparent;
  font-weight: 650;
}

.chips--presets .chip { font-size: 12px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(109, 92, 255, .14);
  border: 1px solid rgba(109, 92, 255, .3);
  color: #b9b0ff;
  font-size: 11px;
  white-space: nowrap;
}

.badge--ok { background: rgba(47, 211, 154, .12); border-color: rgba(47, 211, 154, .3); color: #7ce8c4; }
.badge--warn { background: rgba(255, 176, 32, .12); border-color: rgba(255, 176, 32, .3); color: #ffd083; }
.badge--muted { background: #1b1b28; border-color: var(--line); color: var(--muted); }

/* ---------- КАРКАС ---------- */

.app { display: flex; flex-direction: column; height: 100%; }

.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 62px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 8, 12, .9);
  backdrop-filter: blur(10px);
  flex: 0 0 auto;
}

.topbar__brand { display: flex; align-items: center; }

.brand__logo {
  height: 30px;
  object-fit: contain;
}

.topbar__nav { display: flex; gap: 4px; margin-left: 10px; }

.navbtn {
  padding: 8px 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  transition: all .15s;
}

.navbtn:hover { color: var(--text); background: var(--panel-2); }
.navbtn.is-active { color: var(--text); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }

.topbar__right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.credits {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.credits__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.credits__unit { color: var(--dim); }

.view { flex: 1 1 auto; min-height: 0; }

.view--studio { display: grid; grid-template-columns: 384px 1fr; }

/* ---------- ПАНЕЛЬ ПАРАМЕТРОВ ---------- */

.panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-right: 1px solid var(--line-soft);
  background: var(--panel);
  overflow-y: auto;
}

.modeswitch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
}

.modeswitch__btn {
  padding: 9px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}

.modeswitch__btn:hover { color: var(--text); }

.modeswitch__btn.is-active {
  background: var(--grad);
  color: #0b0b12;
}

.modelpick {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.modelpick:hover { border-color: #3a3a58; background: #1c1c29; }

.modelpick__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }

.modelpick__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}

.modelpick__name {
  font-size: 14.5px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modelpick__price { font-size: 12px; color: var(--muted); }
.modelpick__chev { color: var(--dim); font-size: 13px; }

.group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.group__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--dim);
}

.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.row__label { font-size: 13px; color: var(--text); }
.row__sub { font-size: 11.5px; color: var(--dim); }

.switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #1b1b28;
  cursor: pointer;
  transition: background .15s;
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform .16s, background .16s;
}

.switch.is-on { background: linear-gradient(90deg, #3d6dff, #8b46ff); border-color: transparent; }
.switch.is-on::after { transform: translateX(18px); background: #fff; }

.slider { display: flex; align-items: center; gap: 10px; }

.slider input[type="range"] {
  flex: 1;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: #262636;
  outline: none;
}

.slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #6d5cff;
  cursor: pointer;
}

.slider__value {
  min-width: 46px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--muted);
}

.stepper { display: flex; align-items: center; gap: 4px; }

.stepper button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

.stepper button:hover { background: #22222f; }
.stepper__value { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }

.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px;
  border: 1px dashed #32324c;
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.drop:hover, .drop.is-over { border-color: #6d5cff; background: #1b1b2b; color: var(--text); }
.drop__hint { color: var(--dim); font-size: 11px; }

.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }

.thumb {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.thumb img { width: 100%; height: 100%; object-fit: cover; }

.thumb__x {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 6px;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

.thumb__tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2px 4px;
  background: rgba(0, 0, 0, .65);
  font-size: 9.5px;
  text-align: center;
  color: #dcdcf0;
}

.panel__foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  bottom: -18px;
  margin: auto -18px -18px;
  padding: 14px 18px 18px;
  background: linear-gradient(180deg, rgba(18, 18, 27, 0), var(--panel) 28%);
}

.estimate {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
}

.estimate__label { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--dim); }
.estimate__value { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.estimate__note { margin-left: auto; font-size: 11px; color: var(--dim); text-align: right; }

/* ---------- ХОЛСТ ---------- */

.canvas { display: flex; flex-direction: column; min-width: 0; background: var(--bg); }

.canvas__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 14px;
}

.canvas__title h1 { font-size: 21px; }
.canvas__title p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.canvas__title .badge { margin-top: 8px; }

.results {
  flex: 1;
  overflow-y: auto;
  padding: 6px 24px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  align-content: start;
}

.empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 55vh;
  color: var(--muted);
  text-align: center;
}

.empty h2 { font-size: 17px; color: var(--text); }
.empty p { margin: 0; max-width: 380px; font-size: 13px; }

.empty__art {
  width: 120px;
  height: 120px;
  margin-bottom: 8px;
  border-radius: 28px;
  background: var(--grad);
  opacity: .22;
  filter: blur(2px);
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background: linear-gradient(140deg, #14141f, #1c1630 55%, #2a1430);
  overflow: hidden;
}

.card__media::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: var(--grad);
  opacity: .18;
  filter: blur(46px);
}

.card__ph { position: relative; z-index: 1; text-align: center; padding: 14px; }
.card__ph b { display: block; font-size: 13px; }
.card__ph span { font-size: 11.5px; color: var(--muted); }

.card__bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}

.card__bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .3s; }

/* Живая задача: прогресс у провайдера мы не знаем, поэтому честная «бегущая» полоса. */
.card__bar--live { width: 40% !important; animation: slide 1.6s ease-in-out infinite; }

@keyframes slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

.card__media--filled { background: #000; }
.card__media--filled::after { content: none; }

.card__media--filled img,
.card__media--filled video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__media--filled > * + * { display: none; } /* в ленте показываем первый кадр серии */

.card__error {
  padding: 8px 10px;
  border: 1px solid rgba(255, 77, 141, .3);
  border-radius: var(--radius-sm);
  background: rgba(255, 77, 141, .1);
  color: #ff9ec0;
  font-size: 12px;
}

.card__body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }

.card__prompt {
  font-size: 13px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__actions { display: flex; flex-wrap: wrap; gap: 6px; }

.btn--sm {
  padding: 6px 12px;
  font-size: 12.5px;
  text-decoration: none;
}

.card__meta { display: flex; flex-wrap: wrap; gap: 5px; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--dim); }

/* ---------- СТРАНИЦЫ ---------- */

.page { height: 100%; overflow-y: auto; padding: 24px 28px 40px; }
.page__head h1 { font-size: 24px; }
.page__head p { margin: 6px 0 0; color: var(--muted); max-width: 760px; }

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
}

.filters .input { width: 260px; }
.filters .input--select { width: 190px; }

.models__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

.mcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color .15s, transform .12s;
}

.mcard:hover { border-color: #33334f; transform: translateY(-1px); }

.mcard__head { display: flex; align-items: flex-start; gap: 10px; }
.mcard__name { font-size: 15px; font-weight: 650; }
.mcard__id { font-family: var(--mono); font-size: 11.5px; color: var(--dim); word-break: break-all; }
.mcard__price { margin-left: auto; text-align: right; font-size: 13px; font-weight: 650; white-space: nowrap; }
.mcard__price small { display: block; font-size: 10.5px; font-weight: 400; color: var(--dim); }
.mcard__desc { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mcard__specs { display: flex; flex-direction: column; gap: 5px; }

.spec { display: flex; gap: 8px; font-size: 12px; }
.spec__k { flex: 0 0 96px; color: var(--dim); }
.spec__v { color: var(--muted); word-break: break-word; }

.mcard__foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }

/* ---------- ГАЛЕРЕЯ ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

/* ---------- МОДАЛКИ ---------- */

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4, 4, 8, .72); backdrop-filter: blur(4px); }

.modal__box {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1040px, 100%);
  max-height: min(84vh, 900px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal__box--code { width: min(760px, 100%); }

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.modal__head h2 { font-size: 16px; }

.modal__filters { display: flex; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.modal__filters .input { flex: 1; }
.modal__filters .input--select { flex: 0 0 190px; }

.modal__list { overflow-y: auto; padding: 14px 18px 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }

.modal__foot { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line-soft); }
.modal__hint { font-size: 11.5px; color: var(--dim); }

.tabs { display: flex; gap: 4px; padding: 12px 18px 0; }

.tab {
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.tab.is-active { background: var(--panel-2); border-color: var(--line); color: var(--text); }

.code {
  margin: 12px 18px;
  padding: 14px;
  max-height: 46vh;
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: #0a0a11;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: #cfd3ff;
  white-space: pre;
}

.pickcard {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 13px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: border-color .14s, background .14s;
}

.pickcard:hover { border-color: #3d3d5e; background: #191926; }
.pickcard.is-active { border-color: transparent; box-shadow: 0 0 0 1.5px #6d5cff; }

.pickcard__top { display: flex; align-items: baseline; gap: 8px; }
.pickcard__name { font-size: 14px; font-weight: 650; }
.pickcard__price { margin-left: auto; font-size: 12.5px; color: #b9b0ff; white-space: nowrap; }
.pickcard__id { font-family: var(--mono); font-size: 11px; color: var(--dim); word-break: break-all; }

/* ---------- ТОСТ ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 70;
  transform: translateX(-50%);
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  box-shadow: var(--shadow);
  font-size: 13px;
}

/* ---------- АДАПТИВ ---------- */

@media (max-width: 1080px) {
  .view--studio { grid-template-columns: 340px 1fr; }
}

@media (max-width: 880px) {
  .view--studio { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; }
  .panel { border-right: none; border-bottom: 1px solid var(--line-soft); overflow: visible; }
  .panel__foot { position: static; margin: 0; padding: 0; background: none; }
  .topbar { flex-wrap: wrap; height: auto; padding: 10px 14px; gap: 10px; }
  .topbar__nav { margin-left: 0; order: 3; width: 100%; }
  .page { padding: 18px 14px 30px; }
  .filters .input, .filters .input--select { width: 100%; }
}
