/* UPSKINS — вкладка «Достижения» личного кабинета (пакет UPSKINS_ACHIEVEMENTS_CARDS_APPROVED_v1, утверждён вариант №1 — сетка карточек).
   Без большого заголовка: строка фильтров сразу под вкладками, затем 3×2 карточки (планшет 2, телефон 1), пагинация 6/6/6/2.
   Стили взяты из preview/achievements.css пакета и ограничены #accountView .up-ach; фон и шапка кабинета — прежние.
   — agent: main, model: claude-opus-5-5 */
#accountView .up-ach { padding: 4px 0 6px; color: #eef0ee; }
#accountView .up-ach button { font: inherit; color: inherit; cursor: pointer; }
#accountView .up-ach button:disabled { cursor: default; opacity: .55; }
#accountView .up-ach button:focus-visible, #accountView .up-ach a:focus-visible { outline: 2px solid #ffd394; outline-offset: 3px; }
#accountView .up-ach-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
#accountView .up-ach-filters { display: flex; gap: 8px; flex-wrap: wrap; }
#accountView .up-ach-filters button { border: 1px solid rgba(88, 97, 106, .48); background: rgba(16, 29, 38, .47); border-radius: 20px; padding: 7px 15px; font-size: 13px; min-height: 34px; }
#accountView .up-ach-filters button:hover { border-color: rgba(255, 133, 11, .6); }
#accountView .up-ach-filters button[aria-pressed="true"] { background: #ff850b; border-color: #ff850b; color: #160d03; font-weight: 700; }
#accountView .up-ach-ready { display: inline-flex; align-items: center; gap: 8px; flex: none; background: rgba(56, 41, 22, .53); border: 1px solid rgba(147, 97, 54, .53); border-radius: 6px; color: #ffd59d !important; padding: 7px 12px; font-size: 13px; min-height: 34px; }
#accountView .up-ach-ready[aria-pressed="true"] { border-color: #ff9824; box-shadow: 0 0 0 1px #ff9824 inset; }
#accountView .up-ach-since { margin: -8px 0 14px; font-size: 12px; color: #9fa9b0; }
#accountView .up-ach-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
#accountView .up-ach-card { min-width: 0; min-height: 214px; border: 1px solid #ac916c; border-radius: 10px; padding: 14px 12px 10px; background: linear-gradient(115deg, rgba(24, 37, 43, .6), rgba(22, 33, 42, .94)); display: flex; flex-direction: column; position: relative; box-shadow: inset 0 0 20px rgba(6, 12, 18, .5); }
#accountView .up-ach-card.is-ready { border-color: #ff9a22; box-shadow: 0 0 0 1px rgba(255, 154, 34, .27), 0 0 17px rgba(254, 138, 25, .2), inset 0 0 20px rgba(26, 22, 12, .5); }
#accountView .up-ach-card.is-done { border-color: #8c9a6a; }
#accountView .up-ach-main { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; flex: 1; min-width: 0; }
#accountView .up-ach-img { width: 96px; height: 100px; object-fit: contain; align-self: center; filter: drop-shadow(0 5px 5px rgba(0, 0, 0, .4)); }
#accountView .up-ach-text { min-width: 0; }
#accountView .up-ach-name { border: 0; background: none; padding: 0; text-align: left; font-weight: 700; font-size: 16px; line-height: 1.22; display: block; width: 100%; margin-bottom: 2px; }
#accountView .up-ach-name:hover { text-decoration: underline; text-underline-offset: 3px; }
#accountView .up-ach-stars-line { display: flex; align-items: center; gap: 10px; margin: 6px 0 8px; }
#accountView .up-ach-stars { display: inline-flex; gap: 4px; flex: none; }
#accountView .up-ach-star { width: 19px; height: 19px; color: #bca077; display: block; fill: transparent; stroke: currentColor; stroke-width: 1.3; }
#accountView .up-ach-star.is-filled { fill: #ffc459; color: #ffd282; filter: drop-shadow(0 0 3px rgba(249, 183, 78, .4)); }
#accountView .up-ach-star.is-pending { color: #ff9b24; stroke-width: 1.8; filter: drop-shadow(0 0 3px rgba(255, 153, 36, .4)); }
#accountView .up-ach-count { font-size: 12px; color: #d8dce0; white-space: nowrap; }
#accountView .up-ach-cond { font-size: 13px; line-height: 1.4; min-height: 36px; color: #e3e7e7; }
#accountView .up-ach-state { font-size: 12px; color: #c8b28f; line-height: 1.35; margin-top: 2px; }
#accountView .up-ach-prog { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; }
#accountView .up-ach-track { height: 7px; flex: 1; border-radius: 8px; background: #3c4952; overflow: hidden; min-width: 20px; }
#accountView .up-ach-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff7900, #ff9c28); }
#accountView .up-ach-plabel { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
#accountView .up-ach-bottom { display: flex; gap: 8px; align-items: center; justify-content: space-between; border: 1px solid rgba(108, 106, 90, .33); border-radius: 6px; padding: 5px 6px 5px 8px; background: rgba(49, 56, 58, .25); min-height: 44px; }
#accountView .up-ach-reward { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; min-width: 0; line-height: 1.3; }
#accountView .up-ach-gift { width: 20px; height: 20px; flex: none; color: #d9a456; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
#accountView .up-ach-bottom .acc-btn { flex: none; height: 32px; padding: 0 12px; font-size: 13px; }
#accountView .up-ach-done { font-size: 12px; color: #b9cc97; white-space: nowrap; padding: 0 6px; }
#accountView .up-ach-empty { grid-column: 1 / -1; color: #b8c0c3; text-align: center; padding: 36px 12px; }
#accountView .up-ach-skel { min-height: 214px; border-radius: 10px; border: 1px solid rgba(172, 145, 108, .3); background: linear-gradient(100deg, rgba(255, 255, 255, .02) 30%, rgba(255, 255, 255, .05) 50%, rgba(255, 255, 255, .02) 70%); }
#accountView .up-ach-foot { margin-top: 18px; border-top: 1px solid rgba(90, 96, 84, .33); padding: 16px 0 0; display: flex; align-items: center; gap: 18px; justify-content: space-between; color: #bec5c7; font-size: 13px; }
#accountView .up-ach-pages { display: flex; gap: 8px; align-items: center; }
#accountView .up-ach-pages button { min-width: 32px; height: 32px; border: 1px solid rgba(99, 105, 110, .4); border-radius: 5px; background: rgba(18, 32, 44, .33); }
#accountView .up-ach-pages button[aria-current="page"] { border-color: #ec8825; color: #ffa43c; background: rgba(53, 35, 18, .6); }
#accountView .up-ach-lvl { color: #ff9e35; font-size: 13px; font-weight: 700; white-space: nowrap; text-decoration: none; }
#accountView .up-ach-lvl:hover { text-decoration: underline; }
/* окна (общий диалог кабинета .acc-dlg) */
.acc-dlg.up-ach-dlg .up-ach-dh { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.acc-dlg.up-ach-dlg .up-ach-dh img { width: 84px; height: 84px; object-fit: contain; }
.acc-dlg.up-ach-dlg .up-ach-dh h2 { margin: 0 0 6px; }
.acc-dlg.up-ach-dlg .up-ach-note { font-size: 13px; line-height: 1.5; color: #bac7ce; margin: 0; }
.acc-dlg.up-ach-dlg .up-ach-tiers { display: grid; gap: 8px; margin: 16px 0 4px; padding: 0; list-style: none; }
.acc-dlg.up-ach-dlg .up-ach-tier { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; border: 1px solid rgba(102, 112, 120, .4); background: rgba(11, 21, 32, .33); padding: 11px 12px; border-radius: 7px; }
.acc-dlg.up-ach-dlg .up-ach-tier.is-current { border-color: #ec9229; }
.acc-dlg.up-ach-dlg .up-ach-tier strong { font-size: 14px; display: block; }
.acc-dlg.up-ach-dlg .up-ach-tier p { font-size: 13px; color: #c4cdd3; margin: 4px 0; }
.acc-dlg.up-ach-dlg .up-ach-tier small { font-size: 12px; color: #aab8be; }
.acc-dlg.up-ach-dlg .up-ach-star { width: 20px; height: 20px; color: #bca077; fill: transparent; stroke: currentColor; stroke-width: 1.3; }
.acc-dlg.up-ach-dlg .up-ach-star.is-filled { fill: #ffc459; color: #ffd282; }
.acc-dlg.up-ach-dlg .up-ach-star.is-pending { color: #ff9b24; stroke-width: 1.8; }
.acc-dlg.up-ach-win { text-align: center; }
.acc-dlg.up-ach-win h2 { padding: 0 30px; margin-bottom: 8px; }
.acc-dlg.up-ach-win .up-ach-win-img { width: 132px; height: 128px; object-fit: contain; filter: drop-shadow(0 4px 20px rgba(226, 138, 44, .2)); }
.acc-dlg.up-ach-win .up-ach-win-prize { display: block; font-size: 21px; font-weight: 700; color: #ffae4e; margin: 6px 0 10px; }
.acc-dlg.up-ach-win p { font-size: 14px; line-height: 1.5; color: #bec8ce; margin: 0 0 8px; }
.acc-dlg.up-ach-win .up-ach-win-star { color: #b4d799; }
.acc-dlg.up-ach-win .acc-btn--primary { min-width: 180px; margin-top: 8px; }
@media (max-width: 1250px) {
  #accountView .up-ach-main { grid-template-columns: 78px minmax(0, 1fr); gap: 9px; }
  #accountView .up-ach-img { width: 78px; height: 96px; }
  #accountView .up-ach-name { font-size: 15px; }
  #accountView .up-ach-star { width: 17px; height: 17px; }
  #accountView .up-ach-stars { gap: 3px; }
  #accountView .up-ach-bottom { padding: 5px; gap: 5px; }
  #accountView .up-ach-reward { font-size: 12px; }
  #accountView .up-ach-bottom .acc-btn { font-size: 12px; padding: 0 9px; }
}
@media (max-width: 1000px) {
  #accountView .up-ach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #accountView .up-ach-main { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
  #accountView .up-ach-img { width: 92px; }
  #accountView .up-ach-bar { align-items: flex-start; }
  #accountView .up-ach-foot { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  #accountView .up-ach-bar { display: block; margin-bottom: 14px; }
  #accountView .up-ach-filters { gap: 6px; }
  #accountView .up-ach-filters button { font-size: 12px; padding: 6px 12px; }
  #accountView .up-ach-ready { margin-top: 10px; }
  #accountView .up-ach-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #accountView .up-ach-card { min-height: 200px; padding: 12px 10px 10px; }
  #accountView .up-ach-main { grid-template-columns: 84px minmax(0, 1fr); gap: 10px; }
  #accountView .up-ach-img { width: 84px; }
  #accountView .up-ach-foot { justify-content: center; gap: 12px; }
  #accountView .up-ach-foot > span { width: 100%; text-align: center; }
  .acc-dlg.up-ach-dlg .up-ach-dh img { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  #accountView .up-ach *, .acc-dlg.up-ach-dlg, .acc-dlg.up-ach-win { transition: none !important; animation: none !important; }
}
