/* AI Tools — прототип v2 «Ночная студия». Профиль «продукт»: один радиус контролов, одинаковые карточки. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--t-md)/1.45 var(--f-ui);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: left; }
[hidden] { display: none !important; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.note { font-size: var(--t-sm); color: var(--muted); }
.lead { font-size: var(--t-lg); line-height: 1.45; color: var(--text); max-width: 34em; }
.link { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 24px; }
.over { font-size: var(--t-xs); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot--done { background: var(--done); }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 .9375rem/1 var(--f-head); letter-spacing: .04em; }
.logo__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }

/* Контролы */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--h-ctl); padding: 0 var(--s5);
  border-radius: var(--r-ctl); font-weight: 600; text-align: center; justify-self: start;
  transition: transform 90ms var(--ease), box-shadow 90ms var(--ease), background-color var(--dur) var(--ease);
}
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 3px 0 var(--accent-lip); }
.btn--primary:hover { background: #FF6E45; }
.btn--primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-lip); }
.btn--wide { width: 100%; justify-self: stretch; }
.btn--secondary { background: var(--surface-2); border: 1px solid var(--line-2); }
.btn--secondary:hover { background: #2A2A31; }
.btn--sm { min-height: 44px; padding: 0 var(--s4); font-size: var(--t-sm); }
.iconbtn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-ctl); flex: none; color: var(--text); }
.iconbtn:hover { background: var(--surface-2); }
.iconbtn svg { width: 22px; height: 22px; }
.avatar {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--surface-2); border: 1px solid var(--line-2); font: 600 .8125rem/1 var(--f-head);
}
.avatar--sm { width: 28px; height: 28px; font-size: .6875rem; }
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.field__label { font-size: var(--t-sm); font-weight: 500; color: var(--muted); }
.input {
  width: 100%; min-height: var(--h-ctl); padding: 0 var(--s4); border: 1px solid var(--line-2); border-radius: var(--r-ctl);
  background: var(--surface); font-size: 1rem;
}
.input:focus-visible { outline-offset: 0; border-color: var(--accent); }
.input::placeholder, .composer__input::placeholder { color: var(--muted); opacity: .8; }
.input[aria-invalid="true"] { border-color: var(--err); }
.field__err { font-size: var(--t-sm); color: var(--err); }

/* Табло стажа — сигнатура */
.digit { display: inline-block; overflow: hidden; vertical-align: bottom; font-variant-numeric: tabular-nums; }
.digit i { display: block; font-style: normal; }
.digit--gap { width: .3em; }
.digit--roll i { animation: roll var(--dur-roll) var(--ease); }
@keyframes roll { from { transform: translateY(-110%); } to { transform: none; } }
.tablo { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); }
.tablo__g { display: grid; gap: 6px; }
.tablo__n { display: flex; gap: 3px; font: 600 1.25rem/1 var(--f-head); }
.tablo__n .digit { display: grid; place-items: center; width: 30px; height: 40px; border-radius: 8px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); }
.tablo__n .digit--gap { width: 4px; background: none; border: 0; }
.tablo__g--hot .tablo__n { color: var(--accent); }
.tablo__n .digit--roll { border-color: var(--accent); }
.tablo__u { font-size: var(--t-xs); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tablo--sm .tablo__n { font-size: 1rem; }
.tablo--sm .tablo__n .digit { width: 24px; height: 32px; border-radius: 7px; }
.tablo--sm .tablo__n .digit--gap { width: 3px; }

/* Вход */
.login { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.login__media { position: relative; height: 34dvh; min-height: 220px; overflow: hidden; }
.login__media img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.login__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 2%, rgba(10, 10, 12, 0) 55%); }
.login__cap { position: absolute; left: var(--s4); bottom: var(--s3); z-index: 1; font: 700 1.375rem/1.1 var(--f-head); text-transform: uppercase; }
.login__in { padding: var(--s5) var(--s4) var(--s6); display: grid; gap: var(--s5); align-content: start; width: 100%; max-width: 460px; }
.login__title { font: 600 1.5rem/1.15 var(--f-head); }

