/* Трекер активностей. Всё общее (цвета, шрифты, .top, .tabs, .card.item, кнопки, .md) — в /theme/cerberus.css.
   Здесь только раскладка трекера; свои классы — с префиксом .at- или существующие id. Сырых цветов нет. */
@import url("/theme/cerberus.css");

.clock { font-variant-numeric: tabular-nums; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--muted); }
.controls select { max-width: 240px; }

.searchbar {
  display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap;
  max-width: var(--maxw); margin: 14px auto 0; padding: 0 var(--gutter);
}
.searchbar input[type=search] { flex: 1; min-width: 200px; }
.toggle { font-size: var(--fs-sm); display: flex; gap: var(--sp-2); align-items: center; color: var(--muted); cursor: pointer; }

main { padding-top: 6px; }
.when { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--muted); }
.count { font-variant-numeric: tabular-nums; font-weight: var(--fw-black); color: var(--title); }
.done { opacity: .5; }
.done .title { text-decoration: line-through; }
.done:hover { opacity: .8; }
.actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.at-foot { max-width: var(--maxw); margin: 0 auto; padding: var(--sp-5) var(--gutter) var(--sp-5); text-align: center; font-size: var(--fs-sm); }
.at-foot a { display: inline-flex; align-items: center; gap: 6px; }
/* иконки вкладок и кнопка «Топ» в шапке модуля (17.11.2026) */
.tabs button, .tabs a[data-tab] { display: inline-flex; align-items: center; gap: 6px; }
.tabs a[data-tab] { text-decoration: none; }
.tabs button .icon, .tabs a[data-tab] .icon { opacity: .8; }
.tabs button.active .icon, .tabs a[data-tab].active .icon { opacity: 1; color: var(--accent); }
.at-topbtn { display: inline-flex; align-items: center; gap: 6px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); border: 0; font-weight: var(--fw-semibold); }
.at-topbtn:hover { background: color-mix(in srgb, var(--accent) 30%, transparent); filter: none; }
.at-topbtn.active { background: var(--accent); color: var(--accent-ink); }
ul.tight { margin: var(--sp-1) 0; padding-left: 18px; }
.at-ref { padding: 6px 18px 18px; overflow-x: auto; }
.refnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--sp-3); }

@media (max-width: 720px) {
  .clock { order: 3; width: 100%; font-size: var(--fs-xs); }
  .controls { order: 2; width: auto; margin-left: auto; }
  .controls select { max-width: 160px; min-width: 0; flex: 0 1 auto; } /* сжимается, чтобы иконки (аватар, 👑, 🔔, ⚙, выход) не вылезали за экран */
  .module-tools { min-width: 0; max-width: 100%; }
  .searchbar input[type=search] { min-width: 0; flex-basis: 100%; }
  .row { gap: var(--sp-1) 10px; }
  .at-ref { padding: var(--sp-1) var(--sp-3) 14px; }
}

