/* Урок Просто — главная кабинета в стиле v2 «Строка запроса», круг 2 (up-home.css). Корень — .up-home рядом с .up;
   вариант Б «без строки» добавляет .up-dash. Общие компоненты (композер, капсула, пилюли, чипы, кнопка-морф, липкая
   полоса) — из up-kit.css. Своё: появление лесенкой (.up-rise), чипы «Дополнить урок» внутри строки (.up-home-addon),
   сводка (.up-sum*), карточки контекста (.up-card.is-ctx, .up-ev), лента «Недавние» (.up-strip, .up-rc*),
   вариант Б: кнопка (.up-dash-cta), «Продолжить» (.up-cont*), тариф (.up-plan*), классы (.up-cls*), уведомления (.up-ntf). */

/* ---------- появление блоков лесенкой: по --n с шагом 70 мс; backwards — после конца никаких filter/transform не остаётся ---------- */
.up-home .up-rise { animation: up-home-rise .5s var(--ease-out) backwards; animation-delay: calc(var(--n, 0) * 70ms); }
@keyframes up-home-rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
@keyframes up-home-pop { from { opacity: 0; transform: scale(.6); } }

/* ---------- шапка: дата слева, подсказка справа ---------- */
.up-home .up-main { padding-bottom: 80px; }
.up-home-date { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; line-height: 20px; color: var(--text-2); }
.up-home-date svg { color: var(--ws-icon); }
.up-home .up-lead { max-width: 720px; }
.up-home .up-h1 { text-wrap: balance; }
.up-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.up-h3 { margin: 0; font-family: var(--font-display); font-size: 19px; line-height: 26px; letter-spacing: -.01em; color: var(--ink); }
.up-sub { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-2); }
.up-sub.is-q { color: var(--ink); font-weight: 600; margin-top: 2px; }

