/* CRM поверх стилей демо-кабинета (styles.css один в один с демо): только то, чего в демо не было —
   вход, плашка «Скоро появится», шаги загрузки, формы, учётки. Те же переменные и тон. */

:root { --bar-h: 0px; }

/* ---------- вход ---------- */
.login-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login { width: min(380px, 100%); padding: 28px 26px 22px; display: grid; gap: 14px; }
.login .brand { margin-bottom: 6px; }
.lf { display: grid; gap: 5px; }
.lf > span { font-size: 12.5px; color: var(--soft); }
.lf input, .lf select {
  border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper); padding: 9px 11px;
  font-size: 14px; outline: none; transition: border-color .15s;
}
.lf input:focus, .lf select:focus { border-color: var(--ink); }
.login-err { min-height: 18px; margin: 0; color: var(--err); font-size: 13px; }
.login-err:empty { min-height: 0; }
.form-grid { display: grid; gap: 14px; }

.nav .cnt-soon { font-size: 11px; color: var(--mute); }

/* ---------- скоро появится ---------- */
.soon { border-style: dashed; background: transparent; position: relative; }
.soon h3 { margin: 6px 0 4px; }
.soon p { margin: 0; font-size: 13px; }
.soon-tag {
  display: inline-block; font-size: 11.5px; letter-spacing: .02em; padding: 2px 8px; border-radius: 99px;
  background: var(--hair); color: var(--soft);
}
.soon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }

/* ---------- загрузка: шаги ---------- */
.step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.step-n {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center;
  font-size: 13px; color: var(--soft); background: var(--paper);
}
.step-b h3 { margin: 2px 0 10px; }
.counter.clickable { cursor: pointer; transition: border-color .15s, transform .1s; }
.counter.clickable:hover { border-color: #c9c5bd; }
.counter.clickable:active { transform: scale(.98); }
.reasons { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: var(--soft); }
.ready-line { margin: 10px 0 10px; }
.check { margin-bottom: 8px; }
.dist-row.off { opacity: .5; }
.op-pick { display: flex; align-items: center; gap: 8px; min-width: 0; }
.op-pick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num-in { width: 72px; border: 1px solid var(--line); border-radius: var(--r-s); padding: 4px 6px; text-align: right; background: var(--paper); }
.imp-row { cursor: pointer; }
.imp-row:hover b { text-decoration: underline; }
.drop { cursor: pointer; }
.drop.busy { opacity: .6; pointer-events: none; }
.warn-box { background: #fdf4ea; border-color: #f2d5b3; }

/* ---------- учётки ---------- */
.row-acts { display: flex; gap: 6px; flex-wrap: nowrap; justify-content: flex-start; }
.row-off td { color: var(--mute); }
.pw-box {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--r-m); background: var(--wash);
}
.pw-box small { display: block; color: var(--mute); font-size: 12px; }
.pw-box b { font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.me-dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 12px 0 0; font-size: 13px; }
.me-dl dt { color: var(--soft); }
.me-dl dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 500; }

[data-theme="dark"] .lf input, [data-theme="dark"] .lf select,
[data-theme="dark"] .num-in, [data-theme="dark"] .step-n { background: transparent; }
[data-theme="dark"] .warn-box { background: rgba(183,121,31,.12); border-color: rgba(183,121,31,.35); }
[data-theme="dark"] .pw-box { background: rgba(255,255,255,.04); }

@media (max-width: 720px) {
  .pw-box { grid-template-columns: 1fr; }
}

a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.dist-go { margin-top: 6px; }
.robot-switch { width: 100%; justify-content: space-between; display: flex; margin: 0 0 10px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper); font-weight: 500; }
[data-theme="dark"] .robot-switch { background: transparent; }

