/* Settings/language feature styles. */ .settings-developer-card { margin-top: 4px; } .settings-developer-panel { margin-top: 2px; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); } .settings-dev-avatar-modal-card { max-width: 520px; } .settings-dev-avatar-meta { min-height: 18px; font-size: 13px; color: var(--text-primary); } .settings-dev-avatar-error { min-height: 18px; color: var(--danger); } .settings-dev-avatar-result { gap: 8px; } /* ===== Выбор языка со стартового экрана ===== */ .language-screen { width: min(100%, 430px); margin-inline: auto; } .language-choice-card { padding: 16px; background: var(--surface); border: 1px solid var(--border-subtle); } .language-choice-hint { margin: 0 0 4px; text-align: center; } .language-choice-grid { display: grid; gap: 10px; } .language-choice-option { min-height: 64px; padding: 0 16px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent); border-radius: 16px; background: color-mix(in srgb, var(--text-primary) 4%, transparent); box-shadow: none; color: var(--text-primary); text-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; text-align: left; transform: none; transition: transform 90ms ease, box-shadow 90ms ease, background-color 90ms ease, filter 120ms ease; } .language-choice-option:hover { border-color: color-mix(in srgb, var(--accent) 16%, transparent); background: color-mix(in srgb, var(--text-primary) 4%, transparent); box-shadow: none; color: var(--text-primary); transform: none; filter: brightness(1.12); } .language-choice-option:active { color: var(--text-primary); background: color-mix(in srgb, var(--surface) 12%, transparent); border: 0; box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.58), inset 0 -1px 2px color-mix(in srgb, var(--text-primary) 8%, transparent); transform: translateY(1px) scale(0.97); filter: brightness(0.9); } .language-choice-option:focus-visible { border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent); background: color-mix(in srgb, var(--text-primary) 4%, transparent); box-shadow: none; color: var(--text-primary); outline: 2px solid var(--border-control); outline-offset: 2px; transform: none; } .language-choice-option.is-selected, .language-choice-option.is-selected:hover, .language-choice-option.is-selected:focus-visible { border: 1px solid color-mix(in srgb, var(--accent) 62%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text-primary) 8%, transparent), 0 0 20px color-mix(in srgb, var(--accent) 10%, transparent); } .language-choice-option.is-selected:active { border: 1px solid color-mix(in srgb, var(--accent) 62%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text-primary) 8%, transparent), 0 0 20px color-mix(in srgb, var(--accent) 10%, transparent); transform: translateY(1px) scale(0.97); filter: brightness(0.9); } .language-choice-name { font-size: 17px; font-weight: 650; } .language-choice-code { color: var(--text-secondary); font-size: 13px; font-weight: 700; letter-spacing: .08em; } /* Второстепенные действия – та же роль, что во всём приложении: прозрачная кнопка, рамка, цвет «действия». */ .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); 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; -webkit-backdrop-filter: none; transform: none; } .screen-content.settings-bordered-actions .primary-btn { min-height: var(--control-height); border: 0; border-radius: var(--radius-md); background: var(--accent); color: var(--on-accent); box-shadow: none; font-size: var(--text-md); font-weight: var(--weight-medium); } .screen-content.settings-bordered-actions .destructive-btn { font-size: var(--text-md); font-weight: var(--weight-medium); min-height: var(--control-height); border: 1px solid var(--border-control); border-radius: var(--radius-md); background: transparent; color: var(--danger); box-shadow: none; } .screen-content.settings-bordered-actions :is(.secondary-btn, .ghost-btn, .text-btn, .shine-btn, .settings-bordered-btn, .profile-relative-suggest-item, .destructive-btn):hover { background: var(--surface-selected); filter: none; } .screen-content.settings-bordered-actions :is(.primary-btn, .secondary-btn, .destructive-btn, .ghost-btn, .text-btn, .shine-btn, .settings-bordered-btn):active { transform: scale(0.98); filter: none; } .screen-content.settings-bordered-actions :is(.primary-btn, .secondary-btn, .destructive-btn, .ghost-btn, .text-btn, .shine-btn, .settings-bordered-btn):disabled { color: var(--text-secondary); background: var(--surface-selected); border-color: transparent; } /* Language selector: actual two-position switch with explicit confirmation. */ .language-segmented-control { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 4px; min-height: 58px; border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); border-radius: 18px; background: var(--surface); overflow: hidden; } .language-segmented-thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border: 1px solid color-mix(in srgb, var(--accent) 52%, transparent); border-radius: 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 28%, transparent), color-mix(in srgb, var(--accent) 20%, transparent)); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text-primary) 10%, transparent), 0 0 18px color-mix(in srgb, var(--accent) 14%, transparent); transition: transform 180ms ease; } .language-choice-card[data-language="en"] .language-segmented-thumb { transform: translateX(100%); } .language-segment { position: relative; z-index: 1; min-height: 50px; padding: 0 12px; border: 0; background: transparent; background-image: none; box-shadow: none; color: var(--text-primary); text-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; font-size: 16px; font-weight: 650; transition: transform 90ms ease, box-shadow 90ms ease, background-color 90ms ease, filter 120ms ease; } .language-segment:hover { color: var(--text-primary); background: transparent; border: 0; box-shadow: none; filter: brightness(1.12); } .language-segment:active { color: var(--text-primary); background: color-mix(in srgb, var(--surface) 12%, transparent); border: 0; box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.58), inset 0 -1px 2px color-mix(in srgb, var(--text-primary) 8%, transparent); transform: translateY(1px) scale(0.97); filter: brightness(0.9); } .language-segment:focus-visible { outline: 2px solid var(--border-control); outline-offset: 2px; } .language-segment::before, .language-segment::after { background: transparent; background-image: none; border-color: transparent; box-shadow: none; } .language-choice-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; } .language-choice-actions .shine-btn { height: 50px; } /* ===== Скрытые расширенные настройки ===== */ .settings-feature-toggle-row { min-height: 76px; padding: 15px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; cursor: pointer; } .settings-feature-toggle-copy { min-width: 0; display: grid; gap: 5px; } .settings-feature-toggle-title { font-size: 15px; font-weight: 700; color: var(--text-primary); } .settings-feature-toggle-hint { font-size: 12px; line-height: 1.4; color: var(--text-secondary); } .settings-sections { gap: var(--space-4); } .settings-theme-card { gap: var(--space-2); } .settings-theme-editor { width: 100%; } .settings-intro { padding-top: var(--space-3); } .settings-intro > p { margin: 0; padding-inline: var(--space-1); font-size: var(--text-sm); line-height: var(--leading-sm); } /* ===== Мой блокчейн ===== */ .my-blockchain-list { gap: 7px; } .my-blockchain-entry { display: grid; gap: 0; padding: 10px 12px; } .my-blockchain-entry__head { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 30px; align-items: center; gap: 8px; } .my-blockchain-entry__copy { min-width: 0; display: grid; gap: 3px; } .my-blockchain-entry__title { min-width: 0; overflow: hidden; color: var(--text-primary); font-size: 14px; font-weight: 650; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; } .my-blockchain-entry__meta { min-width: 0; overflow: hidden; font-size: 11px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; } .my-blockchain-entry__toggle { width: 30px; height: 30px; min-height: 30px; padding: 0; display: grid; place-items: center; border-radius: 50%; } .my-blockchain-entry__toggle:hover { background: var(--surface-selected); } .my-blockchain-entry__triangle { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid currentColor; transform-origin: 50% 45%; transition: transform 140ms ease; } .my-blockchain-entry__toggle[aria-expanded="true"] .my-blockchain-entry__triangle { transform: rotate(180deg); } .my-blockchain-entry__details { min-width: 0; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-subtle); } .my-blockchain-entry__details[hidden] { display: none; } .my-blockchain-entry__detail-title { display: block; margin-bottom: 7px; font-size: 14px; line-height: 1.4; } .my-blockchain-entry__full-text { max-height: 45vh; overflow: auto; margin-bottom: 8px; padding: 9px 10px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--text-primary) 4%, transparent); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; } .my-blockchain-entry__attachments { margin-bottom: 7px; font-size: 12px; } .my-blockchain-entry__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 2px 0 9px; } .my-blockchain-entry__action { min-height: 30px; padding: 4px 0; color: var(--action); font-size: 13px; font-weight: 600; text-decoration: none; } .my-blockchain-entry__external:hover { text-decoration: underline; } .my-blockchain-entry__detail-grid { display: grid; gap: 4px; } .my-blockchain-entry__detail-row { min-width: 0; display: grid; grid-template-columns: minmax(92px, 0.32fr) minmax(0, 1fr); gap: 8px; align-items: start; font-size: 11px; line-height: 1.4; } .my-blockchain-entry__detail-key { color: var(--text-secondary); } .my-blockchain-entry__detail-value { min-width: 0; color: var(--text-primary); overflow-wrap: anywhere; word-break: break-word; } @media (max-width: 520px) { .my-blockchain-entry__detail-row { grid-template-columns: 84px minmax(0, 1fr); } } /* «Оформление»: тема и образцы палитр (js/pages/appearance-view.js). */ .appearance-hint { margin: calc(-1 * var(--space-1)) 0 var(--space-2); font-size: var(--text-xs); } .palette-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 14px 10px; margin-bottom: var(--space-3); } .palette-swatch { display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--text-secondary); font: inherit; font-size: var(--text-xs); cursor: pointer; } /* Образец: фон палитры, полоска «поверхности», «пузырь» исходящего сообщения и точка акцента. */ .palette-swatch__sample { position: relative; width: 64px; height: 64px; border-radius: 18px; background: var(--swatch-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-primary) 14%, transparent); overflow: hidden; } .palette-swatch__bar { position: absolute; left: 8px; right: 8px; top: 9px; height: 10px; border-radius: 5px; background: var(--swatch-surface); } .palette-swatch__bubble { position: absolute; right: 8px; top: 26px; width: 30px; height: 14px; border-radius: 8px 8px 3px 8px; background: var(--swatch-bubble); } .palette-swatch__dot { position: absolute; left: 9px; bottom: 9px; width: 16px; height: 16px; border-radius: 50%; background: var(--swatch-accent); } .palette-swatch__check { position: absolute; right: 6px; bottom: 6px; display: none; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--swatch-accent); color: var(--swatch-on-accent); } .palette-swatch__check svg { width: 13px; height: 13px; stroke-width: 2.6; } .palette-swatch[aria-checked='true'] .palette-swatch__sample { box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--accent); } .palette-swatch[aria-checked='true'] .palette-swatch__check { display: grid; } .palette-swatch[aria-checked='true'] .palette-swatch__label { color: var(--text-primary); font-weight: var(--weight-bold); } .palette-swatch:focus-visible { outline: none; } .palette-swatch:focus-visible .palette-swatch__sample { box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--focus-ring); } .palette-swatch__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* «Уведомления» в настройках: чат «без звука» – ссылкой на чат. */ .notification-settings-chat { justify-self: start; padding: 0; color: var(--text-primary); font-weight: var(--weight-medium); text-align: left; } .about-sheet__copy { width: 100%; }