/* Карточка профиля (js/components/profile-card.js): свой и чужой профиль в одной системе с «О канале». * Селекторы привязаны к .user-profile-screen, чтобы перекрыть старую геометрию profile.css. */ .user-profile-screen { gap: 0; min-height: 0; overflow-x: 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; } .user-profile-screen .pf-hero { display: grid; justify-items: center; gap: var(--space-1); text-align: center; } .user-profile-screen .pf-avatar { position: relative; grid-column: auto; grid-row: auto; width: 96px; height: 96px; margin-bottom: var(--space-2); display: grid; place-items: center; justify-self: center; } .user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar, .user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar-image { width: 96px; height: 96px; min-width: 96px; min-height: 96px; font-size: 36px; } .user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar-framed > .avatar-fallback, .user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar-framed > .avatar-photo { width: 100%; height: 100%; } .user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar-framed::after, .user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar-glow::before { content: none; } .user-profile-screen .pf-hero.is-shining .pf-avatar::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--rel-shining); box-shadow: 0 0 14px var(--rel-shining-glow); pointer-events: none; } .user-profile-screen .pf-name { margin: 0; color: var(--text-primary); font-size: var(--text-xl); line-height: var(--leading-xl); font-weight: var(--weight-bold); overflow-wrap: anywhere; } .user-profile-screen .pf-login { color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-sm); } .user-profile-screen .pf-statuses { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-top: var(--space-2); } .user-profile-screen .pf-status { min-height: 32px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); color: var(--text-secondary); background: var(--surface); font: inherit; font-size: var(--text-xs); cursor: pointer; } .user-profile-screen .pf-status b { color: var(--text-primary); font-weight: var(--weight-bold); } .user-profile-screen .pf-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-control); } .user-profile-screen .pf-status.is-active { color: var(--text-primary); border-color: var(--border-control); } .user-profile-screen .pf-status.is-active .pf-status-dot { background: var(--rel-shining); box-shadow: 0 0 6px var(--rel-shining-glow); } .user-profile-screen .pf-status[data-profile-list='primary_received'].is-active .pf-status-dot { background: var(--rel-family); box-shadow: 0 0 6px var(--rel-family-glow); } .user-profile-screen .pf-status:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; } .user-profile-screen .pf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; } .user-profile-screen .pf-stat { min-height: 64px; padding: var(--space-2) var(--space-1); display: grid; align-content: center; justify-items: center; gap: 2px; border: 0; border-left: 1px solid var(--border-subtle); background: transparent; color: var(--text-primary); font: inherit; cursor: pointer; } .user-profile-screen .pf-stat:first-child { border-left: 0; } .user-profile-screen .pf-stat:hover { background: var(--surface-selected); } .user-profile-screen .pf-stat:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; } .user-profile-screen .pf-stat-value { font-size: var(--text-lg); line-height: var(--leading-lg); font-weight: var(--weight-bold); } .user-profile-screen .pf-stat-value small { color: var(--text-secondary); font-size: var(--text-xs); font-weight: var(--weight-medium); } .user-profile-screen .pf-stat-label { color: var(--text-secondary); font-size: var(--text-xs); line-height: var(--leading-xs); } .user-profile-screen .pf-tiles-wrap { position: relative; width: 100%; margin: 0; } .user-profile-screen .pf-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-2); width: 100%; margin: 0; padding: 0; } .user-profile-screen .pf-tile { width: auto; height: auto; min-height: 64px; padding: 10px 4px 8px; display: grid; justify-items: center; align-content: center; gap: 4px; border: 1px solid var(--border-subtle); border-radius: 14px; color: var(--accent); background: var(--surface); box-shadow: none; font: inherit; font-size: var(--text-xs); cursor: pointer; transform: none; width: 100%; justify-self: stretch; } .user-profile-screen .pf-tile::before, .user-profile-screen .pf-tile::after { content: none; } .user-profile-screen .pf-tile svg { width: 22px; height: 22px; } .user-profile-screen .pf-tile span { color: var(--text-primary); } .user-profile-screen .pf-tile:hover, .user-profile-screen .pf-tile:active, .user-profile-screen .pf-tile.is-active { background: var(--surface-selected); box-shadow: none; transform: none; } .user-profile-screen .pf-tile:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; } .user-profile-screen .pf-tile .pf-tile-mandala, .user-profile-screen .pf-tile img { width: 24px; height: 24px; object-fit: contain; filter: none; } .user-profile-screen .pf-list { display: grid; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; } .user-profile-screen .pf-row { display: grid; gap: 2px; padding: 12px 14px; border-top: 1px solid var(--border-subtle); } .user-profile-screen .pf-row:first-child { border-top: 0; } .user-profile-screen .pf-row-label { color: var(--text-secondary); font-size: var(--text-xs); line-height: var(--leading-xs); } .user-profile-screen .pf-row-value, .user-profile-screen .pf-row-text { margin: 0; color: var(--text-primary); font-size: var(--text-md); line-height: var(--leading-md); white-space: pre-wrap; overflow-wrap: anywhere; } .user-profile-screen .pf-row-text.is-empty { color: var(--text-secondary); } .profile-edit-card { gap: var(--space-3); } .profile-edit-statuses { flex-wrap: wrap; overflow: visible; } .profiles-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-2); padding: 6px 6px 6px 14px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--surface); } .profiles-row.is-active { border-color: color-mix(in srgb, var(--accent) 55%, var(--border-control)); } .screen-content .profiles-row .profiles-select { min-height: var(--control-height); display: flex; align-items: center; gap: var(--space-2); padding: 0; border: 0; background: transparent; color: var(--text-primary); font: inherit; text-align: left; cursor: pointer; } .screen-content .profiles-row .profiles-select:disabled { opacity: 1; cursor: default; } .profiles-login { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--text-primary); } .profiles-active-badge { padding: 2px 8px; border-radius: var(--radius-pill); color: var(--accent); background: var(--accent-soft); font-size: .6875rem; font-weight: var(--weight-bold); } .screen-content .profiles-row .profiles-close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: var(--radius-md); color: var(--text-secondary); background: transparent; font-size: 22px; cursor: pointer; } .screen-content .profiles-row .profiles-close:hover { background: var(--surface-selected); color: var(--danger); }