/* ---------- 2.2: рабочее место оператора ---------- */
.track.dyn .hr { padding: 0 0 2px 4px; display: flex; align-items: flex-end; }
.track-empty { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); font-size: 12.5px; color: var(--mute); }
.cbs-carried { margin: 2px 0 12px; }
.slot-chip { border: 0; border-radius: 7px; padding: 5px 9px; font-size: 12px; color: #fff; text-align: left; }
.slot-chip.red { background: #c2392f; }
.slot-chip.green { background: #2e8a54; }
.slot-chip.yellow { background: #e7c04e; color: #3d2d00; }
.tile.late { box-shadow: inset 3px 0 0 #c2392f; }
.tile.late.next { box-shadow: inset 3px 0 0 #c2392f, 0 0 0 2px var(--ink); }
.status3.one { grid-template-columns: minmax(0, 260px); }
.req-box { background: #f5f1fc; border-color: #dcd1f3; display: block; }
.refuse-box { background: #fcf0ee; border-color: #f1ccc7; display: block; }
.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; max-height: 150px; overflow-y: auto; }
.hist time { color: var(--mute); font-variant-numeric: tabular-nums; font-size: 12px; }
.hist b { font-weight: 500; }
.msg-role { font-size: 10.5px; color: var(--soft); background: var(--hair); border-radius: 4px; padding: 0 5px; margin-left: 6px; }
.sec-h { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.op-select { min-width: 200px; }
.tbl.today tfoot td { border-top: 1px solid var(--line); background: #fbfaf8; }
.tbl.today .num-in { width: 76px; text-align: center; }
.toast .btn-ink { background: #fff; color: var(--ink); border-color: #fff; }
.toast .soft { color: rgba(243,241,236,.75); }
[data-theme="dark"] .req-box { background: rgba(142,116,207,.12); border-color: rgba(142,116,207,.35); }
[data-theme="dark"] .refuse-box { background: rgba(194,57,47,.12); border-color: rgba(194,57,47,.35); }
[data-theme="dark"] .tbl.today tfoot td { background: rgba(255,255,255,.03); }
@media (max-width: 1100px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .rp { position: static; }
}
.track.dyn { margin-top: 18px; }
.tbl th small { display: block; font-size: 11px; color: var(--mute); font-weight: 400; }
.tbl td.nowrap, .tbl.today td:first-child { white-space: nowrap; }
.dialog:focus { outline: none; }
/* 2.3 «Заявки и наряды», жаба */
.head-acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
#apps-tbl tbody tr { cursor: pointer; }
#apps-tbl tbody tr:hover td { background: rgba(21,21,21,.025); }
#apps-tbl td .sub { display: block; font-size: 11.5px; color: var(--mute); margin-top: 4px; line-height: 1.3; max-width: 220px; }
#apps-tbl td.st-cell { min-width: 150px; }
.tbl input.note.saved { border-color: var(--frog); }
.frog-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px 12px; }
.frog-foot .hint { margin: 0; font-size: 12px; }
.frog-snd { flex: none; width: auto; gap: 8px; padding: 4px 6px; }
[data-theme="dark"] #apps-tbl tbody tr:hover td { background: rgba(255,255,255,.03); }
[data-theme="dark"] .frog-stage { background: linear-gradient(#22211f, #1f2a1d); }
.dot.idle { background: #e0a43a; }
/* чат: длинный текст с абзацами (01.11) */
.chat { max-height: 460px; }
.chat .msg > div { white-space: pre-wrap; overflow-wrap: anywhere; }
.chat form { align-items: flex-end; }
.chat textarea { flex: 1; border: 1px solid var(--line); border-radius: var(--r-m); padding: 7px 10px; font: inherit; font-size: 13px; min-width: 0; resize: none; line-height: 1.4; max-height: 140px; background: var(--paper); color: inherit; }
.chat textarea:focus { outline: none; border-color: var(--ink); }
.chat .chat-hint { margin: -6px 12px 10px; font-size: 11px; }
.chat .chat-hint.over { color: var(--err); }

/* ---------- вид 01.11: иконки как в «Дриме», ховеры, ровные таблицы ---------- */
svg.i { flex: none; display: block; }
.btn svg.i { margin-left: -2px; }
.btn-sm svg.i { width: 14px; height: 14px; }
.btn-lg svg.i { margin-left: -3px; }

/* меню: иконка слева, «скоро» маленькой меткой */
.nav a { justify-content: flex-start; gap: 10px; padding: 8px 10px; transition: background-color .15s, color .15s, box-shadow .15s; }
.nav a svg.i { color: var(--mute); transition: color .15s; }
.nav a:hover svg.i, .nav a.on svg.i { color: var(--ink); }
.nav a:hover { background: rgba(255,255,255,.8); }
.nav .nav-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav .cnt { margin-left: auto; font-size: 11.5px; }
.nav .cnt-soon { font-size: 10.5px; line-height: 1; padding: 3px 6px; border-radius: 99px; background: var(--hair); color: var(--mute); }
.side-foot { padding: 14px 0 0; gap: 2px; }
.side-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 7px 10px;
  border-radius: 7px; color: var(--soft); font-size: 13px; text-align: left; transition: background-color .15s, color .15s;
}
.side-btn > span:first-of-type { flex: 1; }
.side-btn svg.i { color: var(--mute); transition: color .15s; }
.side-btn:hover { background: rgba(255,255,255,.8); color: var(--ink); }
.side-btn:hover svg.i { color: var(--ink); }
.side-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[data-theme="dark"] .nav a:hover, [data-theme="dark"] .side-btn:hover { background: rgba(255,255,255,.05); }

/* кнопки и чипы: отклик на наведение */
.btn { transition: border-color .15s, background-color .15s, box-shadow .15s, transform .12s; }
.btn:not(.btn-ink):hover { background: var(--wash); border-color: #cfcac2; }
.btn-ink:hover { background: #2b2b2b; border-color: #2b2b2b; box-shadow: 0 8px 18px -10px rgba(21,21,21,.6); transform: translateY(-1px); }
.btn:active, .btn-ink:active { transform: scale(.97); box-shadow: none; }
.chip { transition: border-color .15s, background-color .15s, color .15s; }
.chip:not(.on):hover { background: var(--wash); border-color: #cfcac2; color: var(--ink); }
[data-theme="dark"] .btn:not(.btn-ink):hover, [data-theme="dark"] .chip:not(.on):hover { background: #262523; border-color: #4a4742; }
[data-theme="dark"] .btn-ink:hover { background: #fff; border-color: #fff; }

/* выпадающие списки одной высоты с кнопками */
.sel, select.chip {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d8a84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 5.5 6-5.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 14px;
}
.sel {
  height: 38px; min-width: 170px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: var(--r-m);
  background-color: var(--paper); background-position: right 11px center; font-size: 13.5px; color: var(--ink);
  transition: border-color .15s, background-color .15s;
}
.sel:hover { border-color: #cfcac2; }
.sel:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
select.chip { padding-right: 26px; background-position: right 8px center; background-size: 12px; }
.head-acts { align-items: center; }
.page-head p { max-width: 620px; }
.head-acts .btn:not(.btn-lg) { height: 38px; }

/* таблицы: числа по центру, строки по средней линии, подсветка строки */
.tbl td.c, .tbl th.c { text-align: center; }
.tbl.mid td { vertical-align: middle; }
.tbl.hov tbody tr td { transition: background-color .12s; }
.tbl.hov tbody tr:hover td { background: #faf9f6; }
[data-theme="dark"] .tbl.hov tbody tr:hover td { background: rgba(255,255,255,.025); }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person b { display: block; font-weight: 500; white-space: nowrap; }
.person small { display: block; font-size: 12px; color: var(--mute); white-space: nowrap; line-height: 1.3; }
.ava {
  position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--hair); color: var(--soft);
  display: grid; place-items: center; font-size: 11px; font-weight: 600; letter-spacing: .02em;
}
.ava .dot { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border: 2px solid var(--paper); }
.ava .dot.off { background: #cfcac2; }
.ava.team { background: var(--ink); color: var(--paper); }
.tbl tfoot .ava .dot { border-color: #fbfaf8; }
.bar.mini { width: 64px; height: 4px; margin: 5px auto 0; }
.state { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.state-sub { display: block; margin: 1px 0 0 14px; font-size: 12px; color: var(--mute); white-space: nowrap; }
.users .pill { font-weight: 500; }
.team-foot { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; margin-top: 22px; align-items: start; }
.team-foot .soon { min-height: 100%; }

/* доска: текст плитки не вылезает, просрочка — красной меткой с часиками */
.tiles { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.tile { transition: transform .14s var(--ease-out), box-shadow .14s, border-color .14s, opacity .3s; }
.tile .vil { padding-right: 42px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .pill { max-width: 100%; min-width: 0; }
.tile .pill .pt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tile .pill.late { background: #f6d6d1; color: #b42318; }
.tile .pill svg.i { flex: none; }
[data-theme="dark"] .tile .pill.late { background: #4d2a27; color: #f3a99f; }
.track.dyn .now { bottom: 20px; }
.plan dl { gap: 4px 10px; }
.plan .dl-h { font-size: 11.5px; color: var(--mute); font-weight: 400; margin-bottom: 1px; }
.me-dl { padding-top: 10px; border-top: 1px solid var(--hair); }
.frog-meta span { text-wrap: balance; }

/* карточка лида: итог звонка с иконками, отклик у вариантов */
.s3 { justify-content: flex-start; gap: 10px; }
.s3 .kbd { margin-left: auto; }
.s3:hover { border-color: #cfcac2; background: var(--wash); }
.s3.req svg.i { color: #5a3e9b; }
.s3.call svg.i { color: #9c5410; }
.s3.refuse svg.i { color: #b42318; }
[data-theme="dark"] .s3.req svg.i { color: #c9b9f2; }
[data-theme="dark"] .s3.call svg.i { color: #f4c590; }
[data-theme="dark"] .s3.refuse svg.i { color: #f3a99f; }
.opt { transition: border-color .15s, background-color .15s; }
.opt:not(.on):hover { border-color: #cfcac2; background: var(--wash); }
.x { display: grid; place-items: center; transition: background-color .15s, color .15s; }
.x:hover { background: var(--hair); color: var(--ink); }
.toast .t-act:hover { border-color: rgba(255,255,255,.7); }

/* заявки: время наряда под датой, комментарии не растягивают таблицу */
#apps-tbl td.o-who { white-space: nowrap; }
#apps-tbl td.o-com { min-width: 120px; max-width: 190px; }
#apps-tbl td .sub { max-width: 200px; }

/* загрузка базы: строка «Учётка робота» по одной линии */
.stat-row { align-items: center; }
.creds-v { display: inline-flex; align-items: center; gap: 8px; }

/* живые иконки: одно короткое движение на наведение и нажатие (части размечены в icons.ts) */
svg.i * { transform-box: fill-box; transform-origin: center; }
svg.i .write { transform-origin: 15% 85%; }
svg.i .tilt { transform-origin: 30% 70%; }
svg.i .hands { transform-box: view-box; transform-origin: 12px 12px; }
@keyframes ic-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ic-hop { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-3px); } 62% { transform: translateY(.5px); } }
@keyframes ic-tile { 0%, 100% { transform: none; } 35% { transform: translateY(-2.5px); } 65% { transform: translateY(.5px); } }
@keyframes ic-fly { 0% { transform: none; opacity: 1; } 42% { transform: translate(6px, -6px); opacity: 0; } 43% { transform: translate(-6px, 6px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes ic-turn { from { transform: rotate(0); } to { transform: rotate(90deg); } }
@keyframes ic-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes ic-up { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-3px); } }
@keyframes ic-dn { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(3px); } }
@keyframes ic-blink { 0%, 100% { transform: scaleY(1); } 45% { transform: scaleY(.1); } }
@keyframes ic-write { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-14deg); } 65% { transform: rotate(9deg); } }
@keyframes ic-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-1.8px); } 50% { transform: translateX(1.8px); } 75% { transform: translateX(-1px); } }
@keyframes ic-scan { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(-1.6px, -1px); } 65% { transform: translate(1.6px, 1px); } }
@keyframes ic-slide-l { 0%, 100% { transform: translateX(0); } 45% { transform: translateX(-3px); } }
@keyframes ic-slide-r { 0%, 100% { transform: translateX(0); } 45% { transform: translateX(3px); } }
@keyframes ic-twinkle { 0%, 100% { transform: none; } 30% { transform: translateY(-2px) rotate(-14deg); } 62% { transform: rotate(9deg); } }
@keyframes ic-tilt { 0%, 100% { transform: none; } 30% { transform: rotate(-16deg); } 65% { transform: rotate(8deg); } }
@keyframes ic-nod { 0%, 100% { transform: none; } 40% { transform: translateY(-1.5px) scale(1.08); } }
svg.i.play-ic .draw { stroke-dasharray: 1; animation: ic-draw .55s var(--ease-out) .05s both; }
svg.i.play-ic .draw.d2 { animation-delay: .17s; }
svg.i.play-ic .hop { animation: ic-hop .55s var(--ease-out); }
svg.i.play-ic .hop.d2 { animation-delay: .12s; }
svg.i.play-ic .tile { animation: ic-tile .5s var(--ease-out); }
svg.i.play-ic .tile.d2 { animation-delay: .07s; }
svg.i.play-ic .tile.d3 { animation-delay: .14s; }
svg.i.play-ic .tile.d4 { animation-delay: .21s; }
svg.i.play-ic .fly { animation: ic-fly .62s var(--ease-out); }
svg.i.play-ic .turn { animation: ic-turn .45s var(--ease-out); }
svg.i.play-ic .spin { animation: ic-spin .7s var(--ease-out); }
svg.i.play-ic .up { animation: ic-up .5s var(--ease-out); }
svg.i.play-ic .dn { animation: ic-dn .5s var(--ease-out); }
svg.i.play-ic .blink { animation: ic-blink .4s ease-in-out; }
svg.i.play-ic .write { animation: ic-write .6s var(--ease-out); }
svg.i.play-ic .shake { animation: ic-shake .45s ease-in-out; }
svg.i.play-ic .scan { animation: ic-scan .6s ease-in-out; }
svg.i.play-ic .slide-l { animation: ic-slide-l .45s var(--ease-out); }
svg.i.play-ic .slide-r { animation: ic-slide-r .45s var(--ease-out); }
svg.i.play-ic .twinkle { animation: ic-twinkle .6s var(--ease-out); }
svg.i.play-ic .tilt { animation: ic-tilt .6s var(--ease-out); }
svg.i.play-ic .hands { animation: ic-spin .8s var(--ease-out); }
svg.i.play-ic.plain { animation: ic-nod .45s var(--ease-out); }

@media (max-width: 1100px) {
  .team-foot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .nav a { gap: 8px; }
  .nav .cnt-soon { display: none; }
  .head-acts { width: 100%; }
  .head-acts .sel { flex: 1; min-width: 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cbs { overflow-x: auto; }
  .cbs .track.dyn { min-width: 640px; }
}
.drop .btn svg.i { width: 16px; height: 16px; stroke: currentColor; }
.tiles > .empty { grid-column: 1 / -1; }
[data-theme="dark"] .ava .dot.off { background: #5a5752; }

/* ---------- название «Линия» и кабинет справа сверху (01.11) ---------- */
.brand { padding: 0 10px 8px; }
.brand .serif { font-size: 25px; line-height: 1; }
.brand small { margin-top: 4px; letter-spacing: .01em; }
.side .nav-label { margin-top: 18px; }
.login .brand { padding: 0 0 6px; }
.ava { background: none; }
.ava svg.px, .me-btn svg.px, .ava-opt svg.px { display: block; border-radius: 50%; }
.clock { padding-right: 14px; border-right: 1px solid var(--hair); }
.me-wrap { position: relative; flex: none; }
.me-btn {
  display: flex; align-items: center; gap: 10px; border: 1px solid transparent; background: none; border-radius: 12px;
  padding: 4px 8px 4px 4px; text-align: left; transition: background-color .15s, border-color .15s;
}
.me-btn:hover, .me-btn[aria-expanded="true"] { background: var(--wash); border-color: var(--line); }
.me-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.me-btn svg.px { flex: none; }
.me-t { line-height: 1.25; min-width: 0; }
.me-t b { display: block; font-weight: 500; font-size: 13.5px; white-space: nowrap; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.me-t small { display: block; font-size: 11.5px; color: var(--mute); white-space: nowrap; }
.me-btn > svg.i { color: var(--mute); transition: transform .2s var(--ease-out); }
.me-btn[aria-expanded="true"] > svg.i { transform: rotate(180deg); }
.me-menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; z-index: 40; display: grid; gap: 2px; padding: 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.35);
  animation: pop .18s var(--ease-out);
}
.me-menu[hidden] { display: none; }
.me-menu button {
  display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 8px 10px; border-radius: 8px;
  text-align: left; font-size: 13.5px; color: var(--ink); transition: background-color .12s;
}
.me-menu button:hover, .me-menu button:focus-visible { background: var(--wash); outline: none; }
.me-menu button svg.i { color: var(--mute); }
[data-theme="dark"] .me-btn:hover, [data-theme="dark"] .me-btn[aria-expanded="true"], [data-theme="dark"] .me-menu button:hover { background: #262523; }
.ava-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.ava-opt {
  border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 9px; display: grid; place-items: center;
  transition: border-color .15s, transform .12s, box-shadow .15s;
}
.ava-opt:hover { border-color: #cfcac2; transform: translateY(-1px); }
.ava-opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ava-opt:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 900px) {
  .brand { display: flex; align-items: baseline; gap: 10px; padding: 0 4px; }
  .brand .serif { font-size: 22px; }
  .brand small { margin: 0; }
  .clock { padding-right: 10px; }
}
@media (max-width: 600px) {
  .me-t { display: none; }
  .top-online { display: none; }
  .ava-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 2.4: дашборд, история действий, реестр отказов ---------- */
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-h h3 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filters .sel { min-width: 150px; }
.filters-n { margin-left: auto; }
.date-f { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--soft); }
input.sel[type="date"] { min-width: 0; width: 150px; padding-right: 10px; background-image: none; font-variant-numeric: tabular-nums; }
.seg button { display: inline-flex; align-items: center; gap: 6px; transition: background-color .15s, color .15s; }
.seg button:not(.on):hover { color: var(--ink); background: rgba(255,255,255,.55); }
.head-acts .seg { padding: 3px; height: 38px; align-items: stretch; }
.more-row { display: flex; justify-content: center; margin-top: 12px; }
.lid-no { color: var(--mute); font-variant-numeric: tabular-nums; font-size: 12px; margin-right: 2px; }
.robot-who { display: inline-flex; align-items: center; gap: 5px; color: var(--soft); }
.click-rows tbody tr { cursor: pointer; }
.tbl tr.row-warn td { background: #fdf4ea; }
[data-theme="dark"] .tbl tr.row-warn td { background: rgba(183,121,31,.1); }
.tbl td .sub { display: block; font-size: 11.5px; color: var(--mute); margin-top: 3px; line-height: 1.3; }

.dash-kpi { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.dk { border: 1px solid var(--line); border-radius: var(--r-l); padding: 12px 14px; background: var(--paper); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dk span { font-size: 12.5px; color: var(--soft); }
.dk b { font-size: 26px; font-weight: 600; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk small { font-size: 11.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-done { background: #f1f8f3; border-color: #cfe5d6; }
.dk-done b { color: #2e7d4f; }
[data-theme="dark"] .dk-done { background: #1c3025; border-color: #2e573e; }
[data-theme="dark"] .dk-done b { color: #a2dab5; }
.dash-tbl td, .dash-tbl th { padding: 8px 6px; }
.dash-tbl th { font-size: 11.5px; }
.dash-tbl th:first-child, .dash-tbl td:first-child { padding-left: 12px; }
.dash-tbl th .sw { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--s-tx); margin-right: 5px; vertical-align: 1px; }
.dash-tbl .z { color: var(--line); }
.dash-tbl td.strong { font-weight: 600; }
[data-theme="dark"] .dash-tbl .z { color: #4a4742; }
.dash-two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: stretch; }
.dash-two .stat-list { gap: 7px; }
.dash-two .stat-row .bar { height: 4px; }
.dash-two > .card:first-child { display: flex; flex-direction: column; }
.dash-two .chart { flex: 1; min-height: 240px; height: auto; }
.feed-row { cursor: pointer; border-radius: 8px; padding: 4px 6px; margin: 0 -6px; transition: background-color .12s; }
.feed-row:hover { background: var(--wash); }
.feed .pill { margin-right: 4px; }

/* график: столбики отработки (бирюзовый) и заявок (фиолетовый), подсказка над столбиком */
.chart { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 6px; height: 220px; }
.ch-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--mute); text-align: right; padding-bottom: 20px; font-variant-numeric: tabular-nums; }
.ch-y span { transform: translateY(-50%); }
.ch-y span:last-child { transform: translateY(50%); }
.ch-plot { position: relative; display: flex; align-items: stretch; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.ch-grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--hair); }
.ch-col { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 4px; transition: background-color .12s; }
.ch-col:hover { background: rgba(21,21,21,.04); }
[data-theme="dark"] .ch-col:hover { background: rgba(255,255,255,.05); }
.ch-bars { height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; padding: 0 12%; }
.ch-bars i { flex: 1; max-width: 14px; min-height: 0; border-radius: 4px 4px 0 0; }
.b-w, .lg-w { background: #0f9187; }
.b-r, .lg-r { background: #6b4fb3; }
[data-theme="dark"] .b-w, [data-theme="dark"] .lg-w { background: #13a196; }
[data-theme="dark"] .b-r, [data-theme="dark"] .lg-r { background: #9a82dc; }
.ch-x { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); font-size: 10.5px; color: var(--mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ch-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); background: var(--ink); color: var(--paper); font-size: 12px; padding: 5px 9px; border-radius: 7px; white-space: nowrap; pointer-events: none; z-index: 2; box-shadow: 0 8px 20px -10px rgba(0,0,0,.5); }
.legend .lg-w, .legend .lg-r { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-right: 5px; vertical-align: -1px; }

@media (max-width: 1280px) {
  .dash-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .dash-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .dash-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters .sel, input.sel[type="date"] { flex: 1; min-width: 130px; }
  .filters-n { margin-left: 0; }
  .head-acts .seg { flex: 1; }
}
.dash-tbl td { white-space: nowrap; }
.head-acts .seg { flex-wrap: nowrap; }
.lf select.sel {
  background-color: var(--paper); padding: 0 34px 0 12px; height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d8a84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 5.5 6-5.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 14px;
}
[data-theme="dark"] .lf select.sel { background-color: transparent; }

/* ---------- живая жаба (01.11): карточка, «Моя жаба», «Пруд» ---------- */
.frog-stage.live { height: 176px; padding-top: 4px; overflow: visible; }
.apps-side .frog-stage.live { height: 190px; }
.frog-card .frog-stage.live { cursor: pointer; }
.frog-pts { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px 10px; }
.frog-pts-n { line-height: 1.2; color: var(--soft); font-size: 13px; }
.frog-pts-n b { font-family: 'Prata', Georgia, serif; font-weight: 400; font-size: 22px; color: var(--ink); margin-right: 2px; }
.frog-pts-n small { display: block; color: var(--ok); font-size: 12px; }
.frog-pts .btn { flex: none; }
.frog-stage .plus-one { z-index: 2; font-size: 17px; text-shadow: 0 1px 0 #fff; }

.w-top { display: grid; grid-template-columns: minmax(330px, 1fr) minmax(330px, 1.1fr); gap: 16px; margin-bottom: 18px; align-items: start; }
.w-me { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: center; overflow: hidden; }
.w-me .w-stage { height: 260px; border-bottom: 0; border-right: 1px solid var(--hair); }
.w-info { padding: 16px 18px; }
.w-bal { display: flex; align-items: baseline; gap: 6px; }
.w-bal b { font-family: 'Prata', Georgia, serif; font-weight: 400; font-size: 42px; line-height: 1.05; letter-spacing: -.01em; }
.w-bal span { color: var(--soft); font-size: 15px; }
.w-today { color: var(--ok); font-weight: 500; margin: 4px 0 12px; font-size: 13.5px; }
.w-today b { font-weight: 600; }
.goal { background: var(--wash); border: 1px solid var(--hair); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; line-height: 1.4; }
.goal .bar { height: 8px; background: var(--hair); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.goal .bar i { display: block; height: 100%; background: var(--frog-dark); border-radius: 99px; transition: width .5s var(--ease-out); }
.w-rules td { padding: 7px 4px; }
.w-rules td.num { text-align: right; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.w-rules tr:last-child td { border-bottom: 0; }
.w-avg { margin: 10px 0 0; line-height: 1.45; }
.w-tabs { margin: 0 0 12px; }
.w-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; }
.w-it { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 8px 10px 10px; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.w-it:hover { border-color: #cfcac2; }
.w-it.own { border-color: #bcd9b8; }
.w-it.on { border-color: var(--frog-dark); box-shadow: 0 0 0 3px rgba(76, 148, 67, .14); }
.w-pv { height: 162px; }
.w-it > b { font-weight: 500; font-size: 14px; margin-top: 2px; }
.w-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin: 3px 0 9px; font-size: 12px; color: var(--mute); }
.w-meta > span:last-child { text-align: right; }
.tier { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.t-base { background: #eef2ee; color: #3f6a4a; }
.t-rare { background: #e6efff; color: #2852a8; }
.t-leg { background: #fff3cc; color: #8a6200; }
.t-award { background: #fde7e7; color: #9b1c1c; }
.t-season { background: #e3f4f1; color: #0f766e; }
.w-slot { margin-top: auto; }
/* гардероб v2 (03.11): витрина дня, альбом коллекции, сезонные наборы */
.w-price { white-space: nowrap; }
.w-when { font-size: 11.5px; color: #0f766e; margin: -6px 0 8px; }
.w-deal { white-space: nowrap; font-size: 11px; font-weight: 600; color: #b42363; background: #fde4ee; border-radius: 999px; padding: 1px 7px; vertical-align: 1px; }
.w-old { color: var(--mute); text-decoration: line-through; }
.w-dealhint { margin: -4px 0 10px; }
.w-album { margin-bottom: 12px; }
.w-album h3 { margin: 0 0 8px; }
.w-album .goal { padding: 0; border: 0; background: none; }
.w-sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 12px; }
.w-set { border: 1px solid var(--hair); border-radius: 10px; padding: 8px 10px; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 13px; }
.w-set small { grid-column: 1 / -1; color: var(--mute); font-size: 12px; }
.w-set .bar { grid-column: 1 / -1; height: 6px; background: var(--hair); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.w-set .bar i { display: block; height: 100%; background: var(--frog-dark); border-radius: 99px; }
.w-set.done { border-color: #bcd9b8; background: #f3faf1; }
.w-alb .w-pv { height: 132px; }
.w-it.ghost .w-pv { filter: brightness(0) opacity(.16); }
.w-it.ghost .w-pv.w-secret { filter: none; display: grid; place-items: center; font-size: 46px; font-weight: 700; color: #c9bfe9; background: #f6f3fc; border-radius: 10px; }
.w-it.ghost > b { color: var(--mute); }
.w-act { width: 100%; justify-content: center; }
.btn.w-act:disabled, .btn.w-act:disabled:hover { color: var(--mute); background: var(--wash); border-color: var(--line); cursor: default; transform: none; }
.btn.w-act.w-sure, .btn.w-act.w-sure:hover { background: var(--warn); border-color: var(--warn); color: #fff; }
.w-act.w-wear { border-color: var(--frog-dark); color: var(--frog-dark); font-weight: 500; }
.w-act.w-wear.on { background: #eef6ec; }
.w-log { padding: 2px 16px; }
.w-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hair); align-items: baseline; font-size: 13.5px; }
.w-row:last-child { border-bottom: 0; }
.w-row .sub { display: block; font-size: 12px; color: var(--mute); }
.plus { color: var(--ok); } .minus { color: var(--err); }
[data-theme="dark"] .t-base { background: #24321f; color: #b9dcae; }
[data-theme="dark"] .t-rare { background: #1f2a44; color: #a9c2f5; }
[data-theme="dark"] .t-leg { background: #3a3014; color: #f0d27a; }
[data-theme="dark"] .t-award { background: #3d2222; color: #f3a99f; }
[data-theme="dark"] .t-season { background: #163330; color: #8fdccf; }
[data-theme="dark"] .w-it.own { border-color: #3c5636; }
[data-theme="dark"] .w-act.w-wear.on { background: #1f2a1d; }
[data-theme="dark"] .frog-stage .plus-one { text-shadow: none; }

.pond-live { position: relative; width: 100%; border-radius: 14px; overflow: hidden; border: 2px solid #17191f; background: #9fd3c7; }
.pond-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pond-op { position: absolute; width: calc(68% / var(--per, 4)); height: calc(72% / var(--rows, 1)); transform: translate(-50%, -80%); }
.pond-frog { width: 100%; height: 100%; }
.pond-tag { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 2px; white-space: nowrap; text-align: center; font-weight: 600;
  font-size: clamp(11px, 1.05vw, 14px); line-height: 1.25; background: #fff; color: #17191f; border: 2px solid #17191f; border-radius: 999px; padding: 2px 12px; }
.pond-tag small { display: block; font-weight: 500; color: #4b5563; font-size: .84em; }
.pond-tag.off { opacity: .72; }
.pond-live .ripple { animation: pond-rip 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pond-rip { 0%, 100% { opacity: .9; transform: scaleX(.7); } 50% { opacity: .2; transform: scaleX(1.25); } }
.pond-live .reed { animation: pond-sway 5s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom center; }
@keyframes pond-sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2.5deg); } }
.pond-two { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; margin: 16px 0; align-items: start; }
.pond-two h3 { margin-top: 0; }
#pond-tbl.tbl-wrap { border: 0; border-radius: 0; background: transparent; }
.pond-tbl .person { gap: 8px; }
.pond-tbl td.num, .pond-tbl th.num { text-align: right; }
.pond-crown, .pond-medal { font-size: 11px; padding: 1px 7px; gap: 4px; vertical-align: 1px; }
.pond-crown { background: #fff3cc; color: #8a6200; }
.pond-medal { background: #fde7e7; color: #9b1c1c; }
.pond-feed { max-height: 330px; overflow-y: auto; }
.pf-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--hair); font-size: 13px; align-items: baseline; }
.pf-row:last-child { border-bottom: 0; }
.pf-row .sub { display: block; font-size: 12px; color: var(--mute); }
.pf-row b:first-child { font-weight: 500; }
.eco-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.eco-head h3 { margin: 0 0 2px; }
.eco-head .hint { margin: 0; max-width: 620px; }
.eco-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.eco-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.eco-grid fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px 12px; margin: 0; min-width: 0; }
.eco-grid legend { font-weight: 500; padding: 0 6px; }
.eco-f { grid-template-columns: minmax(0, 1fr) 96px; align-items: center; gap: 10px; margin: 7px 0; }
.eco-f > span { color: var(--ink); font-size: 13px; }
.eco-f > span .sub { display: block; font-size: 11.5px; color: var(--mute); }
.eco-f input { text-align: right; }
.eco-grid .hint { margin: 10px 0 0; }
[data-theme="dark"] .pond-crown { background: #3a3014; color: #f0d27a; }
[data-theme="dark"] .pond-medal { background: #3d2222; color: #f3a99f; }

@media (max-width: 1100px) { .eco-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 900px) {
  .w-top, .pond-two, .eco-grid { grid-template-columns: minmax(0, 1fr); }
  .w-me { grid-template-columns: minmax(0, 1fr); }
  .w-me .w-stage { border-right: 0; border-bottom: 1px solid var(--hair); height: 230px; }
  .w-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .w-pv { height: 130px; }
  .w-row { grid-template-columns: 84px minmax(0, 1fr) auto; }
}
@media (max-width: 700px) { .pond-tag small { display: none; } .pond-tag { padding: 1px 8px; } }

/* ---------- «Помощь» (01.11): темы плитками, шаги со снимками, «?» в шапке ---------- */
.help-q { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  color: var(--soft); background: var(--paper); transition: border-color .15s, color .15s, background-color .15s; }
.help-q:hover { border-color: var(--ink); color: var(--ink); }
.help-q:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.help-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 16px; border-bottom: 1px solid var(--line); }
.help-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 11px; margin-bottom: -1px; color: var(--soft); text-decoration: none;
  border-bottom: 2px solid transparent; font-weight: 500; transition: color .15s, border-color .15s; }
.help-tab b { font-weight: 500; font-size: 11.5px; color: var(--mute); background: var(--wash); border-radius: 999px; padding: 0 7px; }
.help-tab:hover { color: var(--ink); }
.help-tab.on { color: var(--ink); border-bottom-color: var(--ink); }
.help-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.help-tile { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 3px; align-items: start;
  padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); color: var(--ink); text-decoration: none;
  transition: border-color .15s, transform .12s, box-shadow .15s; }
.help-tile:hover { border-color: #c9c5bd; box-shadow: 0 10px 24px -20px rgba(21,21,21,.45); }
.help-tile:active { transform: scale(.99); }
.help-tile .help-ic { grid-row: 1 / 4; width: 40px; height: 40px; border-radius: 10px; background: var(--wash); display: grid; place-items: center; color: var(--ink); }
.help-tile b { font-weight: 500; font-size: 15px; }
.help-tile > span:not(.help-ic) { color: var(--soft); font-size: 13px; line-height: 1.4; }
.help-tile small { color: var(--mute); font-size: 12px; margin-top: 4px; }
.help-tile.wip { opacity: .55; }
.help-crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--mute); font-size: 13px; margin-bottom: 6px; }
.help-crumbs a { color: var(--soft); text-decoration: none; }
.help-crumbs a:hover { color: var(--ink); }
.help-crumbs svg { transform: rotate(-90deg); opacity: .6; }
.help-topic { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; max-width: 1180px; }
.help-parts { position: sticky; top: 76px; }
.help-parts ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.help-parts a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px;
  color: var(--soft); text-decoration: none; line-height: 1.3; transition: background-color .15s, color .15s; }
.help-parts a:hover { background: var(--paper); color: var(--ink); }
.help-parts a.on { background: var(--paper); color: var(--ink); font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); }
.help-n { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12.5px; font-weight: 600; background: var(--paper); }
.help-parts a.on .help-n { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.help-part { padding: 20px 24px 18px; }
.help-part-k { color: var(--mute); font-size: 12.5px; }
.help-part h2 { font-family: 'Prata', Georgia, serif; font-weight: 400; font-size: 26px; line-height: 1.2; margin: 4px 0 10px; }
.help-part > p { margin: 0 0 10px; font-size: 15px; line-height: 1.55; max-width: 720px; }
.help-list { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; line-height: 1.5; max-width: 720px; }
.help-img { display: block; max-width: min(100%, 820px); height: auto; margin-top: 6px; border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: 0 10px 30px -22px rgba(21,21,21,.5); }
.help-pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hair); flex-wrap: wrap; }
.help-pager .btn { text-decoration: none; }
.help-pager .btn:first-child svg { transform: rotate(90deg); }
.help-pager .btn-ink svg { transform: rotate(-90deg); margin-left: 2px; }
kbd { display: inline-block; min-width: 1.6em; padding: 0 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px;
  background: var(--paper); font: 500 12.5px/1.6 'Onest', system-ui, sans-serif; text-align: center; color: var(--ink); vertical-align: 1px; }
.help-see { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.help-see .chip { text-decoration: none; }
@media (max-width: 900px) {
  .help-topic { grid-template-columns: minmax(0, 1fr); }
  .help-parts { position: static; overflow-x: auto; margin: 0 -4px; padding: 0 4px 4px; }
  .help-parts ol { display: flex; gap: 6px; width: max-content; }
  .help-parts a { grid-template-columns: 22px auto; padding: 6px 10px; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line); }
  .help-n { width: 22px; height: 22px; font-size: 11.5px; }
  .help-part { padding: 16px; }
  .help-part h2 { font-size: 22px; }
  .help-tab { padding: 8px 10px 9px; }
}
/* чат: удаление администратором (крестик на сообщении, «Очистить чат» в шапке; второе нажатие подтверждает) */
.chat-head { padding-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chat .msg { position: relative; }
.msg-x { position: absolute; top: 4px; right: 4px; border: 0; background: transparent; color: var(--mute); border-radius: 6px; padding: 3px; line-height: 0; cursor: pointer; opacity: .55; font: inherit; font-size: 11.5px; }
.msg-x:hover, .msg-x:focus-visible { color: var(--err); background: var(--hair); opacity: 1; }
@media (hover: hover) { .msg-x { opacity: 0; } .msg:hover .msg-x, .msg-x:focus-visible, .msg-x.sure { opacity: 1; } }
.msg-x.sure { line-height: 1.3; padding: 2px 7px; color: #fff; background: var(--err); opacity: 1; }
.chat-clear.sure, .chat-clear.sure:hover { background: var(--err); border-color: var(--err); color: #fff; }
.chat .msg b { padding-right: 18px; }

/* передача лидов администратором (03.11) */
.mv1 { display: flex; gap: 8px; align-items: center; }
.mv1 .sel { min-width: 220px; }
#mv-n { width: 110px; height: 38px; text-align: left; padding: 6px 10px; }
#mv-to { min-width: 240px; }

/* «Новая заявка» без лида (03.11) */
.new-order { display: grid; gap: 14px; }
.new-order .row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.new-order label { display: block; min-width: 0; }
.new-order input, .new-order textarea {
  border: 1px solid var(--line); border-radius: var(--r-m); padding: 9px 12px; width: 100%; font-size: 15px; background: var(--paper);
}
.new-order textarea { min-height: 64px; resize: vertical; font-size: 14px; }
.new-order input:focus, .new-order textarea:focus { outline: none; border-color: var(--ink); }
@media (max-width: 560px) { .new-order .row2 { grid-template-columns: minmax(0, 1fr); } }

/* подарок к новому рабочему месту (03.11): окно с коробкой, конфетти и своей жабой */
.dialog.gift { width: min(440px, 100%); text-align: center; padding: 18px 26px 22px; }
.gift h2 { font-family: 'Prata', Georgia, serif; font-weight: 400; font-size: 23px; margin: 6px 0 8px; line-height: 1.2; }
.gift-text { margin: 0 0 18px; line-height: 1.5; color: var(--ink-2, #3d3d3d); }
.gift-pts { color: #b42363; font-size: 17px; }
.gift-foot { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.gift-stage { position: relative; height: 178px; display: grid; place-items: center; }
.gift-box { all: unset; cursor: pointer; width: 150px; height: 150px; display: block; animation: gift-wiggle 2.4s ease-in-out infinite; transform-origin: 50% 85%; }
.gift-box:focus-visible { outline: 2px solid var(--frog-dark); outline-offset: 4px; border-radius: 12px; }
.gift-box svg { width: 100%; height: 100%; overflow: visible; }
.gift-box .gift-lid, .gift-box .gift-body { transition: transform .6s cubic-bezier(.2,.8,.2,1.2), opacity .5s; transform-box: fill-box; transform-origin: 50% 100%; }
.gift-box.open { animation: none; cursor: default; }
.gift-box.open .gift-lid { transform: translate(-6px, -46px) rotate(-22deg); opacity: 0; }
.gift-box.open .gift-body { transform: scale(.82) translateY(10px); opacity: 0; transition-delay: .35s; }
.gift-frog { position: absolute; inset: 6px 0 0; display: grid; place-items: center; pointer-events: none; }
.gift-frog > svg { width: 150px !important; height: 168px !important; }
.gift-cf { position: absolute; left: 50%; top: 55%; width: 0; height: 0; pointer-events: none; }
.gift-cf i { position: absolute; width: 9px; height: 5px; border-radius: 2px; opacity: 0; animation: gift-burst 1.5s cubic-bezier(.15,.7,.3,1) forwards; }
@keyframes gift-wiggle { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-6deg); } 82% { transform: rotate(5deg); } 88% { transform: rotate(-3deg); } 94% { transform: rotate(2deg); } }
@keyframes gift-burst { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }
@media (prefers-reduced-motion: reduce) { .gift-box { animation: none; } .gift-cf i { animation-duration: .01s; } }
