UI v4: новый стиль по макету V3/V4 и доводка экранов

Палитра «Сияние» по умолчанию, новые роли цветов. Лента канала: плоские записи, ряд действий
с равным шагом иконок, дата у записи. Обсуждение со строкой ввода, личный чат, шторки.
Вход и регистрация: стартовый экран (надпись «СИЯНИЕ», сияние мандалы), настройки входа
со статусами серверов, статус логина в одну строку, вход с другого устройства (код, таймер, шаги),
сохранение ключей с переключателями. Корневые разделы – заголовок по центру; фильтр чатов –
переключатель; уведомления – список как в чатах; фото – просмотр на весь экран.
Общее: один зазор под шапкой (--page-top-gap), переключатели высотой с поле ввода,
второстепенные кнопки по одной роли (в том числе на экранах устройств и серверов),
иконки только из ui-icon.js, полоса прокрутки скрыта, среднее тире в текстах интерфейса.

Что нужно от сервера и разработчика – docs/UI-Design/UI-v4-for-dev.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
q
2026-09-29 01:36:52 +03:00
co-authored by Claude Opus 5.5
parent 13693a0a53
commit 2e62616b46
84 changed files with 2507 additions and 1583 deletions
+43 -6
View File
@@ -1,7 +1,44 @@
/* Ветка сохраняет ширину текста на любой глубине. */
/* Обсуждение (макет V4): контекст записи, «Комментарии · N», плоский список, строка ввода. */
.channels-screen--thread { gap: 0; }
.thread-block { display: grid; gap: 0; min-width: 0; }
.thread-node-level { margin-left: 0; }
.thread-block--replies > .section-title { padding: 16px 0 8px; margin: 0; color: var(--text-secondary); font-size: .875rem; font-weight: 600; }
.thread-node-heading { color: var(--text-secondary); font-size: .8125rem; }
.thread-node-card .channel-message-avatar.avatar { width: 32px; height: 32px; min-width: 32px; min-height: 32px; }
.thread-history-divider { border-top: 1px solid var(--border-subtle); margin: 8px 0; }
.thread-context { padding: 10px 0 8px; border-bottom: 1px solid var(--border-subtle); font-size: .875rem; line-height: 1.25rem; }
.thread-block--ancestors .thread-context { opacity: .8; }
.thread-context__text { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; }
.thread-context.is-expanded .thread-context__text { display: block; }
.thread-context__meta { display: flex; align-items: center; gap: 12px; min-height: 32px; color: var(--text-secondary); font-size: .75rem; }
.thread-context__expand, .thread-context__open { min-height: 32px; padding: 0 4px; border: 0; background: transparent; color: var(--action); font: inherit; font-size: .75rem; cursor: pointer; }
.thread-context__open { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.thread-context__open svg { width: 14px; height: 14px; }
.thread-section-title { margin: 12px 0 4px; font-size: .8125rem; font-weight: 600; color: var(--text-primary); }
.channels-screen .thread-comment { display: block; margin: 0 calc(-1 * var(--page-gutter)); padding: 7px var(--page-gutter) 5px; border: 0; border-radius: 0; background: transparent; scroll-margin: 16px; }
.channels-screen .thread-comment + .thread-comment { border-top: 1px solid var(--divider-soft); }
.thread-comment.is-highlight { background: var(--surface-selected); box-shadow: inset 3px 0 var(--accent); }
.thread-comment__person { display: flex; align-items: center; gap: 7px; min-height: 26px; margin-bottom: 4px; font-size: .875rem; font-weight: 600; }
.thread-comment__who { display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--text-primary); font: inherit; cursor: pointer; }
.thread-comment__who .avatar.thread-comment__avatar { width: 24px; height: 24px; min-width: 24px; min-height: 24px; font-size: 11px; }
.thread-comment__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.thread-comment__badge { padding: 1px 5px; border-radius: 5px; background: var(--surface-selected); color: var(--action); font-size: .625rem; font-weight: 400; white-space: nowrap; }
.thread-comment__person time { margin-left: auto; flex-shrink: 0; color: var(--text-secondary); font-size: .75rem; font-weight: 400; }
.thread-comment__text { margin: 0; font-size: .9375rem; line-height: 1.4375rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.thread-comment__actions { display: flex; align-items: center; gap: 12px; margin-top: 2px; color: var(--text-secondary); }
.thread-comment__actions > button { min-height: 32px; min-width: 32px; padding: 0 4px; display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: .75rem; cursor: pointer; }
.thread-comment__actions .thread-comment__reply { padding-left: 0; color: var(--action); }
.thread-comment__actions svg { width: 21px; height: 21px; }
.thread-comment__actions .thread-comment__more { margin-left: auto; }
.thread-comment__actions .thread-comment__more svg { width: 24px; height: 24px; }
.thread-quote { display: block; width: 100%; margin: 0 0 7px; padding: 5px 9px; border: 0; border-left: 2px solid var(--quote-line); border-radius: 0 6px 6px 0; background: var(--quote-bg); color: var(--text-secondary); font: inherit; font-size: .75rem; line-height: 1.125rem; text-align: left; cursor: pointer; }
.thread-quote strong { display: block; color: var(--action); font-weight: 500; }
.thread-quote span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
button.thread-quote:hover { background: var(--surface); }
.thread-return { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 5; padding: 9px 12px; border: 1px solid var(--border-subtle); border-radius: 20px; background: var(--surface-raised); color: var(--text-primary); font: inherit; font-size: .75rem; white-space: nowrap; cursor: pointer; }
.thread-empty { padding: 36px 20px; text-align: center; }
.thread-composer { display: grid; gap: 8px; }
.thread-replying { display: flex; gap: 8px; align-items: flex-start; }
.thread-replying[hidden] { display: none; }
.thread-replying .thread-quote { margin: 0; min-width: 0; cursor: default; }
.thread-replying__cancel { width: 32px; height: 32px; flex-shrink: 0; padding: 0; display: grid; place-items: center; border: 0; background: transparent; color: var(--text-secondary); cursor: pointer; }
.thread-replying__cancel svg { width: 20px; height: 20px; }
.thread-composer__emoji { max-height: 260px; overflow: auto; }
+5 -3
View File
@@ -6,10 +6,11 @@
.channels-screen .channel-message-card.is-focus-flash { background: var(--surface-selected); }
.channel-system-event-card { padding: 8px; margin: 8px auto; width: fit-content; max-width: 100%; color: var(--text-secondary); font-size: .75rem; text-align: center; }
.channel-meta-details-grid { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px; overflow-wrap: anywhere; }
.channel-profile-avatar { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; }
.channel-profile-avatar { width: var(--channel-avatar-size, 96px); height: var(--channel-avatar-size, 96px); min-width: var(--channel-avatar-size, 96px); border-radius: calc(var(--channel-avatar-size, 96px) * .28); overflow: hidden; color: var(--accent); font-size: calc(var(--channel-avatar-size, 96px) * .5); }
.channel-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.channel-profile-modal-head { display: flex; gap: 12px; align-items: center; }
.channel-main-action { min-height: 44px; border-radius: 12px; padding: 10px 16px; color: var(--on-accent); background: var(--accent); }
.channel-main-action { width: 100%; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 0 16px; color: var(--on-accent); background: var(--accent); font-weight: 600; }
.channel-main-action svg { width: 20px; height: 20px; }
.channel-back-btn { min-height: 44px; color: var(--accent); }
.entrypoint-history-list { display: grid; gap: 8px; max-height: 58vh; overflow: auto; }
.entrypoint-history-item { display: grid; gap: 8px; text-align: left; padding: 12px; border-radius: 12px; background: var(--surface); color: var(--text-primary); }
@@ -24,7 +25,7 @@
.channel-about-hero { display: grid; justify-items: center; gap: 4px; padding: 8px 16px 0; text-align: center; }
.channel-about-avatar-slot { margin-bottom: 8px; }
.channel-about-avatar.avatar { width: 88px; height: 88px; min-width: 88px; min-height: 88px; font-size: 32px; }
.channel-about-avatar.avatar { width: 80px; height: 80px; min-width: 80px; min-height: 80px; border-radius: 24px; font-size: 36px; color: var(--accent); }
.channel-about-title { margin: 0; color: var(--text-primary); font-size: 1.375rem; line-height: 1.75rem; font-weight: 600; overflow-wrap: anywhere; }
.channel-about-subline { color: var(--text-secondary); font-size: .875rem; line-height: 1.25rem; overflow-wrap: anywhere; }
@@ -416,3 +417,4 @@
grid-column: 1 / -1;
}
}
.channel-about-tiles:empty { display: none; }
+30 -22
View File
@@ -42,7 +42,8 @@
.deleted-message-pill { min-height: 44px; text-align: left; color: var(--text-secondary); padding: 8px 0; }
.channel-header-title, .channel-header-owner { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-header-owner { color: var(--text-secondary); font-size: .75rem; line-height: 1rem; font-weight: 400; }
.channel-composer { display: flex; gap: 8px; padding: 8px 0; background: var(--background); }
/* Нижняя панель экранов канала: поверхность с линией сверху, как шапка */
.channel-composer { display: flex; gap: 8px; margin: 0 -12px; padding: 9px 12px calc(11px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border-subtle); }
.channel-compose-bar {
width: 100%;
min-height: 44px;
@@ -77,29 +78,36 @@
.thread-reply-context { color: var(--text-secondary); font-size: .75rem; line-height: 1.125rem; border-left: 2px solid var(--border-control); padding-left: 10px; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .channels-screen *, .channel-composer * { animation: none; scroll-behavior: auto; transition: none; } }
.channels-screen .channel-message-card.channel-message-card--owner {
gap: 6px;
margin: 0 0 8px;
padding: 10px 12px 2px 14px;
border: 1px solid var(--border-subtle);
border-radius: 16px;
background: var(--surface);
justify-self: start;
width: fit-content;
min-width: min(100%, 17rem);
max-width: 100%;
}
.channels-screen .channel-message-card--owner:has(.message-attachment-carousel) { width: 100%; }
/* Запись автора в его канале (макет V4): плоская, на всю ширину, между записями — линия с отступами */
.channels-screen .channel-message-card.channel-message-card--owner { gap: 0; margin: 0; padding: 20px 0 8px; border: 0; position: relative; }
.channels-screen .channel-message-card--owner + .channel-message-card--owner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--border-subtle); }
.channels-screen .channel-message-card--owner .channel-message-body { font-size: 1rem; line-height: 1.52; }
.channel-message-card--owner .channel-message-head-row[hidden] { display: none; }
.channel-message-card--owner .channel-message-body { line-height: 1.375rem; }
.channel-message-card--owner .channel-message-actions { gap: 0; margin-left: -8px; flex-wrap: nowrap; }
.channel-message-card--owner .channel-action-item { min-width: 40px; min-height: 40px; padding: 6px 8px; gap: 4px; }
.channel-message-card--owner .channel-action-icon svg { width: 20px; height: 20px; }
.channel-message-meta { display: flex; align-items: center; gap: 0; margin-left: auto; min-width: 0; }
.channel-message-card--owner .message-attachment-carousel { width: calc(100% + 2 * var(--page-gutter)); max-width: none; margin: 0 calc(-1 * var(--page-gutter)) 14px; }
.channel-message-card--owner .message-attachment-carousel-viewport { border: 0; border-radius: 0; }
.topbar-identity .avatar.channel-profile-avatar { --channel-avatar-size: 40px; width: 40px; height: 40px; min-width: 40px; min-height: 40px; font-size: 22px; border-radius: 11px; }
.channel-message-card--owner .channel-message-actions { gap: 0; margin: 6px -8px 0; min-height: 50px; flex-wrap: nowrap; }
/* Равный шаг иконок: каждое действие – ячейка 56 px, иконка у левого края, счётчик внутри ячейки (влезает и «999»). */
.channel-message-card--owner .channel-action-item { width: 56px; min-width: 56px; min-height: 44px; padding: 0 0 0 8px; gap: 5px; justify-content: flex-start; border-radius: 10px; font-variant-numeric: tabular-nums; }
.channel-message-card--owner .channel-action-discussion { width: auto; padding-right: 8px; }
.channel-message-card--owner .channel-action-icon svg { width: 23px; height: 23px; }
.channel-message-card--owner .channel-action-share .channel-action-icon svg { width: 25px; height: 25px; }
.channel-action-item.is-liked svg { fill: currentColor; }
.channel-action-faces { display: inline-flex; align-items: center; margin-left: 2px; padding-right: 3px; }
.channel-action-faces .avatar.channel-action-face { width: 22px; height: 22px; min-width: 22px; min-height: 22px; font-size: 10px; border: 2px solid var(--background); }
.channel-action-faces .channel-action-face + .channel-action-face { margin-left: -6px; }
.channel-message-meta { display: flex; align-items: center; gap: var(--space-1); margin-left: auto; min-width: 0; padding-left: 4px; }
.channel-message-meta .channel-message-time { white-space: nowrap; }
.channel-message-meta .channel-message-time::before { content: none; }
.channel-message-meta .channel-message-more { width: 40px; height: 40px; min-height: 40px; margin: 0 -4px 0 0; padding: 0; font-size: 20px; }
.channel-message-card--owner .attachment-carousel,
.channel-message-card--owner [class*='attachment'] { border-radius: 12px; }
.channel-message-meta .channel-message-more { display: inline-grid; place-items: center; width: 36px; height: 44px; min-height: 44px; margin: 0 -4px 0 0; padding: 0; }
.channel-message-more svg { display: block; width: 20px; height: 20px; }
@media (max-width: 360px) { .channel-message-card--owner .channel-action-item { width: 50px; min-width: 50px; } .channel-message-meta .channel-message-time { font-size: .6875rem; } }
/* Нижняя панель ленты: «Новая запись» у владельца, «Подписаться» у читателя */
.channel-new-post { width: 100%; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; background: var(--surface-selected); color: var(--action); font: inherit; font-weight: 600; cursor: pointer; }
.channel-new-post svg { width: 21px; height: 21px; }
.channel-new-post:hover { background: color-mix(in srgb, var(--surface-selected) 85%, var(--text-primary)); }
.channel-new-post:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.channels-screen--channel, .channels-screen--thread { padding-bottom: 8px; }
.channel-message-card--owner .message-attachment-media { height: auto; max-height: 70vh; object-fit: cover; }
@@ -24,6 +24,7 @@
.channels-list-controls {
display: grid;
gap: 12px;
padding-top: var(--page-top-gap);
}
.channels-inline-search {
+31 -127
View File
@@ -850,26 +850,19 @@
/* Поле сообщения занимает почти всю ширину; действия прижаты к правому краю. */
.composer-slot:has(> .dm-chat-input) {
padding-left: 0;
padding-right: 4px;
}
/* Нижняя панель чата — поверхность с линией сверху, как у канала и обсуждения */
.dm-chat-input {
grid-template-columns: minmax(0, 1fr) auto;
align-items: end;
position: relative;
z-index: 10;
margin-inline: 0;
padding: 10px 0;
border-top: 0;
background: transparent;
backdrop-filter: none;
-webkit-backdrop-filter: none;
gap: 4px;
padding-left: 0;
padding-right: 0;
margin-inline: calc(-1 * var(--page-gutter));
padding: 9px var(--page-gutter) calc(11px + env(safe-area-inset-bottom));
border-top: 1px solid var(--border-subtle);
background: var(--surface);
gap: 6px;
}
@@ -891,98 +884,16 @@
.chat-header-peer-btn {
width: 100%;
min-width: 0;
min-height: 46px;
padding: 2px 0;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: flex-start;
gap: 7px;
text-align: left;
cursor: pointer;
}
.chat-header-peer-btn .chat-header-avatar-slot {
flex: 0 0 40px;
}
.chat-header-peer-text {
min-width: 0;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
gap: 2px;
}
.chat-header-peer-name,
.chat-header-peer-meta {
display: block;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.chat-header-peer-name {
font-size: 14px;
line-height: 1.15;
font-weight: 650;
color: var(--text-primary);
}
.chat-header-peer-meta {
font-size: 11px;
line-height: 1.15;
font-weight: 500;
color: var(--text-secondary);
}
/* ===== DM header regression fix (2026-09-02) =====
* The peer identity button intentionally spans the whole free header area.
* Its avatar uses a 119% glass overlay, so neither the center cell nor the
* button may clip overflow. Text keeps its own ellipsis boundary instead.
*/
.chat-header-peer-btn {
overflow: visible;
padding-inline: 2px;
}
.chat-header-peer-btn .chat-header-avatar-slot {
width: 44px;
height: 44px;
min-width: 44px;
min-height: 44px;
flex: 0 0 44px;
overflow: visible;
}
.chat-header-peer-btn .chat-header-avatar-slot .chat-header-avatar {
overflow: visible;
}
.chat-header-peer-text {
flex: 1 1 auto;
overflow: hidden;
}
/* Шапка чата — общая «визитка» (topbar.css .topbar-identity). У аватара стеклянный ободок на 119%,
* поэтому ни кнопка, ни слот аватара не обрезают содержимое; текст обрезается сам. */
.chat-header-peer-btn { width: 100%; overflow: visible; }
.chat-header-peer-btn .chat-header-avatar-slot { width: 36px; height: 36px; min-width: 36px; flex: 0 0 36px; overflow: visible; }
.chat-header-peer-btn .chat-header-avatar-slot .avatar.chat-header-avatar { width: 36px; height: 36px; min-width: 36px; min-height: 36px; overflow: visible; }
.chat-header-peer-text { flex: 1 1 auto; overflow: hidden; }
/* Shell state + Chat-owned composer adjustment (moved out of app-shell.css). */
.app-shell--scroll-nested.keyboard-open .composer-slot .dm-chat-input {
padding-bottom: 0;
padding-bottom: 9px;
}
@@ -1393,35 +1304,28 @@
margin-top: 2px;
}
.chat-header-peer-btn { border: 0; background: transparent; color: inherit; font: inherit; }
.chat-header-peer-btn:hover { background: var(--surface); }
.chat-header-peer-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.chat-header-peer-name { font-size: var(--text-md); font-weight: var(--weight-bold); }
.chat-header-peer-meta { font-size: var(--text-xs); }
.dm-chat-screen .bubble {
max-width: min(80%, 34rem);
padding: 8px 12px 6px;
border-radius: var(--radius-lg);
max-width: min(85%, 34rem);
padding: 10px 12px 7px;
border-radius: 17px;
color: var(--text-primary);
font-size: var(--text-md);
line-height: var(--leading-md);
font-size: .9375rem;
line-height: 1.375rem;
box-shadow: none;
overflow-wrap: anywhere;
}
.dm-chat-screen .bubble.in {
background: var(--surface);
border: 1px solid var(--border-subtle);
border-bottom-left-radius: var(--radius-xs);
border-top-left-radius: var(--radius-lg);
}
.dm-chat-screen .bubble.out {
background: color-mix(in srgb, var(--accent) 24%, var(--surface));
border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border-subtle));
border-bottom-right-radius: var(--radius-xs);
border-top-right-radius: var(--radius-lg);
}
.dm-chat-screen .bubble-meta { font-size: .6875rem; line-height: 1rem; color: var(--text-secondary); }
.dm-chat-screen .bubble-status--read { color: var(--accent); }
.dm-chat-screen .bubble.in { background: var(--surface); border-bottom-left-radius: 5px; }
.dm-chat-screen .bubble.out { background: var(--bubble-out); border-bottom-right-radius: 5px; }
/* Время и статус — в конце последней строки (эксперимент V4, принят); не влезают — переносятся */
.dm-chat-screen .bubble-text { display: inline; }
.dm-chat-screen .bubble-meta { float: right; margin: 5px 0 0 10px; display: inline-flex; align-items: center; gap: 4px; font-size: .6875rem; line-height: 1rem; color: color-mix(in srgb, var(--text-secondary) 70%, var(--text-primary)); }
.dm-chat-screen .bubble::after { content: ''; display: table; clear: both; }
.dm-chat-screen .bubble-status { display: inline-flex; min-width: 0; color: inherit; text-shadow: none; }
.dm-chat-screen .bubble-status svg { width: 16px; height: 16px; }
.dm-chat-screen .bubble-status--read { color: var(--action); }
.dm-chat-screen .bubble-status--failed { color: var(--danger); }
.dm-chat-screen .bubble-delivery-note { clear: both; }
.dm-day-separator { display: flex; justify-content: center; margin: 8px 0; }
.dm-day-separator span { padding: 3px 10px; border-radius: var(--radius-pill); color: var(--text-secondary); background: var(--surface); border: 1px solid var(--border-subtle); font-size: var(--text-xs); line-height: var(--leading-xs); }
@@ -1431,7 +1335,7 @@
border: 1px solid var(--border-control);
border-radius: 22px;
color: var(--text-primary);
background: var(--surface);
background: var(--surface-raised);
text-shadow: none;
caret-color: var(--accent);
font-size: 1rem;
@@ -200,3 +200,7 @@
.arweave-uploads-menu-btn .app-overflow-dots {
margin: auto;
}
/* Проверка Solana RPC: длинные адреса узлов переносятся, а не раздвигают экран */
.solana-rpc-card { min-width: 0; }
.solana-rpc-url, .solana-rpc-details { min-width: 0; overflow-wrap: anywhere; }
+8 -4
View File
@@ -151,13 +151,17 @@
}
/* QR для второго устройства: по центру карточки, во всю доступную ширину до 280 px.
* Фон всегда светлый — тёмный QR на тёмном фоне камеры читают плохо. */
.qr-image {
width: 64px;
height: 64px;
border-radius: 8px;
width: min(280px, 100%);
aspect-ratio: 1;
padding: 12px;
border-radius: 16px;
border: 1px solid var(--border-subtle);
background: var(--text-primary);
background: #ffffff;
}
.qr-image svg { display: block; width: 100%; height: 100%; }
/* Pairing approve/reject use their semantic button roles; legacy green/red surfaces were not observable in Stage 3.1. */
+1 -3
View File
@@ -757,7 +757,7 @@ button.dm-via-node:hover { border-color: color-mix(in srgb, var(--rel-link) 50%,
.dm-row-time { font-size: var(--text-xs); font-weight: 400; color: var(--text-secondary); }
.dm-contact-note { flex-shrink: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--rel-contact); font-size: var(--text-xs); font-weight: var(--weight-medium); }
.dm-contact-note--close_friend { color: var(--rel-family); }
.dm-filter-row { margin-bottom: var(--space-1); }
.dm-filter-row { margin: 0 0 var(--space-1); }
.dm-row-meta-col { align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; }
.dm-row-meta-line { display: flex; align-items: center; gap: 0; }
.dm-unread-badge { min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: var(--radius-pill); color: var(--on-accent); background: var(--accent); border: 0; font-size: var(--text-xs); font-weight: var(--weight-bold); }
@@ -766,6 +766,4 @@ button.dm-via-node:hover { border-color: color-mix(in srgb, var(--rel-link) 50%,
.dm-divider::before, .dm-divider::after { content: none; }
.contact-search-results { gap: 0; margin-top: var(--space-3); }
.contact-search-results .contact-search-results-title { margin: 0 0 var(--space-1); color: var(--text-secondary); font-size: var(--text-xs); }
.dm-filter-row { gap: 6px; }
.dm-filter-row .chip { padding: 0 12px; }
.dm-row-last-message.is-encrypted { font-style: italic; }
+74 -189
View File
@@ -1,203 +1,88 @@
/* Notifications feature styles. */
/* Уведомления: плоский список как в чатах – аватар, имя и время, ниже текст; тонкие разделители от текста. */
.notifications-screen { align-content: start; }
.notifications-screen .notification-feed-tabs { margin-bottom: var(--space-1); }
/* ===== Notifications glass style ===== */
.notifications-screen {
position: relative;
isolation: isolate;
color: var(--text-primary);
min-height: 100%;
align-content: start;
}
.notifications-list { display: grid; }
.notifications-screen::before {
content: "";
position: absolute;
inset: -12px -12px 0;
z-index: -1;
pointer-events: none;
background:
radial-gradient(320px 320px at 86% 12%, color-mix(in srgb, var(--rel-contact) 20%, transparent), transparent 72%),
radial-gradient(280px 280px at 18% 82%, color-mix(in srgb, var(--rel-contact) 14%, transparent), transparent 72%),
radial-gradient(260px 260px at 70% 65%, color-mix(in srgb, var(--warning) 12%, transparent), transparent 75%),
var(--surface);
}
.notifications-screen .tabs {
background: var(--surface);
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px);
border: 1px solid transparent;
border-radius: 16px;
}
.notifications-screen .tab-btn {
color: var(--text-secondary);
}
.notifications-screen .tab-btn.active {
background: color-mix(in srgb, var(--warning) 12%, transparent);
border: 1px solid transparent;
color: var(--warning);
}
.notifications-screen .notifications-list > .card {
background: var(--surface);
backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);
border: 1px solid var(--border-subtle);
border-radius: 20px;
box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 12%, transparent);
}
.notifications-screen::before {
content: none;
}
/* Contacts overflow menu body portal: avoids topbar overflow hit-testing on desktop/Android. */
/* ===== Notifications: social event cards ===== */
.notifications-screen .notification-card {
gap: 10px;
}
.notification-identity {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
}
.notification-avatar {
width: 40px;
height: 40px;
min-width: 40px;
min-height: 40px;
flex: 0 0 auto;
}
.notification-identity-text {
min-width: 0;
flex: 1 1 auto;
}
.notification-identity-primary {
display: flex;
align-items: baseline;
gap: 6px;
min-width: 0;
flex-wrap: wrap;
}
.notification-person-name {
color: var(--text-primary);
font-weight: 700;
overflow-wrap: anywhere;
}
.notification-login,
.notification-time-separator,
.notification-time {
color: var(--text-secondary);
font-size: 12px;
}
.notification-action,
.notification-content {
.notification-group-title {
margin: 0;
}
.notification-action {
padding: var(--space-3) 0 var(--space-1);
color: var(--text-secondary);
font-size: 13px;
font-size: var(--text-xs);
line-height: var(--leading-xs);
font-weight: var(--weight-bold);
}
.notification-card {
position: relative;
display: grid;
grid-template-columns: 40px minmax(0, 1fr);
gap: var(--space-3);
padding: var(--space-3) 0 0;
border-radius: var(--radius-md);
}
.notification-content {
.notification-avatar { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
.notification-card__body {
display: grid;
gap: 2px;
min-width: 0;
padding-bottom: var(--space-3);
border-bottom: 1px solid var(--divider-soft);
}
.notification-card__head { display: flex; align-items: baseline; gap: var(--space-2); min-width: 0; }
.notification-card__name {
flex: 1 1 auto;
min-width: 0;
color: var(--text-primary);
font-size: 15px;
line-height: 1.45;
font-size: var(--text-md);
font-weight: var(--weight-bold);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.notification-card__time { flex: 0 0 auto; color: var(--text-secondary); font-size: var(--text-xs); }
/* Непрочитанное: точка-акцент перед временем. */
.notification-card--new .notification-card__time::before {
content: "";
display: inline-block;
width: 7px;
height: 7px;
margin-right: 6px;
border-radius: 50%;
background: var(--accent);
vertical-align: 1px;
}
.notification-card__action { margin: 0; color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-sm); }
.notification-card__text {
margin: 0;
color: var(--text-primary);
font-size: var(--text-md);
line-height: var(--leading-md);
white-space: pre-wrap;
overflow-wrap: anywhere;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.notification-engagement { display: flex; align-items: center; gap: var(--space-4); padding-top: var(--space-1); color: var(--text-secondary); }
.notification-engagement-item { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-xs); line-height: 1; }
.notification-engagement-icon { display: inline-flex; }
.notification-engagement-icon svg { width: 14px; height: 14px; }
.notification-engagement {
display: flex;
align-items: center;
gap: 18px;
flex-wrap: wrap;
padding-top: 2px;
color: var(--text-secondary);
}
.notification-card--clickable { cursor: pointer; }
.notification-card--clickable:hover { background: color-mix(in srgb, var(--surface-selected) 45%, transparent); }
.notification-card--clickable:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.notification-engagement-item {
display: inline-flex;
align-items: center;
gap: 5px;
min-width: 24px;
font-size: 12px;
line-height: 1;
}
.notification-engagement-icon {
font-size: 15px;
}
.notifications-screen .notification-card--clickable {
cursor: pointer;
transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease;
}
.notifications-screen .notification-card--clickable:hover,
.notifications-screen .notification-card--clickable:focus-visible {
border-color: var(--border-subtle);
background: color-mix(in srgb, var(--text-primary) 6%, transparent);
outline: none;
}
.notifications-screen .notification-card--clickable:active {
transform: scale(0.99);
}
/* Уведомления: информационные блоки без рамок. Hover/focus не возвращает
* обводку — различение сохраняется фоном и лёгкой реакцией на нажатие. */
.notifications-screen .notifications-list > .notification-card,
.notifications-screen .notifications-list > .notification-card:hover,
.notifications-screen .notifications-list > .notification-card:focus,
.notifications-screen .notifications-list > .notification-card:focus-visible,
.notifications-screen .notifications-list > .notification-card:active {
border: 0;
outline: 0;
}
.notifications-screen .notifications-list > .notification-empty-state.card, .notifications-screen .notification-empty-state { margin-top: var(--space-5); padding: var(--space-5) var(--space-4); border: 0; background: none; box-shadow: none; text-align: center; justify-items: center; }
.notifications-screen .notification-empty-state strong { font-size: var(--text-md); color: var(--text-primary); }
.notifications-screen .notification-empty-state .meta-muted { max-width: 30ch; font-size: var(--text-sm); }
.notifications-screen .notification-feed-tabs { margin-bottom: var(--space-2); }
.notification-empty-state { margin-top: var(--space-5); padding: var(--space-5) var(--space-4); text-align: center; justify-items: center; }
.notification-empty-state strong { color: var(--text-primary); font-size: var(--text-md); }
.notification-empty-state .meta-muted { max-width: 30ch; font-size: var(--text-sm); }
+410 -128
View File
@@ -49,11 +49,11 @@
.initial-splash__logo-wrap::before {
content: "";
position: absolute;
inset: 16%;
/* Сияние гаснет в пределах ~четверти размера знака — не дотягивается до краёв экрана. */
inset: -14%;
z-index: -1;
border-radius: 50%;
background: color-mix(in srgb, var(--warning) 20%, transparent);
filter: blur(30px);
background: radial-gradient(closest-side, color-mix(in srgb, var(--warning) 15%, transparent), color-mix(in srgb, var(--warning) 6%, transparent) 55%, transparent);
animation: shine-halo-breathe 4.8s ease-in-out infinite;
}
@@ -66,7 +66,7 @@
filter:
drop-shadow(0 0 8px color-mix(in srgb, var(--warning) 72%, transparent))
drop-shadow(0 8px 22px color-mix(in srgb, var(--warning) 38%, transparent));
animation: shine-logo-breathe 4.8s ease-in-out infinite;
animation: shine-logo-breathe 5.3s ease-in-out infinite;
}
@@ -83,13 +83,47 @@
.auth-screen--welcome {
position: relative;
isolation: isolate;
align-content: center;
/* Знак с надписью — у оптического центра, действия — ближе к низу, под большой палец. */
grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
align-content: stretch;
justify-items: center;
gap: clamp(12px, 2.4vh, 20px);
padding-block: 8px;
gap: 0;
padding-block: clamp(var(--space-5), 6vh, 56px) calc(var(--space-5) + env(safe-area-inset-bottom));
font-family: var(--font-main);
}
.auth-screen--welcome .auth-logo-wrap { align-self: end; }
.auth-screen--welcome .shine-actions {
align-self: end;
width: min(100%, 390px);
grid-template-columns: 1fr 1fr;
gap: var(--space-3) var(--space-2);
}
.auth-screen--welcome .shine-actions > :is(.shine-btn, .secondary-btn) {
grid-column: 1 / -1;
width: 100%;
height: 52px;
min-height: 48px;
border-radius: var(--radius-lg);
font-size: var(--text-lg);
font-weight: var(--weight-bold);
}
.auth-screen--welcome :is(.start-language-link, .start-settings-link) {
min-height: var(--control-height);
border: 0;
background: transparent;
box-shadow: none;
color: var(--text-secondary);
font-size: var(--text-sm);
font-weight: var(--weight-medium);
}
.auth-screen--welcome .start-language-link { color: var(--accent); }
.auth-screen--welcome .start-settings-link::after { content: none; }
.screen-content.no-app-chrome:has(> .auth-screen--welcome) {
overflow: hidden;
@@ -97,29 +131,6 @@
}
.auth-screen--welcome::before {
content: "";
position: absolute;
inset: -14px -14px calc(-24px - env(safe-area-inset-bottom));
z-index: -2;
background:
radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--warning) 8%, transparent), transparent 26%),
radial-gradient(circle at 50% 67%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 38%),
var(--background);
}
.auth-screen--welcome::after {
content: "";
position: absolute;
inset: 0;
z-index: -1;
pointer-events: none;
background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text-primary) 2%, transparent) 50%, transparent);
opacity: 0.7;
}
.auth-screen--lower {
align-content: start;
padding-top: clamp(80px, 18vh, 180px);
@@ -134,7 +145,7 @@
filter:
drop-shadow(0 0 8px color-mix(in srgb, var(--warning) 72%, transparent))
drop-shadow(0 8px 22px color-mix(in srgb, var(--warning) 38%, transparent));
animation: shine-logo-breathe 4.8s ease-in-out infinite;
animation: shine-logo-breathe 5.3s ease-in-out infinite;
}
@@ -145,26 +156,60 @@
}
.auth-logo-wrap::before {
/* Сияние знака: два медленно вращающихся навстречу веера широких мазков. Периоды взаимно простые —
мазки то сходятся, то расходятся и почти не повторяются. Эллипс шире по горизонтали, к краям гаснет. */
.auth-logo-wrap::before,
.auth-logo-wrap::after {
--halo: color-mix(in srgb, var(--warning) 34%, transparent);
--halo-soft: color-mix(in srgb, var(--warning) 15%, transparent);
content: "";
position: absolute;
inset: 16%;
/* Спад прозрачности по плавной кривой с длинным хвостом — без видимой границы овала. */
inset: -80%;
z-index: -1;
pointer-events: none;
border-radius: 50%;
background: color-mix(in srgb, var(--warning) 20%, transparent);
filter: blur(30px);
animation: shine-halo-breathe 4.8s ease-in-out infinite;
-webkit-mask: radial-gradient(closest-side, #000 12%, rgb(0 0 0 / 0.8) 22%, rgb(0 0 0 / 0.58) 33%, rgb(0 0 0 / 0.4) 44%, rgb(0 0 0 / 0.26) 55%, rgb(0 0 0 / 0.16) 65%, rgb(0 0 0 / 0.09) 75%, rgb(0 0 0 / 0.045) 84%, rgb(0 0 0 / 0.018) 92%, transparent);
mask: radial-gradient(closest-side, #000 12%, rgb(0 0 0 / 0.8) 22%, rgb(0 0 0 / 0.58) 33%, rgb(0 0 0 / 0.4) 44%, rgb(0 0 0 / 0.26) 55%, rgb(0 0 0 / 0.16) 65%, rgb(0 0 0 / 0.09) 75%, rgb(0 0 0 / 0.045) 84%, rgb(0 0 0 / 0.018) 92%, transparent);
filter: blur(24px);
}
.auth-logo-wrap::before {
background: conic-gradient(from 0deg, var(--halo) 0deg, transparent 58deg, var(--halo-soft) 104deg, transparent 150deg, var(--halo) 212deg, var(--halo-soft) 250deg, transparent 296deg, var(--halo) 360deg);
transform: scaleY(0.5);
animation: shine-halo-spin 83s linear infinite, shine-halo-breathe 7.3s ease-in-out infinite;
animation-delay: var(--halo-phase-1, 0s), var(--halo-phase-2, 0s);
}
.auth-logo-wrap::after {
--halo: color-mix(in srgb, color-mix(in srgb, var(--warning) 82%, var(--accent)) 28%, transparent);
background: conic-gradient(from 40deg, transparent 0deg, var(--halo) 36deg, transparent 92deg, var(--halo-soft) 140deg, transparent 176deg, var(--halo) 238deg, transparent 290deg, var(--halo-soft) 322deg, transparent 360deg);
transform: scaleY(0.5);
animation: shine-halo-spin 127s linear infinite reverse, shine-halo-breathe 11.9s ease-in-out infinite;
animation-delay: var(--halo-phase-3, 0s), var(--halo-phase-4, -4s);
}
/* На светлом фоне золото темнеет в коричневый — сияние тише. */
:root[data-theme='light'] .auth-logo-wrap::before,
:root[data-theme='light'] .auth-logo-wrap::after {
--halo: color-mix(in srgb, var(--warning) 18%, transparent);
--halo-soft: color-mix(in srgb, var(--warning) 8%, transparent);
}
.auth-brand {
margin: -4px 0 clamp(4px, 1vh, 10px);
margin: clamp(20px, 3.4vh, 32px) 0 0;
color: var(--text-primary);
font-size: clamp(42px, 9vw, 56px);
font-weight: 500;
line-height: 1;
letter-spacing: 0;
text-shadow: 0 3px 22px color-mix(in srgb, var(--warning) 20%, transparent);
}
.auth-brand .shine-wordmark {
display: block;
width: auto;
height: 0.5em;
overflow: visible;
}
@@ -206,14 +251,12 @@
}
.shine-btn:disabled {
opacity: 0.45;
cursor: not-allowed;
}
.shine-local-demo-btn {
min-height: 32px;
padding: 5px 12px;
@@ -245,8 +288,15 @@
@keyframes shine-halo-breathe {
0%, 100% { opacity: 0.66; transform: scale(0.96); }
50% { opacity: 1; transform: scale(1.05); }
0%, 100% { opacity: 0.55; }
50% { opacity: 1; }
}
/* Сначала поворот, потом сплющивание: эллипс всегда лежит горизонтально и не тянется к верхнему краю. */
@keyframes shine-halo-spin {
from { transform: scaleY(0.5) rotate(0deg); }
to { transform: scaleY(0.5) rotate(360deg); }
}
@@ -265,16 +315,9 @@
.initial-splash__brand {
font-size: 40px;
}
.auth-screen--welcome {
gap: 10px;
}
.auth-logo-wrap {
width: 206px;
}
.auth-brand {
font-size: 40px;
margin-bottom: 2px;
}
.shine-actions {
gap: 10px;
}
@@ -292,6 +335,7 @@
.initial-splash__logo-wrap::before,
.auth-logo,
.auth-logo-wrap::before,
.auth-logo-wrap::after,
.shine-btn {
animation: none;
transition: none;
@@ -456,7 +500,6 @@
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .field-label,
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .auth-copy,
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .status-line,
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .registration-word-number {
color: var(--preauth-muted);
}
@@ -516,11 +559,6 @@
}
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .preauth-local-demo-btn {
min-height: 44px;
}
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .registration-toggle,
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .session-item {
border-color: var(--preauth-line);
@@ -554,11 +592,6 @@
}
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .registration-screen {
gap: 12px;
}
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .registration-form {
gap: 14px;
padding: 16px;
@@ -592,10 +625,19 @@
.registration-login-status {
display: block;
min-height: var(--leading-sm);
margin: 0;
font-size: 13px;
font-size: var(--text-sm);
line-height: var(--leading-sm);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.registration-login-status.is-available::before { content: "✓ "; }
.registration-login-status.is-checking { color: var(--text-secondary); }
.registration-faq-link {
justify-self: center;
@@ -607,8 +649,6 @@
}
@media (max-width: 360px) {
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) {
padding-inline: 12px;
@@ -626,11 +666,6 @@
}
.login-panel--wide {
width: min(100%, 420px);
}
.login-panel-title {
font-size: 28px;
font-weight: 700;
@@ -807,12 +842,35 @@
}
/* Глаз — внутри поля пароля, у правого края. */
.registration-password-single .inline-input-row {
position: relative;
display: block;
}
.registration-password-single .inline-input-row .input {
width: 100%;
padding-right: 48px;
}
.registration-password-toggle {
position: absolute;
top: 50%;
right: 2px;
width: 44px;
height: 44px;
min-width: 44px;
min-height: 44px;
border-radius: 14px;
border: 0;
border-radius: var(--radius-md);
background: transparent;
color: var(--text-secondary);
transform: translateY(-50%);
}
.registration-password-toggle .key-toggle-icon {
width: 20px;
height: 20px;
}
@@ -833,7 +891,6 @@
}
/* Новый двухшаговый login flow */
.login-remote-server {
width: 100%;
@@ -854,11 +911,6 @@
}
.login-device-preparation {
width: 100%;
}
.secret-generation-overlay {
position: fixed;
inset: 0;
@@ -912,58 +964,302 @@
}
/* ===== Вход через другое устройство: заголовок внутри панели ===== */
.auth-screen--other-device {
justify-content: flex-start;
padding-top: max(18px, env(safe-area-inset-top));
/* Сохранение ключей: заголовок-итог, список с переключателями, короткий совет. */
.keys-lead { display: grid; gap: var(--space-1); padding: var(--space-2) var(--space-1) 0; }
.keys-lead__title { margin: 0; color: var(--text-primary); font-size: var(--text-xl); line-height: var(--leading-xl); font-weight: var(--weight-bold); }
.keys-lead__text { margin: 0; color: var(--text-secondary); font-size: var(--text-md); line-height: var(--leading-md); text-wrap: pretty; }
.keys-lead__text + .keys-lead__text { margin-top: calc(-1 * var(--space-1)); }
.keys-list {
display: grid;
border: 1px solid var(--border-subtle);
border-radius: var(--radius-lg);
background: var(--surface);
overflow: hidden;
}
.auth-screen--other-device .login-panel {
margin-top: 0;
}
.login-panel-inline-back {
width: 100%;
min-height: 42px;
.keys-row {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 10px;
padding: 0 2px;
font-size: 18px;
font-weight: 700;
text-align: left;
gap: var(--space-3);
min-height: 64px;
padding: var(--space-3) var(--space-4);
cursor: pointer;
}
.keys-row + .keys-row { border-top: 1px solid var(--border-subtle); }
.keys-row:has(.switch:disabled) { cursor: default; }
.keys-row__text { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
.keys-row__title { color: var(--text-primary); font-size: var(--text-md); line-height: var(--leading-md); font-weight: var(--weight-medium); }
.keys-row__hint { color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-sm); text-wrap: pretty; }
.keys-note { margin: 0; padding: 0 var(--space-1); color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-sm); }
.keys-actions { display: grid; gap: var(--space-2); margin-top: var(--space-2); }
/* Оплата регистрации: «обновить баланс» — второстепенная кнопка-иконка, пока грузится — крутится. */
.payment-refresh-btn {
display: grid;
place-items: center;
width: 44px;
min-width: 44px;
height: 44px;
padding: 0;
border: 1px solid var(--border-control);
border-radius: var(--radius-md);
background: transparent;
color: var(--action);
}
.payment-refresh-btn svg { width: 22px; height: 22px; }
.payment-refresh-btn.is-loading:disabled { opacity: 1; cursor: progress; }
.payment-refresh-btn.is-loading svg { animation: secret-generation-spin 0.9s linear infinite; }
@media (prefers-reduced-motion: reduce) {
.payment-refresh-btn.is-loading svg { animation: none; }
}
.login-panel-inline-back > span:first-child {
font-size: 24px;
line-height: 1;
/* ===== Вход с другого устройства: код, таймер, шаги ===== */
.pairing-who {
margin: 0;
color: var(--text-secondary);
font-size: var(--text-md);
text-align: center;
}
.pairing-code-block { display: grid; gap: var(--space-4); }
.pairing-code-block[hidden] { display: none; }
.pairing-code-card {
display: grid;
justify-items: center;
gap: var(--space-3);
padding: var(--space-5) var(--space-4) var(--space-4);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-lg);
background: var(--surface);
}
.pairing-code-card__label {
margin: 0;
color: var(--text-secondary);
font-size: var(--text-sm);
}
.pairing-code {
color: var(--text-primary);
font-size: clamp(30px, 9vw, 38px);
font-weight: 600;
font-variant-numeric: tabular-nums;
letter-spacing: 0.06em;
line-height: 1.1;
white-space: nowrap;
user-select: all;
}
.pairing-timer {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
gap: var(--space-3);
width: min(100%, 260px);
}
.pairing-timer__bar {
height: 4px;
border-radius: var(--radius-pill);
background: var(--surface-raised);
overflow: hidden;
}
.pairing-timer__bar > span {
display: block;
height: 100%;
border-radius: inherit;
background: var(--accent);
transition: width 1s linear;
}
.pairing-timer__text {
min-width: 3.2em;
color: var(--text-secondary);
font-size: var(--text-sm);
font-variant-numeric: tabular-nums;
text-align: right;
}
.pairing-online {
margin: 0;
color: var(--text-secondary);
font-size: var(--text-sm);
}
.pairing-online.is-online { color: var(--success); }
.pairing-online.is-online::before { content: "● "; }
.pairing-steps {
display: grid;
gap: var(--space-2);
margin: 0;
padding: 0 var(--space-2);
list-style: none;
counter-reset: pairing-step;
}
.pairing-steps > li {
display: grid;
grid-template-columns: 24px minmax(0, 1fr);
align-items: center;
gap: var(--space-3);
color: var(--text-primary);
font-size: var(--text-md);
line-height: var(--leading-md);
text-wrap: pretty;
counter-increment: pairing-step;
}
.pairing-steps > li::before {
content: counter(pairing-step);
display: grid;
place-items: center;
width: 24px;
height: 24px;
border-radius: 50%;
background: var(--surface-selected);
color: var(--action);
font-size: var(--text-xs);
font-weight: var(--weight-bold);
}
.pairing-waiting,
.pairing-notice {
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-2);
margin: 0;
color: var(--text-secondary);
font-size: var(--text-sm);
text-align: center;
}
.pairing-notice[hidden] { display: none; }
.pairing-notice > p { margin: 0; text-wrap: balance; }
.pairing-notice.is-error {
padding: var(--space-4);
border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
border-radius: var(--radius-lg);
background: color-mix(in srgb, var(--danger) 10%, transparent);
color: var(--danger);
font-size: var(--text-md);
}
.pairing-spinner {
flex: 0 0 auto;
width: 14px;
height: 14px;
border: 2px solid var(--border-control);
border-top-color: var(--accent);
border-radius: 50%;
animation: secret-generation-spin 0.9s linear infinite;
}
.pairing-spinner[hidden],
.pairing-password[hidden],
.pairing-login > .primary-btn[hidden] { display: none; }
/* Узкие экраны: шаги остаются в одну строку. */
@media (max-width: 360px) {
.pairing-steps > li { font-size: var(--text-sm); }
}
@media (prefers-reduced-motion: reduce) {
.pairing-spinner { animation: none; }
.pairing-timer__bar > span { transition: none; }
}
/* ===== UX refinements 2026-08-29 ===== */
/* Start: larger breathing room between brand and actions. */
.auth-screen--welcome .auth-brand {
margin-bottom: clamp(34px, 6vh, 58px);
/* Настройки входа: все серверы в одной карточке, статус — пилюля справа от подписи (она же «проверить ещё раз»). */
.entry-servers {
display: grid;
border: 1px solid var(--border-subtle);
border-radius: var(--radius-lg);
background: var(--surface);
}
.auth-screen--welcome .shine-actions {
margin-top: 0;
.entry-server {
display: grid;
gap: var(--space-2);
padding: var(--space-3) var(--space-4) var(--space-4);
}
.entry-server + .entry-server { border-top: 1px solid var(--border-subtle); }
/* Entry settings actions use the existing Start button visual language without huge width side effects. */
.screen-content.preauth-flow .server-check-btn.shine-btn {
width: auto;
height: 44px;
min-height: 44px;
padding-inline: 18px;
border-radius: 14px;
font-size: 15px;
.entry-server__head {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-2);
}
.entry-server__hint {
margin: calc(-1 * var(--space-1)) 0 0;
color: var(--text-secondary);
font-size: var(--text-xs);
line-height: var(--leading-xs);
overflow-wrap: anywhere;
}
.entry-status {
display: inline-flex;
align-items: center;
gap: 6px;
min-height: 32px;
padding: 0 var(--space-3);
border: 0;
border-radius: var(--radius-pill);
background: color-mix(in srgb, var(--action) 14%, transparent);
color: var(--action);
font-size: var(--text-sm);
font-weight: var(--weight-medium);
white-space: nowrap;
}
.entry-status:is(.is-available, .is-unavailable)::before {
content: "";
width: 7px;
height: 7px;
border-radius: 50%;
background: currentColor;
}
.entry-status.is-available {
color: var(--success);
background: color-mix(in srgb, var(--success) 15%, transparent);
}
.entry-status.is-unavailable {
color: var(--danger);
background: color-mix(in srgb, var(--danger) 15%, transparent);
}
.entry-status.is-checking:disabled {
opacity: 1;
cursor: progress;
color: var(--text-secondary);
background: transparent;
}
.entry-settings__actions {
display: grid;
gap: var(--space-2);
width: 100%;
margin-top: var(--space-2);
}
.screen-content.preauth-flow .auth-footer-actions .shine-btn {
@@ -994,19 +1290,6 @@
}
.screen-content.preauth-flow .topbar { background: transparent; }
.auth-screen--welcome .shine-actions { gap: var(--space-3); }
.auth-screen--welcome .start-language-link,
.auth-screen--welcome .start-settings-link {
min-height: var(--control-height);
border: 0;
background: transparent;
box-shadow: none;
color: var(--accent);
font-size: var(--text-md);
font-weight: var(--weight-medium);
}
.auth-screen--welcome .start-settings-link { color: var(--text-secondary); font-size: var(--text-sm); }
.auth-screen--welcome .start-settings-link::after { content: none; }
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .login-choice-screen .topbar { margin-bottom: var(--space-4); }
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .login-choice-screen .topbar__title { display: block; }
@@ -1025,7 +1308,6 @@
text-underline-offset: 3px;
}
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .topbar { min-height: 56px; margin-bottom: var(--space-2); grid-template-columns: 44px minmax(0, 1fr) 44px; }
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .topbar { min-height: 56px; margin-bottom: calc(var(--page-top-gap) - 10px); /* + промежуток .stack 10px */ grid-template-columns: 44px minmax(0, 1fr) 44px; }
.auth-screen--welcome .shine-actions { width: min(100%, 420px); justify-self: center; }
.auth-screen--welcome .shine-actions > :is(.shine-btn, .secondary-btn) { width: 100%; min-height: 48px; font-size: var(--text-md); font-weight: var(--weight-bold); }
+1 -1
View File
@@ -1,6 +1,6 @@
/* Карточка профиля (js/components/profile-card.js): свой и чужой профиль в одной системе с «О канале».
* Селекторы привязаны к .user-profile-screen, чтобы перекрыть старую геометрию profile.css. */
.user-profile-screen { gap: 0; min-height: 0; overflow-x: hidden; }
.user-profile-screen { gap: 0; min-height: 0; overflow-x: clip; } /* clip, а не hidden: hidden обрезал бы и свечение аватарки сверху */
.user-profile-screen::before { content: none; }
.user-profile-screen .user-profile-body { display: grid; gap: var(--space-4); padding: var(--space-2) 0 var(--space-5); }
.user-profile-screen .user-profile-status:empty { display: none; }
+14 -87
View File
@@ -142,15 +142,25 @@
}
.screen-content.settings-bordered-actions :is(.secondary-btn, .ghost-btn, .text-btn, .shine-btn, .settings-bordered-btn, .profile-relative-suggest-item) {
/* Второстепенные действия – та же роль, что во всём приложении: прозрачная кнопка, рамка, цвет «действия». */
.screen-content.settings-bordered-actions .profile-relative-suggest-item {
min-height: var(--control-height);
padding-inline: 14px;
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
background: var(--surface);
box-shadow: none;
color: var(--text-primary);
font-size: var(--text-md);
}
.screen-content.settings-bordered-actions :is(.secondary-btn, .ghost-btn, .text-btn, .shine-btn, .settings-bordered-btn) {
min-height: var(--control-height);
padding-inline: 14px;
border: 1px solid var(--border-control);
border-radius: var(--radius-md);
background: transparent;
box-shadow: none;
color: var(--action);
font-size: var(--text-md);
font-weight: var(--weight-medium);
text-shadow: none;
backdrop-filter: none;
@@ -171,9 +181,9 @@
font-size: var(--text-md);
font-weight: var(--weight-medium);
min-height: var(--control-height);
border: 1px solid var(--border-subtle);
border: 1px solid var(--border-control);
border-radius: var(--radius-md);
background: var(--surface);
background: transparent;
color: var(--danger);
box-shadow: none;
}
@@ -276,45 +286,6 @@
.language-choice-actions .shine-btn { height: 50px; }
/* ===== Скрытые расширенные настройки ===== */
.settings-shine-logo-button {
width: min(72vw, 280px);
min-height: 118px;
margin: 2px auto 10px;
padding: 6px 12px;
display: grid;
place-items: center;
border: 0;
background: transparent;
box-shadow: none;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
user-select: none;
}
.settings-shine-logo-button:hover,
.settings-shine-logo-button:focus,
.settings-shine-logo-button:active {
border: 0;
background: transparent;
box-shadow: none;
transform: none;
}
.settings-shine-logo-button:focus-visible {
outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
outline-offset: 4px;
border-radius: 22px;
}
.settings-shine-logo {
display: block;
width: 100%;
max-height: 126px;
object-fit: contain;
pointer-events: none;
filter: drop-shadow(0 12px 30px color-mix(in srgb, var(--accent) 16%, transparent));
}
.settings-feature-toggle-row {
min-height: 76px;
padding: 15px 16px;
@@ -343,50 +314,6 @@
color: var(--text-secondary);
}
.settings-feature-switch {
appearance: none;
-webkit-appearance: none;
flex: 0 0 auto;
width: 48px;
height: 28px;
margin: 0;
padding: 2px;
border: 1px solid var(--border-control);
border-radius: var(--radius-pill);
background: var(--surface-selected);
cursor: pointer;
transition: background-color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}
.settings-feature-switch::after {
content: '';
display: block;
width: 22px;
height: 22px;
border-radius: 50%;
background: var(--text-secondary);
box-shadow: var(--shadow-sm);
transition: transform var(--duration-fast) ease, background-color var(--duration-fast) ease;
}
.settings-feature-switch:checked {
border-color: var(--accent);
background: var(--accent);
}
.settings-feature-switch:checked::after {
transform: translateX(20px);
background: var(--on-accent);
}
.settings-feature-switch:focus-visible {
outline: 2px solid color-mix(in srgb, var(--accent) 82%, transparent);
outline-offset: 3px;
}
.settings-shine-logo-button { justify-self: center; }
.settings-shine-logo { width: 48px; height: 48px; max-height: 48px; object-fit: contain; }
.settings-shine-logo-button { min-height: 0; padding: 0; margin: 0 auto; }
.settings-sections { gap: var(--space-4); }
.settings-theme-card { gap: var(--space-2); }
.settings-theme-editor { width: 100%; }