/* ---------- композер: баланс справа в шапке, «Ещё настройки» — ссылка, вспышка кольца при подстановке ---------- */
.up-home-credits { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--text-2); white-space: nowrap; }
.up-home-credits svg { color: var(--ws-icon); }
.up-home .up-pill.is-more { text-decoration: none; }
.up-home .up-pill.is-more .up-pill-ic { color: var(--text-2); }
.up-home .up-go { text-decoration: none; }
.up-home .up-go[data-ready="false"] { pointer-events: none; }
.up-home[data-theme="dark"] .up-go.f-btn-accent[data-ready="true"] { color: #fff; }
/* светлая: при наведении готовая «Собрать…» темнеет, a:hover из <helmet> красил подпись в тот же цвет — подпись не было видно;
   подпись белая, как в тёмной (владелец 05.11, шаг 0д п. 8) */
.up-home .up-go.f-btn-accent[data-ready="true"]:hover { color: var(--on-primary); }
.up-home .up-token { animation: up-home-pop .5s var(--spring) both; }
.up-home .up-token.is-main { animation: none; }
/* после клика по карточке контекста кольцо делает один оборот (1.2 с) и гаснет */
.up-home .up-composer[data-flash="true"] .up-ring { opacity: 1; }
.up-home .up-composer[data-flash="true"] .up-ring::before { animation: up-rot 1.2s linear 1; }
/* чипы «Дополнить урок» внутри строки: ниже и компактнее, чем в веере А2 */
.up-home-addon { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 2px; animation: up-home-rise .35s var(--ease-out) both; }
.up-home-addon-l { display: inline-flex; align-items: center; gap: 4px; margin-right: 4px; font-size: 13px; line-height: 18px; color: var(--text-2); white-space: nowrap; }
.up-home-addon-l svg { color: var(--ws-icon); }
.up-home .up-chip.is-mini { height: 32px; padding: 0 12px 0 10px; font-size: 13.5px; gap: 5px; }

/* ---------- сводка: стеклянная строка из трёх значений, «Подробнее» раскрывает дни и сравнение ---------- */
.up-sum { position: relative; display: grid; border-radius: 22px; background: var(--up-glass); border: 1px solid var(--up-card-line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 2px rgba(31, 27, 58, .04), 0 14px 36px -28px rgba(60, 40, 120, .4); }
.up[data-theme="dark"] .up-sum { box-shadow: 0 14px 36px -28px rgba(0, 0, 0, .8); }
.up-sum-row { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 0; padding: 7px 10px 7px 6px; min-height: 54px; }
.up-sum-item { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 9px; padding: 4px 18px 4px 14px; border-right: 1px solid var(--up-card-line);
  font-size: 12.5px; line-height: 16px; color: var(--text-2); white-space: nowrap; }
.up-sum-item svg { grid-row: 1 / 3; flex: 0 0 auto; color: var(--ws-icon); }
.up-sum-item b { font-family: var(--font-display); font-size: 19px; line-height: 23px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.up-sum-row .up-new { margin-left: 14px; }
.up-sum-more { display: inline-flex; align-items: center; gap: 4px; height: 36px; margin-left: auto; padding: 0 10px 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ws-accent-ink);
  font-family: inherit; font-size: 14px; line-height: 20px; font-weight: 600; cursor: pointer; transition: background-color .15s; }
.up-sum-more:hover { background: var(--ws-accent-soft); }
.up-sum-more[aria-expanded="true"] .up-rot-chev { transform: rotate(180deg); }
.up-sum-panel { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px 28px; padding: 6px 20px 20px; border-top: 1px solid var(--up-card-line); margin-top: 2px;
  animation: up-home-rise .4s var(--ease-out) both; }
.up-sum-col { display: grid; gap: 12px; align-content: start; }
/* столбики растут пружиной лесенкой; число набирается JS */
.up-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; }
.up-barc { display: grid; grid-template-rows: 64px auto; justify-items: center; align-items: end; gap: 6px; }
.up-bar { display: block; width: 100%; max-width: 32px; height: calc(var(--h, .06) * 64px); min-height: 4px; border-radius: 4px 4px 2px 2px; background: var(--ws-bar); transform-origin: 50% 100%;
  animation: up-home-grow .7s var(--spring) backwards; animation-delay: calc(120ms + var(--n, 0) * 55ms); transition: background-color .3s; }
.up-barc[data-today="true"] .up-bar { background: var(--ws-accent); }
.up-barc:hover .up-bar { filter: brightness(.92); }
@keyframes up-home-grow { from { transform: scaleY(0); } }
.up-barl { font-size: 12px; line-height: 16px; color: var(--text-2); }
.up-barc[data-today="true"] .up-barl { color: var(--ink); font-weight: 700; }
.up-cmp { display: grid; gap: 6px; font-size: 14px; line-height: 20px; color: var(--text-2); }
.up-cmp-row { display: flex; justify-content: space-between; gap: 10px; }
.up-cmp-row b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.up-cmp-bar { height: 6px; border-radius: 3px; background: var(--ws-bar); overflow: hidden; }
.up-cmp-fill { display: block; height: 100%; width: var(--w, 2%); border-radius: 3px; background: var(--ws-accent); transition: width .6s var(--spring-soft); }
.up-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.up-tile-stat { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.up-tile-stat b { font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.up-tile-stat span { font-size: 12.5px; line-height: 16px; color: var(--text-2); }

/* ---------- карточки ---------- */
.up-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; padding: 20px 22px 18px; border-radius: 22px; background: var(--surface);
  border: 1px solid var(--up-card-line); box-shadow: 0 1px 2px rgba(31, 27, 58, .04), 0 18px 44px -28px rgba(60, 40, 120, .40); }
.up[data-theme="dark"] .up-card { box-shadow: 0 18px 44px -28px rgba(0, 0, 0, .8); }
.up-card .up-caps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* контекст: три карточки; клик подставляет в строку, выбранный чип — акцент */
.up-ctx { display: grid; grid-template-columns: 1.18fr 1fr 1fr; gap: 14px; align-items: stretch; }
.up-card.is-ctx { gap: 10px; padding: 18px 20px 16px; animation: up-home-rise .45s var(--ease-out) backwards; animation-delay: calc(440ms + var(--n, 0) * 70ms); }
.up-ctx-t { margin: 0; font-family: var(--font-display); font-size: 17px; line-height: 23px; letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
.up-ctx-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.up-ctx-chips.is-col { flex-direction: column; align-items: stretch; }
.up-home .up-chip { text-decoration: none; }
.up-home .up-chip.is-topic { height: auto; min-height: 40px; padding: 8px 14px 8px 12px; white-space: normal; text-align: left; line-height: 20px; justify-content: flex-start; }
.up-home .up-chip.is-topic svg { flex: 0 0 auto; }
.up-home .up-chip.is-ghost { background: transparent; color: var(--text-2); border-style: dashed; }
.up-home .up-chip.is-ghost:hover { background: var(--surface); color: var(--ws-accent-ink); border-style: solid; }
.up-home .up-chip[aria-pressed="true"] { border-color: var(--ws-accent); background: var(--ws-accent-soft); color: var(--ws-accent-ink); font-weight: 600; border-style: solid; }
.up-home .up-chip[aria-pressed="true"] svg { color: var(--ws-accent); }
.up-hint.is-foot { margin-top: auto; padding-top: 2px; font-size: 13px; line-height: 18px; }
/* памятные даты: плитка с числом, название, «через N дней», стрелка при наведении */
.up-evs { display: grid; gap: 4px; margin: 0 -8px; }
.up-ev { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 52px; padding: 6px 8px; border: 0; border-radius: 14px; background: transparent; color: var(--ink);
  font-family: inherit; text-align: left; cursor: pointer; transition: background-color .18s var(--ease-out); }
.up-ev:hover { background: var(--surface-2); }
.up-ev-d { display: grid; justify-items: center; align-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ws-icon-bg); color: var(--ws-icon); transition: background-color .2s, color .2s; }
.up-ev-d b { font-family: var(--font-display); font-size: 17px; line-height: 19px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.up-ev-d span { font-size: 10.5px; line-height: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.up-ev-t { display: grid; gap: 1px; min-width: 0; font-size: 14.5px; line-height: 20px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.up-ev-s { font-size: 12.5px; line-height: 16px; font-weight: 400; color: var(--text-2); }
.up-ev-arr { display: inline-grid; color: var(--ws-accent); opacity: 0; transform: translateX(-4px); transition: opacity .18s var(--ease-out), transform .18s var(--ease-out); }
.up-ev:hover .up-ev-arr, .up-ev[aria-pressed="true"] .up-ev-arr { opacity: 1; transform: none; }
.up-ev[aria-pressed="true"] { background: var(--ws-accent-soft); }
.up-ev[aria-pressed="true"] .up-ev-d { background: var(--surface); }
.up-ev[aria-pressed="true"] .up-ev-d b { color: var(--ws-accent-ink); }
.up-ev[aria-pressed="true"] .up-ev-t { color: var(--ws-accent-ink); }

/* ---------- «Недавние»: лента превью, снап, край растворяется; карточка приподнимается при наведении ---------- */
.up-recent { display: grid; gap: 12px; }
.up-strip-nav { display: inline-flex; gap: 6px; margin-left: 10px; }
.up-strip-btn { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--up-glass); color: var(--ink); cursor: pointer;
  transition: border-color .15s, color .15s, background-color .15s, transform .12s var(--ease-out); }
.up-strip-btn:hover { border-color: var(--ws-accent); color: var(--ws-accent-ink); background: var(--surface); }
.up-strip-btn:active { transform: scale(.94); }
.up-recent .up-sec-head .up-link { margin-left: auto; }
.up-strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 6px 24px 14px 6px; margin: -6px -24px -14px -6px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.up-strip::-webkit-scrollbar { display: none; }
.up-rc { flex: 0 0 204px; scroll-snap-align: start; display: grid; align-content: start; gap: 7px; color: inherit; text-decoration: none;
  animation: up-home-rise .45s var(--ease-out) backwards; animation-delay: calc(560ms + var(--n, 0) * 60ms); }
/* превью — плитка общего набора (up-sheets.css, .up-sh.is-tile: сцена 4:3 по ширине карточки); обёртка приподнимается */
.up-rc-pv { position: relative; display: block; border-radius: 12px; transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out); }
.up-rc:hover .up-rc-pv { transform: translateY(-3px); box-shadow: 0 22px 36px -22px rgba(60, 40, 120, .6); }
.up-rc:active .up-rc-pv { transform: scale(.985); }
.up-rc:hover .up-rc-t { color: var(--ws-accent-ink); }
/* комплект: за листом видны ещё два */
.up-rc-pv.is-kit { overflow: hidden; background: rgba(31, 27, 58, .05); }
.up[data-theme="dark"] .up-rc-pv.is-kit { background: rgba(255, 255, 255, .06); }
.up-rc-pv.is-kit .up-sh.is-tile { position: relative; z-index: 2; background: transparent; }
.up-rc-pv.is-kit::before, .up-rc-pv.is-kit > .up-rc-paper { content: ""; position: absolute; z-index: 1; left: 10%; right: 6%; top: 11%; bottom: -6%; border-radius: 4px; background: #fff;
  box-shadow: 0 1px 2px rgba(31, 27, 58, .12), 0 0 0 1px rgba(31, 27, 58, .08); transform: rotate(3deg); transition: transform .22s var(--ease-out); }
.up-rc-pv.is-kit > .up-rc-paper { left: 14%; right: 2%; top: 7%; transform: rotate(6deg); opacity: .85; }
.up-rc:hover .up-rc-pv.is-kit::before { transform: rotate(4deg); }
.up-rc:hover .up-rc-pv.is-kit > .up-rc-paper { transform: rotate(8deg); }
/* временные мини-листы (пока нет up_sheets.py): масштаб zoom */
.up-home-zoom { display: block; }
.up-home-zoom > div { box-shadow: none !important; border-radius: 0 !important; }
.up-home-zoom.is-tm { width: 400px; zoom: .455; }
.up-home-zoom.is-pl { width: 340px; zoom: .535; }
.up-home-zoom.is-sl { width: 364px; zoom: .5; padding-top: 16px; }
.up-home-zoom.is-gn { width: 360px; zoom: .505; }
.up-rc-pv:has(> .up-home-zoom) { height: 136px; padding: 10px 10px 0; overflow: hidden; background: #fff; border: 1px solid var(--up-card-line); }
.up-rc-t { font-size: 14px; line-height: 19px; font-weight: 600; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; }
.up-rc-s { font-size: 12.5px; line-height: 16px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-rc-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.up-rc-badge { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px 0 5px; border-radius: 6px; background: var(--ws-accent-soft); color: var(--ws-accent-ink); font-size: 11px; line-height: 16px; font-weight: 600; }
.up-rc-badge svg { color: var(--ws-accent); }

/* ---------- кнопка-пилюля (акцент, как главная кнопка варианта 1) ---------- */
.up-btn { --go-bg: var(--ws-accent); --go-fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px 0 16px; border: 0; border-radius: 999px;
  background: var(--go-bg); color: var(--go-fg); font-family: inherit; font-size: 15px; line-height: 22px; font-weight: 600; white-space: nowrap; cursor: pointer; text-decoration: none;
  box-shadow: 0 1px 2px rgba(31, 27, 58, .2), 0 12px 26px -10px rgba(75, 64, 184, .65);
  transition: transform .12s var(--ease-out), box-shadow .2s, background-color .2s var(--ease-out), opacity .2s; }
.up-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(31, 27, 58, .2), 0 16px 30px -10px rgba(75, 64, 184, .75); }
.up-btn:active:not(:disabled) { transform: scale(.97); }
.up[data-theme="dark"] .up-btn.f-btn-accent { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 26px -10px rgba(123, 98, 255, .6); }
.up[data-theme="dark"] .up-btn.f-btn-accent:hover:not(:disabled) { background: var(--primary-hover); }

/* ---------- вариант Б «без строки»: приветствие, одна кнопка, персональные карточки ---------- */
.up-dash .up-title { padding-bottom: 0; }
.up-dash-cta-wrap { display: flex; justify-content: center; padding: 2px 0 4px; }
.up-dash-cta { height: 54px; padding: 0 26px 0 22px; font-size: 16px; border-radius: 999px; gap: 10px; }
.up-dash-cta svg { transition: transform .4s var(--spring); }
.up-dash-cta:hover svg { transform: rotate(90deg); }
.up-dash-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.up-dash-grid > .up-card, .up-dash-grid > .up-dash-sec { grid-column: span 6; animation: up-home-rise .45s var(--ease-out) backwards; animation-delay: calc(400ms + var(--n, 0) * 70ms); }
.up-dash-grid > .is-c4 { grid-column: span 4; }
.up-dash-grid > .is-c3 { grid-column: span 3; }
.up-dash-grid > .is-c2 { grid-column: span 2; }
.up-dash-sec { display: grid; gap: 12px; }
.up-dash-sec .up-sec-head .up-caps { display: flex; align-items: center; gap: 8px; }
/* «Продолжить»: мини-лист слева, справа тема, что готово и что добавить */
.up-cont { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 18px; align-items: start; }
.up-cont-pv { position: relative; display: block; border-radius: 12px; transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out); }
.up-cont-pv:hover { transform: translateY(-3px); box-shadow: 0 22px 36px -22px rgba(60, 40, 120, .6); }
.up-cont-pv:has(> .up-home-zoom) { height: 150px; padding: 8px 8px 0; overflow: hidden; background: #fff; border: 1px solid var(--up-card-line); }
.up-cont-pv .up-home-zoom.is-tm { width: 400px; zoom: .4; }
.up-cont-body { display: grid; gap: 10px; min-width: 0; }
.up-cont-t { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 26px; letter-spacing: -.012em; color: var(--ink); overflow-wrap: anywhere; }
.up-cont-t a { color: inherit; text-decoration: none; }
.up-cont-t a:hover { color: var(--ws-accent-ink); }
.up-done-list { display: flex; flex-wrap: wrap; gap: 6px; }
.up-done-pill { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--success-tint); color: var(--success); font-size: 13px; line-height: 18px; font-weight: 600; text-decoration: none;
  animation: up-home-pop .5s var(--spring) backwards; animation-delay: calc(560ms + var(--n, 0) * 70ms); transition: filter .15s; }
.up-done-pill:hover { filter: brightness(.95); }
/* тариф: число крупно, шкала, строка использования, действия */
.up-plan { gap: 8px; grid-template-rows: auto auto auto auto auto auto minmax(0, 1fr); }
.up-plan-auto { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13.5px; line-height: 18px; color: var(--text-2); }
.up-plan-auto svg { color: var(--success); flex: 0 0 auto; }
.up-plan-big { margin: 0; display: flex; align-items: baseline; gap: 8px; font-family: var(--font-display); font-size: 34px; line-height: 40px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.up-plan-big span { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: 0; color: var(--text-2); }
.up-plan-bar { height: 6px; border-radius: 3px; background: var(--ws-bar); overflow: hidden; }
.up-plan-fill { display: block; height: 100%; width: var(--w, 30%); border-radius: 3px; background: linear-gradient(90deg, var(--ws-accent), var(--ws-accent-border)); transform-origin: 0 50%;
  animation: up-home-fill .8s var(--spring-soft) backwards; animation-delay: 600ms; }
@keyframes up-home-fill { from { transform: scaleX(0); } }
.up-plan-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; align-self: end; padding-top: 4px; }
.up-plan-acts .up-pill { text-decoration: none; }
/* классы: три карточки, у каждой свой пастельный ярлык */
.up-cls-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.up-cls { position: relative; display: grid; gap: 8px; padding: 16px 16px 14px; border-radius: 20px; background: var(--up-glass); border: 1px solid var(--up-card-line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .18s var(--ease-out), box-shadow .2s var(--ease-out), border-color .18s, background-color .18s; }
.up-cls:hover { transform: translateY(-2px); background: var(--surface); border-color: var(--ws-accent-border); box-shadow: 0 14px 30px -16px rgba(60, 40, 120, .45); }
.up-cls-head { display: flex; align-items: center; gap: 10px; }
.up-cls-tag { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; font-family: var(--font-display); font-size: 16px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); background: var(--c, var(--pastel-blue)); }
.up-cls-name { display: grid; gap: 1px; min-width: 0; }
.up-cls-name a { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink); text-decoration: none; }
.up-cls-name a:hover { color: var(--ws-accent-ink); }
.up-cls-name span { font-size: 12.5px; line-height: 16px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-cls-last { display: grid; gap: 1px; font-size: 13.5px; line-height: 18px; color: var(--text-2); }
.up-cls-last b { font-weight: 600; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.up-cls-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 2px; }
.up-cls-foot .up-pill { text-decoration: none; height: 34px; }
.up-cls-n { font-size: 13px; line-height: 18px; color: var(--text-2); white-space: nowrap; }
/* «Скоро» — те же строки дат, но ссылки; «Уведомления» — строки с плиткой-иконкой */
.up-home a.up-ev { text-decoration: none; }
.up-ntfs { display: grid; gap: 2px; margin: 0 -8px; }
.up-ntf { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 14px; color: inherit; text-decoration: none; transition: background-color .18s var(--ease-out); }
.up-ntf:hover { background: var(--surface-2); }
.up-ntf .up-tile { width: 40px; height: 40px; }
.up-ntf-t { display: grid; gap: 1px; min-width: 0; }
.up-ntf-t b { font-size: 14px; line-height: 19px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.up-ntf-t span { font-size: 13px; line-height: 17px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-ntf-d { font-size: 12.5px; line-height: 16px; color: var(--text-2); white-space: nowrap; }
.up-ntf:hover .up-tile { background: var(--ws-accent-soft); color: var(--ws-accent); }
.up-tile { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; background: var(--ws-icon-bg); color: var(--ws-icon);
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out); }
.up-ntf.is-new .up-tile { background: var(--ws-accent-soft); color: var(--ws-accent); }

/* ---------- ширины ---------- */
@media (max-width: 1023px) {
  .up-ctx { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .up-ctx > .is-ctx:first-child { grid-column: span 2; }
  .up-dash-grid > .is-c4, .up-dash-grid > .is-c2 { grid-column: span 6; }
}
@media (max-width: 767px) {
  .up-sum-panel { grid-template-columns: minmax(0, 1fr); }
  .up-ctx { grid-template-columns: minmax(0, 1fr); }
  .up-ctx > .is-ctx:first-child { grid-column: auto; }
  .up-dash-grid > .is-c3 { grid-column: span 6; }
  .up-cls-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639px) {
  .up-home .up-main { padding-bottom: 20px; }
  .up-home .up-help { width: 40px; height: 40px; }
  .up-home-credits { display: none; }
  .up-home .up-chip.is-mini { height: 36px; }
  .up-home-addon { gap: 6px; }
  .up-sum { border-radius: 20px; }
  .up-sum-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 0; padding: 8px 8px 6px; }
  .up-sum-item { padding: 6px 10px; column-gap: 8px; white-space: normal; border-right: 0; }
  .up-sum-item b { font-size: 18px; line-height: 22px; }
  .up-sum-item.is-plan { grid-column: 1; }
  .up-sum-row .up-new { grid-column: 2; justify-self: end; margin: 0 8px 0 0; align-self: start; }
  .up-sum-more { grid-column: 1 / -1; justify-content: center; height: 44px; margin: 2px 0 0; }
  .up-sum-panel { padding: 4px 14px 16px; }
  .up-card, .up-card.is-ctx { padding: 16px 16px 14px; border-radius: 20px; gap: 10px; }
  .up-home .up-chip { min-height: 44px; }
  .up-home .up-chip.is-mini { min-height: 36px; height: 36px; }
  .up-home .up-chip.is-later.is-mini { min-height: 36px; }
  .up-home .up-link { padding: 12px 0; margin: -12px 0 -12px auto; }
  .up-strip { gap: 12px; padding: 6px 16px 14px 16px; margin: -6px -16px -14px -16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 40px), transparent); }
  .up-rc { flex-basis: 176px; }
  .up-home-zoom.is-tm { zoom: .39; }
  .up-home-zoom.is-pl { zoom: .46; }
  .up-home-zoom.is-sl { zoom: .43; }
  .up-home-zoom.is-gn { zoom: .435; }
  .up-dash-cta { width: 100%; max-width: 420px; }
  .up-cont { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .up-cont-pv { max-width: 260px; margin: 0 auto; width: 100%; }
  .up-cont-pv:has(> .up-home-zoom) { height: 132px; max-width: 100%; }
  .up-cont-pv .up-home-zoom.is-tm { width: 100%; zoom: .5; }
  .up-strip-nav { display: none; }
  .up-cont-t { font-size: 18px; line-height: 24px; }
  .up-plan-big { font-size: 30px; line-height: 36px; }
  .up-cls-foot .up-pill { height: 40px; }
  .up-done-pill { height: 40px; padding: 0 12px 0 10px; }
  .up-home .up-token { height: 36px; }
  .up-cls-name a { display: block; padding: 12px 0; margin: -12px 0; }
  .up-cls-n { padding: 13px 0; margin: -13px 0; }
  .up-plan-acts .up-link { padding: 12px 0; margin: -12px 0 -12px auto; }
  .up-ev, .up-ntf { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; }
  .up-ev-d { width: 40px; height: 40px; }
  .up-ev-arr { display: none; }
}
@media (max-width: 359px) {
  .up-sum-item b { font-size: 16px; line-height: 20px; }
  .up-tiles { grid-template-columns: minmax(0, 1fr); }
  .up-rc { flex-basis: 164px; }
  .up-home-zoom.is-tm { zoom: .36; }
  .up-home-zoom.is-pl { zoom: .425; }
  .up-home-zoom.is-sl { zoom: .4; }
  .up-home-zoom.is-gn { zoom: .4; }
  .up-cont-pv .up-home-zoom.is-tm { width: 100%; zoom: .45; }
}
