/* «Учёт мобилок» в стиле AURUM HUB — «Кошелёк», утверждённый Боссом 11.09.2026.
   Просьба Босса 14.09.2026: «сделай дизайн как в aurum hub в мобилках».
   Токены и размеры те же, что в aurum-hub/static/css/style.css: светлая тема
   здесь, тёмная переопределяет только значения. Один файл на панель и вход. */

:root {
  --bg: #EEF0F4; --card: #FFFFFF; --soft: #F4F5F8;
  --ink: #15171C; --ink2: #555B66; --ink3: #8A909B;
  --on-ink: #FFFFFF;
  --acc: #4F46E5; --acc-glow: rgba(79, 70, 229, .35);
  --warn: #E5702A; --bad: #D14343; --ok: #16A34A;
  --line: #EEF0F4; --edge: #E4E7ED; --hover: #EDEFF3; --hair: #C3CAD8;
  --shade: 21, 23, 28; --card-edge: transparent;
  --ok-bg: #E2F3E7; --ok-fg: #12662F; --done-bg: #E8EAFB; --done-fg: #2A36B8;
  --wait-bg: #FDEBD8; --wait-fg: #9A4A0A; --bad-bg: #FBE0E0; --bad-fg: #9A1B1B;
  --flat-bg: rgba(120, 128, 140, .14);
  --key-line: #C2C8D6; --glow: rgba(79, 70, 229, .20);
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --logo: "Inter", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0D0E12; --card: #16181D; --soft: #1D2027;
  --ink: #F2F4F7; --ink2: #AEB4BE; --ink3: #7C838F;
  --on-ink: #0D0E12;
  --acc: #8F88FF; --acc-glow: rgba(143, 136, 255, .55);
  --warn: #F08A4B; --bad: #F2685E; --ok: #34C778;
  --line: #22252D; --edge: #2A2E38; --hover: #23262E; --hair: #3A3F4B;
  --shade: 0, 0, 0; --card-edge: #22252D;
  --ok-bg: rgba(52, 199, 120, .14); --ok-fg: #5FD394;
  --done-bg: rgba(129, 140, 248, .16); --done-fg: #A5B4FC;
  --wait-bg: rgba(240, 138, 75, .16); --wait-fg: #FFB48A;
  --bad-bg: rgba(242, 104, 94, .16); --bad-fg: #FF9A91;
  --flat-bg: rgba(174, 180, 190, .12);
  --key-line: #3A3F4B; --glow: rgba(124, 116, 255, .24);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0D0E12; --card: #16181D; --soft: #1D2027;
    --ink: #F2F4F7; --ink2: #AEB4BE; --ink3: #7C838F;
    --on-ink: #0D0E12;
    --acc: #8F88FF; --acc-glow: rgba(143, 136, 255, .55);
    --warn: #F08A4B; --bad: #F2685E; --ok: #34C778;
    --line: #22252D; --edge: #2A2E38; --hover: #23262E; --hair: #3A3F4B;
    --shade: 0, 0, 0; --card-edge: #22252D;
    --ok-bg: rgba(52, 199, 120, .14); --ok-fg: #5FD394;
    --done-bg: rgba(129, 140, 248, .16); --done-fg: #A5B4FC;
    --wait-bg: rgba(240, 138, 75, .16); --wait-fg: #FFB48A;
    --bad-bg: rgba(242, 104, 94, .16); --bad-fg: #FF9A91;
    --flat-bg: rgba(174, 180, 190, .12);
    --key-line: #3A3F4B; --glow: rgba(124, 116, 255, .24);
    color-scheme: dark;
  }
}

/* ---------------------------------------------------------------- каркас */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans);
  font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select { font-family: inherit; }
[hidden] { display: none !important; }
/* таблице нужна ширина, поэтому шире, чем у пульта (1180) */
.wrap { display: grid; gap: 14px; max-width: 1280px; margin: 0 auto; padding: 18px 24px 40px; }
.wrap > *, #view > * { min-width: 0; }
#view, #tilehost { display: grid; gap: 14px; }
#tilehost { gap: 12px; }

/* ---------------------------------------------------------------- шапка */
.top { display: flex; align-items: center; gap: 10px; background: var(--card);
  border-radius: 999px; padding: 8px 10px 8px 20px; }
.logo { display: flex; align-items: baseline; gap: 14px; margin-right: auto; min-width: 0; }
.br-word { font: 800 15px/1 var(--logo); letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap; }
.br-word b { margin-left: .35em; font-weight: 800; color: var(--acc);
  text-shadow: 0 0 14px var(--acc-glow); }