/* Аккаунт и персонажи */
.at-auth { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-4); }
.at-authform { display: grid; gap: var(--sp-3); align-content: start; }
.at-authform h2 { margin: 0; }
.at-authform button { justify-self: start; }
.at-trial { margin: 0; color: var(--text); padding: var(--sp-2) var(--sp-3); border-left: 2px solid var(--accent); background: var(--panel-head); border-radius: 4px; text-align: left; }
.at-authbtns { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.at-authform .at-google { display: inline-flex; align-items: center; gap: var(--sp-2); }
.at-authform .at-gicon { flex: none; background: #fff; border-radius: 50%; padding: 2px; box-sizing: content-box; }
.at-formbtns { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.at-charname { display: inline-flex; gap: var(--sp-2); align-items: center; }
.at-me { margin-bottom: var(--sp-3); }
.banner.at-ok { border-left-color: var(--ok); }
.item.at-current { border-left-color: var(--accent); }
.searchbar[hidden], #logoutBtn[hidden], #settingsBtn[hidden], #registerBtn[hidden], #charSelect[hidden] { display: none; }
/* Значок расы персонажа = кнопка аккаунта; шестерёнка и выход — квадратные иконки той же высоты. */
#accountBtn, #settingsBtn, #alertsBtn { text-decoration: none; }
#settingsBtn[hidden], #alertsBtn[hidden], #subBtn[hidden] { display: none; }
#accountBtn.at-avabtn, .at-iconbtn { width: 40px; min-width: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
#accountBtn.at-avabtn { border-radius: 50%; overflow: hidden; clip-path: none; }
#accountBtn.at-avabtn .race-icon { width: 26px; height: 26px; }
.at-needrace { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.at-needrace button { display: inline-flex; align-items: center; gap: 6px; }
#accountBtn.active, .at-iconbtn.active { border-color: var(--accent); color: var(--accent); }
.at-iconbtn .icon, #accountBtn.at-avabtn .icon { width: 20px; height: 20px; }

/* ---------- Борда ---------- */
/* Расписание: колонки шириной в одну карточку стоят «дорожками» слева направо и переносятся на новый ряд;
   в дорожке колонки можно ставить одна под другой (Artem 17.11) */
.at-board { display: flex; flex-wrap: wrap; gap: var(--sp-5) var(--sp-3); align-items: flex-start; padding-bottom: var(--sp-3); }
.at-lane { flex: 0 1 calc((100% - 4 * var(--sp-3)) / 5); min-width: 250px; display: flex; flex-direction: column; gap: var(--sp-5); } /* до 5 колонок в ряд */
.at-lanetmp { min-height: 60px; }
.at-col { flex: none; background: var(--panel, rgba(255,255,255,.02)); border: 1px solid var(--border-strong); box-shadow: 0 4px 14px rgba(0,0,0,.35); padding: var(--sp-2); display: flex; flex-direction: column; gap: var(--sp-2); }
.at-colnew { border-style: dashed; }
.at-lanenew:empty { display: none; }
/* «+ группа» под дорожкой и пустые колонки (Artem 17.11) */
.at-lanenew .at-colnew { min-height: 120px; justify-content: flex-start; background: transparent; box-shadow: none; }
.at-board button.at-addcol { align-self: stretch; clip-path: none; border: 1px dashed var(--border-strong); background: transparent; color: var(--muted); }
.at-board button.at-addcol:hover { color: var(--accent); border-color: var(--accent); background: transparent; }
.at-addcolf { display: flex; gap: 4px; }
.at-addcolf input { flex: 1; min-width: 0; }
.at-boardintro { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin-bottom: var(--sp-3); }
.at-boardintro p { margin: 0; }

/* Шапка группы (Artem 17.11): отдельная полоса с золотой кромкой, высота фиксирована — правка названия её не сдвигает;
   иконки — по наведению, на телефоне — за «⋯». */
.at-col > .at-colhead { align-items: center; gap: var(--sp-1); flex-wrap: nowrap; height: 42px; box-sizing: border-box; margin: calc(-1 * var(--sp-2)) calc(-1 * var(--sp-2)) 0;
  padding: 0 var(--sp-2) 0 calc(var(--sp-2) + 1px); background: var(--panel-head); border-left: 3px solid var(--gold); border-bottom: 1px solid var(--edge); }
.at-colnew > .at-colhead { display: none; }
.at-col > .at-colhead { position: relative; }
/* Иконки поверх конца названия (не съедают место у названия, пока скрыты). */
.at-colhead .actions { position: absolute; right: var(--sp-2); top: 50%; transform: translateY(-50%); display: flex; gap: var(--sp-1); opacity: 0; transition: opacity .15s;
  background: var(--panel-head); padding-left: var(--sp-2); box-shadow: -10px 0 10px var(--panel-head); }
.at-colhead:hover .actions, .at-colhead:focus-within .actions, .at-colhead .actions:has(.at-eye.on, [data-act="col-delete-yes"]) { opacity: 1; }
.at-colmore { display: none; }
@media (hover: none) {
  .at-colhead .actions { display: none; opacity: 1; }
  .at-col.at-actopen > .at-colhead .actions, .at-colhead .actions:has(.at-eye.on, [data-act="col-delete-yes"]) { display: flex; }
  .at-colmore { display: inline-flex; flex: none; }
  .at-colhead .actions { right: 44px; }
  .at-actopen .at-colmore { color: var(--accent); }
}
.at-coltitle { margin: 0; font-size: var(--fs-md, 15px); text-transform: uppercase; letter-spacing: .06em; color: var(--text-strong); font-weight: var(--fw-black, 700); flex: 1; min-width: 0; overflow-wrap: normal; display: flex; align-items: baseline; gap: .4em; }
.at-coltitle .at-colname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-colform { display: flex; gap: var(--sp-1, 4px); flex-wrap: wrap; width: 100%; }
.at-colform input { flex: 1; min-width: 120px; }
.at-col .list { gap: var(--sp-2); }
.at-bcard .title a { color: inherit; }
.at-cardtools { opacity: .6; }
.at-bcard:hover .at-cardtools, .at-bcard:focus-within .at-cardtools { opacity: 1; }
button.xs { padding: 2px 6px; font-size: .75em; min-height: 0; }
.at-addcard { padding: var(--sp-2); }
.at-addcard .form-grid, .at-addcard { grid-template-columns: 1fr; }
.at-picker { display: contents; }
.at-pick-what, .at-guild { position: relative; }
/* Подсказки — выпадающий список поверх формы: раньше он сдвигал кнопку «Создать» вниз, и клик по ней
   (фокус уходит с поля → список прячется → кнопка уезжает) не срабатывал с первого раза. */
.at-sugg { display: flex; flex-direction: column; max-height: 220px; overflow-y: auto; position: absolute; top: 100%; left: 0; right: 0; z-index: var(--z-pop); background: var(--panel-solid); border: 1px solid var(--border); box-shadow: var(--shadow); }
.at-sugg:empty { display: none; }
.at-guild > .at-sugg { grid-row: 3; top: 0; } /* сразу под полем, поверх подсказки «Выбери из списка…» */
.at-suggitem { text-align: left; justify-content: flex-start; gap: 6px; background: transparent; border: 0; border-bottom: 1px solid var(--border); color: inherit; font-weight: normal; padding: 6px 4px; clip-path: none; }
.at-suggitem:hover, .at-suggitem:focus { background: rgba(255,255,255,.06); }
.at-steps { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: .9em; }
.at-steps li.done { opacity: .6; }
.at-steps li.next { font-weight: 700; }
.at-draft li { display: flex; gap: 6px; align-items: center; }
.at-progress { height: 4px; background: var(--border); }
.at-progress span { display: block; height: 100%; background: var(--accent); }
.at-switch { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; margin-bottom: var(--sp-3); }
/* ---------- Топ ---------- */
.at-tablewrap { overflow-x: auto; }
.at-top { width: 100%; border-collapse: collapse; font-size: .9em; }
.at-top th, .at-top td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.at-top th { color: var(--muted); font-size: .8em; text-transform: uppercase; letter-spacing: .06em; }
/* ---------- Уведомления ---------- */
.at-bell { min-width: 2.2em; }
.at-bell.on { background: var(--accent); }
/* Уведомления: строки «канал — состояние — действие», подписи и кнопки на одной линии */
.at-nrows { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; margin: var(--sp-3) 0 var(--sp-4); border-top: 1px solid var(--line); }
.at-nrow { display: contents; }
.at-nrow > span { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; min-height: 56px; padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }
.at-nlabel { padding-right: var(--sp-5) !important; font-weight: var(--fw-bold); color: var(--text-strong); }
.at-nact { justify-content: flex-end; padding-left: var(--sp-4) !important; }
.at-nstate select { width: auto; min-width: 180px; }
.at-notify h3 { margin: 0 0 var(--sp-2); }
/* Ни одного канала — оповещения никуда не придут (Artem 18.11). */
.at-nwarn { margin: var(--sp-3) 0; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--warn, #e0a030); border-left-width: 4px; background: color-mix(in srgb, var(--warn, #e0a030) 12%, transparent); font-weight: 600; }
@media (max-width: 720px) {
  .at-nrows { grid-template-columns: minmax(0, 1fr); }
  .at-nrow > span { min-height: 0; border-bottom: 0; padding: 0; }
  .at-nlabel { padding: var(--sp-3) 0 var(--sp-1) !important; }
  .at-nstate .small { flex-basis: 100%; }
  .at-nact { justify-content: flex-start; padding: var(--sp-2) 0 var(--sp-3) !important; border-bottom: 1px solid var(--line) !important; }
}
.at-subrow { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }
.at-leadin { width: 5em; }
@media (max-width: 640px) { .at-lane { flex-basis: 100%; min-width: 0; } }
.at-guildtag { color: var(--accent, #d9b36c); font-size: .85em; }

/* Хлебные крошки — как в базе знаний */
.at-crumbs { margin: 0 0 var(--sp-3); overflow-wrap: anywhere; color: var(--muted); }
.at-crumbs a { color: var(--muted); }
.at-crumbs [aria-current] { color: var(--text); }
.at-crumb-sep { margin: 0 2px; }
/* «❔ Как пользоваться» — статья инструкции /guide/ для этой вкладки, справа в строке крошек */
.at-crumbs { display: flex; align-items: center; gap: var(--sp-3); } /* center: «Как пользоваться» на одной линии с переключателем вида (Artem 19.11) */
.at-crumbs-path { flex: 1; min-width: 0; }
.at-crumbs a.at-guide { flex: none; display: inline-flex; align-items: center; gap: 5px; color: var(--accent); white-space: nowrap; }
.at-crumbs a.at-guide .icon { width: 16px; height: 16px; }
.at-crumbs a.at-guide:hover { color: var(--text-strong); }

/* Телефон: вкладки — выезжающее слева меню по кнопке-гамбургеру (как меню базы знаний) */
.at-burger, .at-tabs-shade { display: none; }
@media (max-width: 720px) {
  .at-burger { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--tap); padding: 0 var(--sp-3); background: var(--panel) var(--texture); border: 1px solid var(--border); color: var(--text-strong); font: inherit; font-weight: var(--fw-semibold); cursor: pointer; clip-path: none; }
  .at-burger i { width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
  .tabs { position: fixed; z-index: calc(var(--z-pop) + 2); top: 0; left: 0; height: 100vh; height: 100dvh; width: min(300px, 82vw);
    flex-direction: column; gap: 0; padding: var(--sp-2) 0 var(--sp-5); overflow-y: auto; overscroll-behavior: contain;
    background: var(--panel-solid); border: 0; border-right: 1px solid var(--border); box-shadow: var(--shadow); backdrop-filter: none;
    transform: translateX(-105%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
  .tabs button, .tabs a[data-tab] { flex-shrink: 0; justify-content: flex-start; text-align: left; min-height: var(--tap); padding: 0 var(--sp-4); }
  .tabs button.active::after, .tabs a[data-tab].active::after { left: 0; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  body.at-tabs-open .tabs { transform: none; visibility: visible; }
  body.at-tabs-open .at-tabs-shade { display: block; position: fixed; inset: 0; z-index: calc(var(--z-pop) + 1); background: rgba(0, 0, 0, .55); }
  body.at-tabs-open { overflow: hidden; }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) { .tabs { transition: none; } }

/* Статус Чип-вара на вкладке «Сейчас» */
.at-chipwar { margin: 0 0 var(--sp-4); }
.at-chipwar .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2); align-items: baseline; }
.at-cwgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2) var(--sp-4); margin: var(--sp-3) 0 var(--sp-2); }
.at-cwgrid dt { font-size: var(--fs-sm, .85em); color: var(--muted); margin: 0; }
.at-cwgrid dd { margin: 2px 0 0; color: var(--text-strong); font-weight: var(--fw-semibold); }
.at-cwgrid > dt:nth-of-type(n) { grid-row: 1; }
.at-cwgrid > dd { grid-row: 2; }
.at-cwedit { margin-top: var(--sp-2); }
@media (max-width: 720px) { .at-cwgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .at-cwgrid > dt, .at-cwgrid > dd { grid-row: auto; } }
/* Полученные награды: переключатели под отмеченной активностью */
.at-rewards { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; }
.at-rewards .muted { margin-right: 2px; }
.card.item.done:has(.at-rewards) { opacity: .85; }
.at-gotlist { color: var(--accent, inherit); }

/* Аватар выбранного персонажа в шапке */
.at-charava { display: inline-flex; align-items: center; }
.at-charava img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.at-charava .race-icon { width: 24px; height: 24px; }

/* Борда: отметка слева фиксированного размера, инструменты справа, мета-строка всегда на месте — меньше сдвигов при кликах */
.at-bc-row { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.at-bc-row .title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.at-check { flex: none; width: 28px; height: 28px; min-height: 0; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--border-strong); background: transparent; color: transparent; font-weight: 700; line-height: 1; }
.at-check:hover { border-color: var(--accent); color: var(--accent); filter: none; }
.at-check.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.at-chainic, .at-runn { color: var(--text-strong, inherit); font-size: .85em; }
.at-runn.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.at-cardtools { flex: none; display: inline-flex; gap: 2px; opacity: .45; transition: opacity .15s; }
.at-bcard:hover .at-cardtools, .at-cardtools:focus-within { opacity: 1; }
@media (hover: none) { .at-cardtools { opacity: .8; } }
.at-bc-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 4px; min-height: 26px; }
.at-bc-slot { display: inline-flex; gap: 4px; }
.at-bcard.done .at-check.on + .title { text-decoration: line-through; text-decoration-thickness: 1px; }
.at-bcard .title { font-size: .95em; }
.at-bc-meta .chips { min-width: 0; }
.at-boardfoot { margin-top: var(--sp-3, 12px); text-align: right; }

/* Заходы в данж: кнопка «пройден», список заходов с выбором наград */
.at-runs { margin-top: 6px; }
.at-runlist { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.at-run { border-left: 2px solid var(--accent); padding: 2px 0 2px 8px; }
.at-runhead { display: flex; align-items: center; gap: 6px; font-size: .9em; }
.at-rundel { margin-left: auto; }
.at-runrew { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.at-dg details { margin-top: 6px; }
.at-kbitems a { white-space: nowrap; }
.card.item.done:has(.at-runlist) { opacity: .9; }
.at-avaph { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; border: 1px solid var(--border-strong); }

/* Загрузка: место под контент занято лоадером, кнопки аккаунта появляются вместе с данными — без прыжков */
.at-loading .module-tools { visibility: hidden; }
.at-loader { min-height: 70vh; display: flex; align-items: flex-start; justify-content: center; gap: 10px; padding-top: 18vh; color: var(--muted, #999); }
.at-spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--border-strong); border-top-color: var(--accent); animation: at-spin .8s linear infinite; }
@keyframes at-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .at-spinner { animation-duration: 2.4s; } }
.at-auth1 { max-width: 460px; }

/* Подписка: замочки на платных функциях и экран «Подписка». */
.at-lock { opacity: .85; border-style: dashed; }
.at-lock:hover { opacity: 1; }
.at-lockpanel { display: flex; gap: var(--sp-3); align-items: center; justify-content: space-between; flex-wrap: wrap; border-style: dashed; }
.at-lockpanel p { margin: 0; }
.at-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp-3); }
.at-plan { text-align: center; }
.at-plan .title { color: var(--text-strong); font-weight: 600; }
.at-price { font-size: var(--fs-lg, 1.25rem); color: var(--accent); margin-top: var(--sp-1); }
.at-code { padding: 2px 8px; background: var(--chip); border-radius: var(--radius); color: var(--text-strong); user-select: all; letter-spacing: .08em; }
/* «Что входит»: строки-сетка с одинаковыми отступами, без горизонтальной прокрутки на телефоне. */
.at-cmp { padding: 0; }
.at-cmp-row { display: grid; grid-template-columns: minmax(0, 1fr) 88px 88px; gap: var(--sp-3); align-items: center; padding: var(--sp-2) var(--sp-3); border-top: 1px solid var(--border); }
.at-cmp-row:first-child { border-top: 0; }
.at-cmp-row > span:not(:first-child) { text-align: center; }
.at-cmp-head { color: var(--muted); font-size: .8em; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 520px) { .at-cmp-row { grid-template-columns: minmax(0, 1fr) 64px 64px; gap: var(--sp-2); font-size: .9em; } .at-cmp-head { font-size: .7em; letter-spacing: .02em; } }
a.at-plan { display: block; color: inherit; text-decoration: none; transition: border-color .15s; }
a.at-plan:hover, a.at-plan:focus-visible { border-color: var(--accent); }

/* ---------- Борда: перетаскивание, переименование кликом (17.11) ---------- */
#topBtn[hidden], #alertsBtn[hidden] { display: none; }
.at-alertsbtn { position: relative; }
.at-alertsbtn.on::after { content: ""; position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.at-board .at-bcard, .at-board .at-colhead { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.at-board .at-bcard { cursor: grab; }
.at-board .at-colhead { cursor: grab; }
.at-colname { cursor: text; border-bottom: 1px dashed transparent; }
.at-colname:hover, .at-colname:focus-visible { border-bottom-color: currentColor; color: var(--accent); outline: none; }
.at-dragging { position: fixed !important; z-index: 1000; pointer-events: none; opacity: .92; box-shadow: var(--shadow, 0 8px 24px rgba(0,0,0,.5)); transform: rotate(1.5deg); margin: 0 !important; }
.at-col.at-dragging { max-width: none !important; }
.at-dragph { border: 2px dashed var(--accent); border-radius: var(--radius, 4px); background: color-mix(in srgb, var(--accent) 8%, transparent); flex: none; }
.at-dragph-col { align-self: stretch; }
body.at-dragbody, body.at-dragbody * { cursor: grabbing !important; }
.at-col .list { min-height: 40px; }
.at-draghint { margin-right: var(--sp-2, 8px); }
/* «нужно?/нужно/не нужно»: понятные состояния */
button.at-notneed { opacity: .7; text-decoration: line-through; }
/* История: удаление записи */
.at-hdel { opacity: .45; padding: 0 6px !important; }
li:hover > .at-hdel, .at-hdel:focus-visible { opacity: 1; }
.at-bell { min-width: 0; white-space: nowrap; }
/* Переименование колонки: поле и иконки ✓ ✕ в одну строку */
.at-colform[data-form="column-update"] { flex-wrap: nowrap; align-items: center; }
.at-colform[data-form="column-update"] input { min-width: 0; height: 30px; padding-top: 0; padding-bottom: 0; }
.at-colform[data-form="column-update"] button { height: 30px; min-height: 0; padding-top: 0; padding-bottom: 0; }
.at-icbtn { width: 40px; min-width: 40px; padding: 0; flex: none; font-size: 1.05em; }
/* «Что»: выпадающий список с поиском — длиннее, со стрелкой у поля */
.at-pick-what .at-sugg { max-height: 320px; }
.at-pick-what input[name="q"], :root[data-ui] .at-pick-what input[name="q"] { padding-right: 36px; text-overflow: ellipsis; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ffaa29' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px; } /* стрелка не налезает на текст (Artem 17.11) */
.at-suggnote { padding: 8px 6px; }
.at-suggitem.at-onboard { opacity: .6; }
/* «на доске» — маленькая отметка справа вместо плашки: меньше места, названия реже переносятся (Artem 17.11) */
.at-sugg .at-suggitem .at-onb { margin-left: auto; flex: none; display: inline-flex; align-items: center; color: var(--accent); }
.at-sugg .at-suggitem .at-onb .icon { width: 16px; height: 16px; }
/* Длинные названия в списке «Что» переносятся и не налезают друг на друга (кнопки не сжимаются в колонке с прокруткой) */
.at-sugg .at-suggitem { flex: none; height: auto; min-height: 36px; white-space: normal; line-height: 1.3; padding: 8px 6px; display: flex; align-items: center; text-align: left; }
.at-bc-orig { margin: 2px 0 0 36px; }
.at-cardedit .at-picker[data-picker="edit"] { display: flex; flex-direction: column; gap: 4px; }
/* «?» — подсказка к полю: при наведении/фокусе всплывает описание */
.at-help { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 6px; border-radius: 50%; border: 1px solid currentColor; font-size: 11px; line-height: 1; font-weight: 700; color: var(--muted, #999); cursor: help; vertical-align: middle; text-transform: none; letter-spacing: 0; flex: none; }
.at-help:hover, .at-help:focus-visible { color: var(--accent); outline: none; }
.at-help::after { content: attr(data-tip); position: absolute; left: -8px; bottom: calc(100% + 8px); width: max-content; max-width: 280px; padding: 8px 10px; background: var(--panel-solid, #1d1d22); color: var(--text, #ddd); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 13px; font-weight: normal; line-height: 1.4; text-transform: none; letter-spacing: normal; white-space: normal; text-align: left; z-index: 1001; opacity: 0; pointer-events: none; transition: opacity .12s; }
.at-help:hover::after, .at-help:focus::after { opacity: 1; }
/* Скрытая подсказка не должна занимать место: у правого края (поиск на «Истории») она давала горизонтальную прокрутку страницы. */
.at-help:not(:hover):not(:focus)::after { display: none; }
.searchbar .at-help::after { left: auto; right: -8px; }
.searchbar .at-help { align-self: center; }
@media (max-width: 720px) { .at-help::after { left: auto; right: -8px; transform: none; max-width: 70vw; } }
/* Окно квеста по времени (⏱ Окно: … · Двулики) — в списке квестов и на карточке расписания */
.at-qwin { display: grid; gap: 2px; line-height: 1.35; min-width: 0; } /* окно: время / через сколько / что — 3 строки (Artem 17.11) */
.at-qwin-what { padding-left: 1.4em; }
.at-qwin-cd { padding-left: 1.4em; }
.at-bc-win { margin: 2px 0 0 30px; line-height: 1.3; }

/* Таймлайн (17.11.2026): ось времени, группы-ленты, цветные окна; линия «сейчас» красная, после сброса — бледнее. */
.at-tl-tools { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; margin: var(--sp-2) 0 var(--sp-3); }
.at-tl-tools .at-seg { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.at-tl { --tl-label: 290px; overflow-x: auto; border: 1px solid var(--border); background: var(--panel); }
.at-tl-inner { position: relative; min-width: calc(var(--tl-label) + 680px); /* без прокрутки уже от ~1000px ширины (Artem 18.11) */ padding-bottom: var(--sp-2); }
.at-tl-axis, .at-tl-row { display: grid; grid-template-columns: var(--tl-label) minmax(0, 1fr); }
.at-tl-axis { height: 52px; background: var(--panel-solid); border-bottom: 1px solid var(--line); }
.at-tl-label { position: sticky; left: 0; z-index: 2; background: var(--panel-solid); display: flex; align-items: center; gap: 6px; padding: 0 var(--sp-2); min-width: 0; border-right: 1px solid var(--line); }
.at-tl-track { position: relative; min-width: 0; }
/* Растягивание колонки названий (Artem 18.11): правый край ячейки — ручка, в шапке — заметная полоска. */
.at-tl-label::after { content: ""; position: absolute; top: 0; bottom: 0; right: -4px; width: 8px; cursor: col-resize; z-index: 3; }
.at-tl-label:hover::after, body.at-tl-resizing .at-tl-label::after { background: linear-gradient(90deg, transparent 3px, var(--accent) 3px, var(--accent) 5px, transparent 5px); }
.at-tl-rsz { position: absolute; top: 50%; right: 2px; transform: translateY(-50%); width: 6px; height: 22px; cursor: col-resize; border-left: 2px dotted var(--muted); border-right: 2px dotted var(--muted); box-sizing: border-box; z-index: 4; }
.at-tl-rsz:hover { border-color: var(--accent); }
.at-tl-rszbar { position: absolute; top: 0; bottom: 0; left: calc(var(--tl-label) - 5px); width: 10px; cursor: col-resize; z-index: 6; }
.at-tl-rszbar:hover, body.at-tl-resizing .at-tl-rszbar { background: linear-gradient(90deg, transparent 4px, var(--accent) 4px, var(--accent) 6px, transparent 6px); }
body.at-tl-resizing, body.at-tl-resizing * { cursor: col-resize !important; user-select: none; }
.at-tl-tick { position: absolute; top: 8px; padding-left: 5px; border-left: 1px solid var(--border-strong); height: 40px; white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1.2; }
.at-tl-tick b { display: block; font-size: var(--fs-sm); color: var(--text-strong); font-weight: var(--fw-semibold); }
.at-tl-tick i { display: block; font-style: normal; font-size: var(--fs-xs); color: var(--muted); }
.at-tl-tick.day b { color: var(--gold); }
.at-tl-tick em { font-style: normal; }
.at-tl-lanehead { position: sticky; left: 0; display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-2) var(--sp-1); font-size: var(--fs-md); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: var(--caps); color: var(--gold); z-index: 2; }
.at-tl-lane + .at-tl-lane { border-top: 1px solid var(--line); }
.at-tl-lane.dragging { position: relative; z-index: 8; outline: 2px solid var(--accent); outline-offset: -2px; background: var(--panel-solid); box-shadow: 0 10px 28px rgba(0,0,0,.55); opacity: .96; }
.at-tl-grip { min-width: 30px; width: 30px; height: 30px; padding: 0; background: transparent; border: 1px solid var(--border-strong); color: var(--muted); cursor: grab; touch-action: none; font-size: 16px; line-height: 1; }
.at-tl-grip:hover, .at-tl-grip:focus-visible { color: var(--accent); border-color: var(--accent); }
body.at-tl-dragging, body.at-tl-dragging * { cursor: grabbing !important; user-select: none; }
.at-tl-row { min-height: 44px; }
.at-tl-row .at-tl-track { margin: 3px 0; }
.at-tl-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); }
.at-tl-name a { color: var(--text); }
.at-tl-name a:hover { color: var(--accent); }
.at-tl-sw { flex: none; position: relative; width: 20px; height: 20px; border-radius: 50%; background: var(--c); border: 2px solid var(--panel-head); box-shadow: 0 0 0 1px var(--border-strong); cursor: pointer; }
.at-tl-sw:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.at-tl-sw input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.at-tl-x { flex: none; min-width: 0; width: 22px; height: 22px; padding: 0; font-size: 13px; background: transparent; border: 0; color: var(--muted); }
.at-tl-blk { position: absolute; top: 0; bottom: 0; min-width: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 3px 6px; box-sizing: border-box; font-size: var(--fs-xs); line-height: 1.3;
  background: color-mix(in srgb, var(--c) 82%, transparent); color: var(--ink); border-left: 3px solid var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.at-tl-blk b { font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
/* Широкий блок — две строки (Artem 18.11): время сверху, короткая подпись снизу, каждая со своим «…». */
.at-tl-blk:not(.narrow) { display: flex; flex-direction: column; justify-content: center; padding: 2px 6px; line-height: 1.25; cursor: help; }
.at-tl-blk:not(.narrow) > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-tl-blk.narrow { cursor: help; }
.at-tl-hover.tip span { white-space: pre-line; font-weight: var(--fw-regular, 400); line-height: 1.35; padding: 4px 8px; width: max-content; max-width: 280px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.at-tl-hover.tip span::first-line { font-weight: var(--fw-semibold); }
.at-tl-pop { position: absolute; z-index: 7; width: max-content; max-width: min(300px, 80vw); white-space: pre-line; background: var(--panel-solid); color: var(--text-strong); border: 1px solid var(--border-strong); font-size: var(--fs-xs); line-height: 1.35; padding: 5px 8px; box-shadow: 0 4px 14px rgba(0,0,0,.4); pointer-events: none; }
.at-tl-poptxt::first-line { font-weight: var(--fw-semibold); }
/* 🔔 в закреплённой подсказке блока (Artem 18.11): подписка прямо с графика. */
.at-tl-pop.has-bell { pointer-events: auto; }
.at-tl-popbell { margin-top: 6px; display: flex; }
.at-tl-popbell .at-bell { white-space: nowrap; }
.at-tl-blk.past { opacity: .45; }
.at-tl-blk.next { opacity: .35; filter: saturate(.6); }
.at-tl-blk.live { box-shadow: inset 0 0 0 2px var(--text-strong); }
.at-tl-over { position: absolute; inset: 0 0 0 var(--tl-label); pointer-events: none; z-index: 1; }
.at-tl-grid i { position: absolute; top: 52px; bottom: 0; border-left: 1px solid var(--line-soft); }
.at-tl-now { position: absolute; top: 0; bottom: 0; border-left: 2px solid var(--live); z-index: 4; }
.at-tl-hover { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--text-strong); opacity: .85; z-index: 5; pointer-events: none; }
.at-tl-hover[hidden] { display: none; }
.at-tl-hover.flip span { left: auto; right: 6px; }
.at-tl-hover span { position: absolute; left: 6px; background: var(--panel-solid); color: var(--text-strong); border: 1px solid var(--border-strong); font-size: var(--fs-xs); font-weight: var(--fw-semibold); padding: 1px 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.at-tl-blk.narrow { white-space: normal; text-overflow: clip; padding: 2px 1px 2px 3px; border-left-width: 2px; font-size: 11.5px; line-height: 1.2; letter-spacing: -.03em; overflow-wrap: normal; }
.at-tl-reset { position: absolute; top: 52px; bottom: 0; border-left: 2px dashed var(--gold); }
.at-tl-reset span { position: absolute; top: 4px; left: 4px; background: var(--panel-solid); color: var(--gold); font-size: var(--fs-xs); padding: 1px 6px; white-space: nowrap; border: 1px solid var(--gold); }
/* Вкладка «Данжи»: сетка карточек с перетаскиванием, выбор дня, одинаковые строки заходов (Artem 17.11) */
/* Сетка плиток группы: до 4 колонок, у плитки своя клетка, клетки могут пустовать (Artem 18.11) */
.at-tgrid { display: grid; grid-template-columns: repeat(var(--tc, 1), minmax(0, 1fr)); gap: 6px; align-items: start; }
.at-tgrid > .at-tile { cursor: grab; min-width: 0; overflow-wrap: break-word; }
.at-tgrid > .at-dragph { min-height: 80px; }
/* Пока тянем — только рамка вокруг своей группы, без лишнего места: высота не меняется, контент не прыгает */
.at-dragbody .at-tgroup.at-dropgrp > .at-tgrid-free { outline: 1px dashed var(--line-soft, rgba(255,255,255,.15)); outline-offset: 2px; }
.at-tiles > .at-tile { cursor: grab; }
.at-tiles > .at-dragph { min-height: 80px; }
.at-tghead { cursor: grab; user-select: none; }
.at-tgroup.at-dragging { background: var(--bg, #111); padding: 0 8px 8px; }
.at-tgroups > .at-dragph { min-height: 60px; margin: 8px 0; }
.at-tile.at-off { opacity: .5; }
.at-dghead { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-bottom: 8px; }
.at-dghead p { margin: 0; flex: 1 1 320px; }
.at-dgday { display: inline-flex; align-items: center; gap: 6px; }
.at-dgdrop { margin-top: 4px; }
/* Дроп захода — второй строкой под «#N время», компактно (Artem 18.11) */
.at-runhead { flex-wrap: wrap; row-gap: 0; }
.at-run .at-gotlist { order: 9; flex: 1 0 100%; min-width: 0; line-height: 1.25; font-size: .95em; }
.at-run .at-runedit { margin-left: auto; }
.at-run .at-rundel { margin-left: 0; }
.at-gotlist.muted { color: var(--muted); }
.searchbar.at-noneeded .toggle, .searchbar.at-noneeded .toggle + .at-help { display: none; }
/* 👁 скрыть плитку / группу и «Показать скрытые» (Artem 17.11) */
.at-tghead { display: flex; align-items: center; gap: 8px; }
.at-eye { padding: 2px 6px; line-height: 1; opacity: .6; }
.at-eye:hover, .at-eye.on { opacity: 1; }
.at-eye .icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.at-tghead .at-eye { font-size: 1rem; }
.at-tile.at-hidden, .at-tgroup.at-hidden > .at-tgrid { opacity: .4; }
.at-tgroup.at-hidden > .at-tghead span { text-decoration: line-through; opacity: .6; }
.at-bcard.at-hidden, .at-col.at-hidden > .list { opacity: .4; }
.at-col.at-hidden .at-colname { text-decoration: line-through; opacity: .6; }
.at-hidbar { margin: 0 0 8px; }
.at-hidbar .icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; vertical-align: -2px; }
/* Плитки: длинные названия и ссылки не вылазят, 👁 в строке с названием (Artem 17.11) */
.at-tiles > .at-tile { min-width: 0; overflow-wrap: break-word; }
.at-tile details, .at-tile .at-kbitems, .at-tile .at-dgdrop { overflow-wrap: anywhere; }
.at-tilebtns { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.at-tile .at-kbitems a { white-space: normal; }
.at-tile > .row:first-child { flex-wrap: nowrap; align-items: flex-start; }
.at-tile > .row:first-child > .title { flex: 1 1 auto; min-width: 0; }
.at-tile > .row:first-child > .actions { flex: none; flex-wrap: nowrap; }
.at-dgcal { position: relative; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.at-dgcal input[type="date"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.at-hidbtn .icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; vertical-align: -2px; }
.at-foothint { margin-top: 16px; }
.at-dgdrop + .small { margin-top: 4px; }
/* «выполнить» — своим цветом (зелёный), «✓ выполнено» — спокойная (Artem 17.11) */
.at-dobtn { background: var(--ok); color: var(--accent-ink); }
.at-dobtn:hover { filter: brightness(1.1); }
.at-doneb { color: var(--ok); }
.at-rewsum { display: flex; align-items: center; gap: 6px; }
.at-rewsum .at-gotlist { flex: 1; min-width: 0; }
/* Период истории: «с … по …» + быстрые кнопки */
.at-histrange { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; margin-bottom: var(--sp-3); }
.at-histrange label { display: inline-flex; gap: var(--sp-1); align-items: center; }
.at-histrange input[type=date] { width: auto; }
.at-histstep { min-width: 2.2em; }
.at-histstep:disabled { opacity: .4; cursor: default; }
.at-histkind { margin: var(--sp-2) 0 var(--sp-1); font-size: .95em; }
/* Подсказки и пояснения трекера — на всю ширину страницы (Artem 17.11), без ограничения 110ch из v2.css */
:root[data-ui] main#view > p { max-width: none; }
/* Своя награда: поле с поиском по луту */
.at-rewadd { position: relative; display: inline-flex; flex: 1 1 220px; min-width: 180px; }
.at-rewadd input { width: 100%; padding: 3px 6px; font-size: var(--fs-sm); }
.at-rewadd { gap: 4px; align-items: stretch; }
.at-rewplus { flex: none; min-width: 32px; padding: 0 8px; font-size: 16px; font-weight: 700; line-height: 1; }
.at-rewdone { width: 100%; justify-content: center; margin-top: 2px; }
.at-rewadd .at-sugg { min-width: 260px; }

/* Таймлайн: строки перетаскиваются за ⠿, 👁 скрывает строку/группу (17.11.2026). */
.at-tl-row .at-tl-grip { width: 22px; min-width: 22px; height: 26px; font-size: 13px; border: 0; flex: none; }
.at-tl-row .at-tl-name { flex: 1; cursor: grab; }
.at-tl-acts { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.at-tl .at-eye { min-width: 0; width: 26px; height: 26px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; opacity: .45; }
.at-tl .at-eye .icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.at-tl .at-eye:hover, .at-tl .at-eye:focus-visible, .at-tl .at-eye.on { opacity: 1; }
.at-tl-lanehead .at-eye { margin-left: 2px; }
.at-tl-row.dragging { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--panel-solid); position: relative; z-index: 8; box-shadow: 0 8px 22px rgba(0,0,0,.55); }
.at-tl-row.dragging .at-tl-label { background: color-mix(in srgb, var(--accent) 14%, var(--panel-solid)); }
.at-tl-row.at-hidden .at-tl-track, .at-tl-row.at-hidden .at-tl-name, .at-tl-lane.at-hidden > .at-tl-row { opacity: .4; }
.at-tl-lane.at-hidden .at-tl-lanehead .at-tl-gname { text-decoration: line-through; opacity: .6; }
.at-tl-tools .at-hidbtn { margin-left: 0; }
.at-tl-axis .at-tl-track { overflow: hidden; }
/* Иконка типа на карточке расписания */
.at-kindic { flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); }
.at-kindic .icon { width: 18px; height: 18px; }
.at-tl-name small { display: block; font-size: var(--fs-xs); color: var(--muted); overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
/* Фильтры на вкладках квестов и активностей */
.at-filters { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); align-items: center; margin-bottom: var(--sp-3); }
.at-fgroup { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.at-fgroup > .small { margin-right: 2px; }
.at-pick-period[hidden] { display: none; }
/* Своё расписание — подпункт «Сброса отметки» (Artem 17.11): дни чипами, начало — конец, ещё времена с той же длительностью */
.at-schedf { border-left: 2px solid var(--accent); padding: var(--sp-2) 0 var(--sp-2) var(--sp-3); display: grid; gap: var(--sp-2); margin-top: calc(var(--sp-2) * -1); }
.at-schedf[hidden] { display: none; }
.at-schedf p { margin: 0; }
.at-sched-row { display: grid; gap: 6px; }
.at-sched-l { font-size: var(--fs-2xs); font-weight: var(--fw-black); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.at-schedays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.at-daychip { position: relative; cursor: pointer; }
.at-daychip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.at-daychip span { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--fs-xs); color: var(--muted); }
.at-daychip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.at-daychip input:focus-visible + span { box-shadow: 0 0 0 1px var(--accent); }
.at-sched-every:not([hidden]) { font-size: var(--fs-xs); }
.at-slots { display: grid; gap: 6px; min-width: 0; }
.at-schedf, .at-sched-row, .at-schedays, .at-cardedit > *, .at-addcard > * { min-width: 0; }
.at-schedf { padding-left: var(--sp-2) !important; overflow: hidden; }
.at-slot input[type=time]::-webkit-calendar-picker-indicator { margin: 0; padding: 0; width: 12px; height: 12px; }
/* окно «начало — конец ✕» помещается в узкую карточку (Artem 17.11) */
.at-slot { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 28px; align-items: center; gap: 4px; }
.at-slot input[type=time], :root[data-ui] .at-slot input[type=time] { width: 100%; min-width: 0; min-height: 32px; padding: 3px 4px; font-size: var(--fs-sm); }
.at-slot .at-icbtn { width: 28px; min-width: 28px; }
.at-slot .at-icbtn[hidden] { display: inline-flex; visibility: hidden; }
.at-slots > [data-act="sched-add"] { justify-self: start; }
.at-delbtn { margin-left: auto; }
.at-pick-what .at-kblink { justify-self: start; }
.at-chk { display: inline-flex; gap: 4px; align-items: center; font-size: var(--fs-sm); }
/* Вид «Сейчас» на вкладке «Таймлайн»: плитки одна под другой (Artem 17.11). */
.at-nowlist { grid-template-columns: 1fr; max-width: 820px; }

/* ---------- Карточка доски (Artem 17.11) ----------
   Иконка типа — в левом углу (вне потока), весь текст начинается с одной линии; 👁 ✎ ✕ — поверх содержимого по наведению,
   на телефоне — за «⋯»; «выполнить» — круглая кнопка справа от названия, видна всегда. */
:root[data-ui] .at-board .at-bcard { position: relative; overflow: visible; padding: 10px 10px 10px 22px; display: flex; flex-direction: column; gap: 6px; }
/* иконка типа — в самом левом верхнем углу, на отступе, текст не сдвигает (Artem 17.11) */
.at-bcard > .at-kindic { position: absolute; left: 5px; top: 6px; opacity: .85; }
.at-bcard > .at-kindic .icon { width: 12px; height: 12px; }
.at-bcard > .at-chainic { font-size: 11px; }
.at-bcard > .at-chainic { font-size: 14px; line-height: 1; }
.at-bc-head { display: flex; align-items: flex-start; gap: 8px; min-height: 30px; }
.at-bc-text { flex: 1; min-width: 0; padding-top: 5px; }
.at-board .at-bcard .title { font-size: var(--fs-sm, 13px); font-weight: 600; line-height: 1.35; color: var(--text); overflow-wrap: anywhere; display: block; }
.at-bc-orig, .at-bcard .at-bc-win { margin: 2px 0 0; line-height: 1.3; }
.at-bcard.done .at-bc-text .title { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--muted); }
.at-bc-do { flex: none; width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 50%; border: 2px solid var(--ok); background: transparent; color: var(--ok);
  font-size: 15px; font-weight: var(--fw-black); line-height: 1; display: inline-flex; align-items: center; justify-content: center; clip-path: none; cursor: pointer; }
.at-bc-do:hover { background: rgba(102, 204, 153, .15); }
.at-bc-do.on { background: var(--ok); color: var(--accent-ink); }
/* 👁 ✎ ✕ — по наведению в строке с 🔔 (не поверх названия, Artem 17.11); на телефоне — за «⋯» там же */
.at-bcard .at-cardtools { display: inline-flex; gap: 2px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.at-bcard:hover .at-cardtools, .at-bcard .at-cardtools:focus-within { opacity: 1; pointer-events: auto; }
.at-cardmore { display: none; }
@media (hover: none) {
  .at-bcard .at-cardtools { display: none; opacity: 1; pointer-events: auto; }
  .at-bcard.at-actopen .at-cardtools { display: inline-flex; }
  .at-bcard .at-cardmore { display: inline-flex; }
}
.at-bcard .at-bc-meta { margin-top: 6px; min-height: 26px; } /* отступ от ✓ до строки с 🔔 */
.at-bcard .at-bc-slot { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.at-bcard .at-bc-meta .at-bc-slot:empty { display: none; }
.at-bcard .at-runs, .at-bcard .at-progress, .at-bcard .at-steps, .at-bcard details, .at-bcard > .chips { margin: 0; }
.at-bcard .at-steps { padding-left: 0; }

/* Несколько досок (Artem 17.11): вкладки досок и действия над активной; ссылка «Поделиться»; доска по ссылке */
.at-boardsbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); margin-bottom: var(--sp-3); }
.at-bdtabs { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.at-bdtools { display: inline-flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2); } /* кнопки чуть дальше друг от друга (Artem 17.11) */
.at-bdtools .xs, .at-bdnew { padding-left: 10px; padding-right: 10px; }
.at-bdnew { margin-left: auto; }
.at-bdform { margin-bottom: var(--sp-3); max-width: 560px; flex-wrap: nowrap; align-items: center; }
.at-bdtabs .at-bdform { margin: 0; max-width: 320px; }
.at-bdform input, .at-bdform select, .at-bdform button { height: 32px; min-height: 0; padding-top: 0; padding-bottom: 0; }
/* Телефон: название — на всю строку, ниже выбор и кнопки (раньше «Отмена» уезжала за край экрана). */
@media (max-width: 520px) { .at-bdform { flex-wrap: wrap; } .at-bdform input { flex: 1 0 100%; } .at-bdform select { flex: 1; min-width: 0; } }
.at-sharelink { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.at-sharelink input { flex: 1; min-width: 220px; max-width: 520px; height: 30px; }
.at-sharebox { margin-bottom: var(--sp-4); border-left: 3px solid var(--accent); }
.at-sharebox h3 { margin: 0 0 var(--sp-1); }
/* Доска-пример для гостей (Artem 18.11): видно, но весь блок закрыт плашкой «Войдите» */
.at-demo { position: relative; min-height: 320px; }
.at-demoboard { pointer-events: none; user-select: none; opacity: .5; filter: saturate(.55); max-height: 78vh; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.at-demoboard .at-board { overflow: hidden; }
.at-demoboard .at-cardtools, .at-demoboard .at-cardmore, .at-demoboard .at-colmore, .at-demoboard .actions { display: none !important; }
.at-demoover { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; padding: var(--sp-6) var(--sp-3); background: rgba(0, 0, 0, .25); }
.at-demobox { position: sticky; top: 96px; background: var(--panel-solid); max-width: 440px; width: 100%; text-align: center; box-shadow: var(--shadow); border-top: 2px solid var(--accent); }
.at-demobox h3 { margin: var(--sp-1) 0 var(--sp-2); }
.at-demobox .at-formbtns { justify-content: center; margin-top: var(--sp-3); }
.at-demotag { display: inline-block; padding: 1px 8px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* Лоадеры (полоса сверху, спиннер на кнопке) — общие, .cg-busybar / .cg-busy в theme/cerberus.css */
/* Попап подтверждения (удаление доски) */
.at-confirm { max-width: min(420px, calc(100vw - 32px)); border: 1px solid var(--border-strong); color: var(--text); padding: var(--sp-4); box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.at-confirm::backdrop { background: rgba(0,0,0,.6); }
.at-confirm h3 { margin: 0 0 var(--sp-2); }
.at-confirm p { margin: 0 0 var(--sp-3); }

/* «Скрыть до …» / «Вернуть на доску» — на всю ширину внизу карточки; 🔔 — в правом нижнем углу */
.at-board .at-bcard .at-bc-hide { width: 100%; justify-content: center; margin-top: 2px; }
.at-bcard .at-bc-meta .at-bc-slot { margin-left: auto; }

/* Выбор награды (Artem 17.11): «Награда:», каждая награда своей строкой, текст слева, квадратик-отметка */
.at-rewlist, .at-runrew { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
.at-rewlist > .muted { margin: 0 0 2px; }
button.at-rewopt { justify-content: flex-start; text-align: left; white-space: normal; height: auto; min-height: 28px; line-height: 1.3; padding: 4px 8px; gap: 8px; font-weight: 600; clip-path: none; }
.at-rewbox { flex: none; width: 14px; height: 14px; border: 1px solid currentColor; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; line-height: 1; }
.at-rewlist .at-rewadd, .at-runrew .at-rewadd { flex: none; min-width: 0; width: 100%; }

/* Иконки на карточке (👁 ✎ ✕ 🔔 ⋯) — одного размера (Artem 17.11) */
.at-bcard .at-bc-slot button.xs, .at-bcard .at-cardtools button.xs { width: 28px; min-width: 28px; height: 26px; min-height: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1; opacity: 1; }
.at-bcard .at-bc-slot button.xs .icon { width: 14px; height: 14px; }
/* Кнопки формы карточки — в один ряд */
.at-cardedit .at-formbtns { flex-wrap: nowrap; gap: 6px; }
.at-cardedit .at-formbtns button { min-height: 32px; padding: 4px 10px; font-size: var(--fs-xs); flex: 0 1 auto; min-width: 0; white-space: nowrap; }
.at-cardedit .at-editbtns button { flex: 1 1 0; }
.at-cardedit .at-delrow { display: flex; justify-content: flex-end; }
.at-cardedit .at-delrow button { min-height: 28px; padding: 3px 10px; font-size: var(--fs-xs); }
.at-bcard .at-bc-slot button.at-cardmore { display: none; }
@media (hover: none) { .at-bcard .at-bc-slot button.at-cardmore { display: inline-flex; } }
.at-qwin .muted { white-space: nowrap; }
/* Картка, яку зараз редагують: помітна рамка, світіння, піднята над сусідами */
:root[data-ui] .at-board .at-bcard.at-editing { border-color: var(--accent); background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--panel-solid); box-shadow: 0 0 0 2px var(--accent), 0 0 18px 2px var(--accent-line); z-index: 3; cursor: default; opacity: 1; }
/* Форма добавления в пустой группе — без пустого места над ней; кнопки на всю ширину */
.at-col .list:empty:has(~ .at-addcard) { min-height: 0; margin: 0; }
.at-addcard .at-editbtns { flex-wrap: nowrap; gap: 6px; }
.at-addcard .at-editbtns button { flex: 1 1 0; min-width: 0; }
/* Список «Что» — сразу под полем, а не под ссылкой «в базе знаний» (Artem 17.11) */
.at-qwrap { position: relative; display: block; }
.at-qwrap > input { width: 100%; }
/* «+ карточка» — как «+ группа» (пунктир, прозрачный фон), но тоньше и спокойнее, чтобы их различать (Artem 17.11) */
:root[data-ui] .at-board button.at-addbtn { clip-path: none; border: 1px dashed var(--border-strong); background: rgba(255,255,255,.03); color: var(--text); font-weight: var(--fw-bold, 700); min-height: 32px; } /* чуть заметнее (Artem 17.11) */
:root[data-ui] .at-board button.at-addbtn:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); filter: none; }
/* 🔔 без подписки — серый, как 👁 ✎ ✕; жёлтый — только когда подписан (Artem 17.11) */
.at-bell.xs:not(.on):not(.at-lock) { filter: grayscale(1) brightness(1.5); }
.at-bell.xs:not(.on):not(.at-lock):hover, .at-bell.xs:not(.on):not(.at-lock):focus-visible { filter: grayscale(1) brightness(2); }
/* Выполненная карточка на «Доске» — тусклее остальных, при наведении/фокусе — обычная (Artem 17.11) */
:root[data-ui] .at-board .card.item.at-bcard.done:not(.at-editing) { opacity: .42; transition: opacity .15s; }
:root[data-ui] .at-board .card.item.at-bcard.done:not(.at-editing):is(:hover, :focus-within, .at-actopen) { opacity: 1; }
/* Подтверждение удаления — затемнённый слой на всю карточку / группу (Artem 17.11) */
.at-col { position: relative; }
.at-delover { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px; text-align: center;
  background: rgba(20, 19, 24, .92); border: 1px solid var(--danger, #e5534b); cursor: default; opacity: 1; }
.at-delover p { margin: 0; font-weight: var(--fw-bold, 700); color: var(--text-strong); }
.at-delbtns { display: flex; gap: 6px; width: 100%; max-width: 260px; }
.at-delbtns button { flex: 1 1 0; min-width: 0; min-height: 32px; padding: 4px 10px; font-size: var(--fs-xs); }
:root[data-ui] .at-board .card.item.at-bcard.done:has(.at-delover) { opacity: 1; }
.at-col > .at-delover { justify-content: flex-start; padding-top: 64px; } /* у длинной группы вопрос — сверху, рядом с ✕ */
/* Плитки вкладок «Квесты», «Данжи», «Активности» — как карточки «Доски» (Artem 17.11):
   круглая ✓ справа от названия, 🔔 иконкой, выполненная плитка приглушена. */
.at-tile > .row:first-child { align-items: flex-start; }
.at-tile > .row:first-child .actions { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.at-tile .at-bell.xs { width: 28px; min-width: 28px; height: 26px; min-height: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1; }
.at-tile .at-tilewin { align-items: flex-end; flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
.at-tile .at-tilewin > .actions { margin-left: auto; flex: none; }
:root[data-ui] .card.item.at-tile.done { opacity: .42; transition: opacity .15s; }
:root[data-ui] .card.item.at-tile.done:is(:hover, :focus-within) { opacity: 1; }
/* Переименование доски на месте вкладки — без сдвига соседних кнопок (Artem 17.11) */
.at-bdren { position: relative; display: inline-flex; margin: 0; min-width: 0; box-sizing: border-box; }
.at-bdren input[name="title"] { width: 100%; height: 100%; min-height: 0; min-width: 0; box-sizing: border-box; padding: 0 26px 0 8px; font-size: var(--fs-xs); font-weight: var(--fw-bold, 700); }
.at-bdren .at-icbtn { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 22px; min-width: 0; height: 22px; min-height: 0; padding: 0; border: 0; background: transparent; clip-path: none; }
.at-bdtools .at-bdok, .at-bdtools [data-act="board-rename"] { width: 28px; min-width: 28px; padding-left: 0; padding-right: 0; justify-content: center; }
/* Плитки «Квесты», «Данжи», «Активности» и карточки «Сейчас» — в стиле карточек «Доски» (Artem 18.11):
   иконка типа в левом верхнем углу, тот же шрифт названия, 👁 — по наведению, 🔔 — иконкой. */
.at-likecard { position: relative; }
.at-likecard > .at-kindic { position: absolute; left: 5px; top: 6px; opacity: .85; z-index: 1; }
.at-likecard > .at-kindic .icon { width: 12px; height: 12px; }
:root[data-ui] .at-likecard > .row:first-child .title { font-size: var(--fs-sm, 13px); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
:root[data-ui] .at-likecard.done > .row:first-child .title { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--muted); }
.at-likecard .chips .chip { font-size: var(--fs-2xs, 11px); }
.at-likecard .at-eye:not(.on) { opacity: 0; transition: opacity .15s; }
.at-likecard:hover .at-eye, .at-likecard .at-eye:focus-visible { opacity: 1; }
@media (hover: none) { .at-likecard .at-eye:not(.on) { opacity: 1; } }
.at-nowcard .at-bell.xs { width: 28px; min-width: 28px; height: 26px; min-height: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1; }
.at-nowcard .row.small .actions { display: inline-flex; align-items: center; gap: 6px; }
/* «Сейчас»: время всегда справа, не уходит под длинное название; длинный текст («идёт · ещё 1ч 56 мин») — в 2 строки справа (Artem 18.11) */
.at-nowcard > .row:first-child { flex-wrap: nowrap; align-items: flex-start; justify-content: space-between; }
.at-nowcard > .row:first-child > .title { flex: 1 1 auto; min-width: 0; }
.at-nowcard > .row:first-child > .live, .at-nowcard > .row:first-child > .count { flex: 0 1 auto; max-width: 45%; text-align: right; white-space: normal; overflow-wrap: normal; line-height: 1.3; }
.at-nowcard > .row:first-child > .live > .at-left { display: block; white-space: nowrap; }
.at-likecard details > summary { font-size: var(--fs-xs, 12px); }
.at-nowcard button[data-need] { height: 26px; min-height: 0; padding: 0 10px; font-size: var(--fs-2xs, 11px); }


/* Переключатель вида «Таймлайн / Сейчас» — тумблер справа (Artem 18.11). */
.at-tl-why { min-height: 2.6em; }
.at-tl-why-end { display: none; margin-top: 12px; min-height: 0; }
@media (max-width: 720px) { .at-tl-why:not(.at-tl-why-end) { display: none; } .at-tl-why-end { display: block; } }
/* 👁 ✎ ✕ — своё место в шапке между названием и ✓ (Artem 19.11): видны по наведению, ничего не перекрывают и не сдвигают
   (место под них занято всегда, название переносится заранее). На телефоне там же «⋯», по нажатию — инструменты. */
.at-bc-htools { flex: none; display: inline-flex; align-items: center; gap: 2px; min-height: 30px; }
.at-bcard .at-bc-htools .at-cardtools { gap: 2px; }
.at-bcard .at-bc-htools button.xs { width: 24px; min-width: 24px; height: 24px; min-height: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; line-height: 1; }
.at-bcard .at-bc-htools button.at-cardmore { display: none; }
@media (hover: none) { .at-bcard .at-bc-htools button.at-cardmore { display: inline-flex; } }
/* 🔔 не прилипает к ✓, когда строка времени идёт сразу под названием (Artem 18.11) */
.at-tile > .row:first-child + .at-tilewin, .at-tile > .row:first-child + .chips + .at-tilewin { margin-top: 8px; }
/* Действия с доской — иконки в строке вкладок (Artem 18.11) */
.at-bdtools .at-bdic { width: 30px; min-width: 30px; height: 28px; min-height: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.at-bdtools .at-bdic .icon { width: 15px; height: 15px; }
.at-bdtools .at-bdic[data-act="board-delete"]:hover, .at-bdtools .at-bdic[data-act="board-clear"]:hover { color: var(--danger, #e5534b); }
.at-boardfoot { text-align: left; }
@media (max-width: 600px) {
  .at-boardsbar { gap: var(--sp-2); }
  .at-bdtabs { flex: 1 1 100%; }
  .at-bdtools { gap: 4px; }
}
/* Иконки квестов и данжей — картинки базы знаний (маской): в меню — цветом пункта, на карточках — золотые (Artem 18.11) */
.at-kbpic { display: inline-block; flex: none; width: 1.15em; height: 1.15em; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.at-kindic .at-kbpic { background: var(--gold, #e3b341); }
/* Справа: «Новая доска», «Сбросить», «Очистить» — текстом с иконкой; на телефоне только иконки (Artem 18.11) */
.at-bdright { margin-left: auto; display: inline-flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2); }
.at-bdright .at-bdnew { margin-left: 0; }
.at-bdtxt { display: inline-flex; align-items: center; gap: 6px; }
.at-bdtxt .icon { width: 14px; height: 14px; }
.at-bdright [data-act="board-clear"]:hover { color: var(--danger, #e5534b); }
@media (max-width: 600px) {
  .at-bdtxt > span { display: none; }
  .at-bdright .at-bdtxt { width: 30px; min-width: 30px; height: 28px; min-height: 0; padding: 0; justify-content: center; }
  .at-bdtxt .icon { width: 15px; height: 15px; }
}

/* Счётчик выполненного за день над доской (Artem 18.11) */
.at-daycount { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin: 0 0 var(--sp-2); }
.at-daycount b { color: var(--ok, var(--accent)); font-size: var(--fs-md); }
/* Правка таймлайна (Artem 18.11): свои группы и элементы. Иконки группы — при наведении на заголовок (на телефоне — всегда). */
.at-tl-ed { display: inline-flex; gap: 2px; margin-left: 2px; opacity: 0; transition: opacity .15s; text-transform: none; letter-spacing: 0; }
.at-tl-lanehead:hover .at-tl-ed, .at-tl-lanehead:focus-within .at-tl-ed { opacity: 1; }
@media (hover: none) { .at-tl-ed { opacity: 1; } }
.at-tl-ed .at-tl-x, .at-tl-acts .at-tl-x { font-size: 14px; }
.at-tl-x:hover, .at-tl-x:focus-visible { color: var(--accent); }
.at-tl-empty { position: sticky; left: 0; display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; padding: var(--sp-2) var(--sp-3) var(--sp-3); }
.at-tl-addg { margin: var(--sp-2) 0; }
.at-tl-dlg { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 1px solid var(--border-strong); color: var(--text); padding: var(--sp-4); box-shadow: 0 10px 40px rgba(0,0,0,.6); box-sizing: border-box; }
.at-tl-dlg::backdrop { background: rgba(0,0,0,.6); }
.at-tl-dlg h3 { margin: 0 0 var(--sp-3); }
.at-tl-dlg .field { display: grid; gap: 4px; margin-bottom: var(--sp-3); }
.at-tl-dlg input[type=search], .at-tl-dlg input[type=text] { width: 100%; box-sizing: border-box; }
.at-tl-dlg input[type=color] { width: 56px; height: 32px; padding: 0; }
.at-tl-dlg .at-formbtns { margin-top: var(--sp-3); }
.at-tl-picklist { display: grid; gap: 2px; max-height: 300px; overflow-y: auto; margin: var(--sp-2) 0 var(--sp-3); border: 1px solid var(--line); }
.at-tl-pick { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); width: 100%; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 6px var(--sp-2); color: var(--text); font-size: var(--fs-sm); min-height: 36px; }
.at-tl-pick:hover, .at-tl-pick:focus-visible { background: var(--accent-soft); }
.at-tl-pick.on { color: var(--accent); }
.at-tl-pick small { flex: none; }
.at-tl-own summary { cursor: pointer; color: var(--gold); margin-bottom: var(--sp-2); }
.at-tl-err { color: var(--danger, #e5534b); margin: var(--sp-2) 0 0; }
.at-tl-err[hidden] { display: none; }
/* Иконки правки в заголовке группы — над полоской растягивания колонки названий (длинное название заходит за край). */
.at-tl-lanehead { z-index: 7; }
.at-tl-dlg { background: var(--panel-solid); }
.at-tl-dlg .at-schedf > p:last-child { display: none; } /* подсказка про карточку и 🔔 к своему элементу таймлайна не относится */

/* Меню 🔔 «Начало / Конец» у активностей с окном (Artem 18.11) */
.at-bellmenu { position: absolute; z-index: 60; display: flex; flex-direction: column; gap: 6px; min-width: 210px; max-width: min(300px, calc(100vw - 16px)); padding: 10px 12px; margin: 0; box-shadow: 0 6px 20px rgba(0, 0, 0, .45); }
.at-bellmenu .check { display: flex; align-items: center; gap: 6px; cursor: pointer; }

/* ↺ «Сбросить» вкладки к стандарту — справа в строке инструментов (Artem 18.11); на телефоне только иконка */
.at-tabreset { margin-left: auto; }
@media (max-width: 600px) { .at-tabreset { width: 30px; min-width: 30px; height: 28px; min-height: 0; padding: 0; justify-content: center; } }
/* Выполненное на таймлайне (Artem 18.11): строка зачёркнута, её окна приглушены, у окна — ✓ перед временем. */
.at-tl-row.done .at-tl-name { opacity: .55; }
.at-tl-row.done .at-tl-name a { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--muted); }
.at-tl-blk.done { opacity: .4; filter: saturate(.45);
  background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.18) 0 6px, transparent 6px 12px); }
.at-tl-blk.done.live { opacity: .6; }

/* Инструменты строки таймлайна (⠿, цвет, ↺ ✎ ✕ 👁) — поверх названия при наведении/фокусе (Artem 18.11), чтобы название
   занимало всю ширину. На телефоне — касанием названия (.at-tlopen). Скрытая строка — 👁 видно всегда. */
.at-tl-row .at-tl-label { gap: 0; }
.at-tl-row .at-tl-hl, .at-tl-row .at-tl-acts, .at-tl-lanehead .at-tl-hl { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; display: flex; align-items: center; gap: 4px;
  background: var(--panel-solid); opacity: 0; pointer-events: none; transition: opacity .12s; }
.at-tl-row .at-tl-hl, .at-tl-lanehead .at-tl-hl { left: 2px; padding-right: 6px; box-shadow: 8px 0 8px -2px var(--panel-solid); }
.at-tl-row .at-tl-acts { right: 8px; padding-left: 6px; box-shadow: -8px 0 8px -2px var(--panel-solid); }
@media (hover: hover) { .at-tl-row:hover .at-tl-hl, .at-tl-row:hover .at-tl-acts, .at-tl-lanehead:hover .at-tl-hl { opacity: 1; pointer-events: auto; }
  .at-tl-row:hover .at-tl-acts > * { display: inline-flex !important; } }
.at-tl-row .at-tl-label:focus-within .at-tl-hl, .at-tl-row .at-tl-label:focus-within .at-tl-acts, .at-tl-lanehead .at-tl-hl:focus-within, .at-tl-lane.dragging .at-tl-lanehead .at-tl-hl,
.at-tl-row.at-tlopen .at-tl-hl, .at-tl-row.at-tlopen .at-tl-acts, .at-tl-row.dragging .at-tl-hl { opacity: 1; pointer-events: auto; }
.at-tl-row .at-tl-acts:has(.at-eye.on) { opacity: 1; pointer-events: auto; }
.at-tl-row .at-tl-acts:has(.at-eye.on) > :not(.at-eye.on) { display: none; }
.at-tl-row .at-tl-label:focus-within .at-tl-acts > *, .at-tl-row.at-tlopen .at-tl-acts > * { display: inline-flex !important; }
.at-tl-row .at-tl-name { padding: 0 2px; }
/* Заголовок группы (Artem 18.11): название — на одной линии с названиями строк, своим цветом (по умолчанию — цвет группы
   из админки); ⠿ и кружок цвета — поверх названия при наведении, 👁 — тоже при наведении. На телефоне ⠿ и 👁 видны. */
.at-tl-lanehead .at-tl-gname { color: var(--gc, var(--gold)); padding: 0 2px; }
.at-tl-lanehead .at-tl-gname[data-tlren] { cursor: text; }
.at-tl-lanehead .at-tl-gname[data-tlren]:hover { text-decoration: underline dotted; text-underline-offset: 4px; }
.at-tl-lanehead > .at-eye:not(.on) { opacity: 0; transition: opacity .12s; }
.at-tl-lanehead:hover > .at-eye, .at-tl-lanehead:focus-within > .at-eye { opacity: 1; }
.at-tl-renf { display: inline-flex; align-items: center; gap: 4px; text-transform: none; letter-spacing: 0; font-weight: var(--fw-regular, 400); }
/* Переименование группы — как колонка на Доске (та же форма .at-colform, Artem 18.11); заголовок не прыгает. */
.at-tl-lanehead .at-tl-renf { width: auto; flex-wrap: nowrap; align-items: center; margin: -7px 0; text-transform: none; letter-spacing: 0; font-weight: var(--fw-regular, 400); font-size: var(--fs-sm); }
.at-tl-lanehead .at-tl-renf input { flex: none; min-width: 0; max-width: 50vw; height: 30px; padding-top: 0; padding-bottom: 0; }
.at-tl-lanehead .at-tl-renf button { height: 30px; min-height: 0; padding-top: 0; padding-bottom: 0; }
.at-tl-lanehead:has(.at-tl-renf) .at-tl-hl, .at-tl-lanehead:has(.at-tl-renf) .at-tl-gsw { display: none; }
/* «+ элемент» — последней строкой группы. */
.at-tl-addrow { position: sticky; left: 0; display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; width: var(--tl-label); box-sizing: border-box; padding: 2px var(--sp-2) var(--sp-2); }
@media (hover: none) { .at-tl-lanehead .at-tl-hl { opacity: 1; pointer-events: auto; position: static; transform: none; box-shadow: none; }
  .at-tl-lanehead > .at-eye { opacity: 1; } }
.at-tl-lanehead .at-tl-grip { width: 22px; min-width: 22px; height: 26px; font-size: 13px; border: 0; }
/* Artem 18.11: кружок цвета строки виден всегда — в конце названия (значки при наведении — левее него);
   у группы кружок цвета названия — справа, рядом с 👁, при наведении. */
.at-tl-row .at-tl-label > .at-tl-sw { flex: none; width: 16px; height: 16px; margin-left: 6px; }
.at-tl-row .at-tl-acts { right: 30px; }
.at-tl-lanehead .at-tl-gsw { width: 16px; height: 16px; opacity: 0; transition: opacity .12s; }
.at-tl-lanehead:hover .at-tl-gsw, .at-tl-lanehead:focus-within .at-tl-gsw { opacity: 1; }
@media (hover: none) { .at-tl-lanehead .at-tl-gsw { opacity: 1; } }

/* Всплывашка «каналов нет» при включении 🔔 — над нижней навигацией телефона. */
.at-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 1000;
  width: min(560px, calc(100vw - 32px)); display: flex; gap: var(--sp-2); align-items: flex-start; padding: var(--sp-3);
  background: #23222a; border: 1px solid var(--warn); border-left-width: 4px; box-shadow: 0 8px 28px rgba(0,0,0,.5); font-weight: 600; }
.at-toast > span { flex: 1; }
@media (min-width: 1001px) { .at-toast { bottom: var(--sp-4, 24px); } }
.at-nowcard .at-pbalive { margin-top: 4px; }
.at-nowcard .at-pbnext { margin-top: 2px; }
.at-pbnext .count { white-space: nowrap; }
/* Смужка ПБ над Таймлайном (Artem 21.11): только когда ПБ живы или респ скоро; ведёт на «Сейчас». */
.at-pbstrip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 var(--sp-2, 8px); padding: 8px 12px;
  background: var(--panel-2, #23222a); border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 4px; color: var(--fg, inherit); text-decoration: none; font-size: 14px; }
.at-pbstrip.is-live { border-left-color: var(--ok); }
.at-pbstrip:hover { border-color: var(--accent); }
.at-pbstrip-alive { color: var(--ok); font-weight: 700; }
.at-pbstrip .count { white-space: nowrap; }
.at-pbstrip-go { margin-left: auto; color: var(--accent); }
/* Точка на вкладке «Сейчас»: зелёная с числом — живые ПБ, оранжевая без числа — скоро респ. */
.at-pbdot { display: inline-grid; place-items: center; min-width: 8px; height: 8px; margin-left: 6px; border-radius: 999px; background: var(--warn); box-shadow: 0 0 6px var(--warn); vertical-align: middle; font: 700 11px/1 var(--f-body, inherit); color: #111; }
.at-pbdot.is-live { min-width: 18px; height: 18px; padding: 0 5px; background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.at-pbdot:empty.is-live { min-width: 8px; height: 8px; padding: 0; }

/* ---------- Простой вид (Artem 19.11): название + цвет + отметка ---------- */
.at-crumbs { flex-wrap: wrap; row-gap: 6px; }
.at-crumbs-path { min-width: min(100%, 160px); }
@media (max-width: 600px) { .at-sviewtg { order: 3; } }
.at-sviewtg { flex: none; display: inline-flex; align-items: center; gap: 8px; align-self: center; }
.at-sviewlbl { color: var(--muted); font-size: 13px; }
/* сегментированный переключатель: одна рамка, внутри «бегунок» под выбранным сегментом */
.at-sviewsw { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--border-strong); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5); }
.at-sviewsw::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px;
  background: var(--accent); box-shadow: 0 1px 4px rgba(0, 0, 0, .45); transition: transform .2s cubic-bezier(.2, .7, .2, 1); }
.at-sviewsw.is-full::before { transform: translateX(100%); }
.at-sviewsw .at-sviewopt { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 0; height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; box-shadow: none; clip-path: none;
  color: var(--text-dim, var(--muted)); font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; white-space: nowrap; cursor: pointer; }
.at-sviewsw .at-sviewopt:hover:not(.on) { color: var(--text-strong, var(--text)); background: transparent; }
.at-sviewsw .at-sviewopt.on { color: var(--accent-ink); cursor: default; }
.at-sviewsw .at-sviewopt .icon { width: 16px; height: 16px; }
.at-sviewsw .at-sviewopt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .at-sviewsw::before { transition: none; } }
.at-sgroups { display: flex; flex-direction: column; gap: var(--sp-4, 16px); }
.at-sgroups.at-sboard { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: var(--sp-5) var(--sp-3); }
.at-sboard > .at-slane { flex: 0 1 calc((100% - 4 * var(--sp-3)) / 5); min-width: 250px; display: flex; flex-direction: column; gap: var(--sp-4, 16px); }
@media (max-width: 640px) { .at-sboard > .at-slane { flex-basis: 100%; min-width: 0; } }
.at-sgroup { min-width: 0; }
.at-sghead { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--text-dim, var(--muted)); }
.at-slist { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px; }
.at-sboard .at-slist { grid-template-columns: 1fr; }
:where(.at-srow) { --loc: var(--loc-default); }
.at-srow { display: flex; min-width: 0; align-items: center; gap: 8px; min-height: 40px; padding: 4px 8px 4px 10px;
  border: 1px solid var(--line, var(--border)); border-left: 4px solid var(--loc); border-radius: var(--radius);
  background: color-mix(in srgb, var(--loc) 16%, var(--panel-solid)); }
.at-srow:hover { border-color: var(--border-strong); border-left-color: var(--loc); }
.at-sname { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.3; font-weight: 600; }
.at-sname a { color: var(--title, var(--text)); }
.at-sname a:hover { color: var(--accent); }
.at-smark { flex: none; display: inline-flex; align-items: center; gap: 4px; }
.at-srow .at-bc-do { width: 26px; height: 26px; font-size: 13px; }
.at-srow.done .at-snm { text-decoration: line-through; opacity: .55; }
.at-snm { display: block; }
.at-sname .at-rewards { margin-top: 4px; font-weight: 400; }
.at-sname .at-rewards input { max-width: 150px; }
.at-srow.done { background: color-mix(in srgb, var(--loc) 6%, var(--panel-solid)); }
.at-srow.at-off, .at-srow.at-hidden { opacity: .5; }
.at-scnt { display: inline-flex; align-items: center; gap: 2px; }
.at-scnt button { width: 26px; height: 26px; min-height: 0; padding: 0; }
.at-scnt b { min-width: 20px; text-align: center; color: var(--muted); }
.at-scnt.on b { color: var(--ok); }
.at-scheck { flex: none; width: 18px; height: 18px; min-height: 0; padding: 0; border-radius: 3px; border: 1px solid var(--border-strong);
  background: transparent; color: var(--muted); font-size: 10px; line-height: 1; clip-path: none; box-shadow: none; }
.at-scheck:hover { border-color: var(--ok); }
.at-scheck.on { background: var(--ok); border-color: var(--ok); color: var(--accent-ink); }
.at-ssteps { display: inline-flex; flex-wrap: wrap; gap: 3px; justify-content: flex-end; }
@media (max-width: 600px) { .at-slist { grid-template-columns: 1fr; } }

/* Расширенный вид (Artem 19.11): плитки в сетке — одного размера (ряды равной высоты, плитка тянется на всю клетку),
   шапка — одной высоты на 2 строки, текст и кнопка в ней по центру по вертикали. На телефоне (одна колонка) — по содержимому. */
.at-tgrid:not([style*="--tc:1"]) { grid-auto-rows: 1fr; align-items: stretch; }
.at-tgrid:not([style*="--tc:1"]) > .at-tile { height: 100%; }
:root[data-ui] .at-tile > .row:first-child { align-items: center; min-height: 58px; }
/* Простой вид Квестов/Данжей/Активностей и Доски (Artem 19.11): название группы (колонки) — по центру, крупнее и ярче, с линиями по бокам. */
.at-sgroups .at-sghead { display: flex; align-items: center; gap: 14px; margin: 4px 0 10px;
  font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.at-sgroups .at-sghead::before { display: none; }
.at-sgroups .at-sghead::after, .at-sgroups .at-sghead > .at-sgline { content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 55%, transparent)); }
.at-sgroups .at-sghead::after { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, transparent), transparent); }
/* Доска без чипов (Artem 19.11): если в нижней строке карточки только инструменты по наведению (✎ ✕ 👁) — строка не занимает места,
   карточка сжимается до шапки, а инструменты появляются при наведении в правом нижнем углу поверх карточки. */
@media (hover: hover) {
  :root[data-ui="v2"] .at-board .at-bcard.at-bc-headonly > .at-bc-head { margin-bottom: -10px; border-bottom: 0; border-radius: var(--radius); }
}
.at-sgroups .at-sghead .muted.small { font-size: 12px; letter-spacing: 0; }
.at-sgroups .at-sghead::after, .at-sgroups .at-sghead > .at-sgline { min-width: 14px; }
.at-sghead > .at-sgt { text-align: center; }
.at-sboard .at-sghead { gap: 8px; font-size: 14px; letter-spacing: .05em; }
.at-crumbs a.at-guide.at-guide-off { visibility: hidden; pointer-events: none; }
.at-swhen { display: block; margin-top: 2px; font-weight: 400; color: color-mix(in srgb, var(--accent) 75%, var(--muted)); font-size: 12px; }
.at-swhen b, .at-swhen .count { color: var(--accent); font-weight: 700; }
.at-swhen.at-swlive, .at-swhen.at-swlive .count, .at-swhen.at-swlive .live { color: var(--ok); }
.at-swhen.at-swlive .live { font-weight: 700; }
.at-dghead > a.at-guide, .at-daycount > a.at-guide, .at-tl-tools > a.at-guide { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--accent); white-space: nowrap; }
.at-dghead > a.at-guide .icon, .at-daycount > a.at-guide .icon, .at-tl-tools > a.at-guide .icon { width: 16px; height: 16px; }
.at-dghead > a.at-guide:hover, .at-daycount > a.at-guide:hover, .at-tl-tools > a.at-guide:hover { color: var(--text-strong); }
.at-swhen .at-swp { white-space: nowrap; }
.at-sbell button.xs { width: 28px; min-width: 28px; height: 28px; min-height: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }

/* «Сейчас» в две колонки (Artem 20.11, вариант C): слева — что идёт (крупные плитки), справа — «Дальше» строками. */
.at-now2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-5, 24px); align-items: start; }
.at-now2 .at-nowlist { max-width: none; }
.at-now-empty { margin: 6px 0 0; text-align: center; }
.at-nowrows { display: flex; flex-direction: column; gap: 5px; }
:where(.at-nowrow) { --loc: var(--loc-default); }
.at-nowrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 4px 14px; min-height: 42px; padding: 4px 8px 4px 12px;
  border: 1px solid var(--line, var(--border)); border-left: 4px solid var(--loc); border-radius: var(--radius);
  background: color-mix(in srgb, var(--loc) 14%, var(--panel-solid)); }
.at-nowrow:hover { border-color: var(--border-strong); border-left-color: var(--loc); }
.at-nowrow .at-nr-name { min-width: 0; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.at-nowrow .at-nr-name a { color: var(--title, var(--text)); }
.at-nowrow .at-nr-name a:hover { color: var(--accent); }
.at-nowrow .at-nr-when { color: var(--muted); white-space: nowrap; }
.at-nowrow .count { font-weight: 700; white-space: nowrap; text-align: right; min-width: 118px; }
.at-nowrow .count.soon { color: var(--accent); }
.at-nowrow .actions { display: inline-flex; align-items: center; gap: 6px; }
.at-nowrow .at-bell.xs, .at-nowrow .at-eye { width: 28px; min-width: 28px; height: 26px; min-height: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.at-nowrow.done .at-nr-name { text-decoration: line-through; opacity: .55; }
@media (max-width: 860px) { .at-now2 { grid-template-columns: 1fr; } }
@media (max-width: 1200px) { .at-nowrow { grid-template-columns: minmax(0, 1fr) auto; } .at-nowrow .at-nr-when { grid-column: 1; grid-row: 2; white-space: normal; } .at-nowrow .count { grid-column: 2; grid-row: 1; min-width: 0; } .at-nowrow .actions { grid-column: 2; grid-row: 2; justify-content: flex-end; } }
@media (max-width: 640px) {
  .at-nowrow { grid-template-columns: minmax(0, 1fr) auto; }
  .at-nowrow .at-nr-when { grid-column: 1; grid-row: 2; white-space: normal; }
  .at-nowrow .count { grid-column: 2; grid-row: 1; min-width: 0; }
  .at-nowrow .actions { grid-column: 2; grid-row: 2; justify-content: flex-end; }
}
.at-nowcard.at-hidden, .at-nowrow.at-hidden { opacity: .4; }

/* Ссылка в базу знаний (Artem 20.11): при наведении рядом появляется значок базы знаний — та же книга, что в шапке.
   Значок absolute (на месте сразу после текста) и появляется только при наведении/фокусе — ничего не сдвигается; на касании (hover: none) не показываем.
   Ловим все ссылки трекера в базу: /knowledge-base/…, /ru|en/knowledge-base/… и wiki.-домен (после префикса языка в portal.js). */
#view { --kb-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4.5A1.5 1.5 0 0 1 5.5 3H20v16H5.5A1.5 1.5 0 0 0 4 20.5z'/%3E%3Cpath d='M4 20.5A1.5 1.5 0 0 0 5.5 22H20M8 7h8'/%3E%3C/svg%3E"); }
#view a[href*="/knowledge-base/"]::after, #view a[href*="//wiki."]::after {
  position: absolute; width: .95em; height: .95em; margin: .22em 0 0 .28em; pointer-events: none; background: var(--accent);
  -webkit-mask: var(--kb-ic) center / contain no-repeat;
  mask: var(--kb-ic) center / contain no-repeat;
}
#view a[href*="/knowledge-base/"]:focus-visible::after, #view a[href*="//wiki."]:focus-visible::after { content: ""; }
@media (hover: hover) {
  #view a[href*="/knowledge-base/"]:hover::after, #view a[href*="//wiki."]:hover::after { content: ""; }
}
/* Таймлайн: конец названия при наведении закрывают значки строки (👁, ↺ ✎ ✕) — книгу показываем первой среди них, сразу после видимого текста. */
#view .at-tl-name a::after { content: none !important; }
#view .at-tl-row:has(.at-tl-name a:focus-visible) .at-tl-acts::before { content: ""; flex: none; width: 15px; height: 15px; background: var(--accent); -webkit-mask: var(--kb-ic) center / contain no-repeat; mask: var(--kb-ic) center / contain no-repeat; }
@media (hover: hover) {
  #view .at-tl-row:has(.at-tl-name a:hover) .at-tl-acts::before { content: ""; flex: none; width: 15px; height: 15px; background: var(--accent); -webkit-mask: var(--kb-ic) center / contain no-repeat; mask: var(--kb-ic) center / contain no-repeat; }
}
/* Телефон (Artem 20.11, вариант C): узкая липкая колонка названий в 2 строки, лента листается вбок,
   ширина ленты — от часов (--tl-mw из app.js), колонка названий не растягивается (своя ширина с десктопа не действует). */
@media (max-width: 720px) {
  .at-tl { --tl-label: 150px !important; }
  .at-tl-inner { min-width: calc(var(--tl-label) + var(--tl-mw, 960px)); }
  .at-tl-rszbar, .at-tl-rsz, .at-tl-label::after { display: none; }
  .at-tl-row { min-height: 48px; }
  .at-tl-row .at-tl-label { gap: 3px; padding: 0 4px 0 6px; box-shadow: 6px 0 10px -4px rgba(0,0,0,.5); }
  .at-tl-row .at-tl-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: var(--fs-xs); line-height: 1.25; }
  .at-tl-row .at-tl-name small { display: none; }
  .at-tl-row .at-tl-label > .at-tl-sw { width: 12px; height: 12px; margin-left: 4px; border-width: 1px; }
  .at-tl-lanehead { max-width: calc(100vw - 48px); }
  .at-tl-lanehead .at-tl-gname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .at-tl-tick i { font-size: 11px; }
  /* День недели над временем, чтобы первая засечка не наезжала на следующую */
  .at-tl-tick:has(em) { top: 0; }
  .at-tl-tick em { display: block; font-size: 11px; line-height: 1.1; color: var(--gold); font-weight: var(--fw-regular, 400); }
}

/* Общий персонаж и подписка у персонажа (Artem 20.11) */
.at-share { margin-top: var(--sp-3); }
.at-share h3 { margin: var(--sp-3) 0 var(--sp-2); }
.at-share h3:first-child { margin-top: 0; }
.at-sharecode { display: grid; gap: var(--sp-2); }
.at-sharecode .row { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: nowrap; }
.at-sharecode input { flex: 1; min-width: 0; }
.at-subchip { cursor: pointer; }
.at-join .row { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }
.at-subchars { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-2); margin: var(--sp-2) 0; }
.at-subchar { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.at-subchar[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
