/* ===== Вид по макетам: раскладка, форма плиток, вкладки, таблицы, шрифты — как на картинках.
   Цвета не задаются здесь: всё берётся из токенов темы (--surface-strong, --text, --accent, --dark…),
   поэтому палитры, прозрачность и размытие из оформления продолжают работать. ===== */
:root {
  --hs-r: 18px;                 /* скругление плиток */
  --hs-r-in: 12px;              /* вложенные блоки */
  --hs-serif: "Cormorant Garamond", "Playfair Display", "Lora", Georgia, serif;
  --hs-hand: "Caveat", "Comfortaa", cursive;
  --hs-glass: color-mix(in srgb, var(--surface-strong) calc(var(--card-alpha, 86%) * .74), transparent);
  --hs-glass-soft: color-mix(in srgb, var(--surface-strong) 34%, transparent);
  --hs-row: color-mix(in srgb, var(--text) 4.5%, transparent);
  --hs-row-hover: color-mix(in srgb, var(--text) 8%, transparent);
  --hs-line: color-mix(in srgb, var(--text) 10%, transparent);
  --hs-edge: color-mix(in srgb, var(--text) 14%, transparent);
  --hs-blur: blur(var(--card-blur, 18px)) saturate(1.15);
  --hs-on-bg: var(--text);
  --hs-fs: 14px;
}

/* ---------- Фон: картинка на всю страницу, плитки — стекло поверх ---------- */
.profile-screen[data-view="hub"] .profile-hero { position: fixed; inset: 0; height: auto; }
.profile-screen[data-view="hub"] .profile-hero::after {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-subtle) 22%, transparent) 0%, color-mix(in srgb, var(--surface-subtle) 46%, transparent) 55%, color-mix(in srgb, var(--surface-subtle) 62%, transparent) 100%);
}
.profile-screen[data-view="hub"] { background: var(--surface-subtle); }

/* ---------- Шапка сайта: полоса на всю ширину ---------- */
.topbar, .topbar.is-on-light {
  width: 100%; max-width: none; height: 64px; margin: 0 0 6px; padding: 0 clamp(14px, 2.4vw, 34px);
  gap: 6px; border: 0; border-bottom: 1px solid var(--hs-line); border-radius: 0; color: var(--text);
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: none;
}
.topbar .brand, .topbar a.brand { display: inline-flex; align-items: center; gap: 14px; padding: 6px 4px; color: var(--text); font-weight: 500; }
.topbar .brand.is-active { color: var(--text); background: transparent; }
.topbar .h-bow svg { width: 40px; height: 27px; }
.h-team-name { font-family: var(--hs-serif); font-size: 1.28rem; font-weight: 500; letter-spacing: .01em; }
.h-team-name::after { content: " ✦"; font-size: .8em; }
.topbar nav, .topbar nav.has-glide { position: relative !important; left: auto !important; top: auto !important; transform: none !important; margin: 0 auto 0 clamp(10px, 3vw, 48px) !important; gap: 4px; }
.topbar .nav-item { gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid transparent; border-radius: 999px; color: var(--text); font-size: .92rem; font-weight: 450; }
.topbar .nav-item svg { width: 19px; height: 19px; }
.topbar .nav-item.is-active, .topbar.is-on-light .nav-item.is-active { color: var(--text); border-color: var(--hs-edge); background: var(--hs-row-hover) !important; }
.topbar nav.has-glide > .glide { background: var(--hs-row-hover); border: 1px solid var(--hs-edge); box-sizing: border-box; }
.topbar nav.has-glide .nav-item.is-active { border-color: transparent; }
.topbar .nav-item:hover { background: var(--hs-row) !important; }
.topbar .h-nav-notif { position: relative; cursor: pointer; font: inherit; background: none; }
.topbar .h-nav-notif .h-dot { top: 6px; right: 6px; left: auto; min-width: 9px; width: 9px; height: 9px; padding: 0; border: 2px solid var(--surface-strong); font-size: 0; }
.topbar .h-nav-notif .h-dot { position: absolute; left: 25px; right: auto; top: 6px; }
#notif-button.is-moved { display: none !important; }
.topbar .nav-search { flex: 0 1 300px; width: auto !important; min-width: 160px; height: 42px; margin: 0 10px 0 0 !important; border: 1px solid var(--hs-edge); border-radius: 999px; background: var(--hs-row); }
.topbar .nav-search input { font-size: .88rem; }
.topbar #topbar-avatar .own-mini { width: 38px; height: 38px; border: 1px solid var(--hs-edge); }
.topbar #topbar-avatar { padding: 2px !important; border-radius: 50%; }
@media (min-width: 761px) and (max-width: 1180px) { .topbar nav .nav-item span { display: none; } .topbar .h-team-name { display: none; } .topbar .nav-item { padding: 8px 11px; } }
@media (max-width: 760px) {
  .topbar, .topbar.is-on-light { height: auto; flex-wrap: wrap; padding: 8px 10px; row-gap: 8px; }
  .topbar .nav-search { flex: 1 1 100%; order: 10; margin: 0 !important; }
  .topbar nav { margin: 0 auto 0 4px !important; }
  .topbar .nav-item { padding: 8px 9px; }
  .topbar .nav-item span { display: none; }
  .topbar .h-bow svg { width: 32px; height: 22px; }
}