.sub { font-size: 13px; color: var(--ink3); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.savestate { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px;
  border-radius: 999px; background: var(--soft); font-size: 13px; color: var(--ink2);
  white-space: nowrap; }
.savestate::before { content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink3); }
.savestate.on::before { background: var(--ok); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px;
  border-radius: 999px; background: var(--soft); color: var(--ink2); font-size: 13.5px;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.pill:hover { background: var(--ink); color: var(--on-ink); }
.pill:active { transform: scale(.95); }
.theme { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 999px; background: var(--soft); color: var(--ink2); cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.theme:hover { background: var(--ink); color: var(--on-ink); }
.theme:active { transform: scale(.94); }
.pill:focus-visible, .theme:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
/* видна одна кнопка — та, что ведёт в другую тему */
.theme.to-light { display: none; }
:root[data-theme="dark"] .theme.to-dark { display: none; }
:root[data-theme="dark"] .theme.to-light { display: inline-grid; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme.to-dark { display: none; }
  :root:not([data-theme]) .theme.to-light { display: inline-grid; }
}

/* ---------------------------------------------------------------- вкладки */
.tabs { display: flex; flex-wrap: wrap; gap: 2px; justify-self: start; max-width: 100%;
  background: var(--card); border-radius: 22px; padding: 4px; }
.tab { appearance: none; border: 0; background: transparent; cursor: pointer;
  padding: 8px 16px; border-radius: 999px; font: 500 14px/1.2 var(--sans); color: var(--ink2);
  white-space: nowrap; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.tab:hover { background: var(--hover); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }
.tab:active { transform: scale(.95); }
.tab:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ---------------------------------------------------------------- плашки */
.notice { display: flex; gap: 12px 16px; align-items: center; flex-wrap: wrap;
  background: var(--card); border-radius: 20px; padding: 14px 18px; }
.notice p { margin: 0; flex: 1 1 320px; font-size: 13.5px; color: var(--ink2); }
.notice strong { color: var(--ink); font-weight: 700; }
#stale.notice { background: var(--wait-bg); }
#stale.notice p, #stale.notice strong { color: var(--wait-fg); }

/* ---------------------------------------------------------------- поиск */
.search { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.search input { flex: 0 1 380px; min-width: 240px; height: 44px; border: 0; border-radius: 999px;
  background-color: var(--card); color: var(--ink); font: 500 14.5px/1 var(--sans);
  padding: 0 18px 0 42px; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238A909B' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 16px 50%; transition: box-shadow .2s ease; }
.search input::placeholder { color: var(--ink3); }
.search input:hover { box-shadow: inset 0 0 0 1px var(--hair); }
.search input:focus { box-shadow: inset 0 0 0 2px var(--acc); }
.search-note { font-size: 13px; color: var(--ink3); }
.search-note b { color: var(--ink); font-weight: 700; }
.found { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px;
  color: var(--ink2); }
.found .jump { appearance: none; border: 0; cursor: pointer; padding: 7px 13px; border-radius: 999px;
  background: var(--card); font: 600 13px/1 var(--sans); color: var(--ink);
  transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.found .jump:hover { background: var(--ink); color: var(--on-ink); }
.found .jump:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ---------------------------------------------------------------- лист сотрудника */
.wshead { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.field { display: grid; gap: 3px; background: var(--card); border-radius: 20px; padding: 12px 18px;
  transition: box-shadow .2s ease; }
.field label { font-size: 13px; color: var(--ink2); }
.field input { width: 100%; border: 0; background: transparent; color: var(--ink);
  font: 600 15.5px/1.3 var(--sans); padding: 0; outline: none; }
.field input::placeholder { color: var(--ink3); font-weight: 500; }
.field:focus-within { box-shadow: inset 0 0 0 2px var(--acc); }

/* ---------------------------------------------------------------- цифры */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { display: grid; gap: 6px; align-content: start; padding: 16px 18px; background: var(--card);
  border-radius: 24px; box-shadow: inset 0 0 0 1px var(--card-edge);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s cubic-bezier(.2,.8,.2,1); }
.tile:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(var(--shade), .10); }
.tile .k { font-size: 13.5px; color: var(--ink2); }
.tile .v { font-size: 34px; line-height: 1.05; font-weight: 700; letter-spacing: -.03em;
  white-space: nowrap; font-variant-numeric: tabular-nums; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px;
  border-radius: 999px; background: var(--card); font-size: 13px; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip .n { font-weight: 700; font-variant-numeric: tabular-nums; }
.chip .l { color: var(--ink2); }
.s-ok .dot { background: var(--ok); }    .s-ok .n { color: var(--ok-fg); }
.s-warn .dot { background: var(--warn); } .s-warn .n { color: var(--wait-fg); }
.s-crit .dot { background: var(--bad); }  .s-crit .n { color: var(--bad-fg); }
.s-park .dot { background: var(--ink3); } .s-park .n { color: var(--ink2); }

/* ---------------------------------------------------------------- таблица */
.panel { background: var(--card); border-radius: 24px; box-shadow: inset 0 0 0 1px var(--card-edge);
  padding: 8px 12px 12px; overflow: hidden; }
.scroller { overflow-x: auto; }
table { border-collapse: separate; border-spacing: 0; width: 100%; }
thead th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--ink3);
  text-transform: uppercase; letter-spacing: .05em; padding: 12px 12px 10px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
thead th.num { text-align: right; }
thead th.mid { text-align: center; }
tbody td { padding: 0; vertical-align: middle; transition: background-color .2s ease; }
tbody tr + tr td { box-shadow: inset 0 1px 0 var(--line); }
tbody tr:hover td { background: var(--soft); box-shadow: none; }
tbody tr:hover td:first-child { border-radius: 12px 0 0 12px; }
tbody tr:hover td:last-child { border-radius: 0 12px 12px 0; }
/* ширина столбца — по содержимому; ФИО забирает остаток (14.09.2026: убраны
   «Прокси» и «Кто сделал», их место разошлось по остальным столбцам) */
table.sheet { table-layout: fixed; min-width: 1120px; }
col.c-pick { width: 40px; }   col.c-phone { width: 150px; } col.c-num { width: 140px; }
col.c-zaliv { width: 120px; } col.c-status { width: 150px; } col.c-when { width: 140px; }
col.c-rm { width: 44px; }

.cell { width: 100%; border: 0; background: transparent; color: var(--ink);
  font: 400 14px/1.3 var(--sans); padding: 11px 12px; border-radius: 10px; outline: none;
  font-variant-numeric: tabular-nums; text-overflow: ellipsis;
  transition: box-shadow .15s ease, background-color .15s ease; }
.cell:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--edge); }
.cell:focus { background: var(--card); box-shadow: inset 0 0 0 2px var(--acc); }
.cell.num { text-align: right; }
.cell::placeholder { color: var(--ink3); opacity: .7; }

/* статус телефона — плашка его цвета, как статусы заказов в пульте */
.selwrap { position: relative; display: inline-block; margin: 5px 8px; max-width: calc(100% - 16px); }
select.cell { appearance: none; -webkit-appearance: none; cursor: pointer; width: auto; min-width: 104px;
  max-width: 100%; padding: 7px 28px 7px 12px; border-radius: 999px; background: var(--soft);
  color: var(--ink2); font-weight: 600; font-size: 13px; }
select.cell option { background: var(--card); color: var(--ink); font-weight: 500; }
.selwrap::after { content: ""; position: absolute; right: 12px; top: 50%; margin-top: -2px;
  pointer-events: none; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; color: var(--ink3); }
td.st-ok select.cell { background: var(--ok-bg); color: var(--ok-fg); }
td.st-warn select.cell { background: var(--wait-bg); color: var(--wait-fg); }
td.st-crit select.cell { background: var(--bad-bg); color: var(--bad-fg); }
td.st-park select.cell { background: var(--flat-bg); color: var(--ink2); }
td.st-ok .selwrap::after { color: var(--ok-fg); }
td.st-warn .selwrap::after { color: var(--wait-fg); }
td.st-crit .selwrap::after { color: var(--bad-fg); }

th.pick, td.pick { padding: 0 8px 0 14px; }
th.pick input, td.pick input { cursor: pointer; width: 16px; height: 16px; accent-color: var(--acc);
  margin: 0; display: block; }
tr.picked td { background: var(--done-bg); }
td.when { font-size: 12.5px; color: var(--ink3); padding: 11px 12px; white-space: nowrap; }
td.nothing { padding: 22px 14px; color: var(--ink3); font-size: 13.5px; text-align: center; }
.rm { appearance: none; border: 0; background: transparent; cursor: pointer; color: var(--ink3);
  font-size: 18px; line-height: 1; width: 30px; height: 30px; border-radius: 999px;
  transition: background-color .2s ease, color .2s ease; }
.rm:hover { background: var(--bad-bg); color: var(--bad-fg); }
.rm:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }

/* лист-пример: бледный и не нажимается */
.demo tbody .cell, .demo tbody select.cell { color: var(--ink3); -webkit-text-fill-color: var(--ink3);
  font-style: italic; opacity: 1; }
.demo tbody tr:hover td { background: transparent; }

/* залив: «− 0 +» */
.zbox { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 6px; }
.zbox .cell { flex: 0 0 38px; width: 38px; min-width: 0; text-align: center;
  padding-left: 2px; padding-right: 2px; }
.zbtn { appearance: none; cursor: pointer; flex: 0 0 26px; width: 26px; height: 26px; padding: 0;
  border: 0; border-radius: 999px; background: var(--soft); color: var(--ink2);
  font: 600 15px/1 var(--sans); transition: background-color .2s ease, color .2s ease, transform .2s ease; }
tbody tr:hover .zbtn { background: var(--card); }
.zbtn:hover, tbody tr:hover .zbtn:hover { background: var(--ink); color: var(--on-ink); }
.zbtn:active { transform: scale(.92); }

/* подсказка под клеткой с цифрой: что сохранится */
.numhint { position: fixed; z-index: 40; pointer-events: none; white-space: nowrap;
  background: var(--card); color: var(--ink2); border-radius: 12px; padding: 7px 11px;
  box-shadow: 0 14px 34px rgba(var(--shade), .18), inset 0 0 0 1px var(--card-edge);
  font: 500 12.5px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.numhint b { color: var(--ink); font-weight: 700; }
.numhint.bad { color: var(--bad-fg); box-shadow: 0 14px 34px rgba(var(--shade), .18), inset 0 0 0 1px var(--bad); }
.numhint.bad b { color: var(--bad-fg); }

/* ---------------------------------------------------------------- кнопки */
.tfoot { display: flex; gap: 8px 10px; flex-wrap: wrap; align-items: center; padding: 12px 6px 2px; }
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 15px; border: 0; border-radius: 999px; background: var(--soft); color: var(--ink);
  font: 600 13.5px/1 var(--sans); cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }
.btn:hover { background: var(--ink); color: var(--on-ink); }
.btn:active { transform: scale(.96); }
.btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.btn.primary { background: var(--ink); color: var(--on-ink); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(var(--shade), .22); }
.btn.quiet { background: transparent; color: var(--ink3); font-weight: 500; padding: 9px 12px; }
.btn.quiet:hover { background: var(--bad-bg); color: var(--bad-fg); }
.btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.tip { margin-left: auto; font-size: 12.5px; color: var(--ink3); }
.tip b { color: var(--ink2); font-weight: 600; }

/* отмеченные галочками строки: что с ними сделать */
.bulkbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-left: auto;
  background: var(--done-bg); border-radius: 999px; padding: 4px 4px 4px 14px; }
.bulkn, .bulklbl { font-size: 13px; color: var(--done-fg); white-space: nowrap; }
.bulkn { font-weight: 700; }
select.tgtsel { appearance: none; -webkit-appearance: none; cursor: pointer; border: 0; border-radius: 999px;
  padding: 9px 30px 9px 14px; font: 600 13px/1 var(--sans); color: var(--ink);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%238A909B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center; }
select.tgtsel:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.bulknote { font-size: 13px; font-weight: 600; color: var(--ok-fg); white-space: nowrap; }

/* ---------------------------------------------------------------- сводка Босса */
.brk { min-width: 760px; }
.brk td { padding: 12px; font-size: 14px; }
.brk td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.brk .jump { appearance: none; border: 0; background: transparent; cursor: pointer; padding: 0;
  font: 600 14px/1.2 var(--sans); color: var(--ink); text-align: left; }
.brk .jump:hover { color: var(--acc); }
.brk .jump:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.muted { color: var(--ink3); }

/* сотрудники и их ссылки */
.links { display: grid; gap: 8px; margin-top: 6px; }
.links h2 { margin: 0; font-size: 16px; font-weight: 700; }
.links .hint { margin: 0 0 4px; font-size: 12.5px; color: var(--ink3); }
.links .panel { padding: 6px 8px; }
.linkrow { display: flex; gap: 8px 10px; align-items: center; flex-wrap: wrap; padding: 9px 10px;
  border-radius: 14px; transition: background-color .2s ease; }
.linkrow + .linkrow { box-shadow: inset 0 1px 0 var(--line); }
.linkrow:hover { background: var(--soft); box-shadow: none; }
.linkrow .who { flex: 0 0 170px; font-size: 14px; font-weight: 600; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.linkrow input { flex: 1 1 260px; min-width: 0; height: 36px; border: 0; border-radius: 999px;
  background: var(--soft); color: var(--ink2); font: 500 12.5px/1 var(--sans); padding: 0 14px;
  outline: none; transition: background-color .2s ease, box-shadow .2s ease; }
.linkrow:hover input { background: var(--card); }
.linkrow input:focus { box-shadow: inset 0 0 0 2px var(--acc); color: var(--ink); }
.linkrow.fresh, .linkrow.fresh:hover { background: var(--done-bg); }
.freshnote { font-size: 12.5px; font-weight: 600; color: var(--done-fg); }
.addrow, .addrow:hover { background: var(--soft); box-shadow: none !important; margin-top: 6px; }
.linkrow input.newname { flex: 0 1 300px; height: 40px; background: var(--card); color: var(--ink);
  font-size: 14px; }
.addnote { font-size: 12.5px; color: var(--bad-fg); }

/* ---------------------------------------------------------------- вход */
/* Как у пульта: ни заголовка, ни подписей — строка для пароля и логотип вместо кнопки */
.login-body { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 24px; }
.k-login::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(36vmax 36vmax at 50% 44%, var(--glow), transparent 72%);
  animation: aurBreath 9s ease-in-out infinite; }
@keyframes aurBreath { 0%, 100% { opacity: .62; } 50% { opacity: 1; } }
.k-gate { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: center;
  width: min(300px, 100%); }
.k-slot { position: relative; display: grid; gap: 12px; width: 100%; }
.k-key { width: 100%; height: 52px; border: 0; background: transparent; text-align: center;
  color: var(--ink); caret-color: var(--acc); outline: none;
  font: 600 24px/1 var(--logo); letter-spacing: .45em; text-indent: .45em; }
.k-key:-webkit-autofill, .k-key:-webkit-autofill:hover, .k-key:-webkit-autofill:focus,
.k-key:autofill, .k-key:autofill:hover, .k-key:autofill:focus {
  -webkit-text-fill-color: var(--ink); -webkit-box-shadow: 0 0 0 1000px transparent inset;
  box-shadow: 0 0 0 1000px transparent inset; background: transparent !important;
  background-image: none !important; filter: none !important; caret-color: var(--acc);
  transition: background-color 9999s ease-in-out 0s; }
.k-line { height: 2px; border-radius: 2px; background: var(--key-line);
  box-shadow: 0 0 14px rgba(79, 70, 229, .14);
  transition: background .35s ease, box-shadow .35s ease, transform .35s ease; }
.k-key:focus ~ .k-line { transform: scaleY(1.5);
  background: linear-gradient(90deg, transparent, var(--acc) 18%, var(--acc) 82%, transparent);
  box-shadow: 0 0 20px rgba(79, 70, 229, .45); }
.k-enter { border: 0; cursor: pointer; padding: 16px 32px; border-radius: 999px; background: #FFFFFF;
  box-shadow: 0 10px 30px rgba(var(--shade), .10), inset 0 0 0 1px rgba(var(--shade), .05);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease; }
.k-enter .br-word { color: #15171C; font-size: 14px; }
.k-enter .br-word b { color: #4F46E5; text-shadow: 0 0 14px rgba(79, 70, 229, .40); }
.k-enter:hover { transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(var(--shade), .14), 0 0 28px rgba(79, 70, 229, .30),
              inset 0 0 0 1px rgba(79, 70, 229, .22); }
.k-enter:active { transform: scale(.97); }
.k-enter:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.k-quiet { margin: -12px 0 0; font-size: 12.5px; color: var(--ink3); letter-spacing: .02em; }

/* ---------------------------------------------------------------- узкий экран */
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .wrap { padding: 12px 14px 32px; gap: 12px; }
  .top { border-radius: 20px; flex-wrap: wrap; padding: 10px 12px; }
  .logo { flex-wrap: wrap; gap: 4px 12px; }
  .br-word { font-size: 13px; letter-spacing: .26em; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-self: stretch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tile { padding: 12px 13px; border-radius: 20px; }
  .tile .v { font-size: 23px; }
  .search input { flex: 1 1 100%; }
  .tip { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before { transition: none !important; animation: none !important; }
  .tile:hover, .btn.primary:hover, .k-enter:hover { transform: none; }
}
