/* PROFILEX 22.11.2026: расширенный профиль, @username, анимированный статус, цвет */
.px-edit { display: flex; flex-direction: column; gap: 14px; padding-bottom: 24px; }
.px-hero {
  position: relative; border-radius: 22px; overflow: hidden;
  min-height: 168px; padding: 22px 18px 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  color: #fff; isolation: isolate;
}
.px-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.px-hero > *:not(.px-hero-bg) { position: relative; z-index: 1; }
.px-av-slot { position: relative; margin-bottom: 8px; }
.px-hero .av.huge, .px-hero #edit-av {
  width: 104px; height: 104px; border: 3px solid rgba(255,255,255,.85);
  box-shadow: 0 10px 30px rgba(0,0,0,.35); cursor: pointer;
}
.px-hero .cam, .px-hero #edit-av-btn {
  position: absolute; right: -2px; bottom: -2px; width: 36px; height: 36px;
  border-radius: 50%; border: 0; background: #111c; color: #fff; cursor: pointer;
  display: grid; place-items: center; backdrop-filter: blur(8px);
}
.px-status-on-hero { margin-top: 4px; }
.px-color-mint .px-hero-bg { background: linear-gradient(145deg, #0f3d2a, #22c55e 55%, #86efac); }
.px-color-azure .px-hero-bg { background: linear-gradient(145deg, #0b3a54, #0ea5e9 55%, #7dd3fc); }
.px-color-violet .px-hero-bg { background: linear-gradient(145deg, #2e1064, #8b5cf6 55%, #c4b5fd); }
.px-color-fuchsia .px-hero-bg { background: linear-gradient(145deg, #4a044e, #d946ef 55%, #f0abfc); }
.px-color-rose .px-hero-bg { background: linear-gradient(145deg, #4c0519, #f43f5e 55%, #fda4af); }
.px-color-sunset .px-hero-bg { background: linear-gradient(145deg, #7c2d12, #f97316 55%, #fdba74); }
.px-color-gold .px-hero-bg { background: linear-gradient(145deg, #713f12, #eab308 55%, #fde68a); }
.px-color-lagoon .px-hero-bg { background: linear-gradient(145deg, #134e4a, #14b8a6 55%, #99f6e4); }
.px-color-night .px-hero-bg { background: linear-gradient(145deg, #1e1b4b, #6366f1 55%, #a5b4fc); }
.px-color-ember .px-hero-bg { background: linear-gradient(145deg, #7f1d1d, #ef4444 55%, #fca5a5); }
.px-pat-waves .px-hero-bg::after {
  content: ""; position: absolute; inset: -20%;
  background: repeating-linear-gradient(-18deg, transparent, transparent 12px, rgba(255,255,255,.07) 12px, rgba(255,255,255,.07) 24px);
  animation: px-drift 18s linear infinite;
}
.px-pat-dots .px-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.28) 1.2px, transparent 1.3px);
  background-size: 14px 14px;
}
.px-pat-mesh .px-hero-bg::after {
  content: ""; position: absolute; inset: -30%;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.2), transparent 40%),
              radial-gradient(circle at 80% 0%, rgba(255,255,255,.16), transparent 35%),
              radial-gradient(circle at 80% 80%, rgba(0,0,0,.15), transparent 40%);
  animation: px-drift 22s ease-in-out infinite alternate;
}
.px-pat-glow .px-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(255,255,255,.28), transparent 55%);
}
@keyframes px-drift { to { transform: translate3d(8%, 6%, 0) rotate(4deg); } }

/* Карточки, поля и кнопки — одна система с темами приложения */
.px-edit {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 8px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.px-edit *, .px-edit *::before, .px-edit *::after { box-sizing: border-box; }

.px-card {
  background: var(--panel, #151c19);
  border: 1px solid var(--line, rgba(255,255,255,.07));
  border-radius: var(--radius, 16px);
  padding: 14px;
  min-width: 0;
}
.px-user-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px 10px;
  padding: 14px;
  border-radius: var(--radius, 16px);
  background: linear-gradient(180deg, rgba(var(--accent-rgb, 34,197,94), .10), transparent 70%), var(--panel, #151c19);
  border: 1px solid rgba(var(--accent-rgb, 34,197,94), .28);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 0;
}
.px-user-card .px-at {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent, #22c55e);
  color: var(--on-accent, #052e16);
  font-weight: 800; font-size: 20px;
  flex: none;
}
.px-user-meta { grid-column: 2 / -1; font-size: 12.5px; min-height: 1.2em; color: var(--muted, #8a9690); }
.px-ok { color: var(--accent, #22c55e); }
.px-bad { color: var(--danger, #f87171); }
.px-wait { color: var(--muted, #8a9690); }
.px-ico {
  width: 36px; height: 36px; border: 0; border-radius: 11px;
  background: rgba(255,255,255,.06); color: inherit; cursor: pointer;
  display: grid; place-items: center;
  flex: none;
}
.px-ico:hover { background: rgba(255,255,255,.12); }
.px-ico svg { width: 18px; height: 18px; }

.px-label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  font-size: 12.5px; font-weight: 650; color: var(--muted, #8a9690);
  margin: 0 0 6px;
}
.px-card .field, .px-edit .field { margin: 0; }
.px-count {
  margin-left: auto; font-size: 12px; color: var(--muted, #8a9690);
  font-weight: 600; flex: none; float: none;
}

/* Единый стиль полей: «Имя» (#edit-name без type), био, город, работа, дата, ссылки, селекты */
.px-edit #edit-name,
#px-name-slot input,
.px-card input[type="text"],
.px-card input[type="url"],
.px-card input[type="date"],
.px-card input:not([type]),
.px-card textarea,
#px-bio,
.px-priv-row select,
.px-link input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--line-2, var(--line, rgba(255,255,255,.08)));
  border-radius: 12px;
  background: var(--input, #18201d);
  color: var(--text, inherit);
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
  padding: 10px 12px;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.px-card input[type="date"] {
  appearance: auto;
  -webkit-appearance: none;
  min-height: 44px;
}
.px-edit #edit-name::placeholder,
#px-name-slot input::placeholder,
.px-card input::placeholder,
#px-bio::placeholder,
.px-link input::placeholder {
  color: var(--muted-2, var(--muted, #66726c));
  opacity: 1;
}
.px-edit #edit-name:focus,
#px-name-slot input:focus,
.px-card input[type="text"]:focus,
.px-card input[type="url"]:focus,
.px-card input[type="date"]:focus,
.px-card input:not([type]):focus,
.px-card textarea:focus,
#px-bio:focus,
.px-priv-row select:focus,
.px-link input:focus {
  border-color: var(--accent, #22c55e);
  box-shadow: 0 0 0 3px var(--accent-soft, rgba(var(--accent-rgb, 34,197,94), .14));
}
.px-card input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .7;
  filter: invert(1);
}

/* Логин в карточке @ — без рамки, прозрачный фон */
.px-user-card input,
.px-user-card #edit-username,
html.mux-light .px-user-card input,
html.mux-light .px-user-card #edit-username {
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  color: inherit;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .01em;
  outline: none;
  padding: 4px 0;
  min-width: 0;
  box-shadow: none !important;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.px-grid { display: grid; gap: 12px; }
.px-links { display: flex; flex-direction: column; gap: 8px; }
.px-link { display: flex; gap: 6px; align-items: center; min-width: 0; }
.px-link input { flex: 1 1 0; min-width: 0; }

.px-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.px-swatch {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer; padding: 0; flex: none;
}
.px-swatch.on {
  border-color: var(--text, #fff);
  box-shadow: 0 0 0 2px var(--panel, #151c19), 0 0 0 4px rgba(var(--accent-rgb, 34,197,94), .45);
}
.px-pats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.px-pat {
  border: 1px solid var(--line-2, var(--line, rgba(255,255,255,.1)));
  background: transparent; color: inherit;
  border-radius: 999px; padding: 6px 12px;
  font: inherit; font-size: 12.5px; cursor: pointer;
}
.px-pat.on { background: var(--accent, #22c55e); color: var(--on-accent, #052e16); border-color: transparent; font-weight: 650; }

.px-priv { display: grid; gap: 8px; }
.px-priv-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; font-size: 13.5px; min-width: 0;
}
.px-priv-row span { min-width: 0; }
.px-priv-row select {
  width: auto; min-width: 8.5em; max-width: 50%;
  padding: 8px 32px 8px 12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%238a9690' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
  cursor: pointer;
}

.px-check {
  display: flex; gap: 8px; align-items: center;
  margin-top: 8px; font-size: 12.5px;
  color: var(--muted, #8a9690); cursor: pointer; font-weight: 500;
}
.px-check input[type="checkbox"] {
  width: 18px; height: 18px; margin: 0; flex: none;
  accent-color: var(--accent, #22c55e);
  -webkit-appearance: checkbox;
  appearance: auto;
  background: none;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.px-hint { margin: 0; font-size: 12.5px; color: var(--muted, #8a9690); line-height: 1.45; }
.px-add-link, #px-add-link {
  border: 0; background: transparent;
  color: var(--accent, #22c55e);
  font: inherit; font-weight: 650;
  padding: 8px 0 2px; cursor: pointer;
  align-self: start;
}
.px-edit #edit-av-remove,
#px-rm-slot .text-btn { color: var(--danger, #ef4444); }
.px-edit .err { margin: 4px 0 0; }

/* Шапка «Изменить профиль»: назад и галочка на одной линии, заголовок по центру */
#edit-pane { color-scheme: dark; min-width: 0; }
#edit-pane .edit-head {
  display: flex; align-items: center; gap: 4px;
  min-height: 56px;
  padding: calc(6px + env(safe-area-inset-top, 0px)) 6px 6px;
  background: var(--sidebar, var(--bg, #0b0f0d));
  border-bottom: 1px solid var(--line, rgba(255,255,255,.07));
  flex: none;
  position: sticky; top: 0; z-index: 3;
}
#edit-pane .edit-head .icon-btn {
  width: 44px; height: 44px; flex: none;
}
#edit-pane .edit-head strong {
  flex: 1; min-width: 0;
  text-align: center;
  font-size: 17px; font-weight: 650;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#edit-pane .edit-head .icon-btn.accent { color: var(--accent, #22c55e); }
#edit-pane .edit-body {
  min-width: 0;
  overflow-x: hidden;
}

@media (max-width: 860px) {
  #edit-pane .edit-body {
    padding: 16px 14px calc(28px + 72px + env(safe-area-inset-bottom, 0px));
  }
  .px-hero { border-radius: 18px; }
  .px-edit #edit-name,
  #px-name-slot input,
  .px-card input[type="text"],
  .px-card input[type="url"],
  .px-card input[type="date"],
  .px-card input:not([type]),
  .px-card textarea,
  #px-bio,
  .px-priv-row select,
  .px-link input {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 16px;
  }
  .px-swatch { width: 40px; height: 40px; }
}
@media (max-width: 400px) {
  .px-link { flex-wrap: wrap; }
  .px-link input { flex: 1 1 calc(50% - 24px); }
  .px-priv-row { flex-wrap: wrap; }
  .px-priv-row select { max-width: 100%; min-width: 0; width: auto; margin-left: auto; }
  .px-user-card { gap: 6px 8px; padding: 12px; }
}
/* статус */
.ist-st {
  display: inline-grid; place-items: center;
  width: 1.35em; height: 1.35em; margin: 0 .15em 0 .28em;
  font-size: 1.05em; line-height: 1; vertical-align: -0.15em;
  transform-origin: 50% 70%;
  pointer-events: none;
}
.ist-st.ist-live { will-change: transform; }
.ist-joy.ist-live, .ist-party.ist-live, .ist-confetti.ist-live { animation: ist-bounce .7s ease-in-out infinite; }
.ist-love.ist-live, .ist-hearts.ist-live { animation: ist-pulse .9s ease-in-out infinite; }
.ist-cool.ist-live, .ist-peace.ist-live { animation: ist-sway 1.6s ease-in-out infinite; }
.ist-fire.ist-live, .ist-ember.ist-live { animation: ist-flicker .35s ease-in-out infinite; }
.ist-sad.ist-live { animation: ist-droop 1.8s ease-in-out infinite; }
.ist-angry.ist-live { animation: ist-shake .35s linear infinite; }
.ist-think.ist-live, .ist-wink.ist-live { animation: ist-nod 1.4s ease-in-out infinite; }
.ist-work.ist-live, .ist-code.ist-live { animation: ist-tap .8s ease-in-out infinite; }
.ist-coffee.ist-live { animation: ist-steam 1.2s ease-in-out infinite; }
.ist-music.ist-live { animation: ist-beat .5s ease-in-out infinite; }
.ist-game.ist-live, .ist-sport.ist-live { animation: ist-bounce .85s ease-in-out infinite; }
.ist-travel.ist-live, .ist-rocket.ist-live { animation: ist-fly 1.1s ease-in-out infinite; }
.ist-sleep.ist-live, .ist-moon.ist-live { animation: ist-float 2.2s ease-in-out infinite; }
.ist-cake.ist-live, .ist-gift.ist-live { animation: ist-pop 1s ease-in-out infinite; }
.ist-star.ist-live, .ist-sparkle.ist-live { animation: ist-spark .9s ease-in-out infinite; }
.ist-sun.ist-live { animation: ist-spin 6s linear infinite; }
.ist-rain.ist-live, .ist-snow.ist-live { animation: ist-fall 1.3s linear infinite; }
.ist-flower.ist-live { animation: ist-sway 2s ease-in-out infinite; }
@keyframes ist-bounce { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-18%) } }
@keyframes ist-pulse { 0%,100% { transform: scale(1) } 50% { transform: scale(1.18) } }
@keyframes ist-sway { 0%,100% { transform: rotate(-12deg) } 50% { transform: rotate(12deg) } }
@keyframes ist-flicker { 0%,100% { transform: scale(1) rotate(-4deg) } 50% { transform: scale(1.12) rotate(6deg) } }
@keyframes ist-droop { 0%,100% { transform: translateY(0) } 50% { transform: translateY(12%) } }
@keyframes ist-shake { 0%,100% { transform: translateX(0) } 25% { transform: translateX(-10%) } 75% { transform: translateX(10%) } }
@keyframes ist-nod { 0%,100% { transform: rotate(0) } 40% { transform: rotate(12deg) } }
@keyframes ist-tap { 0%,100% { transform: translateY(0) } 30% { transform: translateY(-10%) } }
@keyframes ist-steam { 0%,100% { transform: translateY(0) rotate(0) } 50% { transform: translateY(-10%) rotate(-8deg) } }
@keyframes ist-beat { 0%,100% { transform: scale(1) } 40% { transform: scale(1.2) } 60% { transform: scale(.95) } }
@keyframes ist-fly { 0%,100% { transform: translate(0,0) rotate(-8deg) } 50% { transform: translate(8%,-16%) rotate(8deg) } }
@keyframes ist-float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14%) } }
@keyframes ist-pop { 0%,100% { transform: scale(1) } 40% { transform: scale(1.16) rotate(-6deg) } }
@keyframes ist-spark { 0%,100% { transform: scale(1) rotate(0); filter: brightness(1) } 50% { transform: scale(1.2) rotate(18deg); filter: brightness(1.35) } }
@keyframes ist-spin { to { transform: rotate(360deg) } }
@keyframes ist-fall { 0% { transform: translateY(-10%) } 100% { transform: translateY(12%) } }
@media (prefers-reduced-motion: reduce) {
  .ist-st, .px-hero-bg::after { animation: none !important; }
}
/* picker */
.px-modal {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center;
}
.px-sheet {
  width: min(460px, 100%); max-height: 86vh;
  background: var(--panel, #151c19); color: var(--text, #e9efec);
  border-radius: 20px 20px 0 0; padding: 10px 12px 16px;
  box-shadow: 0 -12px 40px rgba(0,0,0,.4);
  display: flex; flex-direction: column; gap: 10px;
  animation: px-up .22s cubic-bezier(.2,.85,.25,1);
}
@keyframes px-up { from { transform: translateY(24px); opacity: 0 } }
.px-sheet h3 { margin: 4px 8px 0; font-size: 16px; }
.px-cats { display: flex; gap: 6px; overflow-x: auto; padding: 0 4px; }
.px-cat { flex: none; border: 0; border-radius: 999px; padding: 6px 12px; background: rgba(255,255,255,.06); color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.px-cat.on { background: var(--accent, #22c55e); color: var(--on-accent, #052e16); font-weight: 700; }
.px-grid-st { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; overflow-y: auto; padding: 4px; }
.px-st-btn {
  aspect-ratio: 1; border: 0; border-radius: 14px;
  background: rgba(255,255,255,.05); color: inherit; cursor: pointer; font-size: 26px;
  display: grid; place-items: center;
}
.px-st-btn.on, .px-st-btn:hover { background: rgba(34,197,94,.18); }
.px-ttl { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px; }
.px-ttl button {
  border: 1px solid var(--line, rgba(255,255,255,.1)); background: transparent; color: inherit;
  border-radius: 999px; padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer;
}
.px-ttl button.on { background: var(--accent, #22c55e); color: var(--on-accent, #052e16); border-color: transparent; }
.px-sheet-actions { display: flex; gap: 8px; padding: 4px; }
.px-sheet-actions button { flex: 1; border: 0; border-radius: 12px; padding: 10px; font: inherit; font-weight: 700; cursor: pointer; }
.px-cancel { background: rgba(255,255,255,.08); color: inherit; }
.px-apply { background: var(--accent, #22c55e); color: var(--on-accent, #052e16); }
/* просмотр чужого профиля */
.profile-hero.px-colored { color: #fff; border-radius: 0 0 22px 22px; margin: -8px -16px 12px; padding: 20px 16px 32px; position: relative; overflow: hidden; }
#profile .profile-hero.px-colored .pstatus,
#profile .profile-hero.px-colored .pstatus.on,
#profile .profile-hero.px-colored #profile-status {
  color: rgba(255,255,255,.85) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.28);
}
#profile .profile-hero.px-colored .pstatus.on::before {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.2);
}

.profile-hero.px-colored .px-hero-bg { position: absolute; inset: 0; z-index: 0; }
.profile-hero.px-colored > *:not(.px-hero-bg) { position: relative; z-index: 1; }
.px-uname {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 6px 0 0; padding: 4px 10px;
  border-radius: 999px; background: rgba(255,255,255,.14);
  font-weight: 750; letter-spacing: .02em; cursor: pointer; border: 0; color: inherit; font: inherit; font-size: 14px;
}
.px-about-list { display: flex; flex-direction: column; gap: 0; padding: 0; margin: 0; }
#profile-about.px-done { white-space: normal; color: var(--text, inherit); font-size: 14px; line-height: 1.4; }
#profile .about h4 { margin: 0 0 8px; font-size: 13px; font-weight: 650; color: var(--muted, #8a9690); letter-spacing: .01em; }
#profile .about { padding: 12px 14px 8px; }
.px-row {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px 12px;
  align-items: start; padding: 8px 0;
  border-bottom: 1px solid var(--line, rgba(255,255,255,.07));
}
.px-row:last-child { border-bottom: 0; padding-bottom: 4px; }
.px-row-ico {
  width: 20px; height: 20px; margin-top: 1px;
  color: var(--muted, #8a9690); display: grid; place-items: center;
}
.px-row-ico svg { width: 18px; height: 18px; display: block; }
.px-row-body { min-width: 0; display: grid; gap: 2px; }
.px-row b { font-size: 12px; color: var(--muted, #8a9690); font-weight: 650; }
.px-row-val, .px-row span, .px-row a { color: var(--text, inherit); text-decoration: none; word-break: break-word; font-weight: 500; }
.px-row a { color: var(--accent, #22c55e); font-weight: 600; }
.px-row-nick { font-weight: 650; }
.px-row-role { display: block; margin-top: 2px; font-size: 12px; color: var(--muted, #8a9690); font-weight: 500; }
/* .px-row-links is also the row modifier (px-row-${kind}); keep the row as a 2-col grid. */
span.px-row-links, .px-row-body .px-row-links { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }

/* Кнопки профиля: все в один ряд, равные, подписи на одной линии */
#profile .profile-actions {
  display: flex; flex-wrap: nowrap; align-items: flex-start; justify-content: space-between;
  gap: 2px; width: 100%; margin-top: 16px; container-type: inline-size; container-name: pacts;
}
#profile .profile-actions button {
  flex: 1 1 0; min-width: 0;
  display: grid; grid-template-rows: auto 1.25em; justify-items: center; align-items: start;
  gap: 6px; padding: 2px 1px 0;
  border: 0; background: transparent;
  color: rgba(255,255,255,.92);
  font-size: 11px; font-weight: 600; line-height: 1.25;
  white-space: nowrap; overflow: visible; text-overflow: clip;
  text-shadow: 0 1px 2px rgba(0,0,0,.28);
}
#profile .profile-actions button span {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10,14,24,.42);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  text-shadow: none;
}
#profile .profile-actions button:hover span { background: rgba(255,255,255,.2); color: #fff; }
#profile.group-mode .profile-actions { justify-content: center; max-width: 120px; margin-left: auto; margin-right: auto; }
@container pacts (max-width: 420px) {
  #profile .profile-actions button { font-size: 11px; }
  #profile .profile-actions button span { width: 42px; height: 42px; }
  #profile .profile-actions .wq-send { font-size: 0; line-height: 0; }
  #profile .profile-actions .wq-send span { font-size: 11px; line-height: 1; }
  #profile .profile-actions .wq-send::after {
    content: "USDT"; font-size: 11px; line-height: 1.25; font-weight: 600;
    color: rgba(255,255,255,.92); text-shadow: 0 1px 2px rgba(0,0,0,.28);
    grid-row: 2;
  }
}
@media (max-width: 860px) {
  #profile .profile-actions button span { width: 46px; height: 46px; }
}
html.mux-light #profile .about h4,
html.mux-light .px-row b,
html.mux-light .px-row-ico,
html.mux-light .px-row-role { color: var(--muted, #5b6474); }
html.mux-light #profile .profile-hero.px-colored .profile-actions button,
#profile .profile-hero.px-colored .profile-actions button {
  color: rgba(255,255,255,.92) !important;
}
html.mux-light #profile .profile-hero.px-colored .profile-actions button span,
#profile .profile-hero.px-colored .profile-actions button span {
  background: rgba(10,14,24,.42);
  border-color: rgba(255,255,255,.16);
  color: #fff;
}
html.mux-light .px-row { border-bottom-color: var(--line, rgba(15,23,42,.08)); }

#profile .about, #profile #profile-about, #profile #profile-about.px-done, #profile .px-about-list {
  display: block; overflow: visible !important; height: auto !important; max-height: none !important; margin: 0;
}
#profile .px-about-list { display: flex; flex-direction: column; }
#profile .px-row { min-height: 44px; flex: 0 0 auto; }
#profile .pcard { height: auto !important; max-height: none !important; min-height: min-content; }
#profile .profile-scroll {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 0;
  min-height: 0;
  gap: 12px;
  overflow-y: auto !important;
  align-items: stretch;
}
#profile .profile-scroll > * {
  flex: 0 0 auto !important;
  min-height: min-content;
}

.px-share { text-align: center; }
.px-share canvas { width: 180px; height: 180px; border-radius: 12px; background: #fff; margin: 8px auto; display: block; }
.px-share input { width: 100%; box-sizing: border-box; margin: 8px 0; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line, rgba(255,255,255,.1)); background: transparent; color: inherit; font: inherit; }
.px-crop { position: fixed; inset: 0; z-index: 90; background: #0b0b0d; color: #fff; display: flex; flex-direction: column; }
.px-crop-stage { flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; position: relative; touch-action: none; }
.px-crop-stage canvas { max-width: 100%; max-height: 100%; }
.px-crop-bar { display: flex; gap: 8px; padding: 12px; }
.px-crop-bar button { flex: 1; border: 0; border-radius: 12px; padding: 10px; font: inherit; font-weight: 700; cursor: pointer; }

/* Светлая тема */
html.mux-light #edit-pane { color-scheme: light; }
html.mux-light #edit-pane .edit-head {
  background: var(--sidebar, #fff);
  color: var(--text, #111827);
  border-bottom-color: var(--line, rgba(15,23,42,.08));
}
html.mux-light #edit-pane .edit-head .icon-btn { color: var(--text, #111827); }
html.mux-light #edit-pane .edit-head .icon-btn.accent { color: var(--accent, #22c55e); }
html.mux-light #edit-pane .edit-head .icon-btn:hover { background: var(--hover, rgba(15,23,42,.06)); }
html.mux-light .px-card {
  background: var(--panel, #fff);
  border-color: var(--line, rgba(15,23,42,.08));
}
html.mux-light .px-user-card {
  background: linear-gradient(180deg, rgba(var(--accent-rgb, 34,197,94), .08), var(--panel, #fff) 70%);
  border-color: rgba(var(--accent-rgb, 34,197,94), .28);
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
html.mux-light .px-ico { background: rgba(15,23,42,.06); color: var(--text, #111827); }
html.mux-light .px-ico:hover { background: rgba(15,23,42,.12); }
html.mux-light .px-card input[type="date"]::-webkit-calendar-picker-indicator { filter: none; opacity: .65; }
html.mux-light .px-swatch.on {
  border-color: var(--text, #111827);
  box-shadow: 0 0 0 2px var(--panel, #fff), 0 0 0 4px rgba(var(--accent-rgb, 34,197,94), .45);
}
html.mux-light .px-pat { border-color: var(--line-2, rgba(15,23,42,.13)); }
html.mux-light .px-priv-row select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%235b6474' d='M1 1l5 5 5-5'/></svg>");
}
html.mux-light .px-sheet { background: var(--panel, #fff); color: var(--text, #111827); }
html.mux-light .px-cat { background: rgba(15,23,42,.06); }
html.mux-light .px-st-btn { background: rgba(15,23,42,.05); }
html.mux-light .px-cancel { background: rgba(15,23,42,.08); }
html.mux-light .px-share input {
  background: var(--input, #eef1f6);
  border-color: var(--line-2, rgba(15,23,42,.13));
  color: var(--text, #111827);
}

@media (min-width: 800px) {
  .px-modal { align-items: center; }
  .px-sheet { border-radius: 20px; max-height: 80vh; }
}
@media (min-width: 861px) {
  #edit-pane .edit-body { padding: 22px 18px 28px; }
}
#profile .about[hidden] { display: none; }