/* ---------- Страница ---------- */
.hub-page { width: min(1440px, calc(100% - clamp(24px, 6vw, 96px))); margin: 24px auto 64px; font-size: var(--hs-fs); }
@media (max-width: 760px) { .hub-page { width: calc(100% - 20px); margin-top: 16px; } }
.hub-page .tile { padding: 18px 20px; border: 1px solid var(--hs-edge); border-radius: var(--hs-r); background: var(--hs-glass); backdrop-filter: var(--hs-blur); -webkit-backdrop-filter: var(--hs-blur); box-shadow: 0 10px 40px color-mix(in srgb, #000 18%, transparent); }

/* Заголовок: крупный шрифт с засечками, подпись с ♡, цитата от руки справа */
.h-head { margin: 0 2px 18px; color: var(--hs-on-bg); text-shadow: 0 1px 14px color-mix(in srgb, var(--surface-subtle) 70%, transparent); }
.h-head h1 { font-family: var(--hs-serif); font-size: clamp(2.2rem, 4vw, 3.1rem); font-weight: 500; letter-spacing: 0; line-height: 1.02; }
.h-head h1:empty { display: none; }
.h-sub { margin-top: 6px; font-size: .95rem; font-weight: 400; opacity: .92; }
.h-sub::after { content: " ♡"; }
.h-sub.no-heart::after { content: none; }
.h-quote { align-self: center; max-width: 260px; font-family: var(--hs-hand); font-size: 1.55rem; font-weight: 400; line-height: 1.1; transform: rotate(-5deg); opacity: .9; }
.h-crumbs { font-size: .86rem; font-weight: 400; }
.h-crumbs a { font-weight: 400; }
.h-crumbs b { font-weight: 500; }

/* ---------- Вкладки страницы + поиск и кнопка в той же строке ---------- */
.h-tabbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 12px; }
.h-tabbar > .h-tabs { margin: 0; }
.h-tabbar-r { display: flex; flex: 0 1 auto; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 10px; margin-left: auto; }
.h-tabbar-r .h-search { flex: 0 1 280px; min-width: 200px; }
.h-tabbar-r .button { flex: 0 0 auto; }
.h-tabs { gap: 6px; }
.h-tab { justify-content: center; min-width: 108px; min-height: 36px; padding: 6px 20px; border: 1px solid var(--hs-edge); color: var(--text); background: var(--hs-glass); font-size: .9rem; font-weight: 450; }
.h-tab svg { display: none; }
.h-tab .h-count { display: none; }
.h-tab.is-active { color: var(--button-text); border-color: transparent; background: var(--dark); box-shadow: 0 0 18px color-mix(in srgb, var(--dark) 40%, transparent); }
.h-tabs.is-sticky.is-stuck { background: var(--hs-glass); border: 1px solid var(--hs-edge); }
@media (max-width: 720px) { .h-tab { min-width: 0; padding: 6px 14px; } .h-tabbar-r { width: 100%; margin-left: 0; } .h-tabbar-r .h-search { flex: 1 1 auto; } }

/* Большая стеклянная панель: фильтры + содержимое */
.h-panel { padding: 14px; border: 1px solid var(--hs-edge); border-radius: var(--hs-r); background: var(--hs-glass); backdrop-filter: var(--hs-blur); -webkit-backdrop-filter: var(--hs-blur); box-shadow: 0 10px 40px color-mix(in srgb, #000 18%, transparent); }
.h-panel > .h-toolbar { margin-bottom: 14px; }
.h-panel .tile { border-radius: var(--hs-r-in); background: var(--hs-glass-soft); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.h-panel .h-list-tile { padding: 0; border: 0; background: none; }

/* Фильтры-«таблетки», поиск, выпадающий список, переключатель вида */
.h-toolbar { gap: 8px; }
.h-chip { min-height: 34px; padding: 5px 16px; border: 1px solid var(--hs-edge); color: var(--text); background: var(--hs-row); backdrop-filter: none; font-size: .86rem; font-weight: 450; }
.h-chip .h-count { min-width: 0; padding: 0; background: none; font-size: inherit; font-weight: inherit; }
.h-chip.is-active { color: var(--button-text); border-color: transparent; background: var(--dark); }
.h-chip:hover { border-color: color-mix(in srgb, var(--text) 30%, transparent); }
.h-search { flex: 0 1 260px; min-height: 36px; border: 1px solid var(--hs-edge); background: var(--hs-row); backdrop-filter: none; font-size: .86rem; }
.h-search svg { width: 16px; height: 16px; }
.h-select { min-height: 36px; padding: 0 32px 0 16px; border: 1px solid var(--hs-edge); background: var(--hs-row); backdrop-filter: none; font-size: .86rem; font-weight: 450; }
.h-seg { gap: 6px; padding: 0; border: 0; background: none; backdrop-filter: none; }
.h-seg button { width: 36px; height: 36px; border: 1px solid var(--hs-edge); border-radius: 10px; background: var(--hs-row); color: var(--text); }
.h-seg button.is-active { color: var(--button-text); border-color: transparent; background: var(--dark); }

/* Кнопки */
.hub-page .button, .h-modal .button { min-height: 38px; padding: 7px 18px; font-size: .88rem; font-weight: 500; }
.hub-page .button-dark { box-shadow: 0 0 16px color-mix(in srgb, var(--dark) 35%, transparent); }
.hub-page .button-secondary { border: 1px solid var(--hs-edge); color: var(--text); background: var(--hs-row); }
.button.h-btn-sm { min-height: 36px; padding: 6px 16px; font-size: .86rem; }
.button.h-btn-xs { min-height: 30px; padding: 3px 12px; font-size: .8rem; }
.h-icon-btn { width: 32px; height: 32px; color: var(--text); }
.h-round { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--hs-edge); border-radius: 50%; color: var(--text); background: var(--hs-row); }
.h-round svg { width: 16px; height: 16px; }
.h-link { color: var(--text); font-weight: 450; }
.h-link svg { width: 15px; height: 15px; vertical-align: -3px; }

/* ---------- Плитки ---------- */
.h-tile-head { margin-bottom: 12px; }
.h-tile-head h2 { gap: 10px; font-size: 1.02rem; font-weight: 500; }
.h-tile-head h2 svg { width: 20px; height: 20px; color: var(--text); }
.h-grid { gap: 14px; }

/* Плитки-цифры (как «Всего участников 12») */
.h-stat { gap: 14px; min-height: 64px; padding: 12px 20px; }
.h-stat-ic { width: 40px; height: 40px; border-radius: 12px; color: var(--accent); background: transparent; }
.h-stat-ic svg { width: 28px; height: 28px; }
.h-stat b { font-size: 1.35rem; font-weight: 500; letter-spacing: 0; }
.h-stat span { color: var(--text); font-size: .86rem; }
.h-stat > span:last-child { display: flex; flex-direction: column-reverse; }
.h-stat small { display: none; }

/* Пилюли статусов: пастельная заливка, тёмный текст */
.h-pill { min-height: 26px; padding: 3px 13px; color: color-mix(in srgb, var(--tone) 30%, #17141a); background: color-mix(in srgb, var(--tone) 42%, #fff); font-size: .8rem; font-weight: 500; }
.h-pill svg { width: 13px; height: 13px; }
.tone-accent { --tone: color-mix(in srgb, var(--accent) 60%, #8fa6e8); }
.tone-info { --tone: #8fa6e8; }
.tone-warn { --tone: #e9c27a; }
.tone-ok { --tone: #7fc394; }
.tone-danger { --tone: #ec7f8f; }
.tone-violet { --tone: color-mix(in srgb, var(--accent) 50%, #e79ac0); }
.tone-muted { --tone: #9a979c; }
.h-pill.tone-muted { color: var(--text); background: color-mix(in srgb, var(--text) 16%, transparent); }
/* Этап-«плашка» (Перевод, Тайп…) */
.h-kind { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 13px; border-radius: 999px; color: var(--text); background: color-mix(in srgb, var(--k, var(--accent)) 38%, transparent); font-size: .8rem; font-weight: 450; white-space: nowrap; }
.h-kind svg { width: 13px; height: 13px; }
.k-translate { --k: #7d6aa8; } .k-edit { --k: #a46b8c; } .k-clean { --k: #5d8a72; } .k-type { --k: #a8875a; } .k-glue { --k: #8a6f9e; } .k-beta { --k: #5f7fa8; } .k-curator { --k: #8f86b8; }

/* Жанры — маленькие тёмные «таблетки» */
.h-tag { min-height: 24px; padding: 2px 11px; border: 1px solid var(--hs-edge); color: var(--text); background: var(--hs-row); font-size: .74rem; font-weight: 400; }

/* Обложки — со скруглением поменьше */
.h-cover { border-radius: 8px; }
.h-cover.is-sm { width: 44px; border-radius: 7px; }
.h-cover.is-lg { border-radius: 12px; }
.h-cover.is-xl { border-radius: 14px; }

/* Полоски прогресса — тонкие, «светящиеся» */
.h-bar { height: 6px; background: color-mix(in srgb, var(--text) 14%, transparent); }
.h-bar > span { background: var(--dark); box-shadow: 0 0 8px color-mix(in srgb, var(--dark) 50%, transparent); }
.h-frac { color: var(--text); font-size: .86rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.h-progcell { display: grid; grid-template-columns: minmax(60px, 1fr) auto; align-items: center; gap: 10px; }

/* ---------- Таблицы (строки-карточки, как в макетах) ---------- */
.h-table { display: grid; gap: 6px; }
.h-thead { display: grid; align-items: center; gap: 12px; padding: 2px 12px 4px; color: var(--text-muted); font-size: .76rem; font-weight: 400; }
.h-thead button { padding: 0; border: 0; color: inherit; background: none; font: inherit; cursor: pointer; }
.h-tr { position: relative; display: grid; align-items: center; gap: 12px; min-height: 56px; padding: 6px 12px; border: 1px solid var(--hs-line); border-radius: var(--hs-r-in); color: var(--text); background: var(--hs-row); text-decoration: none; }
.h-tr:hover { background: var(--hs-row-hover); }
.h-tr > *:not(.h-stretch) { position: relative; z-index: 1; min-width: 0; }
.h-tr .h-stretch { z-index: 0; }
.h-table.is-compact .h-tr { min-height: 44px; padding: 4px 12px; }
.h-tmain { display: flex; align-items: center; gap: 12px; min-width: 0; }
.h-tmain .h-cover { width: 64px; aspect-ratio: 4 / 3; border-radius: 8px; }
.h-table.is-compact .h-tmain .h-cover { width: 34px; aspect-ratio: 1; }
.h-tname { display: grid; min-width: 0; }
.h-tname b { overflow: hidden; font-size: .92rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.h-tname small { overflow: hidden; color: var(--text-muted); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.h-tname .h-tags { margin-top: 0; }
.h-tmain-tags { display: flex; flex: 1; flex-wrap: wrap; gap: 6px; min-width: 0; }
.h-td { color: var(--text); font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-td.is-muted { color: var(--text-muted); }
.h-td.is-late { color: var(--danger); }
.h-tr .h-check-cell input, .h-thead .h-check-cell input { width: 16px; height: 16px; accent-color: var(--dark); }
@media (max-width: 900px) {
  .h-thead { display: none; }
  .h-tr { grid-template-columns: minmax(0, 1fr) auto auto !important; }
  .h-tr > :not(.h-stretch):not(.h-tmain):not(.h-pill):not(.h-keep) { display: none; }
}

/* Старые списки внутри панелей — тоже строками-карточками */
.h-rowi { border-radius: var(--hs-r-in); }
.h-rowi + .h-rowi::before { display: none; }
.h-list { gap: 6px; }
.h-list .h-rowi { border: 1px solid var(--hs-line); background: var(--hs-row); }
.h-list .h-rowi:hover { background: var(--hs-row-hover); }
.h-list-head { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .76rem; }

/* Меню, окна, уведомления — те же скругления */
.h-menu { border-radius: 14px; border-color: var(--hs-edge); }
.h-menu button { font-weight: 450; }
.h-modal { border-radius: var(--hs-r); }
.h-modal header h2 { font-family: var(--hs-serif); font-size: 1.5rem; font-weight: 500; }
.h-notif-panel { border-radius: var(--hs-r); }

/* Пусто */
.h-empty { color: var(--text-muted); }
.h-empty p { font-size: .9rem; }

/* ================= Проекты ================= */
.hp-grid { gap: 14px; }
.hp-grid.is-active { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.hp-grid.is-offers { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.hp-grid.is-archive { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.hp-card { position: relative; display: block; gap: 0; padding: 0; overflow: hidden; border: 1px solid var(--hs-edge); border-radius: var(--hs-r-in); color: var(--text); background: var(--hs-glass-soft); transition: transform .15s ease, border-color .15s ease; }
.hp-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--text) 32%, transparent); }
.hp-card > *:not(.h-stretch) { position: relative; z-index: 1; pointer-events: none; }
.hp-card :is(a, button) { pointer-events: auto; }
.hp-art { display: grid; place-items: center; background: linear-gradient(150deg, hsl(var(--h, 200) 34% 52%), hsl(calc(var(--h, 200) + 40) 30% 30%)); background-size: cover; background-position: center; color: rgba(255, 255, 255, .9); font-size: 2.4rem; font-weight: 700; }
.hp-card h3 { margin: 0; overflow: hidden; font-size: .98rem; font-weight: 500; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; -webkit-line-clamp: unset; display: block; }
.hp-orig { margin: 2px 0 0; overflow: hidden; color: var(--text-muted); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.hp-meta { margin: 6px 0 0; color: var(--text-muted); font-size: .78rem; }
.hp-dots { position: absolute !important; top: 6px; right: 6px; z-index: 2 !important; width: 28px; height: 28px; margin: 0; }
/* Активные: картинка слева растворяется вправо, текст справа, полоска внизу */
.hp-card.is-active { min-height: 178px; }
.hp-card.is-active .hp-art { position: absolute !important; inset: 0 40% 0 0; z-index: 0 !important; -webkit-mask: linear-gradient(90deg, #000 55%, transparent 100%); mask: linear-gradient(90deg, #000 55%, transparent 100%); }
.hp-card.is-active .hp-art.is-empty { place-items: center start; padding-left: 26%; }
.hp-card.is-active .hp-info { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin-left: 50%; padding: 44px 12px 46px 0; }
.hp-card.is-active .hp-info .h-pill { margin-bottom: 8px; }
.hp-card.is-active .hp-info h3 { max-width: 100%; }
.hp-card.is-active .hp-foot { position: absolute !important; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr; gap: 3px; padding: 10px 12px 10px 14px; background: linear-gradient(transparent, color-mix(in srgb, var(--surface-strong) 70%, transparent)); }
.hp-foot small { color: color-mix(in srgb, var(--text) 75%, transparent); font-size: .7rem; text-shadow: 0 1px 4px color-mix(in srgb, var(--surface-strong) 80%, transparent); }
.hp-foot-bar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
/* Предложения: картинка сверху */
.hp-card.is-offer { padding: 8px 8px 10px; }
.hp-card.is-offer .hp-thumb { position: relative; margin-bottom: 8px; }
.hp-card.is-offer .hp-art { aspect-ratio: 4 / 3; border-radius: 9px; }
.hp-o-title { display: flex; align-items: center; gap: 4px; padding: 0 4px; }
.hp-o-title h3 { flex: 1; min-width: 0; font-size: .9rem; }
.hp-o-title .hp-dots { position: relative !important; top: auto; right: auto; width: 26px; height: 26px; }
.hp-card.is-offer .hp-orig { padding: 0 4px; }
.hp-o-status { display: flex; align-items: center; gap: 8px; margin: 8px 4px 0; }
.hp-o-status .h-pill { min-height: 22px; padding: 2px 11px; font-size: .74rem; }
.hp-avg { display: inline-flex; align-items: center; gap: 3px; margin: 0; font-size: .76rem; font-weight: 500; }
.hp-o-by { display: flex; align-items: center; gap: 4px; margin: 8px 4px 0; overflow: hidden; color: var(--text-muted); font-size: .7rem; white-space: nowrap; }
.hp-by { display: inline-flex; align-items: center; gap: 5px; min-width: 0; color: var(--text); font-size: inherit; text-decoration: none; }
.hp-by span:last-child { overflow: hidden; text-overflow: ellipsis; }
a.hp-by:hover span:last-child { text-decoration: underline; }
.hp-o-date { margin: 6px 4px 0; color: var(--text); font-size: .74rem; }
.hp-stars { border-radius: 0 0 9px 9px; }
/* Архив: обложка слева, сведения справа */
.hp-card.is-archive { display: flex !important; gap: 14px; padding: 8px; }
.hp-card.is-archive .hp-art { flex: 0 0 auto; width: 84px; aspect-ratio: 3 / 4; border-radius: 8px; }
.hp-card.is-archive .hp-info { display: flex; flex: 1; flex-direction: column; align-items: flex-start; min-width: 0; padding-top: 4px; }
.hp-card.is-archive .hp-o-title { width: 100%; padding: 0; }
.hp-card.is-archive .h-pill { margin: 10px 0 4px; min-height: 22px; font-size: .74rem; }
.hp-card.is-archive .hp-meta { margin-top: 6px; color: var(--text); font-size: .76rem; }
/* Таблицы проектов */
.hp-table .h-cover { width: 64px; aspect-ratio: 4 / 3; }
.hp-table.is-offers .h-cover, .hp-table.is-archive .h-cover { width: 58px; }
.hp-table .h-tmain-tags { justify-content: flex-start; margin-left: 10px; }
@media (max-width: 1100px) { .hp-table.is-active .h-tmain-tags { display: none; } }

/* ================= Задания ================= */
.ht-table .h-cover { width: 36px; aspect-ratio: 1; border-radius: 7px; }
.ht-table .h-tr > .h-pill, .hp-table .h-tr > .h-pill, .h-tr > .h-kind { justify-self: start; }
.ht-table .h-user > span { font-size: .86rem; font-weight: 400; }
.ht-table .h-user .h-av { width: 28px; height: 28px; }
.ht-files { display: inline-flex; align-items: center; gap: 5px; color: var(--text); text-decoration: none; }
.ht-files svg { width: 15px; height: 15px; }
.ht-comment { color: var(--text-muted); }
.ht-acts { display: flex; gap: 8px; }
.ht-acts .button { flex: 1; min-height: 30px; border: 1px solid transparent; color: var(--text); font-weight: 450; }
.ht-ok { background: color-mix(in srgb, #7fc394 34%, transparent); border-color: color-mix(in srgb, #7fc394 45%, transparent) !important; }
.ht-back { background: color-mix(in srgb, #ec7f8f 30%, transparent); border-color: color-mix(in srgb, #ec7f8f 45%, transparent) !important; }
.ht-ok:hover { background: color-mix(in srgb, #7fc394 50%, transparent); } .ht-back:hover { background: color-mix(in srgb, #ec7f8f 45%, transparent); }
.ht-kic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: var(--text); background: var(--hs-row-hover); }
.ht-kic svg { width: 14px; height: 14px; }
.ht-selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -4px 0 10px; padding: 8px 12px; border: 1px solid var(--hs-edge); border-radius: var(--hs-r-in); background: var(--hs-row); }
.ht-selbar b { font-weight: 500; }
.ht-empty { display: grid; justify-items: center; gap: 8px; padding: 30px 12px 26px; color: var(--text-muted); text-align: center; }
.ht-empty svg { width: 130px; height: 98px; color: var(--accent); }
.ht-empty p { margin: 0; color: var(--text); }
.ht-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.ht-card { position: relative; display: flex; gap: 12px; padding: 8px; border: 1px solid var(--hs-edge); border-radius: var(--hs-r-in); background: var(--hs-glass-soft); }
.ht-card:hover { border-color: color-mix(in srgb, var(--text) 32%, transparent); }
.ht-card > *:not(.h-stretch) { position: relative; z-index: 1; pointer-events: none; }
.ht-card :is(a, button) { pointer-events: auto; }
.ht-card-art { flex: 0 0 auto; width: 74px; aspect-ratio: 3 / 4; border-radius: 8px; background: linear-gradient(150deg, hsl(var(--h, 200) 34% 52%), hsl(calc(var(--h, 200) + 40) 30% 30%)); background-size: cover; background-position: center; }
.ht-card-body { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.ht-card-top { display: flex; align-items: center; justify-content: space-between; }
.ht-card h3 { margin: 6px 0 0; overflow: hidden; font-size: .95rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.ht-card p { margin: 2px 0 0; color: var(--text-muted); font-size: .8rem; }
.ht-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.ht-card-foot .h-av { width: 24px; height: 24px; }
.ht-panel.is-profile .h-toolbar .button { margin-left: auto; }

/* ================= Страница этапа (задания) ================= */
.hc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 14px; }
.hc-top .h-crumbs { margin: 0; color: var(--hs-on-bg); }
.hc-nav { display: flex; gap: 6px; }
.hc-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 18px; align-items: start; margin-bottom: 16px; }
@media (max-width: 980px) { .hc-hero { grid-template-columns: 1fr; } }
.hc-ident { display: flex; gap: 20px; align-items: flex-start; min-width: 0; padding-top: 4px; }
.hc-cover .h-cover.is-lg { width: 112px; aspect-ratio: 1; border-radius: 12px; box-shadow: 0 8px 26px color-mix(in srgb, #000 30%, transparent); }
.hc-ident-main { display: grid; flex: 1; gap: 6px; min-width: 0; }
.hc-ident h1 { margin: 0; font-family: var(--hs-serif); font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 500; line-height: 1.05; }
.hc-ident h1 a { color: var(--text); text-decoration: none; }
.hc-ident h1 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.hc-orig { margin: 0; color: var(--text); font-size: 1rem; opacity: .85; }
.hc-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.hc-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 16px; border: 1px solid var(--hs-edge); border-radius: 999px; color: var(--text); background: var(--hs-glass); font-size: .86rem; }
.hc-dot { color: var(--text-muted); }
.hc-progress { display: grid; grid-template-columns: minmax(120px, 340px) auto auto; justify-content: start; align-items: center; gap: 12px; margin-top: 8px; }
.hc-side { display: grid; gap: 12px; padding: 14px 16px; }
.hc-side-row { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 10px; }
.hc-side-who .h-av { flex: 0 0 auto; width: 32px; height: 32px; }
.hc-side-row > * + * { padding-left: 10px; border-left: 1px solid var(--hs-line); }
.hc-side-label { display: block; color: var(--text-muted); font-size: .72rem; }
.hc-side-dl { display: flex; align-items: flex-start; gap: 8px; }
.hc-side-dl > svg { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px; }
.hc-side-dl b { display: block; font-size: .92rem; font-weight: 500; white-space: nowrap; }
.hc-side-dl small { color: var(--text-muted); font-size: .72rem; }
.hc-side-dl.is-late small { color: var(--danger); }
.hc-side-dl .h-icon-btn { width: 26px; height: 26px; margin-left: auto; }
.hc-side-person { display: grid; gap: 6px; min-width: 0; }
.hc-side-who { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text); text-decoration: none; }
.hc-side-who b { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.hc-side-who svg { flex: 0 0 auto; width: 16px; height: 16px; }
.hc-side-next { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--hs-line); }
.hc-next-row { display: flex; align-items: center; gap: 10px; }
.hc-next-who { flex: 1; min-width: 0; font-size: .8rem; line-height: 1.15; }
@media (max-width: 520px) { .hc-side-row { grid-template-columns: 1fr 1fr; } .hc-side-row > :first-child { grid-column: 1 / -1; } .hc-side-row > :nth-child(2) { padding-left: 0; border-left: 0; } }
/* Путь главы — компактная лента шагов */
.hc-path { margin: 0 0 16px; padding: 8px; border: 1px solid var(--hs-edge); border-radius: var(--hs-r); background: var(--hs-glass); backdrop-filter: var(--hs-blur); -webkit-backdrop-filter: var(--hs-blur); }
.hc-steps { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.hc-step { flex: 1 0 140px; display: grid; justify-items: start; gap: 4px; padding: 8px 10px; border: 1px solid transparent; border-radius: var(--hs-r-in); text-align: left; }
.hc-step:not(:last-child)::after { display: none; }
.hc-step:hover { background: var(--hs-row); }
.hc-step.is-current { border-color: var(--hs-edge); background: var(--hs-row-hover); }
.hc-step-link { display: flex; align-items: center; gap: 10px; justify-items: start; }
.hc-step-ic { width: 34px; height: 34px; border-width: 1.5px; background: transparent; }
.hc-step-ic svg { width: 16px; height: 16px; }
.hc-step-txt { display: grid; }
.hc-step-txt b { font-size: .86rem; font-weight: 500; }
.hc-step-txt small { color: var(--text-muted); font-size: .72rem; white-space: nowrap; }
.hc-step-who { justify-content: flex-start; min-height: 0; padding-left: 44px; font-size: .76rem; }
.hc-step-who:empty { display: none; }
.hc-step-who a { font-weight: 400; }
.hc-step.is-done .hc-step-ic { color: var(--button-text); border-color: var(--dark); background: var(--dark); }
.hc-step.is-in_progress .hc-step-ic { color: #8fa6e8; border-color: #8fa6e8; }
/* Вкладки этапа */
.hc-subtabs { margin-bottom: 12px; }
.hc-subtabs .h-tab { min-width: 118px; font: inherit; font-size: .9rem; cursor: pointer; }
.hc-tab-n { font-size: .78rem; opacity: .75; }
.hc-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .hc-about { grid-template-columns: 1fr 1fr; } .hc-about > .hc-files { grid-column: 1 / -1; } }
@media (max-width: 700px) { .hc-about { grid-template-columns: 1fr; } }
.hc-mid { display: grid; gap: 14px; }
.hc-dl { display: grid; gap: 8px; margin: 0; }
.hc-dl > div { display: grid; grid-template-columns: 18px minmax(110px, .9fr) minmax(0, 1.1fr); align-items: center; gap: 10px; font-size: .86rem; }
.hc-dl svg { width: 15px; height: 15px; color: var(--text-muted); }
.hc-dl dt { color: var(--text-muted); }
.hc-dl dd { margin: 0; min-width: 0; }
.hc-dl dd .h-pill { min-height: 22px; padding: 2px 10px; font-size: .74rem; }
.hc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hs-line); }
.hc-note-text { margin: 0; font-size: .88rem; line-height: 1.5; }
.hc-link-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.hc-link-list li { display: grid; grid-template-columns: 18px minmax(90px, .8fr) minmax(0, 1.2fr) 30px; align-items: center; gap: 8px; font-size: .86rem; }
.hc-link-list li > svg { width: 15px; height: 15px; color: var(--text-muted); }
.hc-link-list .h-copy { overflow: hidden; color: var(--text-muted); text-overflow: ellipsis; white-space: nowrap; }
.hc-link-list .h-icon-btn { width: 28px; height: 28px; }
.hc-drop { position: relative; display: grid; justify-items: center; gap: 2px; margin-bottom: 10px; padding: 18px 12px; overflow: hidden; border: 1px dashed color-mix(in srgb, var(--text) 30%, transparent); border-radius: var(--hs-r-in); color: var(--text-muted); text-align: center; cursor: pointer; }
.hc-drop:hover, .hc-drop.is-over { border-color: var(--text); color: var(--text); background: var(--hs-row); }
.hc-drop > svg { width: 22px; height: 22px; margin-bottom: 4px; color: var(--text); }
.hc-drop b { color: var(--text); font-weight: 500; }
.hc-drop small { font-size: .74rem; }
.hc-drop-bar { position: absolute; left: 0; bottom: 0; width: var(--p, 0%); height: 3px; background: var(--dark); transition: width .2s; }
.hc-drop:not(.is-busy) .hc-drop-bar { display: none; }
.hc-file-list { gap: 6px; }
.hc-file { display: grid; grid-template-columns: 34px minmax(0, 1fr) 30px 30px; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--hs-line); border-radius: var(--hs-r-in); background: var(--hs-row); }
.hc-file-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--button-text); background: color-mix(in srgb, var(--dark) 75%, transparent); }
.hc-file-ic svg { width: 17px; height: 17px; }
.hc-file-main { display: grid; min-width: 0; color: var(--text); text-decoration: none; }
.hc-file-main b { overflow: hidden; font-size: .86rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.hc-file-main small { color: var(--text-muted); font-size: .72rem; }
.hc-file-main:hover b { text-decoration: underline; }
.hc-file .h-icon-btn { width: 28px; height: 28px; }
.hc-files-empty { margin: 4px 0 0; font-size: .86rem; }
.hc-files-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 14px; align-items: start; }
.hc-com-list { display: grid; gap: 14px; margin: 0 0 16px; padding: 0; list-style: none; }
.hc-com-list li { display: flex; gap: 12px; }
.hc-com-list li > div { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--hs-line); border-radius: 4px var(--hs-r-in) var(--hs-r-in) var(--hs-r-in); background: var(--hs-row); }
.hc-com-list p { margin: 0; font-size: .9rem; line-height: 1.45; }
.hc-com-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px !important; }
.hc-com-head b { font-weight: 500; }
.hc-com-head time { margin-left: auto; color: var(--text-muted); font-size: .74rem; }
.hc-com-head .h-pill { min-height: 20px; padding: 1px 9px; font-size: .7rem; }
.hc-com-new { display: flex; gap: 10px; align-items: flex-end; }
.hc-com-new textarea { flex: 1; min-height: 46px; padding: 10px 14px; border: 1px solid var(--hs-edge); border-radius: var(--hs-r-in); color: var(--text); background: var(--hs-row); font: inherit; resize: vertical; }
.hc-com-new textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }

/* ================= Главная ================= */
body[data-hub-page="home"] .hub-page { margin-top: clamp(40px, 9vh, 110px); }
.hh-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-areas: "stats stats stats stats stats stats stats stats stats stats stats stats" "cur cur cur cur cur mem mem mem mem tg tg tg" "feed feed feed feed feed feed feed tasks tasks tasks deco deco"; gap: 18px; }
@media (max-width: 1150px) { .hh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "stats stats" "cur cur" "mem tg" "feed feed" "tasks deco"; } }
@media (max-width: 680px) { .hh-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stats" "cur" "tasks" "mem" "tg" "feed" "deco"; } }
.hh-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 0 3%; }
@media (max-width: 900px) { .hh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; gap: 10px; } }
.hh-stat { display: flex; align-items: center; gap: 18px; min-height: 82px; padding: 14px 26px; border: 1px solid var(--hs-edge); border-radius: 999px; color: var(--text); background: var(--hs-glass); backdrop-filter: var(--hs-blur); -webkit-backdrop-filter: var(--hs-blur); text-decoration: none; box-shadow: 0 10px 34px color-mix(in srgb, #000 16%, transparent); transition: border-color .15s; }
.hh-stat:hover { border-color: color-mix(in srgb, var(--text) 35%, transparent); }
.hh-stat-ic { display: grid; place-items: center; width: 44px; height: 44px; color: var(--text); }
.hh-stat-ic svg { width: 34px; height: 34px; stroke-width: 1.6; }
.hh-stat > span:last-child { display: grid; gap: 2px; }
.hh-stat > span:last-child > span { font-size: .92rem; }
.hh-stat b { font-size: 1.6rem; font-weight: 400; line-height: 1; }
@media (max-width: 900px) { .hh-stat { min-height: 64px; padding: 10px 16px; gap: 10px; } .hh-stat-ic svg { width: 26px; height: 26px; } }
.hh-live { display: inline-block; width: 9px; height: 9px; margin-left: 4px; border-radius: 50%; background: #6fcf8a; box-shadow: 0 0 8px #6fcf8a; }
.hh-current, .hh-members, .hh-tg { min-height: 340px; }
.hh-current { position: relative; display: flex; flex-direction: column; }
.hh-track { flex: 1; }
.hh-slide { position: relative; align-items: stretch; gap: clamp(16px, 2vw, 30px); }
.hh-cover .h-cover.is-lg { width: clamp(130px, 13vw, 196px); border-radius: 14px; box-shadow: 0 10px 28px color-mix(in srgb, #000 35%, transparent); }
.hh-slide-body { justify-content: flex-start; gap: 10px; padding-top: 4px; }
.hh-slide h3 { margin: 0; font-family: var(--hs-serif); font-size: clamp(1.8rem, 2.6vw, 2.35rem); font-weight: 500; line-height: 1.05; }
.hh-slide h3 a { color: var(--text); text-decoration: none; }
.hh-orig { margin: -2px 0 2px; font-size: 1.05rem; opacity: .9; }
.hh-genres { align-self: flex-start; display: inline-flex; flex-wrap: wrap; gap: 0 8px; padding: 5px 14px; border: 1px solid var(--hs-edge); border-radius: 999px; background: var(--hs-row); font-size: .8rem; }
.hh-genres i { color: var(--text-muted); font-style: normal; }
.hh-ch { display: grid; gap: 10px; margin-top: 8px; max-width: 340px; font-size: 1.05rem; }
.hh-ch .h-bar { height: 7px; }
.hh-slide-actions { gap: 10px; margin-top: auto; }
.hh-slide-actions .button { white-space: nowrap; }
.hh-slide-actions .button-secondary { background: transparent; }
.hh-star { position: absolute !important; top: -46px; right: -6px; width: 34px; height: 34px; }
.hh-star svg { width: 22px; height: 22px; }
.hh-star.is-on svg { fill: currentColor; }
@media (max-width: 560px) { .hh-slide { flex-direction: column; gap: 14px; } .hh-cover .h-cover.is-lg { width: 130px; } }
.hh-dots { margin-top: 10px; }
.hh-dots button.is-active { background: var(--dark); }
/* Участники */
.hh-people { gap: 0; }
.hh-people li + li { border-top: 1px solid var(--hs-line); }
.hh-people a { gap: 14px; padding: 9px 4px; border-radius: 10px; }
.hh-people a:hover { background: var(--hs-row); }
.hh-people .h-av.is-lg { width: 60px; height: 60px; border: 1px solid var(--hs-edge); }
.hh-p-name { display: grid; gap: 2px; }
.hh-p-name b { display: inline-flex; align-items: center; gap: 8px; overflow: hidden; font-size: 1.05rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.hh-p-name b svg { width: 18px; height: 18px; }
.hh-p-name small { color: var(--text-muted); font-size: .86rem; }
.hh-more { display: flex; align-items: center; gap: 14px; margin-top: 2px; padding: 8px 4px; border-top: 1px solid var(--hs-line); color: var(--text-muted); font-size: .9rem; font-weight: 400; }
.hh-more .h-round { width: 36px; height: 36px; margin: 0 12px; font-size: .8rem; }
/* Telegram */
.hh-tg { display: flex; flex-direction: column; gap: 14px; }
.hh-tg .h-tile-head h2 { font-size: 1.15rem; }
.hh-tg .h-tile-head > span { display: flex; }
.hh-tg-main { display: flex; flex: 1; align-items: center; gap: 22px; }
.hh-tg-ava { position: relative; display: grid; flex: 0 0 auto; place-items: center; width: clamp(84px, 9vw, 128px); aspect-ratio: 1; height: auto; overflow: hidden; border-radius: 50%; color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, transparent); }
.hh-tg-ava > svg { width: 48px; height: 48px; }
.hh-tg-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hh-tg-name { display: grid; gap: 4px; min-width: 0; }
.hh-tg-name b { font-family: var(--hs-serif); font-size: clamp(1.3rem, 1.8vw, 1.8rem); font-weight: 500; line-height: 1.05; overflow-wrap: anywhere; }
.hh-tg-name small { color: var(--text-muted); font-size: 1rem; }
.hh-tg-go { align-self: center; min-width: 60%; }
.hh-tg-none { margin: 0; text-align: center; }
.hh-tg-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.hh-tg-more a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--hs-edge); border-radius: 999px; color: var(--text); font-size: .76rem; text-decoration: none; }
.hh-tg-more a:hover { background: var(--hs-row); }
.hh-tg-more svg { width: 13px; height: 13px; }
/* Последние действия */
.hh-feed .h-tile-head h2, .hh-tasks .h-tile-head h2 { font-size: 1.15rem; }
.hh-feed .h-chips { margin-bottom: 10px; }
.hh-feed .h-chip { min-height: 30px; padding: 3px 16px; font-size: .8rem; }
.hh-feed-rows { display: grid; }
.hh-fr { display: grid; grid-template-columns: 38px minmax(90px, .9fr) minmax(120px, 1.3fr) minmax(120px, 1.4fr) auto; align-items: center; gap: 14px; min-height: 48px; padding: 4px 6px; border-top: 1px solid var(--hs-line); font-size: .88rem; }
.hh-fr-av .h-av { width: 34px; height: 34px; }
.hh-fr-who { overflow: hidden; color: var(--text); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
a.hh-fr-who:hover { text-decoration: underline; }
.hh-fr-what { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hh-fr-where { overflow: hidden; color: var(--text-muted); text-overflow: ellipsis; white-space: nowrap; }
.hh-fr-where a { color: inherit; text-decoration: none; }
.hh-fr-where a:hover { color: var(--text); text-decoration: underline; }
.hh-fr-where i { margin: 0 6px; font-style: normal; }
.hh-fr time { color: var(--text-muted); font-size: .76rem; white-space: nowrap; }
@media (max-width: 760px) { .hh-fr { grid-template-columns: 34px minmax(0, 1fr) auto; } .hh-fr-what, .hh-fr-where { grid-column: 2 / -1; } .hh-fr-who { grid-row: 1; grid-column: 2; } }
/* Мои задания */
.hh-tasks { display: flex; flex-direction: column; }
.hh-cat { flex: 1; align-content: center; gap: 10px; padding: 0; color: var(--text); }
.hh-cat-svg { width: min(210px, 90%); height: auto; color: var(--text); opacity: .9; }
.hh-cat p { font-size: .92rem; line-height: 1.6; }
.hh-tasks-list { gap: 4px; }
.hh-tasks-list a { border: 1px solid var(--hs-line); background: var(--hs-row); }
.hh-tasks-list a:hover { background: var(--hs-row-hover); }
.hh-tasks-list .h-cover.is-xs { flex: 0 0 auto; width: 34px; aspect-ratio: 1; }
.hh-tasks-list b { font-weight: 500; }
.hh-tasks-list .h-pill { min-height: 22px; padding: 2px 10px; font-size: .72rem; }
/* Декоративная плитка */
.hh-deco { position: relative; display: grid; place-items: center; min-height: 230px; overflow: hidden; background: var(--hs-glass); }
.hh-deco-in { position: relative; display: grid; justify-items: center; gap: 4px; width: 100%; color: var(--text); }
.hh-deco-text { margin: 0; font-family: var(--hs-hand); font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: .95; text-align: center; transform: rotate(-12deg); }
.hh-deco-bow { margin-top: 18px; color: var(--text); opacity: .85; }
.hh-deco-bow svg { width: 86px; height: 58px; stroke-width: 1.6; }
.hh-spark { position: absolute; color: var(--text); opacity: .7; }
.hh-spark.is-a { top: -40px; left: 8px; font-size: 1.2rem; }
.hh-spark.is-b { top: -10px; right: 10px; font-size: .8rem; }
.ht-kic.is-off { opacity: .3; }
a.ht-kic:hover { color: var(--button-text); background: var(--dark); }

/* ================= Команда ================= */
.ht-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; }
@media (max-width: 760px) { .ht-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.ht-stat { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 10px 18px; border: 1px solid var(--hs-edge); border-radius: var(--hs-r-in); color: var(--text); background: var(--hs-row); font: inherit; text-align: left; cursor: pointer; outline: none; }
.ht-stat:hover { background: var(--hs-row-hover); }
.ht-stat.is-active { border-color: color-mix(in srgb, var(--text) 40%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 25%, transparent); }
.ht-stat:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ht-stat-ic { display: grid; place-items: center; width: 34px; height: 34px; color: var(--accent); }
.ht-stat-ic svg { width: 28px; height: 28px; }
.ht-stat > span:last-child { display: grid; gap: 2px; }
.ht-stat > span:last-child > span { font-size: .84rem; }
.ht-stat b { font-size: 1.3rem; font-weight: 400; line-height: 1; }
.ht-dir.is-on { color: var(--button-text); background: var(--dark); }
.ht-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); gap: 12px; }
.ht-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--hs-edge); border-radius: var(--hs-r-in); background: var(--hs-glass-soft); }
.ht-card:hover { outline: 0; border-color: color-mix(in srgb, var(--text) 32%, transparent); background: var(--hs-row-hover); }
.ht-av-in { width: 66px; height: 66px; border-radius: 10px; font-size: 1.5rem; }
.ht-on { right: -4px; bottom: -4px; width: 14px; height: 14px; border-width: 2px; border-color: var(--surface-strong); background: #6fcf8a; }
.ht-card-body { gap: 6px; padding-right: 24px; }
.ht-card-top { gap: 6px; }
.ht-nick { font-size: .98rem; font-weight: 500; }
.ht-crown { display: inline-grid; color: var(--text); }
.ht-crown svg { width: 17px; height: 17px; }
.ht-card .ht-dots { position: absolute !important; top: 6px; right: 4px; width: 28px; height: 28px; }
.ht-roles { gap: 6px; min-height: 26px; }
.h-kind.is-icon { justify-content: center; width: 30px; padding: 0; }
.h-kind span { overflow: hidden; text-overflow: ellipsis; }
.k-other { --k: #8a8790; }
.ht-role-more { color: var(--text-muted); font-size: .8rem; }
.h-online { gap: 6px; color: var(--text); font-size: .8rem; }
.h-online::before { width: 7px; height: 7px; background: var(--text-muted); opacity: .7; }
.h-online.is-on { color: var(--text); }
.h-online.is-on::before { background: #6fcf8a; box-shadow: 0 0 6px #6fcf8a; }
.h-online.is-away::before { display: none; }
.h-online.is-away svg { width: 13px; height: 13px; color: #e9c27a; }
.h-online.is-wait::before { background: #e9a35a; }
/* Роли */
.ht-roles-panel { padding: 14px; }
.ht-roles-top, .ht-roles-rest { gap: 12px; }
.ht-roles-rest { margin-top: 12px; }
.ht-roles-rest > * { flex-basis: calc((100% - 3 * 12px) / 4); }
.ht-rolecard { gap: 10px; padding: 14px 16px; }
.ht-rolecard:hover { outline: 0; border-color: color-mix(in srgb, var(--text) 32%, transparent); }
.ht-rc-head { gap: 12px; }
.ht-rc-head b { font-size: 1rem; font-weight: 500; }
.ht-rc-head small { font-size: .78rem; }
.ht-rc-ic { width: 40px; height: 40px; border-radius: 10px; color: var(--text); background: color-mix(in srgb, var(--k, var(--accent)) 40%, transparent); }
.ht-rc-ic svg { width: 22px; height: 22px; }
.ht-rolecard.is-curator .ht-rc-ic { color: var(--text); background: color-mix(in srgb, var(--k) 40%, transparent); }
.ht-rolecard ul { gap: 3px; padding-left: 16px; color: var(--text); font-size: .84rem; }
.ht-rolecard ul li::marker { color: var(--text-muted); }
.ht-rc-people { gap: 6px; min-height: 40px; }
.ht-rc-people .h-av.is-md { width: 38px; height: 38px; border: 1px solid var(--hs-edge); }
.ht-rc-btn { justify-content: center; }
/* Расписание: мини-календарь слева, сетка по часам справа */
.hs-wrap { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 14px; }
.hs-wrap.is-month { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) { .hs-wrap { grid-template-columns: 1fr; } .hs-mini { order: 2; } }
.hs-mini { padding: 12px; border: 1px solid var(--hs-edge); border-radius: var(--hs-r-in); background: var(--hs-glass-soft); align-self: start; }
.hs-mini-head b { font-family: var(--hs-serif); font-size: 1.25rem; font-weight: 500; }
.hs-mini-head .h-icon-btn { width: 28px; height: 28px; }
.hs-mini-grid { gap: 2px; }
.hs-mini-d { height: 34px; border-radius: 50%; font-size: .86rem; }
.hs-mini-d.is-week { background: var(--hs-row); }
.hs-mini-d.is-today { color: var(--button-text); background: var(--dark); box-shadow: 0 0 12px color-mix(in srgb, var(--dark) 45%, transparent); }
.hs-main { min-width: 0; }
.hs-bar { gap: 8px; margin-bottom: 10px; }
.hs-bar h2 { font-family: var(--hs-serif); font-size: 1.35rem; font-weight: 500; }
.hs-bar .h-round { width: 34px; height: 34px; }
.hs-tgrid { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--hs-edge); border-radius: var(--hs-r-in); background: var(--hs-glass-soft); }
.hs-tg-corner, .hs-tg-dow { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; border-bottom: 1px solid var(--hs-line); font-size: .8rem; }
.hs-tg-corner { color: var(--text-muted); }
.hs-tg-corner svg { width: 14px; height: 14px; }
.hs-tg-dow { position: relative; border-left: 1px solid var(--hs-line); }
.hs-tg-dow.is-today { background: var(--hs-row-hover); font-weight: 500; }
.hs-tg-dow .hs-add { position: absolute; right: 2px; width: 22px; height: 22px; }
.hs-tg-time.is-allday { display: grid; place-items: center; border-bottom: 1px solid var(--hs-line); color: var(--text-muted); font-size: .66rem; text-align: center; }
.hs-tg-allday { display: grid; gap: 4px; align-content: start; min-height: 46px; padding: 4px; border-left: 1px solid var(--hs-line); border-bottom: 1px solid var(--hs-line); }
.hs-tg-allday.is-today, .hs-tg-col.is-today { background: color-mix(in srgb, var(--text) 3%, transparent); }
.hs-tg-times { display: grid; grid-template-rows: repeat(var(--rows), var(--row)); color: var(--text-muted); font-size: .74rem; }
.hs-tg-times span { padding: 4px 6px 0; text-align: right; border-bottom: 1px solid var(--hs-line); }
.hs-tg-col { position: relative; height: calc(var(--rows) * var(--row)); border-left: 1px solid var(--hs-line); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--row) - 1px), var(--hs-line) calc(var(--row) - 1px), var(--hs-line) var(--row)); }
.hs-tg-col .hs-card { position: absolute; right: 4px; min-height: calc(var(--row) - 6px); }
.hs-card { display: grid; align-content: start; gap: 1px; padding: 6px 8px; border: 1px solid color-mix(in srgb, var(--k) 55%, transparent); border-left: 3px solid var(--k); border-radius: 8px; color: var(--text); background: color-mix(in srgb, var(--k) 30%, color-mix(in srgb, var(--surface-strong) 70%, transparent)); box-shadow: 0 4px 12px color-mix(in srgb, #000 18%, transparent); }
.hs-card:hover { background: color-mix(in srgb, var(--k) 42%, color-mix(in srgb, var(--surface-strong) 70%, transparent)); z-index: 2; }
.hs-card b { font-size: .8rem; font-weight: 500; }
.hs-card small { color: color-mix(in srgb, var(--text) 75%, transparent); font-size: .68rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-month .hs-day, .hs-day { border-color: var(--hs-line); border-radius: 10px; background: var(--hs-glass-soft); }
.hs-day.is-today { border-color: color-mix(in srgb, var(--text) 35%, transparent); background: var(--hs-row-hover); }
.hs-legend { gap: 16px; margin-top: 10px; font-size: .78rem; }
.hs-legend i { width: 9px; height: 9px; border-radius: 50%; }
@media (max-width: 760px) { .hs-tgrid { overflow-x: auto; grid-template-columns: 48px repeat(7, minmax(110px, 1fr)); } }
/* Правила: три плитки */
.ht-rules { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.ht-rules .tile { padding: 14px 18px; }
.ht-bul { gap: 4px; font-size: .88rem; }
.ht-bul.is-num { counter-reset: r; padding-left: 0; list-style: none; }
.ht-bul.is-num li { position: relative; padding-left: 28px; counter-increment: r; }
.ht-bul.is-num li::before { content: counter(r); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid currentColor; border-radius: 50%; font-size: .7rem; }
.ht-bul.is-dot { padding-left: 18px; }
.ht-links a { display: grid; grid-template-columns: 18px 1fr 16px; padding: 5px 6px; font-weight: 400; font-size: .88rem; }
.ht-links a svg { width: 15px; height: 15px; color: var(--text); }
/* Материалы, заявки, история */
.ht-mats { gap: 14px; }
.ht-mat.is-test { border-style: dashed; }
.ht-tests > summary.tile { border-radius: var(--hs-r); }
.ht-apps { gap: 12px; }
.ht-app-head b { font-weight: 500; }
.ht-card-top { justify-content: flex-start; }
.ht-nick { flex: 0 1 auto; }
.ht-crown { margin: 0 auto 0 0; }
.ht-stat.is-active { outline: 0; }

/* ================= Профиль ================= */
.profile-screen[data-view="profile"] .profile-hero { position: fixed; inset: 0; height: auto; }
.profile-screen[data-view="profile"] .profile-hero::after { background: linear-gradient(180deg, color-mix(in srgb, var(--surface-subtle) 22%, transparent) 0%, color-mix(in srgb, var(--surface-subtle) 46%, transparent) 55%, color-mix(in srgb, var(--surface-subtle) 62%, transparent) 100%); }
.profile-screen[data-view="profile"] { background: var(--surface-subtle); }
/* Вне профиля ряд «не существует»: карточка ведёт себя как раньше */
.profile-screen:not([data-view="profile"]) .hpf-row { display: contents; }
.profile-screen:not([data-view="profile"]) :is(#hpf-head, #hpf-info, #hpf-quick) { display: none !important; }
.hpf-headwrap, .hpf-row, .hpf { position: relative; z-index: calc(var(--layer-content) + 1); width: min(1440px, calc(100% - clamp(24px, 6vw, 96px))); margin-left: auto; margin-right: auto; font-size: var(--hs-fs); }
.hpf-headwrap { margin-top: 24px; }
.hpf-headwrap .h-head { margin-bottom: 16px; }
.profile-screen[data-view="profile"] .hpf-row { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(220px, .95fr) minmax(200px, .75fr); gap: 16px; align-items: stretch; margin-bottom: 14px; }
.profile-screen[data-view="profile"] .hpf-row.is-other { grid-template-columns: minmax(0, 1.9fr) minmax(240px, 1fr); }
.profile-screen[data-view="profile"] .hpf-row > .profile-card { width: auto; min-width: 0; margin: 0; padding: 20px 22px; }
.profile-screen[data-view="profile"] .hpf-row > .profile-card::before { border-color: var(--hs-edge); border-radius: var(--hs-r); background: var(--hs-glass); box-shadow: 0 10px 40px color-mix(in srgb, #000 18%, transparent); }
.profile-screen[data-view="profile"] .hpf-row > .profile-card { border-radius: var(--hs-r); }
/* Редактирование оформления: карточка во всю ширину, остальное прячем */
.profile-screen.is-editing .hpf-row { grid-template-columns: minmax(0, 1fr) !important; }
.profile-screen.is-editing .hpf-row > :not(.profile-card) { display: none !important; }
@media (max-width: 1100px) { .profile-screen[data-view="profile"] .hpf-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .profile-screen[data-view="profile"] .hpf-row > .profile-card { grid-column: 1 / -1; } }
@media (max-width: 640px) { .profile-screen[data-view="profile"] .hpf-row, .profile-screen[data-view="profile"] .hpf-row.is-other { grid-template-columns: minmax(0, 1fr); } .hpf-headwrap, .hpf-row, .hpf { width: calc(100% - 20px); } }
.hpf-info { position: relative; padding: 16px 18px; }
.hpf-info dl { display: grid; grid-template-columns: 1fr !important; gap: 12px; }
.hpf-info-row { grid-template-columns: 34px 1fr; column-gap: 12px; }
.hpf-info-ic { width: 34px; height: 34px; border-radius: 9px; color: var(--text); background: var(--hs-row-hover); }
.hpf-info-ic svg { width: 17px; height: 17px; }
.hpf-info dt { color: var(--text-muted); font-size: .74rem; font-weight: 400; }
.hpf-info dd { font-size: .92rem; font-weight: 450; }
.hpf-info-dots { position: absolute !important; top: 10px; right: 10px; }
.hpf-quick { gap: 8px; padding: 16px; }
.hpf-quick .h-tile-head h2 { font-size: 1rem; }
.hpf-q { gap: 10px; padding: 9px 14px; border-color: var(--hs-edge); border-radius: 999px; background: var(--hs-row); font-size: .88rem; font-weight: 450; }
.hpf-q:hover { border-color: color-mix(in srgb, var(--text) 32%, transparent); background: var(--hs-row-hover); }
.hpf-q > svg:first-child { color: var(--text); }
.hpf-q > span:not(.h-count) { flex: 0 1 auto; }
.hpf-q > svg:last-child { margin-right: auto; color: var(--text); }
.hpf-tabs { margin: 0; }
.hpf > .h-tabbar { margin-bottom: 14px; }
/* Обзор */
.hpf-ov { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, .9fr); gap: 14px; }
.hpf-ov .hpf-ach-mini { grid-column: auto; }
@media (max-width: 1100px) { .hpf-ov { grid-template-columns: 1fr 1fr; } .hpf-ov .hpf-ach-mini { grid-column: 1 / -1; } }
@media (max-width: 700px) { .hpf-ov { grid-template-columns: 1fr; } }
.hpf-ov .hh-fr { grid-template-columns: 30px minmax(70px, .7fr) minmax(110px, 1.2fr) minmax(100px, 1.2fr) auto; gap: 10px; font-size: .82rem; }
.hpf-ov .hh-fr-av .h-av { width: 28px; height: 28px; }
/* Статистика */
.hpf-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .85fr); gap: 14px; }
@media (max-width: 1100px) { .hpf-stats { grid-template-columns: 1fr 1fr; } .hpf-ach { grid-column: 1 / -1; } }
@media (max-width: 700px) { .hpf-stats { grid-template-columns: 1fr; } }
.hpf-stats .h-tile-head h2 { font-size: 1rem; }
.hpf-st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hpf-st { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 10px 14px; border: 1px solid var(--hs-edge); border-radius: var(--hs-r-in); color: var(--text); background: var(--hs-row); font: inherit; text-align: left; text-decoration: none; }
a.hpf-st:hover, button.hpf-st:hover { background: var(--hs-row-hover); }
.hpf-st-ic { display: grid; flex: 0 0 auto; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: var(--button-text); background: var(--dark); }
.hpf-st-ic svg { width: 19px; height: 19px; }
.hpf-st > span:last-child { display: grid; gap: 3px; }
.hpf-st > span:last-child > span { font-size: .78rem; }
.hpf-st b { font-size: 1.3rem; font-weight: 400; line-height: 1; }
.hpf-donut-in svg circle[stroke-dasharray] { stroke-width: 20; }
.hpf-donut-in li { font-size: .86rem; }
.hpf-donut-in li i { width: 9px; height: 9px; }
.hpf-donut-in li b { font-weight: 400; }
.hpf-donut-n { font-size: 20px; font-weight: 500; }
.hpf-badges { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 6px; }
.hpf-badge { width: 56px; height: 56px; }
.hpf-badge > svg:first-child { fill: color-mix(in srgb, var(--text) 7%, transparent); stroke: color-mix(in srgb, var(--text) 16%, transparent); }
.hpf-badge.is-got > svg:first-child { fill: color-mix(in srgb, var(--dark) 55%, transparent); stroke: color-mix(in srgb, var(--dark) 80%, transparent); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--dark) 40%, transparent)); }
.hpf-badge > svg:last-child { width: 20px; height: 20px; }
.hpf-badge.is-got > svg:last-child { color: var(--button-text); }
/* Проекты профиля */
.hpf-ptable .h-cover { width: 56px; aspect-ratio: 4 / 3; }
.hpf-role { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--text); font-size: .86rem; }
.hpf-role > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hpf-live { display: inline-block; width: 7px; height: 7px; margin-left: 4px; border-radius: 50%; background: #6fcf8a; vertical-align: middle; }
/* Настройки */
.hpf-set { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 800px) { .hpf-set { grid-template-columns: 1fr; } }
.hpf-set-nav { display: grid; gap: 4px; padding: 10px; border: 1px solid var(--hs-edge); border-radius: var(--hs-r-in); background: var(--hs-glass-soft); }
.hpf-set-nav button { font-weight: 450; }
.hpf-set-nav button:hover { background: var(--hs-row); }
.hpf-set-nav button.is-active { color: var(--button-text); background: var(--dark); box-shadow: 0 0 14px color-mix(in srgb, var(--dark) 35%, transparent); }
.hpf-set-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; }
.hpf-set-grid > section:last-child { grid-column: auto; }
@media (max-width: 1000px) { .hpf-set-grid { grid-template-columns: 1fr; } }
.hpf-set-grid .h-tile-head h2 { font-size: 1rem; }
.hpf-set-in { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; }
@media (max-width: 560px) { .hpf-set-in { grid-template-columns: 1fr; } }
.hpf-set-av { display: grid; justify-items: center; align-content: start; gap: 12px; }
.hpf-av-prev .h-av.is-lg { width: 130px; height: 130px; }
.hpf-set-fields { display: grid; gap: 10px; }
.hpf-frow { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 10px; }
.hpf-set-fields .hpf-frow { margin-bottom: 0; }
.hpf-frow > span:first-child { display: grid; color: var(--text); font-size: .86rem; }
.hpf-frow > span:first-child small { color: var(--text-muted); font-size: .7rem; }
.hpf-frow :is(input, select, textarea) { width: 100%; min-height: 38px; padding: 8px 12px; border: 1px solid var(--hs-edge); border-radius: 10px; color: var(--text); background: var(--hs-row); font: inherit; font-size: .88rem; }
.hpf-frow textarea { min-height: 76px; resize: vertical; }
.hpf-frow select option { color: var(--text); background: var(--surface-strong); }
.hpf-frow :is(input, select, textarea):focus { outline: 2px solid var(--accent); outline-offset: 0; }
.hpf-fval { padding: 8px 12px; border: 1px solid var(--hs-edge); border-radius: 10px; background: var(--hs-row); font-size: .88rem; }
.hpf-save { justify-content: flex-end; margin-top: 8px; }
@media (max-width: 560px) { .hpf-frow { grid-template-columns: 1fr; gap: 4px; } }

/* ================= Страница проекта (макета нет — в том же стиле) ================= */
.hp-hero { grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 16px; margin-bottom: 16px; }
.hp-title-line h1 { font-family: var(--hs-serif); font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 500; letter-spacing: 0; }
.hp-f > span:first-child { font-weight: 400; }
.hp-f b, .hp-f .h-copy { font-weight: 450; }
.hp-head .h-cover.is-xl { width: 160px; box-shadow: 0 10px 28px color-mix(in srgb, #000 30%, transparent); }
.hp-bot { border-color: var(--hs-edge); }
.hp-bot.is-on { color: var(--button-text); border-color: transparent; background: var(--dark); }
.hp-prog.is-big b { font-weight: 450; }
.hp-stage-name { font-weight: 450; }
.hp-stage-name svg { color: var(--text); }
.h-tribar { height: 7px; }
.h-tribar .is-done, .h-legend .is-done { background: var(--dark); }
.h-tribar .is-avail, .h-legend .is-avail { background: color-mix(in srgb, var(--dark) 35%, transparent); }
.hp-overview { gap: 14px; }
.hp-roles { gap: 10px; }
.hp-role { padding: 12px; border-color: var(--hs-edge); border-radius: var(--hs-r-in); background: var(--hs-row); }
.hp-role-head { color: var(--text); font-size: .82rem; }
.hp-role-head b { font-weight: 500; }
.hp-role-head svg { color: var(--text); }
.hp-person-link b { font-weight: 500; }
.hp-person-link .h-av.is-md { width: 40px; height: 40px; }
.hp-vacant { border-color: color-mix(in srgb, var(--text) 25%, transparent); border-radius: 10px; color: var(--text-muted); font-weight: 400; }
.hp-vacant:hover { color: var(--text); border-color: var(--text); }
.hp-link-cols h3 { font-weight: 450; }
.hp-link { font-weight: 450; }
.hp-lore summary { font-weight: 500; }
/* Главы */
.hp-chapters { padding: 6px; }
.hp-ch + .hp-ch { border-top: 1px solid var(--hs-line); }
.hp-ch-row:hover, .hp-ch.is-open .hp-ch-row { background: var(--hs-row); }
.hp-ch-name { font-weight: 500; }
.hp-ch.has-mine .hp-ch-row { box-shadow: inset 3px 0 0 var(--dark); }
.hp-st-list { background: var(--hs-row); border-radius: var(--hs-r-in); }
.hp-st-row:hover { background: var(--hs-row); }
.hp-st-row.is-mine { background: var(--hs-row-hover); }
.hp-st-name { font-weight: 450; }
.hp-st-name svg { color: var(--text); }
/* История (лента) */
.h-ev { border-bottom-color: var(--hs-line); font-size: .9rem; }
.h-ev-ic { border-radius: 9px; color: var(--text); background: var(--hs-row-hover); }
.h-ev-text a { font-weight: 450; }
.h-ev-who { font-weight: 500 !important; }
/* Публикация главы */
.hc-pub-row { border-color: var(--hs-edge); border-radius: var(--hs-r-in); background: var(--hs-row); }
.hc-pub-row > svg { color: var(--text); }
.hc-pub-row > b { font-weight: 500; }
.hc-soon > svg { color: var(--text); }
.h-tabbar .h-search, .hc-top .h-round { background: var(--hs-glass); backdrop-filter: var(--hs-blur); -webkit-backdrop-filter: var(--hs-blur); }
.topbar .h-nav-notif .h-dot { overflow: hidden; color: transparent !important; text-indent: -99px; }
@media (max-width: 760px) {
  .hh-fr { grid-template-columns: 34px minmax(0, 1fr) auto; row-gap: 2px; padding: 8px 4px; }
  .hh-fr-av { grid-row: 1 / span 3; align-self: start; }
  .hh-fr-who { grid-row: 1; grid-column: 2; }
  .hh-fr time { grid-row: 1; grid-column: 3; }
  .hh-fr-what { grid-row: 2; grid-column: 2 / -1; }
  .hh-fr-where { grid-row: 3; grid-column: 2 / -1; }
}
@media (max-width: 680px) { .hh-current, .hh-members, .hh-tg { min-height: 0; } .hh-tg-main { padding: 6px 0; } .hh-deco { min-height: 180px; } }
@media (max-width: 600px) { .hc-cover .h-cover.is-lg { width: 84px; } .hc-ident { gap: 14px; } .hc-progress { grid-template-columns: minmax(0, 1fr) auto auto; } }
/* Кнопки «⋯» прямо в карточках — кликабельны поверх ссылки-карточки */
:is(.hp-card, .ht-card, .ht-rolecard) :is(a, button):not(.h-stretch) { pointer-events: auto !important; }
.hc-side-who b { white-space: normal; overflow-wrap: anywhere; line-height: 1.15; }