/* Каркас */
.app { display: grid; grid-template-columns: minmax(0, 1fr); height: 100dvh; }
.work { display: flex; flex-direction: column; min-width: 0; height: 100dvh; }
.bar { display: flex; align-items: center; gap: var(--s2); min-height: var(--h-bar); padding: 6px var(--s3); border-bottom: 1px solid var(--line); }
.bar__mid { flex: 1; min-width: 0; display: grid; justify-items: start; }
.bar__title { font: 600 1rem/1.2 var(--f-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.exp { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; max-width: 100%; font-size: var(--t-xs); color: var(--muted); white-space: nowrap; }
.exp__n { color: var(--text); font-weight: 600; }
.exp__n--hot { color: var(--accent); }
.exp svg { width: 14px; height: 14px; }
.view { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--s4) var(--s4) var(--s6); outline: none; }
.home { max-width: var(--w-page); margin-inline: auto; }
.log, .page { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); max-width: var(--w-col); margin-inline: auto; align-content: start; }
.page { gap: var(--s5); }

/* Меню */
.nav {
  position: fixed; inset: 0 auto 0 0; z-index: 30; width: min(86vw, 320px); display: flex; flex-direction: column; gap: 2px;
  padding: var(--s3); padding-bottom: max(var(--s3), env(safe-area-inset-bottom)); overflow-y: auto;
  background: var(--bg); border-right: 1px solid var(--line);
  transform: translateX(-102%); visibility: hidden; transition: transform var(--dur) var(--ease), visibility 0s var(--dur);
}
.nav[data-open], .side[data-open] { transform: none; visibility: visible; transition: transform var(--dur) var(--ease); }
.nav__head { display: flex; align-items: center; justify-content: space-between; padding: 2px 0 var(--s3) var(--s2); }
.nav__label { margin: var(--s4) var(--s2) 6px; font-size: .6875rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.nav__item, .nav__tool { display: flex; align-items: center; gap: var(--s3); width: 100%; border-radius: var(--r-ctl); }
.nav__item { min-height: 44px; padding: 0 var(--s2); font-weight: 500; }
.nav__ic { width: 22px; height: 22px; margin: 0 9px; flex: none; }
.nav__tool { min-height: 56px; padding: 6px var(--s2); }
.nav__tool img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; object-position: 62% 50%; flex: none; border: 1px solid var(--line); }
.nav__txt { display: grid; min-width: 0; }
.nav__name { font-weight: 600; }
.nav__exp { font-size: var(--t-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav__item:hover, .nav__tool:hover { background: var(--surface); }
.nav__item[aria-current], .nav__tool[aria-current] { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.nav__user { display: flex; align-items: center; gap: var(--s3); margin-top: auto; padding: var(--s5) var(--s2) 0; }
.nav__who { display: grid; min-width: 0; flex: 1; font-size: var(--t-sm); }
.nav__who span { color: var(--muted); font-size: var(--t-xs); }
.nav__out { min-height: 44px; padding: 0 var(--s3); border: 1px solid var(--line-2); border-radius: var(--r-ctl); font-size: var(--t-sm); font-weight: 500; }
.nav__out:hover { background: var(--surface-2); }
.nav__proto { padding: var(--s3) var(--s2) 0; font-size: .6875rem; color: var(--muted); }
.scrim { position: fixed; inset: 0; z-index: 20; background: var(--scrim); }

/* Панель команды */
.side {
  position: fixed; inset: 0 0 0 auto; z-index: 30; width: min(90vw, var(--w-side)); padding: var(--s4); overflow-y: auto;
  background: var(--bg); border-left: 1px solid var(--line); display: grid; gap: var(--s4); align-content: start;
  transform: translateX(102%); visibility: hidden; transition: transform var(--dur) var(--ease), visibility 0s var(--dur);
}
.side__head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.side__title { font: 600 1rem/1.2 var(--f-head); text-transform: uppercase; }
.side__sub { font-size: .6875rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-top: var(--s2); }
#sideTeam { display: grid; gap: var(--s5); }
.team { display: grid; gap: var(--s3); }
.team img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--r-card); border: 1px solid var(--line); }
.team__name { font: 600 1.125rem/1.2 var(--f-head); text-transform: uppercase; }
.team__roles { display: grid; gap: var(--s2); }
.team__roles li { display: flex; align-items: center; gap: var(--s3); font-weight: 500; }
.lessons { border-top: 1px solid var(--line); }
.lesson { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: var(--s2); padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.lesson__n { color: var(--accent); font-size: var(--t-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.lesson__t { overflow-wrap: anywhere; }

/* Обзор: баннер */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); border-radius: var(--r-hero); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.hero__img { width: 100%; height: 200px; object-fit: cover; object-position: 80% 46%; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.hero__in { position: relative; display: grid; gap: var(--s4); padding: 0 var(--s4) var(--s5); margin-top: -28px; }
.hero__title { font: 700 var(--t-hx)/1.08 var(--f-head); text-transform: uppercase; }
.hero__lead { font-size: var(--t-lg); color: var(--muted); max-width: 26em; }

.sec { margin-top: var(--s6); scroll-margin-top: var(--s4); outline: none; }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.sec__title { font: 600 1.0625rem/1.2 var(--f-head); text-transform: uppercase; margin-bottom: var(--s4); }

/* Каталог инструментов */
.tgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s3); }
.tcard { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; align-content: start; border-radius: var(--r-card); }
.tcard__media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; background: var(--surface); border: 1px solid var(--line); margin-bottom: 6px; }
.tcard__img, .pcard__img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.tcard__img { object-position: 62% 50%; }
.tcard:hover .tcard__img, .pcard--rail:hover .pcard__img { transform: scale(1.05); }
.tcard:hover .tcard__media { border-color: var(--line-2); }
.badge { position: absolute; left: 8px; bottom: 8px; padding: 4px 9px; border-radius: 999px; background: var(--pill); font-size: var(--t-xs); font-weight: 600; white-space: nowrap; }
.tcard__name { font: 600 .8125rem/1.25 var(--f-head); text-transform: uppercase; overflow-wrap: anywhere; }
.tcard__sub { font-size: var(--t-sm); color: var(--muted); }

/* Постеры пресетов */
.pcard { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-card); overflow: hidden; background: var(--surface); border: 1px solid var(--line); width: 100%; }
.pcard__img { position: absolute; inset: 0; }
.pcard::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, rgba(10, 10, 12, .92) 18%, rgba(10, 10, 12, 0)); pointer-events: none; }
.pcard__n { position: absolute; top: 10px; left: 12px; z-index: 1; font: 600 var(--t-xs)/1 var(--f-head); color: var(--text); opacity: .85; }
.pcard__name { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; font-weight: 600; line-height: 1.2; }
.pcard__check { position: absolute; top: 8px; right: 8px; z-index: 1; display: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.pcard__check svg { width: 18px; height: 18px; stroke-width: 2.4; }
.pcard[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.pcard[aria-pressed="true"] .pcard__check { display: grid; }
.presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.presets .pcard__img { animation: drift var(--drift) ease-in-out infinite alternate; }
.presets .pcard:nth-child(even) .pcard__img { animation-delay: -5s; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08) translateY(-1.5%); } }
.rail { display: flex; gap: var(--s3); overflow-x: auto; scroll-snap-type: x proximity; margin-inline: calc(-1 * var(--s4)); padding: 2px var(--s4) var(--s2); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.pcard--rail { flex: 0 0 148px; scroll-snap-align: start; }

/* Как учится */
.learn { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.learn li { display: grid; gap: 4px; padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.learn__n { font: 600 var(--t-xs)/1 var(--f-head); color: var(--accent); margin-bottom: 4px; }
.learn b { font-size: var(--t-lg); font-weight: 600; }
.learn li > span:last-child { color: var(--muted); }

/* Пустое состояние инструмента */
.empty { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
.thero { position: relative; display: grid; min-height: 236px; border-radius: var(--r-hero); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.thero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.thero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10, 10, 12, .94) 22%, rgba(10, 10, 12, .1) 70%), linear-gradient(to right, rgba(10, 10, 12, .55), rgba(10, 10, 12, 0) 60%); }
.thero__in { position: relative; z-index: 2; display: grid; gap: var(--s3); align-content: end; padding: var(--s4); }
.thero__title { font: 700 var(--t-hx)/1.05 var(--f-head); text-transform: uppercase; overflow-wrap: anywhere; }
.thero .over { color: var(--text); opacity: .85; }
.empty__sub { font-size: .6875rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-top: var(--s2); }
.hint { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; color: var(--muted); }
.starters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.starter { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); width: 100%; min-height: 56px; padding: var(--s2) var(--s4); border-bottom: 1px solid var(--line); font-size: var(--t-lg); font-weight: 500; }
.starter:last-child { border-bottom: 0; }
.starter:hover { background: var(--surface-2); }
.starter svg { width: 20px; height: 20px; color: var(--accent); flex: none; transition: transform var(--dur) var(--ease); }
.starter:hover svg { transform: translateX(4px); }

/* Чат */
.msg { max-width: min(86%, 34rem); padding: 10px 14px; border-radius: var(--r-card); overflow-wrap: anywhere; font-size: 1rem; }
.msg--me { justify-self: end; background: var(--surface-2); }
.msg--team { justify-self: start; border: 1px solid var(--line); }
.msg__tag { display: block; margin-bottom: 4px; font-size: var(--t-xs); font-weight: 600; color: var(--accent); }
.relay { position: relative; display: grid; gap: var(--s3); padding: var(--s4); padding-top: calc(var(--s4) + 3px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.relay__bar { position: absolute; inset: 0 0 auto; height: 3px; background: var(--line); }
.relay__bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 900ms var(--ease); }
.relay[data-done] .relay__bar i { background: var(--done); }
.relay__now { font-weight: 500; min-height: 1.45em; }
.relay__row { display: flex; flex-wrap: wrap; gap: 6px; }
.relay__chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: var(--surface-2); font-size: var(--t-sm); color: var(--muted); }
.relay__chip[data-s="run"] { color: var(--text); }
.relay__chip[data-s="run"] .dot { background: var(--accent); animation: pulse 900ms ease-in-out infinite alternate; }
.relay__chip[data-s="done"] { color: var(--text); }
.relay__chip[data-s="done"] .dot { background: var(--done); }
@keyframes pulse { to { opacity: .3; } }
.result { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s4); padding: var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.result__thumb { width: 96px; height: 96px; object-fit: cover; object-position: 62% 40%; border-radius: var(--r-ctl); }
.result__body { display: grid; gap: 4px; justify-items: start; align-content: center; min-width: 0; }
.result__title { font-size: var(--t-lg); font-weight: 600; }
.result__meta { color: var(--muted); font-size: var(--t-sm); overflow-wrap: anywhere; margin-bottom: 6px; }
.result__demo { color: var(--muted); font-size: var(--t-xs); }
.rev { display: grid; gap: 4px; padding: var(--s3) var(--s4); border-radius: var(--r-card); border: 1px solid rgba(255, 91, 46, .5); background: rgba(255, 91, 46, .1); animation: revin var(--dur-roll) var(--ease); }
.rev__line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-weight: 500; }
.rev__line b { font: 600 .8125rem/1.3 var(--f-head); text-transform: uppercase; color: var(--accent); }
.rev__spark { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.rev__sub { font-size: var(--t-sm); color: var(--muted); }
@keyframes revin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Поле сообщения */
.composer { padding: var(--s2) var(--s3) max(var(--s3), env(safe-area-inset-bottom)); }
.composer__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); max-width: var(--w-col); margin-inline: auto; }
.composer__row { display: flex; align-items: flex-end; gap: 4px; padding: 6px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line-2); transition: border-color var(--dur) var(--ease); }
.composer__row:focus-within { border-color: var(--accent); }
.composer__plus, .composer__send { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none; }
.composer__plus:hover { background: var(--surface-2); }
.composer__plus svg, .composer__send svg { width: 22px; height: 22px; }
.composer__input { flex: 1; min-width: 0; min-height: 44px; max-height: 140px; padding: 10px 6px; border: 0; background: none; resize: none; font-size: 1rem; line-height: 1.5; outline: none; }
.composer__input::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer__send { background: var(--accent); color: var(--on-accent); }
.composer__send:hover { background: #FF6E45; }
.composer__send svg { stroke-width: 2.2; }
.composer__preset { display: inline-flex; align-items: center; gap: var(--s2); justify-self: start; max-width: 100%; padding: 4px 4px 4px 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: var(--t-sm); font-weight: 500; }
.composer__preset img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.composer__preset > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer__x { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none; }
.composer__x:hover { background: var(--bg); }
.composer__x svg { width: 16px; height: 16px; }
.composer__note { color: var(--muted); font-size: var(--t-xs); padding-inline: var(--s3); }

/* Аккаунты и задачи */
.rows { border-top: 1px solid var(--line); }
.acc { padding: var(--s3) 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
.acc__head { display: flex; align-items: center; gap: var(--s3); }
.acc__logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-ctl); background: var(--surface-2); font: 600 1rem/1 var(--f-head); flex: none; }
.acc__txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.acc__name { font-size: var(--t-lg); font-weight: 600; overflow-wrap: anywhere; }
.acc__handle { color: var(--muted); font-size: var(--t-sm); font-weight: 400; }
.acc__state, .task__meta { font-size: var(--t-sm); color: var(--muted); }
.acc__state .dot, .task__meta .dot { margin-right: 6px; }
[data-s="on"] .dot, [data-s="done"] .dot { background: var(--done); }
[data-s="code"] .dot, [data-s="run"] .dot { background: var(--accent); }
.acc__form { padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); max-width: 460px; }
.acc__form .input { background: var(--bg); }
.task { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 72px; padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.task img { width: 56px; height: 56px; border-radius: var(--r-ctl); object-fit: cover; object-position: 62% 50%; flex: none; }
.task__txt { display: grid; gap: 2px; min-width: 0; }
.task__name { font-weight: 600; overflow-wrap: anywhere; }
.task:hover .task__name { color: var(--accent); }

@media (min-width: 600px) {
  .tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
  .tcard__media { aspect-ratio: 3 / 2; }
  .tcard__name { font-size: .9375rem; }
  .pcard--rail { flex-basis: 190px; }
  .learn { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); border-top: 0; }
  .learn li { border-top: 1px solid var(--line); border-bottom: 0; }
  .thero { min-height: 280px; }
  .thero__in { padding: var(--s5); }
}
@media (min-width: 768px) {
  .hero { min-height: 440px; align-items: center; }
  .hero { background: var(--bg); }
  .hero__img { position: absolute; inset: 0 0 0 auto; width: 74%; height: 100%; object-position: 50% 50%; -webkit-mask-image: linear-gradient(to right, transparent, #000 32%); mask-image: linear-gradient(to right, transparent, #000 32%); }
  .hero__in { margin-top: 0; padding: var(--s6); max-width: 620px; gap: var(--s4); }
}

/* ПК: меню слева постоянно */
@media (min-width: 1024px) {
  .app { grid-template-columns: var(--w-nav) minmax(0, 1fr); }
  .nav { position: static; width: auto; transform: none; visibility: visible; height: 100dvh; padding: var(--s4) var(--s3); }
  .nav__close, .bar__menu { display: none; }
  .bar { padding: var(--s2) var(--s5); }
  .view { padding: var(--s5) var(--s5) var(--s6); }
  .composer { padding: var(--s2) var(--s5) var(--s5); }
  body[data-view="chat"] .log:has(.presets) { max-width: 980px; }
  .presets { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }

  .login { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); align-content: stretch; }
  .login__in { order: 1; padding: var(--s6); align-content: center; justify-self: center; }
  .login__media { order: 2; height: auto; min-height: 100dvh; }
  .login__media img { object-position: 62% 50%; }
  .login__media::after { background: linear-gradient(to right, var(--bg), rgba(10, 10, 12, 0) 30%), linear-gradient(to top, rgba(10, 10, 12, .7), rgba(10, 10, 12, 0) 40%); }
  .login__cap { left: var(--s6); bottom: var(--s6); font-size: clamp(2rem, 3.4vw, 3.25rem); }
  .login__title { font-size: 1.75rem; }
}
@media (min-width: 1280px) {
  .app { grid-template-columns: var(--w-nav) minmax(0, 1fr); }
  body[data-view="chat"] .app { grid-template-columns: var(--w-nav) minmax(0, 1fr) var(--w-side); }
  .side { position: static; width: auto; transform: none; visibility: visible; height: 100dvh; padding: var(--s4) var(--s5); display: none; }
  body[data-view="chat"] .side { display: grid; }
  .side__close, .exp svg { display: none; }
  .exp { pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
