:root {
  color-scheme: light;
  --app-bg: #f6f8fb;
  --surface: #ffffff;
  --glass: rgba(255, 255, 255, 0.76);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --line: #dde7f0;
  --line-strong: #cbd9e6;
  --ink: #0f172a;
  --muted: #647083;
  --subtle: #94a3b8;
  --blue: #3390ec;
  --blue-dark: #287dd0;
  --mint: #22c79f;
  --mint-dark: #18a887;
  --violet: #8077ff;
  --sun: #f5b84b;
  --coral: #ef6a5b;
  --shadow: 0 28px 90px rgba(44, 63, 90, 0.18);
  --soft-shadow: 0 18px 44px rgba(74, 97, 126, 0.12);
  --radius: 8px;
  --panel-radius: 26px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--app-bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(132deg, rgba(51, 144, 236, 0.16), rgba(255, 255, 255, 0) 38%),
    linear-gradient(184deg, #ffffff 0%, var(--app-bg) 44%, #edf7f4 100%);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(51, 144, 236, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 199, 159, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 70%);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(221, 231, 240, 0.68);
  background: rgba(246, 248, 251, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.nav-actions,
.button,
.hero-actions,
.profile-row,
.chat-card,
.conversation-head,
.call-strip,
.composer,
.footer-inner {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 820;
}

.brand img,
.login-mark img {
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(51, 144, 236, 0.2);
}

.nav-actions {
  gap: 8px;
}

.nav-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 720;
}

.nav-actions a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.button {
  min-height: 42px;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 14px;
  font-weight: 780;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(74, 97, 126, 0.08);
}

.button:hover {
  border-color: var(--line-strong);
  background: #ffffff;
}

.button-primary {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--mint));
  box-shadow: 0 18px 42px rgba(51, 144, 236, 0.26);
}

.button-primary:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-dark), var(--mint-dark));
}

.button-soft {
  color: var(--blue-dark);
  background: rgba(232, 244, 255, 0.9);
}

.button.disabled,
.button[aria-disabled="true"],
.button:disabled {
  color: var(--subtle);
  cursor: progress;
  pointer-events: none;
  background: rgba(238, 243, 248, 0.92);
  box-shadow: none;
}

.login-stage {
  overflow: hidden;
  padding: 56px 0 66px;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(330px, 430px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.login-card {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--panel-radius);
  padding: 30px;
  background: var(--glass-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.login-mark {
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.login-copy,
.section-head p,
.download-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.auth-shell {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.compatibility-state {
  display: grid;
  justify-items: center;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  text-align: center;
}

.compatibility-state h2 {
  margin: 16px 0 8px;
  font-size: 21px;
  line-height: 1.2;
}

.compatibility-state p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.compatibility-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-dark);
  background: rgba(51, 144, 236, 0.12);
}

.compatibility-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.compatibility-actions {
  justify-content: center;
  margin-top: 22px;
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px;
  background: rgba(234, 240, 246, 0.72);
}

.auth-mode-button,
.channel-choice button {
  min-height: 36px;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 820;
}

.auth-mode-button.active,
.channel-choice button.active {
  color: var(--blue-dark);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(74, 97, 126, 0.1);
}

.auth-shell button:disabled {
  cursor: progress;
  opacity: 0.68;
}

.auth-section {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.auth-panel[hidden] {
  display: none;
}

.auth-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.auth-section-head strong {
  font-size: 17px;
  font-weight: 850;
}

.auth-section-head span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.channel-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.channel-choice span,
.channel-choice button {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--blue-dark);
  background: rgba(232, 244, 255, 0.78);
  font-size: 13px;
  font-weight: 820;
}

.channel-choice button {
  width: 100%;
}

.login-form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 13px;
  color: var(--ink);
  background: rgba(241, 245, 249, 0.94);
  outline: none;
}

.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(51, 144, 236, 0.16);
}

.field input:disabled {
  color: var(--subtle);
  background: rgba(238, 243, 248, 0.78);
}

.compact-field {
  margin-top: -2px;
}

.form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.auth-status {
  min-height: 38px;
  margin: 2px 0 0;
  border: 1px solid rgba(51, 144, 236, 0.2);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: #245b89;
  background: rgba(232, 244, 255, 0.7);
  font-size: 13px;
  line-height: 1.4;
}

.auth-status.error {
  border-color: rgba(239, 106, 91, 0.38);
  color: #9f352a;
  background: rgba(255, 238, 235, 0.86);
}

.auth-status.success {
  border-color: rgba(34, 199, 159, 0.32);
  color: #0f6d5f;
  background: rgba(229, 250, 245, 0.78);
}

.telegram-auth-cta {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(51, 144, 236, 0.22);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(232, 244, 255, 0.76);
}

.telegram-auth-cta span {
  color: #245b89;
  font-size: 13px;
  line-height: 1.4;
}

.telegram-auth-cta a {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 12px;
  color: #ffffff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 820;
  text-decoration: none;
}

.login-note {
  margin-top: 16px;
  border: 1px solid rgba(51, 144, 236, 0.2);
  border-radius: var(--radius);
  padding: 12px;
  color: #245b89;
  background: rgba(232, 244, 255, 0.76);
  font-size: 13px;
  line-height: 1.45;
}

.registration-flow {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.registration-flow li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.registration-flow-live li {
  border-radius: var(--radius);
  padding: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.registration-flow-live li.active {
  background: rgba(232, 244, 255, 0.82);
}

.registration-flow-live li.done {
  background: rgba(229, 250, 245, 0.8);
}

.registration-flow-live li.locked {
  opacity: 0.58;
}

.step-index {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--mint));
  font-size: 14px;
  font-weight: 850;
}

.registration-flow strong {
  display: block;
  font-size: 14px;
  font-weight: 850;
}

.registration-flow p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.desktop-preview {
  min-width: 0;
}

.desktop-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--panel-radius);
  background: rgba(246, 248, 251, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.window-bar {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(221, 231, 240, 0.9);
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.66);
}

.traffic {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.traffic-red {
  background: var(--coral);
}

.traffic-yellow {
  background: var(--sun);
}

.traffic-green {
  background: var(--mint);
}

.window-title {
  margin-left: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.workspace {
  display: grid;
  grid-template-columns: 70px 276px minmax(330px, 1fr);
  height: 536px;
  gap: 14px;
  padding: 16px;
}

.app-rail,
.chat-sidebar,
.conversation {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--panel-radius);
  background: var(--glass);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.app-rail {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  padding: 14px 0;
}

.rail-dot {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.18);
}

.rail-dot.active {
  background: linear-gradient(135deg, var(--blue), var(--mint));
}

.rail-dot.mint {
  background: rgba(34, 199, 159, 0.22);
}

.rail-dot.bottom {
  margin-top: auto;
}

.chat-sidebar {
  min-width: 0;
  padding: 14px;
}

.profile-row {
  gap: 11px;
  margin-bottom: 14px;
}

.profile-row div,
.chat-card div {
  min-width: 0;
}

.profile-row strong,
.chat-card strong,
.conversation-head strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 830;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-row span,
.chat-card span,
.conversation-head span {
  color: var(--muted);
  font-size: 12px;
}

.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 14px;
  font-weight: 850;
}

.identity-avatar {
  position: relative;
  overflow: hidden;
}

.identity-avatar > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.identity-avatar > img[hidden] {
  display: none;
}

.avatar-blue {
  background: var(--blue);
}

.avatar-mint {
  background: var(--mint);
}

.avatar-violet {
  background: var(--violet);
}

.avatar-sun {
  background: var(--sun);
}

.login-stage .avatar {
  color: #ffffff;
}

.search-pill {
  height: 38px;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  border-radius: 14px;
  padding: 0 14px;
  color: var(--subtle);
  background: rgba(234, 240, 246, 0.92);
  font-size: 13px;
}

.chat-card {
  min-height: 66px;
  gap: 10px;
  border-radius: 18px;
  padding: 10px;
}

.chat-card.selected {
  background: rgba(255, 255, 255, 0.88);
}

.chat-card em {
  margin-left: auto;
  color: var(--subtle);
  font-size: 11px;
  font-style: normal;
}

.conversation {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
}

.conversation-head {
  min-height: 68px;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(221, 231, 240, 0.9);
  padding: 0 18px;
}

.head-actions {
  display: flex;
  gap: 7px;
}

.head-actions span {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(234, 240, 246, 0.95);
}

.call-strip {
  min-height: 48px;
  gap: 10px;
  border-bottom: 1px solid rgba(221, 231, 240, 0.72);
  padding: 0 18px;
  color: #0f6d5f;
  background: rgba(229, 250, 245, 0.78);
  font-size: 13px;
}

.call-strip span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(34, 199, 159, 0.14);
}

.call-strip em {
  margin-left: auto;
  color: var(--muted);
  font-style: normal;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(246, 248, 251, 0.6), rgba(255, 255, 255, 0.88)),
    var(--surface);
}

.message {
  width: fit-content;
  max-width: 78%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px 12px 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(74, 97, 126, 0.08);
}

.message.own {
  align-self: flex-end;
  border-color: rgba(51, 144, 236, 0.28);
  background: #e6f7ff;
}

.message p {
  margin: 0;
  font-size: 13px;
  line-height: 1.42;
}

.message span {
  display: block;
  margin-top: 5px;
  color: var(--subtle);
  font-size: 10px;
  text-align: right;
}

.composer {
  gap: 10px;
  min-height: 66px;
  border-top: 1px solid rgba(221, 231, 240, 0.9);
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.78);
}

.attach-dot,
.send-dot {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: rgba(234, 240, 246, 0.95);
}

.send-dot {
  background: linear-gradient(135deg, var(--blue), var(--mint));
}

.composer-input {
  height: 38px;
  flex: 1;
  display: flex;
  align-items: center;
  border-radius: 14px;
  padding: 0 14px;
  color: var(--subtle);
  background: rgba(234, 240, 246, 0.92);
  font-size: 13px;
}

.principle-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.principle-grid article {
  min-height: 140px;
  padding: 26px 26px 28px 0;
}

.principle-grid article + article {
  border-left: 1px solid var(--line);
  padding-left: 26px;
}

.principle-grid strong,
.platform-card strong {
  display: block;
  margin-bottom: 9px;
  font-size: 16px;
  font-weight: 850;
}

.principle-grid span,
.platform-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.52;
}

.section {
  padding: 74px 0 86px;
  content-visibility: auto;
  contain-intrinsic-size: 620px;
}

.section-head {
  max-width: 760px;
}

.section-head.compact {
  max-width: 650px;
}

.download-hero {
  padding: 76px 0 38px;
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
  gap: 48px;
  align-items: end;
}

.download-copy h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: 72px;
  line-height: 0.98;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.release-panel,
.platform-card {
  border: 1px solid rgba(221, 231, 240, 0.88);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
}

.release-panel {
  overflow: hidden;
}

.release-console {
  background: rgba(246, 248, 251, 0.76);
  backdrop-filter: blur(24px);
}

.release-window-bar {
  height: 52px;
  border-bottom: 1px solid rgba(221, 231, 240, 0.92);
  background: rgba(255, 255, 255, 0.68);
}

.release-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
}

.release-head span,
.release-row em {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  padding: 0 10px;
  color: #0f6d5f;
  background: rgba(229, 250, 245, 0.92);
  font-size: 12px;
  font-style: normal;
  font-weight: 820;
}

.release-body {
  padding: 18px;
}

.release-console-body {
  display: grid;
  gap: 16px;
}

.release-summary {
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 30px rgba(74, 97, 126, 0.08);
}

.release-summary span,
.platform-status {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  padding: 0 9px;
  color: #0f6d5f;
  background: rgba(229, 250, 245, 0.92);
  font-size: 12px;
  font-weight: 850;
}

.release-summary strong {
  display: block;
  margin-top: 12px;
  font-size: 20px;
  line-height: 1.15;
}

.release-summary p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

.release-track-list {
  display: grid;
  gap: 8px;
}

.release-track {
  min-height: 58px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(221, 231, 240, 0.82);
  border-radius: var(--radius);
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.7);
}

.release-track > span {
  width: 18px;
  height: 18px;
  justify-self: center;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.28);
}

.release-track.done > span {
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(34, 199, 159, 0.12);
}

.release-track.active {
  border-color: rgba(51, 144, 236, 0.32);
  background: rgba(232, 244, 255, 0.82);
}

.release-track.active > span {
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(51, 144, 236, 0.12);
}

.release-track strong,
.release-track small {
  display: block;
}

.release-track strong {
  font-size: 13px;
  font-weight: 850;
}

.release-track small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.release-track em {
  color: var(--subtle);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
  text-transform: uppercase;
}

.release-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.release-row:first-child {
  padding-top: 0;
}

.release-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.release-row span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.release-row[hidden] {
  display: none;
}

.release-metadata-row {
  border-radius: var(--radius);
  padding: 13px;
  background: rgba(241, 245, 249, 0.72);
}

.hash-text {
  overflow-wrap: anywhere;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.platform-card {
  min-height: 198px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
}

.platform-card-head {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.platform-card.ready {
  border-color: rgba(51, 144, 236, 0.3);
  background: #ffffff;
}

.platform-card .button {
  width: 100%;
  margin-top: 18px;
}

.app-stage {
  padding: 34px 0 52px;
}

.webapp-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--panel-radius);
  background: rgba(246, 248, 251, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.webapp-layout {
  display: grid;
  grid-template-columns: 70px 282px minmax(0, 1fr) 276px;
  min-height: 640px;
  gap: 14px;
  padding: 16px;
}

.webapp-rail,
.webapp-sidebar,
.webapp-main,
.webapp-detail {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--panel-radius);
  background: var(--glass);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.webapp-rail {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  padding: 14px 0;
}

.webapp-sidebar,
.webapp-detail {
  min-width: 0;
  padding: 14px;
}

.webapp-search {
  height: 38px;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  padding: 0 14px;
  color: var(--subtle);
  background: rgba(234, 240, 246, 0.92);
  font-size: 13px;
}

.webapp-nav-list {
  display: grid;
  gap: 8px;
}

.webapp-nav-item {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 820;
}

.webapp-nav-item.active {
  color: var(--blue-dark);
  background: rgba(232, 244, 255, 0.9);
}

.webapp-release-strip {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.webapp-release-strip strong,
.webapp-detail-card strong {
  font-size: 14px;
  font-weight: 850;
}

.webapp-release-strip span,
.webapp-detail-card p,
.webapp-status-list em,
.webapp-main-head span {
  color: var(--muted);
  font-size: 12px;
}

.webapp-release-strip em {
  width: fit-content;
  border-radius: var(--radius);
  padding: 5px 8px;
  color: #0f6d5f;
  background: rgba(229, 250, 245, 0.92);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
  text-transform: uppercase;
}

.webapp-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
}

.webapp-main-head {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(221, 231, 240, 0.9);
  padding: 0 20px;
}

.webapp-main-head strong {
  display: block;
  font-size: 16px;
  font-weight: 850;
}

.webapp-main-head em {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  padding: 0 10px;
  color: #245b89;
  background: rgba(232, 244, 255, 0.88);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.webapp-panel {
  min-width: 0;
}

.webapp-message-panel {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(232, 244, 255, 0.72), rgba(229, 250, 245, 0.62)),
    #ffffff;
}

.webapp-message-panel h2 {
  margin-bottom: 10px;
  font-size: 34px;
}

.webapp-message-panel p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.webapp-lock-mark {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--mint));
  box-shadow: 0 20px 50px rgba(51, 144, 236, 0.22);
}

.webapp-lock-mark span {
  width: 34px;
  height: 24px;
  border: 4px solid rgba(255, 255, 255, 0.78);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.webapp-lock-mark strong {
  font-size: 16px;
  font-weight: 880;
}

.webapp-lock-mark-muted {
  background: linear-gradient(135deg, #8ba4bc, #c0cfda);
  box-shadow: 0 18px 40px rgba(100, 112, 131, 0.18);
}

.webapp-dashboard {
  min-width: 0;
  display: grid;
  gap: 16px;
  overflow: auto;
  padding: 16px;
}

.account-hero-card,
.account-card {
  border: 1px solid rgba(221, 231, 240, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 34px rgba(74, 97, 126, 0.08);
}

.account-hero-card {
  min-height: 118px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(232, 244, 255, 0.78), rgba(255, 255, 255, 0.86)),
    #ffffff;
}

.account-avatar {
  width: 58px;
  height: 58px;
  font-size: 21px;
}

.account-hero-card h2 {
  margin-bottom: 4px;
  font-size: 26px;
}

.account-hero-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.account-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
}

.account-card-wide {
  grid-column: 1 / -1;
}

.account-card-head {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.account-card-head strong {
  font-size: 15px;
  font-weight: 860;
}

.account-card-head span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  padding: 0 9px;
  color: #0f6d5f;
  background: rgba(229, 250, 245, 0.92);
  font-size: 12px;
  font-weight: 850;
}

.account-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.account-facts div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(246, 248, 251, 0.76);
}

.account-facts dt,
.account-facts dd {
  margin: 0;
  font-size: 12px;
}

.account-facts dt {
  color: var(--muted);
  font-weight: 780;
}

.account-facts dd {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.account-list {
  display: grid;
  gap: 8px;
}

.account-list-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(221, 231, 240, 0.72);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(255, 255, 255, 0.68);
}

button.account-list-row {
  width: 100%;
  appearance: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.account-list-row:hover,
button.account-list-row:focus-visible,
.account-list-row.selected {
  border-color: rgba(51, 144, 236, 0.3);
  background: rgba(232, 244, 255, 0.72);
  outline: none;
}

.account-list-row.current {
  border-color: rgba(34, 199, 159, 0.34);
  background: rgba(229, 250, 245, 0.6);
}

.message-preview-list {
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.message-summary-row.own {
  border-color: rgba(34, 199, 159, 0.28);
  background: rgba(229, 250, 245, 0.46);
}

.account-list-row.muted {
  color: var(--muted);
}

.account-list-row strong,
.account-list-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-list-row strong {
  font-size: 13px;
  font-weight: 850;
}

.account-list-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.account-list-row em {
  color: var(--subtle);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
  text-transform: uppercase;
}

.row-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.28);
}

.row-marker.blue {
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(51, 144, 236, 0.1);
}

.row-marker.mint {
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(34, 199, 159, 0.12);
}

.row-marker.violet {
  background: var(--violet);
  box-shadow: 0 0 0 5px rgba(128, 119, 255, 0.1);
}

.row-marker.sun {
  background: var(--sun);
  box-shadow: 0 0 0 5px rgba(245, 184, 75, 0.12);
}

.webapp-readiness-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 16px;
  background: rgba(246, 248, 251, 0.78);
}

.webapp-readiness-grid article {
  min-height: 118px;
  display: grid;
  align-content: space-between;
  border: 1px solid rgba(221, 231, 240, 0.78);
  border-radius: var(--radius);
  padding: 13px;
  background: rgba(255, 255, 255, 0.82);
}

.webapp-readiness-grid span {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 850;
}

.webapp-readiness-grid strong {
  font-size: 14px;
  font-weight: 850;
}

.webapp-readiness-grid small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.webapp-detail {
  display: grid;
  align-content: start;
  gap: 14px;
}

.webapp-detail-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(221, 231, 240, 0.78);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.webapp-detail-card p {
  margin: 0;
  line-height: 1.45;
}

.webapp-status-list {
  display: grid;
  gap: 8px;
}

.webapp-status-list div {
  min-height: 52px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-radius: var(--radius);
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.66);
}

.webapp-status-list div.done {
  background: rgba(229, 250, 245, 0.78);
}

.webapp-status-list div.active {
  background: rgba(232, 244, 255, 0.82);
}

.webapp-status-list span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(51, 144, 236, 0.1);
}

.webapp-status-list div.done span {
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(34, 199, 159, 0.12);
}

.webapp-status-list strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  min-height: 72px;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner a {
  color: var(--blue-dark);
  font-weight: 760;
  text-decoration: none;
}

@media (max-width: 1120px) {
  .login-layout,
  .download-layout {
    grid-template-columns: 1fr;
  }

  .webapp-layout {
    grid-template-columns: 66px minmax(230px, 0.36fr) minmax(0, 1fr);
  }

  .webapp-detail {
    grid-column: 2 / 4;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  }

  .desktop-preview {
    width: 920px;
    transform: scale(0.86);
    transform-origin: left top;
    margin-bottom: -70px;
  }

  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .webapp-readiness-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    position: relative;
  }

  .nav,
  .nav-actions,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: center;
    padding: 14px 0;
  }

  .nav-actions {
    width: 100%;
    gap: 6px;
  }

  .nav-actions a {
    width: 100%;
  }

  .login-stage,
  .download-hero {
    padding-top: 38px;
  }

  .login-card {
    padding: 22px;
  }

  .auth-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .auth-section-head span {
    text-align: left;
  }

  .form-actions {
    grid-template-columns: 1fr;
  }

  h1,
  .download-copy h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 32px;
  }

  .login-copy,
  .section-head p,
  .download-copy p {
    font-size: 16px;
  }

  .desktop-preview {
    width: 780px;
    transform: translateX(-126px) scale(0.64);
    margin-bottom: -150px;
  }

  .workspace {
    grid-template-columns: 64px 260px minmax(330px, 1fr);
  }

  .principle-grid,
  .platform-grid,
  .webapp-layout,
  .webapp-detail {
    grid-template-columns: 1fr;
  }

  .webapp-layout {
    min-height: auto;
    padding: 10px;
  }

  .webapp-rail {
    min-height: 58px;
    flex-direction: row;
    justify-content: center;
    padding: 8px;
  }

  .webapp-rail .rail-dot.bottom {
    margin-top: 0;
  }

  .webapp-detail {
    grid-column: auto;
  }

  .webapp-message-panel {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .webapp-lock-mark {
    width: 86px;
    height: 86px;
    border-radius: 24px;
  }

  .webapp-message-panel h2 {
    font-size: 28px;
  }

  .account-hero-card,
  .account-grid,
  .webapp-readiness-grid {
    grid-template-columns: 1fr;
  }

  .account-card-wide {
    grid-column: auto;
  }

  .account-card-head,
  .account-list-row {
    align-items: flex-start;
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .account-card-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .account-list-row em {
    grid-column: 2;
  }

  .principle-grid article,
  .principle-grid article + article {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 20px 0;
  }

  .principle-grid article:first-child {
    border-top: 0;
  }

  .release-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .button,
  .hero-actions {
    width: 100%;
  }

  .desktop-preview {
    transform: translateX(-174px) scale(0.56);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Authenticated web product shell. Public login/download pages keep the styles above. */
.product-app-page {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: #f3f6f9;
}

.product-app-page::before {
  display: none;
}

.product-app {
  --pa-bg: #f3f6f9;
  --pa-workspace: #edf2f6;
  --pa-surface: #ffffff;
  --pa-elevated: #ffffff;
  --pa-rail: #edf2f7;
  --pa-line: #dce5ed;
  --pa-line-strong: #c9d5e1;
  --pa-text: #13202f;
  --pa-muted: #6e7c8f;
  --pa-faint: #97a5b5;
  --pa-blue: #3390ec;
  --pa-blue-strong: #2583dc;
  --pa-blue-soft: #e8f3ff;
  --pa-blue-selected: #dceeff;
  --pa-mint: #22b58f;
  --pa-mint-soft: #e5f7f1;
  --pa-violet: #7367dc;
  --pa-coral: #df6258;
  --pa-danger-soft: #fff0ef;
  --pa-shadow: 0 8px 28px rgba(32, 55, 80, 0.08);
  --chat-motion-press: 80ms;
  --chat-motion-fast: 110ms;
  --chat-motion-message: 160ms;
  --chat-motion-pane: 180ms;
  --chat-motion-ease: cubic-bezier(0.2, 0.75, 0.25, 1);
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  color: var(--pa-text);
  background: var(--pa-bg);
  color-scheme: light;
}

.product-app[data-motion-mode="lite"] {
  --chat-motion-press: 60ms;
  --chat-motion-fast: 90ms;
  --chat-motion-message: 90ms;
}

.product-app[data-theme="dark"] {
  --pa-bg: #0f141a;
  --pa-workspace: #10171e;
  --pa-surface: #151c24;
  --pa-elevated: #1b242e;
  --pa-rail: #111820;
  --pa-line: #273442;
  --pa-line-strong: #364657;
  --pa-text: #f4f7fa;
  --pa-muted: #a5b1c2;
  --pa-faint: #748296;
  --pa-blue: #4aa8ff;
  --pa-blue-strong: #69b7ff;
  --pa-blue-soft: rgba(74, 168, 255, 0.13);
  --pa-blue-selected: rgba(74, 168, 255, 0.2);
  --pa-mint: #35c8a3;
  --pa-mint-soft: rgba(53, 200, 163, 0.13);
  --pa-violet: #9389f5;
  --pa-coral: #ff8076;
  --pa-danger-soft: rgba(255, 128, 118, 0.12);
  --pa-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color-scheme: dark;
}

.product-app button,
.product-app input,
.product-app textarea {
  letter-spacing: 0;
}

.product-app button:focus-visible,
.product-app a:focus-visible,
.product-app input:focus-visible,
.product-app select:focus-visible,
.product-app textarea:focus-visible {
  outline: 2px solid var(--pa-blue);
  outline-offset: 2px;
}

.product-app svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-entry-state {
  width: 100%;
  height: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 28px;
  text-align: center;
  background: var(--pa-bg);
}

.app-entry-state > img {
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(51, 144, 236, 0.2);
}

.app-entry-state h1 {
  max-width: 100%;
  margin: 20px 0 6px;
  color: var(--pa-text);
  font-size: 25px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.app-entry-state p {
  width: min(420px, 100%);
  max-width: 420px;
  margin: 0;
  color: var(--pa-muted);
  font-size: 15px;
  line-height: 1.5;
}

.app-loader {
  width: 24px;
  height: 24px;
  margin-top: 22px;
  border: 2px solid var(--pa-line-strong);
  border-top-color: var(--pa-blue);
  border-radius: 50%;
  animation: app-loader-spin 0.8s linear infinite;
}

.app-login-state h1 {
  margin-top: 24px;
}

.app-compatibility-state .compatibility-icon {
  color: var(--pa-blue-strong);
  background: var(--pa-blue-soft);
}

.app-compatibility-state h1 {
  margin-top: 20px;
}

.app-entry-actions {
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.product-app .app-entry-actions .button {
  color: var(--pa-text);
  background: var(--pa-surface);
  border-color: var(--pa-line);
  box-shadow: none;
}

.product-app .app-entry-actions .button-primary {
  color: #ffffff;
  border-color: var(--pa-blue);
  background: var(--pa-blue);
  box-shadow: none;
}

@keyframes app-loader-spin {
  to { transform: rotate(360deg); }
}

.messenger-shell {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 72px 340px minmax(0, 1fr);
  overflow: hidden;
  background: var(--pa-bg);
}

.product-app .app-rail {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0;
  border: 0;
  border-right: 1px solid var(--pa-line);
  border-radius: 0;
  padding: 14px 10px 12px;
  color: var(--pa-muted);
  background: var(--pa-rail);
  box-shadow: none;
  backdrop-filter: none;
}

.rail-brand,
.rail-action,
.rail-icon-button,
.icon-button,
.sidebar-account-copy,
.setting-command {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.rail-brand {
  width: 48px;
  height: 48px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  padding: 0;
}

.rail-brand img {
  border-radius: 8px;
}

.rail-navigation {
  width: 100%;
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.rail-action {
  position: relative;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 8px;
  padding: 0;
}

.rail-action > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.rail-action:hover,
.rail-icon-button:hover,
.rail-brand:hover {
  color: var(--pa-text);
  background: var(--pa-elevated);
}

.rail-action.active {
  color: var(--pa-blue-strong);
  background: var(--pa-blue-soft);
}

.rail-action.active::before {
  position: absolute;
  left: -10px;
  width: 3px;
  height: 26px;
  border-radius: 0 3px 3px 0;
  background: var(--pa-blue);
  content: "";
}

.rail-action em {
  position: absolute;
  top: 4px;
  right: 3px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 2px solid var(--pa-rail);
  border-radius: 9px;
  padding: 0 4px;
  color: #ffffff;
  background: var(--pa-blue);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.rail-footer {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: auto;
}

.rail-icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  text-decoration: none;
}

.rail-account-avatar,
.sidebar-avatar {
  border: 0;
  cursor: pointer;
}

.rail-account-avatar {
  width: 38px;
  height: 38px;
}

.rail-account-aura {
  width: 42px;
  height: 42px;
  margin-top: 4px;
}

.theme-dark-icon,
.product-app[data-theme="dark"] .theme-light-icon {
  display: none;
}

.product-app[data-theme="dark"] .theme-dark-icon {
  display: block;
}

.messenger-sidebar {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 68px 54px 46px minmax(0, 1fr);
  border-right: 1px solid var(--pa-line);
  background: var(--pa-surface);
}

.sidebar-account {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--pa-line);
  padding: 0 12px;
}

.sidebar-header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.chat-create-open {
  color: var(--pa-blue-strong);
  background: var(--pa-blue-soft);
}

.chat-create-open:hover {
  color: var(--pa-blue-strong);
  background: var(--pa-blue-selected);
}

.sidebar-avatar {
  width: 42px;
  height: 42px;
}

.sidebar-account-aura {
  width: 46px;
  height: 46px;
}

.sidebar-account-copy {
  min-width: 0;
  display: block;
  padding: 7px 0;
  text-align: left;
}

.sidebar-account-copy strong,
.sidebar-account-copy > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-account-copy strong {
  color: var(--pa-text);
  font-size: 14px;
  font-weight: 760;
}

.sidebar-account-copy > span {
  margin-top: 3px;
  color: var(--pa-muted);
  font-size: 12px;
}

.sidebar-account-copy i {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--pa-faint);
}

.sidebar-account-copy i.connected {
  background: var(--pa-mint);
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  padding: 0;
  color: var(--pa-muted);
}

.icon-button:hover {
  color: var(--pa-text);
  background: var(--pa-bg);
}

.icon-button.loading svg {
  animation: app-loader-spin 0.8s linear infinite;
}

.chat-search {
  height: 38px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--pa-faint);
  background: var(--pa-bg);
}

.chat-search:focus-within {
  border-color: var(--pa-blue);
  background: var(--pa-surface);
}

.chat-search svg {
  width: 18px;
  height: 18px;
}

.chat-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--pa-text);
  background: transparent;
  font-size: 13px;
}

.chat-search input::placeholder {
  color: var(--pa-faint);
}

.chat-filters {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--pa-line);
  padding: 5px 12px 7px;
  scrollbar-width: none;
}

.chat-filters::-webkit-scrollbar {
  display: none;
}

.chat-filters button,
.feed-source-tabs button {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--pa-muted);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.chat-filters button:hover,
.feed-source-tabs button:hover {
  color: var(--pa-text);
  background: var(--pa-bg);
}

.chat-filters button.active,
.feed-source-tabs button.active {
  color: var(--pa-blue-strong);
  background: var(--pa-blue-soft);
}

.chat-list {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px 6px 10px;
  scrollbar-color: var(--pa-line-strong) transparent;
  scrollbar-width: thin;
}

.chat-list-item {
  width: 100%;
  min-width: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 0;
  border-radius: 8px;
  padding: 8px;
  color: var(--pa-text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.chat-list-item:hover {
  background: var(--pa-bg);
}

.chat-list-item.selected {
  background: var(--pa-blue-selected);
}

.chat-list-avatar {
  width: 46px;
  height: 46px;
  font-size: 15px;
}

.chat-list-aura {
  width: 50px;
  height: 50px;
}

.avatar-tone-blue { background: #3390ec; }
.avatar-tone-mint { background: #22a985; }
.avatar-tone-violet { background: #7367dc; }
.avatar-tone-coral { background: #d9685e; }
.avatar-tone-cyan { background: #278fa8; }

.chat-list-copy,
.chat-list-meta {
  min-width: 0;
}

.chat-list-copy strong,
.chat-list-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-list-copy strong {
  font-size: 13px;
  font-weight: 760;
}

.chat-list-copy span {
  margin-top: 5px;
  color: var(--pa-muted);
  font-size: 12px;
}

.chat-list-copy span.draft {
  color: var(--pa-coral);
  font-weight: 650;
}

.chat-list-meta {
  min-width: 44px;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-direction: column;
  padding: 3px 0;
}

.chat-list-meta time {
  color: var(--pa-faint);
  font-size: 10px;
}

.unread-badge {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  padding: 0 6px;
  color: #ffffff;
  background: var(--pa-blue);
  font-size: 10px;
  font-weight: 800;
}

.list-empty {
  display: grid;
  place-items: center;
  padding: 36px 18px;
  color: var(--pa-muted);
  font-size: 13px;
  text-align: center;
}

.app-workspace {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr);
  overflow: hidden;
  background: var(--pa-workspace);
}

.workspace-header {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--pa-line);
  padding: 0 16px;
  background: var(--pa-surface);
}

.workspace-heading {
  min-width: 0;
  flex: 1;
  display: grid;
  justify-items: start;
}

.workspace-chat-aura {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

.workspace-chat-avatar {
  width: 42px;
  height: 42px;
}

.workspace-heading-action {
  max-width: 100%;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.workspace-heading-action:disabled {
  cursor: default;
}

.workspace-title-action:not(:disabled):hover strong {
  color: var(--pa-blue-strong);
}

.workspace-info-action:not(:disabled):hover span {
  color: var(--pa-blue-strong);
}

.workspace-heading-action:focus-visible {
  outline: 2px solid var(--pa-blue);
  outline-offset: 5px;
  border-radius: 4px;
}

.workspace-chat-settings {
  flex: 0 0 auto;
}

.workspace-heading strong,
.workspace-heading span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-heading strong {
  font-size: 15px;
  font-weight: 780;
}

.workspace-heading span {
  margin-top: 3px;
  color: var(--pa-muted);
  font-size: 12px;
}

.profile-privacy-settings {
  overflow: hidden;
}

.settings-account-card {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 0;
  border: 1px solid var(--pa-line);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--pa-text);
  background: var(--pa-surface);
  text-align: left;
  box-shadow: var(--pa-shadow);
  cursor: pointer;
}

.settings-account-card-wrap {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 16px 24px;
}

.settings-account-card:hover {
  border-color: var(--pa-blue);
  background: color-mix(in srgb, var(--pa-blue-soft) 42%, var(--pa-surface));
}

.settings-account-card:focus-visible {
  outline: 2px solid var(--pa-blue);
  outline-offset: 2px;
}

.settings-account-aura {
  width: 64px;
  height: 64px;
}

.settings-account-avatar {
  width: 60px;
  height: 60px;
  font-size: 20px;
}

.settings-account-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.settings-account-copy strong,
.settings-account-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-account-copy strong {
  font-size: 16px;
}

.settings-account-copy span {
  color: var(--pa-muted);
  font-size: 13px;
}

.profile-privacy-row {
  cursor: default;
}

.profile-privacy-row select {
  min-width: 116px;
  min-height: 38px;
  border: 1px solid var(--pa-line-strong);
  border-radius: 8px;
  padding: 0 32px 0 10px;
  color: var(--pa-text);
  background: var(--pa-surface);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.profile-privacy-row select:focus-visible {
  outline: 2px solid var(--pa-blue);
  outline-offset: 2px;
}

.profile-privacy-row select:disabled {
  cursor: progress;
  opacity: 0.62;
}

.profile-privacy-note {
  background: color-mix(in srgb, var(--pa-blue-soft) 62%, transparent);
}

.profile-privacy-status {
  margin: 12px 0 0;
  color: var(--pa-muted);
  font-size: 12px;
}

.profile-privacy-status.error {
  color: var(--pa-coral);
}

.mobile-back {
  display: none;
}

.workspace-view {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.feed-view {
  position: relative;
  display: grid;
  grid-template-rows: 52px minmax(0, 1fr);
}

.feed-source-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-bottom: 1px solid var(--pa-line);
  padding: 8px 16px;
  background: var(--pa-surface);
}

.feed-source-tabs button {
  min-width: 112px;
  min-height: 44px;
}

.feed-scroll {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px;
  scrollbar-color: var(--pa-line-strong) transparent;
  scrollbar-width: thin;
}

.feed-list {
  width: min(720px, 100%);
  display: grid;
  gap: 14px;
  margin: 0 auto;
  padding-bottom: 20px;
}

.feed-stories {
  width: min(720px, 100%);
  margin: 0 auto 14px;
  overflow: hidden;
  border: 1px solid var(--pa-line);
  border-radius: 12px;
  padding: 13px 14px 12px;
  background: var(--pa-surface);
  box-shadow: var(--pa-shadow);
}

.feed-stories-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.feed-stories-heading strong {
  color: var(--pa-text);
  font-size: 13px;
  font-weight: 800;
}

.feed-stories-heading span {
  color: var(--pa-faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feed-stories-list {
  display: flex;
  gap: 13px;
  overflow-x: auto;
  padding: 1px 0 3px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.feed-stories-list::-webkit-scrollbar {
  display: none;
}

.feed-story {
  flex: 0 0 66px;
  min-width: 0;
  display: grid;
  justify-items: center;
  border: 0;
  padding: 0;
  color: var(--pa-muted);
  background: transparent;
  font: inherit;
  cursor: pointer;
  scroll-snap-align: start;
}

.feed-story-ring {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, var(--pa-blue), #7f68d9 58%, #df6782);
  transition: transform 160ms ease;
}

.feed-story:hover .feed-story-ring {
  transform: translateY(-2px);
}

.feed-story:focus-visible {
  outline: 2px solid var(--pa-blue);
  outline-offset: 3px;
  border-radius: 8px;
}

.feed-story.live .feed-story-ring {
  background: linear-gradient(145deg, #ff365d, #ff784e);
}

.feed-story.own .feed-story-ring {
  background: var(--pa-line-strong);
}

.feed-story-avatar {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 2px solid var(--pa-surface);
  border-radius: 50%;
  color: var(--pa-blue-strong);
  background: var(--pa-blue-soft);
  font-size: 16px;
  font-weight: 850;
}

.feed-story-avatar svg {
  width: 22px;
  height: 22px;
}

.feed-story-plus {
  position: absolute;
  right: -3px;
  bottom: -2px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 2px solid var(--pa-surface);
  border-radius: 50%;
  color: #ffffff;
  background: var(--pa-blue);
  font-size: 15px;
  line-height: 1;
}

.feed-story-avatar.identity-avatar {
  overflow: visible;
}

.feed-story-avatar.identity-avatar > img {
  border-radius: 50%;
}

.feed-story strong,
.feed-story > span:last-child {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-story strong {
  margin-top: 6px;
  color: var(--pa-text);
  font-size: 10px;
  font-weight: 750;
}

.feed-story > span:last-child {
  margin-top: 2px;
  color: var(--pa-faint);
  font-size: 9px;
  font-weight: 650;
}

.feed-story.live > span:last-child {
  color: var(--pa-coral);
  font-weight: 850;
}

.feed-composer {
  width: min(720px, 100%);
  display: grid;
  gap: 12px;
  margin: 0 auto 14px;
  border: 1px solid var(--pa-line);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--pa-surface);
  box-shadow: var(--pa-shadow);
}

.feed-create-fab {
  min-width: 58px;
  min-height: 58px;
  display: inline-flex;
  position: absolute;
  z-index: 7;
  right: max(24px, calc((100% - 920px) / 2));
  bottom: calc(24px + env(safe-area-inset-bottom));
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pa-blue), var(--pa-blue-strong));
  box-shadow: 0 12px 32px rgba(32, 111, 214, 0.34);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.feed-create-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(32, 111, 214, 0.4);
}

.feed-create-fab:focus-visible {
  outline: 3px solid var(--pa-surface);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--pa-blue), 0 16px 38px rgba(32, 111, 214, 0.4);
}

.feed-create-fab svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.4;
}

.feed-composer-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feed-composer-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
}

.feed-composer-aura {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.feed-composer-avatar svg {
  width: 17px;
  height: 17px;
}

.feed-composer-heading > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.feed-composer-heading strong {
  color: var(--pa-text);
  font-size: 13px;
}

.feed-composer-heading span {
  color: var(--pa-muted);
  font-size: 11px;
}

.feed-composer [data-feed-composer-body],
.feed-comment-form > textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  outline: 0;
  padding: 11px 12px;
  color: var(--pa-text);
  background: var(--pa-bg);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.feed-composer [data-feed-composer-body]:focus,
.feed-comment-form > textarea:focus {
  border-color: var(--pa-blue);
  box-shadow: 0 0 0 2px var(--pa-blue-soft);
}

.feed-composer-attachments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.feed-composer-attachments[hidden] {
  display: none;
}

.feed-composer-attachment {
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  padding: 6px;
  background: var(--pa-bg);
}

.feed-composer-attachment > img,
.feed-composer-attachment > video,
.feed-composer-file-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  object-fit: cover;
  color: var(--pa-blue);
  background: var(--pa-blue-soft);
}

.feed-composer-file-icon svg {
  width: 22px;
  height: 22px;
}

.feed-composer-attachment-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.feed-composer-attachment-copy strong,
.feed-composer-attachment-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-composer-attachment-copy strong {
  font-size: 11px;
}

.feed-composer-attachment-copy small {
  color: var(--pa-muted);
  font-size: 9px;
}

.feed-composer-attachment-remove {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: var(--pa-muted);
  background: transparent;
  cursor: pointer;
}

.feed-composer-attachment-remove:hover {
  color: var(--pa-coral);
  background: var(--pa-danger-soft);
}

.feed-composer-attachment-remove svg {
  width: 15px;
  height: 15px;
}

.feed-composer-status {
  margin: 0;
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--pa-blue-strong);
  background: var(--pa-blue-soft);
  font-size: 11px;
  line-height: 1.4;
}

.feed-composer-status.error {
  color: var(--pa-coral);
  background: var(--pa-danger-soft);
}

.feed-composer-footer,
.feed-composer-options,
.feed-composer-submit {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feed-composer-footer {
  justify-content: space-between;
}

.feed-composer-options {
  min-width: 0;
  flex-wrap: wrap;
}

.feed-composer-attach,
.feed-publisher-select select {
  min-height: 44px;
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  color: var(--pa-muted);
  background: var(--pa-bg);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
}

.feed-composer-attach {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  cursor: pointer;
}

.feed-composer-attach:hover,
.feed-publisher-select select:hover {
  border-color: var(--pa-line-strong);
  color: var(--pa-blue-strong);
}

.feed-composer-attach svg {
  width: 15px;
  height: 15px;
}

.feed-publisher-select {
  min-width: 0;
}

.feed-publisher-select select {
  max-width: 220px;
  padding: 0 28px 0 9px;
  cursor: pointer;
}

.feed-anonymous-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--pa-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.feed-anonymous-toggle input {
  margin: 0;
  accent-color: var(--pa-blue);
}

.feed-composer-submit {
  flex: 0 0 auto;
}

.feed-composer-submit > span,
.feed-comment-form-footer > span {
  color: var(--pa-faint);
  font-size: 10px;
  white-space: nowrap;
}

.product-app .feed-composer .button {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 14px;
}

.feed-pagination {
  width: min(720px, 100%);
  display: flex;
  justify-content: center;
  margin: 0 auto;
  padding: 0 0 22px;
}

.feed-load-more {
  min-width: 156px;
}

.feed-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  background: var(--pa-surface);
  box-shadow: var(--pa-shadow);
}

.feed-stream-card {
  border-color: color-mix(in srgb, var(--pa-coral) 32%, var(--pa-line));
}

.feed-author-live {
  width: max-content;
  margin-top: 4px;
  border-radius: 4px;
  padding: 2px 5px;
  color: #ffffff !important;
  background: #e93b59;
  font-size: 8px !important;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
}

.feed-card-head {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px 16px 10px;
}

.feed-author-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  overflow: hidden;
}

.feed-author-aura {
  width: 42px;
  height: 42px;
  padding: 3px;
}

.feed-author-avatar img,
.feed-comment-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
}

.feed-author-avatar img[hidden],
.feed-comment-avatar img[hidden] {
  display: none;
}

.feed-avatar-initial {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.feed-author-copy {
  min-width: 0;
}

button.feed-author-copy,
a.feed-author-copy {
  width: max-content;
  max-width: 100%;
  border: 0;
  border-radius: 7px;
  padding: 3px 5px;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.feed-author-link {
  cursor: pointer;
}

.feed-author-link:hover {
  background: var(--pa-blue-soft);
}

.feed-author-link:focus-visible,
.feed-original-author:focus-visible,
.feed-comment-author.link:focus-visible {
  outline: 2px solid var(--pa-blue);
  outline-offset: 2px;
}

.feed-author-copy strong,
.feed-author-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-author-copy strong {
  font-size: 13px;
  font-weight: 780;
}

.feed-author-copy span,
.feed-card-head time {
  margin-top: 3px;
  color: var(--pa-muted);
  font-size: 11px;
}

.feed-card-head time {
  margin: 0;
  white-space: nowrap;
}

.feed-body {
  padding: 2px 16px 14px;
}

.feed-body p {
  margin: 0;
  color: var(--pa-text);
  font-size: 14px;
  line-height: 1.52;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.feed-original {
  margin: 10px 0 0;
  border-left: 3px solid var(--pa-blue);
  padding: 4px 0 4px 12px;
}

.feed-original strong,
.feed-original span {
  display: block;
}

.feed-original strong {
  font-size: 12px;
}

.feed-original-author {
  width: max-content;
  max-width: 100%;
  border: 0;
  border-radius: 5px;
  padding: 2px 4px;
  color: var(--pa-blue-strong);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.feed-original-author:hover {
  background: var(--pa-blue-soft);
}

.feed-original span {
  margin-top: 5px;
  color: var(--pa-muted);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.feed-original-media {
  margin-top: 10px;
  border: 1px solid var(--pa-line);
  border-radius: 10px;
  overflow: hidden;
}

.feed-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  border-top: 1px solid var(--pa-line);
  background: var(--pa-line);
}

.feed-media-grid.single {
  grid-template-columns: 1fr;
}

.feed-media {
  position: relative;
  min-width: 0;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--pa-muted);
  background: var(--pa-bg);
}

.feed-media img,
.feed-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.feed-media-placeholder {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 14px;
  font-size: 11px;
  text-align: center;
}

.feed-media-placeholder svg {
  width: 24px;
  height: 24px;
}

.feed-media.feed-file {
  min-height: 92px;
  aspect-ratio: auto !important;
  padding: 10px;
}

.feed-file-download {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  padding: 12px;
  color: var(--pa-text);
  background: var(--pa-surface);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.feed-file-download:hover {
  border-color: var(--pa-blue);
  background: var(--pa-blue-soft);
}

.feed-file-download > svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: var(--pa-blue);
}

.feed-file-download > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.feed-file-download strong,
.feed-file-download small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-file-download strong {
  font-size: 12px;
}

.feed-file-download small {
  color: var(--pa-muted);
  font-size: 10px;
}

.feed-stream-stage {
  min-height: 250px;
  align-content: center;
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 78, 112, 0.34), transparent 30%),
    radial-gradient(circle at 22% 72%, rgba(51, 144, 236, 0.34), transparent 34%),
    linear-gradient(145deg, #141927, #202b42);
}

.feed-live-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  border-radius: 5px;
  padding: 5px 8px;
  color: #ffffff;
  background: #e93b59;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.feed-stream-play {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease,
    border-color 160ms ease;
}

.feed-stream-play[href] {
  cursor: pointer;
}

.feed-stream-play[href]:hover {
  transform: scale(1.06);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.24);
}

.feed-stream-play[href]:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.92);
  outline-offset: 4px;
}

.feed-stream-play svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.feed-stream-caption {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-card-metrics {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--pa-line);
  padding: 6px 12px 6px 16px;
  color: var(--pa-muted);
  flex-wrap: wrap;
}

.feed-card-primary-actions,
.feed-card-tools {
  display: flex;
  align-items: center;
}

.feed-card-primary-actions {
  min-width: 0;
  gap: 7px;
}

.feed-card-tools {
  flex: 0 0 auto;
  gap: 3px;
}

.feed-metric {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 7px;
  padding: 6px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.feed-action,
.feed-tool {
  cursor: pointer;
}

.feed-action:hover,
.feed-tool:hover {
  color: var(--pa-blue-strong);
  background: var(--pa-blue-soft);
}

.feed-action:focus-visible,
.feed-tool:focus-visible,
.feed-file-download:focus-visible,
.feed-composer-attach:focus-visible,
.feed-composer-attachment-remove:focus-visible {
  outline: 2px solid var(--pa-blue);
  outline-offset: 2px;
}

.feed-action:disabled,
.feed-tool:disabled,
.feed-file-download:disabled,
.feed-composer-attach:disabled {
  opacity: 0.55;
  cursor: wait;
}

.feed-metric svg {
  width: 18px;
  height: 18px;
}

.feed-metric.reacted {
  color: var(--pa-coral);
}

.feed-tool {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  padding: 0;
  color: var(--pa-muted);
  background: transparent;
}

.feed-tool svg {
  width: 16px;
  height: 16px;
}

.feed-state,
.chat-empty-state {
  min-height: 300px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 40px 20px;
  color: var(--pa-muted);
  text-align: center;
}

.feed-state strong,
.chat-empty-state strong {
  margin-top: 14px;
  color: var(--pa-text);
  font-size: 15px;
}

.feed-state p,
.chat-empty-state p {
  margin: 7px 0 0;
  font-size: 13px;
}

.feed-state .text-button {
  margin-top: 16px;
}

.empty-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--pa-blue);
  background: var(--pa-blue-soft);
}

.empty-icon svg {
  width: 25px;
  height: 25px;
}

.feed-skeleton {
  height: 220px;
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  background: var(--pa-surface);
  animation: app-skeleton-pulse 1.3s ease-in-out infinite;
}

.profile-content-section {
  padding-bottom: 24px;
}

.profile-content-heading {
  min-width: 0;
}

.profile-content-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin-top: 14px;
  padding: 4px;
  border-radius: 10px;
  background: var(--pa-bg);
  scrollbar-width: none;
}

.profile-content-tabs::-webkit-scrollbar {
  display: none;
}

.profile-content-tabs button {
  min-height: 34px;
  flex: 1 0 auto;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  color: var(--pa-muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.profile-content-tabs button:hover {
  color: var(--pa-text);
}

.profile-content-tabs button.active {
  color: var(--pa-blue-strong);
  background: var(--pa-surface);
  box-shadow: 0 1px 3px rgb(19 43 66 / 10%);
}

.profile-liked-privacy {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: var(--pa-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.profile-liked-privacy input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--pa-blue);
}

.profile-liked-privacy:has(input:disabled) {
  cursor: wait;
  opacity: 0.62;
}

.profile-content-list {
  width: min(720px, 100%);
  display: grid;
  gap: 14px;
  margin: 20px auto 0;
}

.profile-content-list .feed-state {
  min-height: 190px;
  border: 1px dashed var(--pa-line-strong);
  border-radius: 8px;
  background: var(--pa-bg);
}

.profile-content-list .profile-content-skeleton {
  height: 190px;
}

.chat-profile-content {
  width: 100%;
  margin: 0;
  border-bottom: 1px solid var(--pa-line);
  padding: 0 20px 20px;
}

.chat-profile-content .app-section-title {
  min-height: 66px;
}

.chat-profile-content .profile-content-list {
  gap: 10px;
  margin-top: 14px;
}

.chat-profile-content .profile-content-tabs {
  margin-top: 10px;
}

.chat-profile-content .feed-card {
  box-shadow: none;
}

.chat-profile-content .feed-card-head {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  padding: 12px 13px 9px;
}

.chat-profile-content .feed-author-avatar {
  width: 36px;
  height: 36px;
}

.chat-profile-content .feed-body {
  padding-right: 13px;
  padding-left: 13px;
}

.chat-profile-content .feed-card-metrics {
  gap: 16px;
  padding: 0 13px;
}

.chat-profile-content .profile-content-state {
  min-height: 170px;
}

@keyframes app-skeleton-pulse {
  50% { opacity: 0.58; }
}

.chat-view {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: var(--pa-workspace);
}

.chat-content {
  position: relative;
  isolation: isolate;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.chat-content .chat-empty-state {
  height: 100%;
}

.chat-message-tools {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto 36px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--pa-line);
  padding: 9px 14px;
  background: var(--pa-surface);
}

.chat-message-tools[hidden] {
  display: none;
}

.chat-message-tools label {
  min-width: 0;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  padding: 0 11px;
  color: var(--pa-muted);
  background: var(--pa-bg);
}

.chat-message-tools label:focus-within {
  border-color: var(--pa-blue);
  box-shadow: 0 0 0 2px var(--pa-blue-soft);
}

.chat-message-tools label svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.chat-message-tools input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--pa-text);
  background: transparent;
  font: inherit;
  font-size: 12px;
}

.chat-message-filter {
  display: flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  padding: 3px;
  background: var(--pa-bg);
}

.chat-message-filter button {
  min-height: 28px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--pa-muted);
  background: transparent;
  font-size: 11px;
  font-weight: 720;
  cursor: pointer;
}

.chat-message-filter button.active {
  color: var(--pa-blue-strong);
  background: var(--pa-surface);
  box-shadow: 0 1px 5px rgba(32, 55, 80, 0.1);
}

.message-filter-empty {
  align-self: center;
  margin: auto;
  border-radius: 8px;
  padding: 10px 13px;
  color: var(--pa-muted);
  background: var(--pa-surface);
  font-size: 12px;
  text-align: center;
}

.message-timeline {
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 22px max(22px, 8vw) 30px;
  scrollbar-color: var(--pa-line-strong) transparent;
  scrollbar-width: thin;
}

.chat-history-state {
  position: sticky;
  top: 8px;
  z-index: 6;
  max-width: min(430px, calc(100% - 16px));
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 auto 5px;
  border: 1px solid var(--pa-line);
  border-radius: 18px;
  padding: 4px 6px 4px 11px;
  color: var(--pa-muted);
  background: var(--pa-elevated);
  box-shadow: 0 7px 22px rgba(24, 48, 72, 0.12);
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.chat-history-state[data-state="loading"] {
  padding-right: 12px;
  color: var(--pa-text);
}

.chat-history-spinner {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 2px solid var(--pa-line-strong);
  border-top-color: var(--pa-blue);
  border-radius: 50%;
  animation: chat-history-spin 0.75s linear infinite;
}

@keyframes chat-history-spin {
  to { transform: rotate(360deg); }
}

.chat-history-load {
  min-height: 28px;
  border: 0;
  border-radius: 14px;
  padding: 0 10px;
  color: var(--pa-blue-strong);
  background: var(--pa-blue-soft);
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.chat-history-load:hover:not(:disabled) {
  background: var(--pa-blue-selected);
}

.chat-history-load:disabled {
  color: var(--pa-faint);
  cursor: wait;
  opacity: 0.72;
}

.chat-new-messages {
  position: absolute;
  z-index: 9;
  right: clamp(16px, 5vw, 60px);
  bottom: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--pa-line-strong);
  border-radius: 23px;
  padding: 4px 9px 4px 4px;
  color: var(--pa-blue-strong);
  background: var(--pa-elevated);
  box-shadow: 0 10px 28px rgba(24, 48, 72, 0.2);
  font: inherit;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.chat-new-messages:hover {
  border-color: color-mix(in srgb, var(--pa-blue) 48%, var(--pa-line-strong));
  box-shadow: 0 12px 30px rgba(24, 48, 72, 0.24);
  transform: translateY(-1px);
}

.chat-new-messages-icon {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--pa-blue);
}

.chat-new-messages-icon svg {
  width: 18px;
  height: 18px;
}

.chat-new-messages-copy {
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.chat-new-messages-count {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  padding: 0 6px;
  color: #ffffff;
  background: var(--pa-blue-strong);
  font-size: 10px;
  font-weight: 820;
  line-height: 1;
}

.forwarded-feed-message {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  border: 1px solid color-mix(in srgb, var(--pa-blue) 35%, var(--pa-line));
  border-radius: 9px;
  padding: 8px 10px;
  color: var(--pa-text);
  background: color-mix(in srgb, var(--pa-blue-soft) 55%, var(--pa-surface));
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.forwarded-feed-message:hover {
  border-color: var(--pa-blue);
}

.forwarded-feed-message:focus-visible {
  outline: 2px solid var(--pa-blue);
  outline-offset: 2px;
}

.forwarded-feed-message > span:first-child {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--pa-blue-strong);
  background: var(--pa-blue-soft);
}

.forwarded-feed-message > span:first-child svg,
.forwarded-feed-message > svg {
  width: 17px;
  height: 17px;
}

.forwarded-feed-message > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.forwarded-feed-message strong,
.forwarded-feed-message small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forwarded-feed-message strong { font-size: 11px; }
.forwarded-feed-message small { color: var(--pa-blue-strong); font-size: 10px; }

.message-day {
  align-self: center;
  margin: 4px 0 8px;
  border-radius: 8px;
  padding: 5px 9px;
  color: var(--pa-muted);
  background: var(--pa-surface);
  font-size: 10px;
  font-weight: 700;
}

.message-bubble {
  width: fit-content;
  max-width: min(560px, 78%);
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  padding: 9px 11px 7px;
  color: var(--pa-text);
  background: var(--pa-surface);
  box-shadow: 0 4px 15px rgba(31, 53, 75, 0.07);
}

.message-bubble.own {
  align-self: flex-end;
  border-color: rgba(51, 144, 236, 0.25);
  background: var(--pa-blue-soft);
}

.message-bubble strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
}

.message-author-link {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 7px;
  padding: 2px 4px 2px 2px;
  color: var(--pa-blue);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.message-author-link:hover {
  background: var(--pa-blue-soft);
}

.message-author-link:focus-visible {
  outline: 2px solid var(--pa-blue);
  outline-offset: 2px;
}

.message-author-avatar {
  width: 24px;
  height: 24px;
  display: inline-grid;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

.message-author-aura {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.message-author-link strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-bubble p {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.message-bubble strong + p,
.message-author-link + p {
  margin-top: 4px;
}

.message-bubble.pending {
  border-style: dashed;
}

.message-bubble.send-failed,
.message-bubble.send-rejected {
  border-color: var(--pa-coral);
}

.message-unavailable {
  color: var(--pa-muted);
  font-style: italic;
}

.message-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 5px;
}

.message-meta time,
.message-send-state {
  color: var(--pa-muted);
  font-size: 9px;
}

.message-retry-action {
  display: block;
  margin: 6px 0 0 auto;
  font-size: 10px;
}

.chat-attachment {
  min-width: min(280px, 62vw);
  max-width: min(420px, 70vw);
  display: flex;
  gap: 10px;
  align-items: center;
  overflow: hidden;
}

.chat-attachment-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  border-radius: 50%;
  color: var(--pa-blue);
  background: var(--pa-blue-soft);
}

.chat-attachment-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.chat-attachment-copy strong,
.chat-attachment-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-attachment-copy span {
  color: var(--pa-muted);
  font-size: 10px;
}

.chat-attachment img,
.chat-attachment video {
  display: block;
  width: 100%;
  max-height: 360px;
  border-radius: 7px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.06);
}

.chat-attachment audio {
  width: min(340px, 62vw);
  max-width: 100%;
}

.chat-attachment-download {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  color: var(--pa-blue);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.chat-attachment-load {
  width: 100%;
  min-width: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.chat-attachment-load:hover .chat-attachment-icon,
.chat-attachment-load:focus-visible .chat-attachment-icon {
  color: #fff;
  background: var(--pa-blue);
}

.chat-attachment.presentation-video-note {
  width: min(216px, 62vw);
  min-width: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
}

.chat-attachment.presentation-video-note video {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 50%;
  object-fit: cover;
}

.chat-composer {
  position: relative;
  min-width: 0;
  border-top: 1px solid var(--pa-line);
  padding: 9px max(12px, 3vw) 7px;
  background: var(--pa-surface);
}

.composer-row {
  width: min(860px, 100%);
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: end;
  margin: 0 auto;
}

.composer-field {
  min-width: 0;
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: end;
  border: 1px solid var(--pa-line-strong);
  border-radius: 23px;
  background: var(--pa-elevated);
  box-shadow: 0 1px 3px rgba(32, 55, 80, 0.07);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.chat-composer.capture-mode-visible .composer-field {
  grid-template-columns: minmax(0, 1fr) 38px 42px;
}

.composer-field:focus-within {
  border-color: var(--pa-blue);
  box-shadow: 0 0 0 3px var(--pa-blue-soft);
}

.chat-composer textarea {
  width: 100%;
  min-height: 42px;
  max-height: 120px;
  resize: none;
  overflow-y: hidden;
  border: 0;
  border-radius: 23px 0 0 23px;
  outline: 0;
  padding: 11px 4px 10px 14px;
  color: var(--pa-text);
  background: transparent;
  font: inherit;
  font-size: 13px;
  line-height: 20px;
}

.chat-composer textarea:focus-visible {
  outline: 0;
}

.chat-composer textarea:disabled {
  color: var(--pa-faint);
  cursor: not-allowed;
}

.chat-composer textarea::placeholder {
  color: var(--pa-muted);
  opacity: 1;
}

.composer-icon-button,
.composer-action-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  font: inherit;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, transform 140ms ease;
}

.composer-icon-button {
  color: var(--pa-muted);
  background: transparent;
}

.composer-icon-button:hover:not(:disabled):not([aria-disabled="true"]) {
  color: var(--pa-blue);
  background: var(--pa-blue-soft);
}

.composer-field .composer-icon-button {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}

.composer-field .composer-capture-mode-toggle {
  width: 38px;
  height: 42px;
  flex-basis: 38px;
}

.composer-action-slot {
  position: relative;
  width: 44px;
  height: 44px;
}

.composer-action-button {
  position: absolute;
  inset: 0;
  color: #fff;
  background: var(--pa-blue);
  box-shadow: 0 4px 12px rgba(51, 144, 236, 0.24);
}

.composer-action-button:hover:not(:disabled):not([aria-disabled="true"]) {
  background: var(--pa-blue-strong);
  transform: translateY(-1px);
}

.composer-voice-button.recording {
  color: #fff;
  background: var(--pa-coral);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pa-coral) 18%, transparent);
  animation: composer-recording-pulse 1.4s ease-in-out infinite;
}

.composer-voice-button {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.chat-composer.capture-active .composer-row {
  grid-template-columns: minmax(0, 1fr) 44px;
}

.chat-composer.capture-active [data-chat-composer-attach] {
  display: none;
}

.chat-composer.capture-active .composer-field {
  grid-template-columns: minmax(0, 1fr);
}

.chat-composer.capture-active .composer-field > textarea,
.chat-composer.capture-active .composer-field > .composer-icon-button {
  display: none;
}

.composer-capture-bar {
  min-width: 0;
  min-height: 42px;
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 3px 7px;
}

.composer-capture-control {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  color: var(--pa-blue-strong);
  background: var(--pa-blue-soft);
  cursor: pointer;
}

.composer-capture-control:hover:not(:disabled) {
  color: #fff;
  background: var(--pa-blue);
}

.composer-capture-control.capture-cancel-control {
  color: var(--pa-coral);
  background: color-mix(in srgb, var(--pa-coral) 12%, transparent);
}

.composer-capture-control svg {
  width: 17px;
  height: 17px;
}

.composer-recording-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pa-coral);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pa-coral) 12%, transparent);
}

.chat-composer.capture-paused .composer-recording-dot {
  background: var(--pa-faint);
  box-shadow: none;
}

.composer-capture-time {
  min-width: 35px;
  color: var(--pa-text);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
}

.composer-capture-hint {
  min-width: 0;
  overflow: hidden;
  color: var(--pa-muted);
  font-size: 11px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateX(calc(var(--capture-cancel-progress, 0) * -24px));
  opacity: calc(1 - var(--capture-cancel-progress, 0) * 0.65);
}

.chat-composer.capture-locked .composer-capture-hint {
  color: var(--pa-blue-strong);
  font-weight: 700;
  transform: none;
  opacity: 1;
}

.composer-capture-lock {
  --capture-lock-progress: 0;
  position: absolute;
  right: -13px;
  bottom: 52px;
  z-index: 4;
  width: 70px;
  min-height: 72px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--pa-line-strong);
  border-radius: 35px;
  color: var(--pa-muted);
  background: var(--pa-elevated);
  box-shadow: var(--pa-shadow);
  pointer-events: none;
  transform: translateY(calc((1 - var(--capture-lock-progress)) * 15px));
  opacity: calc(0.62 + var(--capture-lock-progress) * 0.38);
}

.composer-capture-lock svg {
  width: 20px;
  height: 20px;
  transform: translateY(calc((1 - var(--capture-lock-progress)) * 8px));
}

.composer-capture-lock span {
  font-size: 9px;
  font-weight: 760;
}

.composer-capture-lock.lock-ready {
  border-color: var(--pa-blue);
  color: #fff;
  background: var(--pa-blue);
}

.composer-capture-review {
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  align-items: center;
  margin: 0 auto;
  border: 1px solid var(--pa-line-strong);
  border-radius: 18px;
  padding: 12px 14px;
  background: var(--pa-elevated);
  box-shadow: 0 4px 18px rgba(32, 55, 80, 0.08);
}

.chat-composer.capture-reviewing .composer-row,
.chat-composer.capture-reviewing .composer-meta {
  display: none;
}

.capture-review-media {
  min-width: 0;
  grid-column: 1 / -1;
}

.capture-review-media audio {
  width: 100%;
  height: 40px;
  display: block;
}

.capture-review-media video {
  width: 164px;
  height: 164px;
  display: block;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: #111923;
}

.capture-trim-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  grid-column: 1 / -1;
  color: var(--pa-muted);
  font-size: 11px;
}

.capture-trim-copy strong {
  color: var(--pa-text);
  font-size: 12px;
}

.capture-trim-copy output {
  font-variant-numeric: tabular-nums;
}

.capture-trim-ranges {
  --trim-start-percent: 0%;
  --trim-end-percent: 100%;
  position: relative;
  min-width: 0;
  height: 28px;
  border-radius: 6px;
  background:
    linear-gradient(
      to right,
      var(--pa-line) 0 var(--trim-start-percent),
      var(--pa-blue) var(--trim-start-percent) var(--trim-end-percent),
      var(--pa-line) var(--trim-end-percent) 100%
    ) center / 100% 4px no-repeat;
}

.capture-trim-ranges input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  appearance: none;
  background: transparent;
  pointer-events: none;
}

.capture-trim-ranges input::-webkit-slider-thumb {
  width: 18px;
  height: 24px;
  appearance: none;
  border: 2px solid #fff;
  border-radius: 7px;
  background: var(--pa-blue);
  box-shadow: 0 1px 5px rgba(32, 55, 80, 0.28);
  pointer-events: auto;
  cursor: ew-resize;
}

.capture-trim-ranges input::-moz-range-thumb {
  width: 14px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 7px;
  background: var(--pa-blue);
  box-shadow: 0 1px 5px rgba(32, 55, 80, 0.28);
  pointer-events: auto;
  cursor: ew-resize;
}

.capture-review-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.capture-review-actions .primary-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 9px;
  padding: 0 13px;
  color: #fff;
  background: var(--pa-blue);
  font: inherit;
  font-size: 11px;
  font-weight: 760;
  cursor: pointer;
}

.capture-review-actions .primary-button svg {
  width: 16px;
  height: 16px;
}

.capture-review-actions button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.capture-review-status {
  min-height: 14px;
  color: var(--pa-muted);
  font-size: 10px;
}

.capture-review-status[data-kind="error"] {
  color: var(--pa-coral);
}

.composer-status[data-kind="recording"] {
  color: var(--pa-coral);
  font-weight: 650;
}

.composer-status[data-kind="progress"] {
  color: var(--pa-blue);
}

.composer-capture-preview {
  width: min(176px, calc(100vw - 32px));
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 8px auto 2px;
}

.composer-capture-preview video {
  width: 152px;
  height: 152px;
  display: block;
  border: 3px solid var(--pa-blue);
  border-radius: 50%;
  object-fit: cover;
  background: #111923;
  box-shadow: 0 8px 24px rgba(17, 25, 35, 0.24);
  transform: scaleX(-1);
}

.composer-capture-preview span {
  color: var(--pa-muted);
  font-size: 11px;
  font-weight: 650;
}

@keyframes composer-recording-pulse {
  50% {
    transform: scale(0.92);
  }
}

.composer-action-button.composer-unavailable {
  border: 1px solid var(--pa-line);
  color: var(--pa-muted);
  background: var(--pa-elevated);
  box-shadow: 0 2px 8px rgba(32, 55, 80, 0.08);
}

.composer-unavailable[aria-disabled="true"] {
  opacity: 0.52;
  cursor: not-allowed;
}

.composer-action-button:disabled,
.composer-icon-button:disabled {
  opacity: 0.68;
  cursor: not-allowed;
}

.composer-emoji-picker {
  position: absolute;
  right: max(10px, calc((100% - min(860px, calc(100% - 20px))) / 2 + 52px));
  bottom: calc(100% - 6px);
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(6, 36px);
  gap: 4px;
  border: 1px solid var(--pa-line);
  border-radius: 14px;
  padding: 10px;
  background: var(--pa-elevated);
  box-shadow: var(--pa-shadow);
}

.composer-emoji-picker button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  padding: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.composer-emoji-picker button:hover,
.composer-emoji-picker button:focus-visible {
  background: var(--pa-blue-soft);
}

.composer-meta {
  width: min(860px, 100%);
  min-height: 14px;
  display: flex;
  gap: 12px;
  align-items: start;
  margin: 4px auto 0;
}

.composer-status,
.composer-count {
  min-width: 0;
  color: var(--pa-muted);
  font-size: 10px;
  line-height: 1.35;
}

.composer-status[data-kind="error"] {
  color: var(--pa-coral);
}

.composer-status {
  flex: 1;
}

.composer-count {
  margin-left: auto;
  white-space: nowrap;
}

.settings-scroll {
  height: 100%;
  overflow-y: auto;
  background: var(--pa-surface);
  scrollbar-color: var(--pa-line-strong) transparent;
  scrollbar-width: thin;
}

.profile-hero {
  min-height: 270px;
  display: grid;
  position: relative;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  border-bottom: 1px solid var(--pa-line);
  padding: 146px max(24px, calc((100% - 820px) / 2)) 26px;
  overflow: hidden;
}

.profile-cover {
  position: absolute;
  inset: 0 0 auto;
  height: 172px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.36), transparent 24%),
    linear-gradient(128deg, #386db7, #50a9b6 55%, #8d78cf);
}

.profile-cover::after,
.chat-details-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(9, 17, 27, 0.2));
  content: "";
  pointer-events: none;
}

.profile-cover img,
.chat-details-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-aura {
  display: inline-grid;
  position: relative;
  z-index: 1;
  place-items: center;
  justify-self: start;
  border-radius: 50%;
  padding: 4px;
  background: var(--pa-surface);
}

.profile-aura[data-aura="aurora"] {
  background: conic-gradient(from 20deg, #46d7c1, #58a8ff, #a974ef, #46d7c1);
  box-shadow: 0 0 24px rgba(70, 215, 193, 0.5);
}

.profile-aura[data-aura="neon"] {
  background: conic-gradient(from 80deg, #7dff8a, #28d7ff, #d450ff, #7dff8a);
  box-shadow: 0 0 24px rgba(40, 215, 255, 0.56);
}

.profile-aura[data-aura="solar"] {
  background: conic-gradient(from 20deg, #ff9e37, #ffe16a, #ff725e, #ff9e37);
  box-shadow: 0 0 24px rgba(255, 158, 55, 0.48);
}

.profile-aura[data-aura="ice"] {
  background: conic-gradient(from 30deg, #f4fdff, #7ed8ff, #778fff, #f4fdff);
  box-shadow: 0 0 24px rgba(126, 216, 255, 0.52);
}

.compact-profile-aura {
  display: inline-grid;
  box-sizing: border-box;
  place-items: center;
  justify-self: auto;
  border-radius: 50%;
  padding: 2px;
  background: transparent;
}

.compact-profile-aura[data-aura="aurora"],
.feed-story-ring[data-aura="aurora"] {
  background: conic-gradient(from 20deg, #46d7c1, #58a8ff, #a974ef, #46d7c1);
  box-shadow: 0 0 12px rgba(70, 215, 193, 0.42);
}

.compact-profile-aura[data-aura="neon"],
.feed-story-ring[data-aura="neon"] {
  background: conic-gradient(from 80deg, #7dff8a, #28d7ff, #d450ff, #7dff8a);
  box-shadow: 0 0 12px rgba(40, 215, 255, 0.45);
}

.compact-profile-aura[data-aura="solar"],
.feed-story-ring[data-aura="solar"] {
  background: conic-gradient(from 20deg, #ff9e37, #ffe16a, #ff725e, #ff9e37);
  box-shadow: 0 0 12px rgba(255, 158, 55, 0.4);
}

.compact-profile-aura[data-aura="ice"],
.feed-story-ring[data-aura="ice"] {
  background: conic-gradient(from 30deg, #f4fdff, #7ed8ff, #778fff, #f4fdff);
  box-shadow: 0 0 12px rgba(126, 216, 255, 0.42);
}

.profile-avatar {
  position: relative;
  width: 82px;
  height: 82px;
  overflow: hidden;
  font-size: 27px;
}

.profile-avatar img,
.chat-details-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-hero h2 {
  margin: 0;
  color: var(--pa-text);
  font-size: 22px;
  line-height: 1.2;
}

.profile-hero p {
  margin: 7px 0 0;
  color: var(--pa-muted);
  font-size: 14px;
}

.profile-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.profile-name-line {
  display: flex;
  align-items: center;
  gap: 7px;
}

.profile-emoji {
  flex: 0 0 auto;
  font-size: 0.92em;
}

.verified-badge {
  width: 21px;
  height: 21px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.verified-badge svg {
  width: 21px;
  height: 21px;
  fill: var(--pa-blue);
  stroke: #ffffff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-copy h2,
.profile-copy p {
  overflow-wrap: anywhere;
}

.profile-bio {
  max-width: 520px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.profile-bio.empty {
  color: var(--pa-faint);
}

.profile-hero-actions {
  display: flex;
  position: relative;
  z-index: 1;
  align-items: center;
  gap: 8px;
}

.profile-edit-button {
  border: 1px solid var(--pa-line);
  color: var(--pa-blue-strong);
  background: var(--pa-surface);
}

.profile-edit-button:hover {
  border-color: var(--pa-line-strong);
  color: var(--pa-blue-strong);
  background: var(--pa-blue-soft);
}

.profile-dialog {
  width: min(480px, calc(100vw - 32px));
  max-width: 480px;
  max-height: calc(100dvh - 32px);
  margin: auto;
  border: 1px solid var(--pa-line-strong);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  color: var(--pa-text);
  background: var(--pa-surface);
  box-shadow: 0 22px 64px rgba(13, 28, 44, 0.28);
}

.profile-dialog:not([open]) {
  display: none;
}

.profile-dialog::backdrop {
  background: rgba(9, 17, 27, 0.54);
}

.feed-post-dialog {
  width: min(760px, calc(100vw - 32px));
  max-width: 760px;
}

.feed-create-dialog {
  width: min(640px, calc(100vw - 32px));
  max-width: 640px;
}

.chat-create-dialog {
  width: min(620px, calc(100vw - 32px));
  max-width: 620px;
}

.chat-create-shell {
  width: 100%;
  max-height: calc(100dvh - 34px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.chat-create-body {
  min-height: 0;
  display: grid;
  gap: 18px;
  overflow-y: auto;
  padding: 20px;
}

.chat-create-kind {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  border: 0;
  padding: 0;
}

.chat-create-kind legend {
  grid-column: 1 / -1;
  margin-bottom: 1px;
  color: var(--pa-text);
  font-size: 12px;
  font-weight: 720;
}

.chat-create-kind label {
  min-width: 0;
  cursor: pointer;
}

.chat-create-kind input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.chat-create-kind-card {
  min-height: 76px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border: 1px solid var(--pa-line-strong);
  border-radius: 11px;
  padding: 12px;
  color: var(--pa-muted);
  background: var(--pa-bg);
  transition: border-color 150ms ease, background-color 150ms ease,
    box-shadow 150ms ease;
}

.chat-create-kind-card > svg {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  padding: 9px;
  color: var(--pa-blue-strong);
  background: var(--pa-blue-soft);
}

.chat-create-kind-card strong,
.chat-create-kind-card small {
  display: block;
}

.chat-create-kind-card strong {
  color: var(--pa-text);
  font-size: 13px;
}

.chat-create-kind-card small {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.35;
}

.chat-create-kind label:hover .chat-create-kind-card {
  border-color: var(--pa-blue);
}

.chat-create-kind input:focus-visible + .chat-create-kind-card {
  box-shadow: 0 0 0 3px var(--pa-blue-soft);
}

.chat-create-kind input:checked + .chat-create-kind-card {
  border-color: var(--pa-blue);
  color: var(--pa-blue-strong);
  background: var(--pa-blue-soft);
}

.chat-create-fields {
  display: grid;
  gap: 15px;
}

.chat-create-grid,
.chat-create-toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.chat-create-dialog .chat-handle-field input {
  height: 42px;
  border: 0;
  border-radius: 0;
  padding: 0 12px 0 2px;
  background: transparent;
  box-shadow: none;
}

.chat-create-status {
  margin: -4px 0 0;
  border: 0;
  padding: 0;
  background: transparent;
}

.chat-create-status.error {
  color: var(--pa-coral);
}

.chat-create-actions {
  border-top: 1px solid var(--pa-line);
}

.feed-create-shell {
  width: 100%;
  max-height: calc(100dvh - 34px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.feed-create-body {
  min-height: 0;
  display: grid;
  gap: 14px;
  overflow-y: auto;
  padding: 20px;
  background: var(--pa-surface);
}

.feed-create-body [data-feed-composer-body] {
  min-height: 148px;
}

.feed-create-shell > .feed-composer-footer {
  border-top: 1px solid var(--pa-line);
  padding: 14px 20px;
  background: var(--pa-surface);
}

.feed-recipient-dialog {
  width: min(520px, calc(100vw - 32px));
  max-width: 520px;
}

.feed-recipient-shell {
  max-height: calc(100dvh - 34px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.feed-recipient-body {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) auto;
  gap: 12px;
  overflow: hidden;
  padding: 16px 20px;
}

.feed-recipient-search {
  min-height: 44px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid var(--pa-line-strong);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--pa-muted);
  background: var(--pa-bg);
}

.feed-recipient-search:focus-within {
  border-color: var(--pa-blue);
  box-shadow: 0 0 0 2px var(--pa-blue-soft);
}

.feed-recipient-search svg {
  width: 18px;
  height: 18px;
}

.feed-recipient-search input {
  min-width: 0;
  height: 42px;
  border: 0;
  outline: 0;
  color: var(--pa-text);
  background: transparent;
  font: inherit;
  font-size: 13px;
}

.feed-recipient-list {
  min-height: 120px;
  display: grid;
  align-content: start;
  gap: 6px;
  overflow-y: auto;
}

.feed-recipient-option {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--pa-text);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.feed-recipient-option:hover {
  background: var(--pa-bg);
}

.feed-recipient-option.selected {
  border-color: var(--pa-blue);
  background: var(--pa-blue-soft);
}

.feed-recipient-option:focus-visible {
  outline: 2px solid var(--pa-blue);
  outline-offset: 1px;
}

.feed-recipient-option .avatar {
  width: 38px;
  height: 38px;
}

.feed-recipient-aura {
  width: 42px;
  height: 42px;
}

.feed-recipient-option-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.feed-recipient-option-copy strong,
.feed-recipient-option-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-recipient-option-copy strong { font-size: 13px; }
.feed-recipient-option-copy small { color: var(--pa-muted); font-size: 11px; }

.feed-recipient-check {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 2px solid var(--pa-line-strong);
  border-radius: 50%;
  color: transparent;
}

.feed-recipient-option.selected .feed-recipient-check {
  border-color: var(--pa-blue);
  color: #fff;
  background: var(--pa-blue);
}

.feed-recipient-check::after {
  width: 6px;
  height: 10px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  content: "";
  transform: translateY(-1px) rotate(45deg);
}

.feed-recipient-empty {
  margin: auto;
  padding: 24px 12px;
  color: var(--pa-muted);
  font-size: 12px;
  text-align: center;
}

.feed-recipient-actions {
  flex-wrap: wrap;
}

.feed-recipient-actions .button {
  min-height: 44px;
}

.channel-post-timeline {
  align-content: start;
  gap: 14px;
  padding: 18px max(16px, calc((100% - 720px) / 2)) 100px;
  background: var(--pa-bg);
}

.channel-post-timeline > .feed-card,
.channel-post-timeline > .channel-posts-intro,
.channel-post-timeline > .feed-state,
.channel-post-timeline > .channel-posts-more {
  width: min(720px, 100%);
  margin-inline: auto;
}

.channel-posts-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--pa-line);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--pa-surface);
}

.channel-posts-intro > div {
  min-width: 0;
}

.channel-posts-intro strong,
.channel-posts-intro span {
  display: block;
}

.channel-posts-intro strong { font-size: 14px; }
.channel-posts-intro span { margin-top: 4px; color: var(--pa-muted); font-size: 11px; }
.channel-posts-intro .button { min-height: 44px; flex: 0 0 auto; }

.channel-post-timeline > .channel-posts-more {
  width: auto;
  align-self: center;
  margin-inline: auto;
}

.feed-post-dialog-shell,
.feed-report-form {
  max-height: calc(100dvh - 34px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.feed-post-dialog-body {
  min-height: 0;
  overflow-y: auto;
  background: var(--pa-bg);
}

.feed-post-detail {
  padding: 16px;
}

.feed-post-detail > .feed-card {
  box-shadow: none;
}

.feed-post-detail > .feed-state {
  min-height: 220px;
  border-radius: 8px;
  background: var(--pa-surface);
}

.feed-comments {
  border-top: 1px solid var(--pa-line);
  background: var(--pa-surface);
}

.feed-comments > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px 12px;
}

.feed-comments > header > div {
  min-width: 0;
}

.feed-comments h3,
.feed-comments > header span {
  margin: 0;
}

.feed-comments h3 {
  color: var(--pa-text);
  font-size: 14px;
}

.feed-comments > header span {
  display: block;
  margin-top: 3px;
  color: var(--pa-muted);
  font-size: 10px;
}

.feed-comments-list {
  display: grid;
  gap: 8px;
  padding: 0 18px 16px;
}

.feed-comments-list > .feed-state {
  min-height: 150px;
  border: 1px dashed var(--pa-line-strong);
  border-radius: 8px;
  padding: 24px 16px;
}

.feed-comments-list > .feed-state .empty-icon {
  width: 42px;
  height: 42px;
}

.feed-comment-thread {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.feed-comment {
  min-width: 0;
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  padding: 11px 12px 9px;
  background: var(--pa-bg);
}

.feed-comment > header {
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.feed-comment-avatar {
  position: relative;
  width: 28px;
  height: 28px;
  overflow: hidden;
  font-size: 11px;
}

.feed-comment-aura {
  width: 32px;
  height: 32px;
  padding: 2px;
}

.feed-comment-author {
  min-width: 0;
  display: grid;
  gap: 2px;
}

button.feed-comment-author {
  width: max-content;
  max-width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 3px 5px;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.feed-comment-author.link:hover {
  background: var(--pa-blue-soft);
}

.feed-comment-author strong,
.feed-comment-author span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-comment-author strong {
  font-size: 11px;
}

.feed-comment-author span,
.feed-comment time {
  color: var(--pa-muted);
  font-size: 9px;
}

.feed-comment > .feed-comment-body {
  margin: 9px 0 0 41px;
  color: var(--pa-text);
  font-size: 12px;
  line-height: 1.48;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.feed-comment > footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 5px 0 0 35px;
  color: var(--pa-muted);
}

.feed-comment > footer .feed-metric {
  padding: 4px 6px;
  font-size: 10px;
}

.feed-comment > footer .feed-metric svg {
  width: 14px;
  height: 14px;
}

.feed-comment-replies {
  min-width: 0;
  display: grid;
  gap: 7px;
  margin-left: 32px;
  border-left: 2px solid var(--pa-line);
  padding-left: 12px;
}

.feed-comment-replies[hidden] {
  display: none;
}

.feed-comment-reply {
  border-color: var(--pa-line-strong);
  background: var(--pa-surface);
}

.feed-comment-reply-context {
  margin: 8px 0 -3px 41px;
  color: var(--pa-blue-strong);
  font-size: 9px;
  font-weight: 700;
}

.feed-comment-text-action,
.feed-comments-more,
.feed-reply-target-cancel {
  border: 0;
  color: var(--pa-muted);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.feed-comment-text-action {
  min-height: 28px;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 700;
}

.feed-comment-text-action:hover,
.feed-comments-more:hover,
.feed-reply-target-cancel:hover {
  color: var(--pa-blue-strong);
  background: var(--pa-blue-soft);
}

.feed-comment-text-action:focus-visible,
.feed-comments-more:focus-visible,
.feed-reply-target-cancel:focus-visible {
  outline: 2px solid var(--pa-blue);
  outline-offset: 2px;
}

.feed-comment-text-action:disabled,
.feed-comments-more:disabled {
  opacity: 0.58;
  cursor: wait;
}

.feed-comment-action-status {
  margin: 4px 0 0 41px;
  color: var(--pa-muted);
  font-size: 10px;
  line-height: 1.4;
}

.feed-comment-action-status.error,
.feed-replies-state.error {
  color: var(--pa-coral);
}

.feed-comment-action-status[hidden] {
  display: none;
}

.feed-replies-state {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 7px;
  padding: 7px 9px;
  color: var(--pa-muted);
  background: var(--pa-bg);
  font-size: 10px;
}

.feed-comments-pagination {
  display: grid;
  place-items: center;
  padding: 4px 0 0;
}

.feed-comments-pagination > .feed-replies-state {
  width: 100%;
}

.feed-comments-more {
  min-height: 36px;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--pa-blue-strong);
  font-size: 11px;
  font-weight: 700;
}

.feed-action.loading svg {
  animation: app-loader-spin 0.8s linear infinite;
}

.feed-comment-form {
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--pa-line);
  padding: 14px 18px 18px;
}

.feed-comment-form > textarea {
  min-height: 64px;
}

.feed-reply-target {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-left: 3px solid var(--pa-blue);
  border-radius: 7px;
  padding: 7px 8px 7px 10px;
  color: var(--pa-text);
  background: var(--pa-blue-soft);
  font-size: 11px;
  font-weight: 700;
}

.feed-reply-target > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-reply-target-cancel {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 6px;
}

.feed-reply-target-cancel svg {
  width: 14px;
  height: 14px;
}

.feed-comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.feed-comment-form-footer .feed-anonymous-toggle {
  margin-right: auto;
}

.feed-report-form {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.feed-report-fields {
  min-height: 0;
  display: grid;
  gap: 16px;
  overflow-y: auto;
  padding: 20px;
}

.feed-report-fields select,
.feed-report-fields textarea {
  width: 100%;
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  outline: 0;
  padding: 10px 11px;
  color: var(--pa-text);
  background: var(--pa-bg);
  font: inherit;
  font-size: 12px;
}

.feed-report-fields select:focus,
.feed-report-fields textarea:focus {
  border-color: var(--pa-blue);
  box-shadow: 0 0 0 2px var(--pa-blue-soft);
}

.chat-details-shell {
  max-height: calc(100dvh - 34px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.chat-details-body {
  min-height: 0;
  overflow-y: auto;
}

.chat-details-hero {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--pa-line);
  padding: 22px 20px;
}

.chat-details-cover {
  height: 126px;
  position: relative;
  grid-column: 1 / -1;
  margin: -22px -20px 2px;
  overflow: hidden;
  background: linear-gradient(128deg, #386db7, #50a9b6 55%, #8d78cf);
}

.chat-profile-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chat-profile-actions[hidden] { display: none; }

.chat-profile-actions .button { min-width: 0; }
.chat-profile-actions svg { width: 16px; height: 16px; }

.chat-details-avatar {
  position: relative;
  width: 72px;
  height: 72px;
  grid-row: auto;
  overflow: hidden;
  font-size: 25px;
}

.chat-details-hero .chat-details-aura {
  display: inline-grid;
  align-self: center;
}

.chat-details-hero .chat-details-avatar {
  display: grid;
}

.chat-details-hero .profile-name-line {
  display: flex;
}

.chat-details-hero .verified-badge {
  display: inline-flex;
}

.chat-details-hero > div {
  min-width: 0;
}

.chat-details-hero strong,
.chat-details-hero span,
.chat-details-hero p {
  display: block;
  overflow-wrap: anywhere;
}

.chat-profile-metadata {
  grid-column: 2;
  display: grid;
  gap: 7px;
  margin: 11px 0 0;
}

.chat-profile-metadata[hidden] { display: none; }

.chat-profile-metadata > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
}

.chat-profile-metadata dt,
.chat-profile-metadata dd {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
}

.chat-profile-metadata dt { color: var(--pa-muted); }
.chat-profile-metadata dd { color: var(--pa-text); }

.chat-details-hero strong {
  font-size: 18px;
  line-height: 1.3;
}

.chat-details-hero > div > span {
  margin-top: 5px;
  color: var(--pa-muted);
  font-size: 12px;
}

.chat-details-hero p {
  grid-column: 2;
  margin: 8px 0 0;
  color: var(--pa-text);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.chat-details-status {
  margin: 0;
  border-bottom: 1px solid var(--pa-line);
  padding: 10px 20px;
  color: var(--pa-muted);
  background: var(--pa-bg);
  font-size: 11px;
  line-height: 1.45;
}

.chat-privacy-settings {
  display: grid;
  gap: 14px;
  border-bottom: 1px solid var(--pa-line);
  padding: 18px 20px 20px;
  background: var(--pa-surface);
}

.chat-privacy-settings[hidden] {
  display: none;
}

.chat-privacy-settings > header h3,
.chat-privacy-settings > header p {
  margin: 0;
}

.chat-privacy-settings > header h3 {
  font-size: 14px;
}

.chat-privacy-settings > header p {
  margin-top: 4px;
  color: var(--pa-muted);
  font-size: 11px;
  line-height: 1.4;
}

.chat-privacy-grid {
  display: grid;
  gap: 13px;
}

.chat-handle-field {
  min-height: 44px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border: 1px solid var(--pa-line-strong);
  border-radius: 8px;
  overflow: hidden;
  color: var(--pa-muted);
  background: var(--pa-bg);
  font-size: 12px;
  font-weight: 600;
}

.chat-handle-field:focus-within {
  border-color: var(--pa-blue);
  box-shadow: 0 0 0 2px var(--pa-blue-soft);
}

.chat-handle-field > span {
  padding-left: 12px;
}

.chat-handle-field input {
  height: 42px;
  border: 0;
  outline: 0;
  padding: 0 12px 0 2px;
  background: transparent;
  box-shadow: none;
}

.chat-setting-toggle {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--pa-line);
  border-radius: 9px;
  padding: 9px 11px;
  cursor: pointer;
}

.chat-setting-toggle > span {
  min-width: 0;
}

.chat-setting-toggle strong,
.chat-setting-toggle small {
  display: block;
}

.chat-setting-toggle strong { font-size: 12px; }
.chat-setting-toggle small { margin-top: 3px; color: var(--pa-muted); font-size: 10px; }

.chat-setting-toggle input {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin: 0;
  accent-color: var(--pa-blue);
}

.chat-privacy-settings [data-chat-settings-status] {
  border: 0;
  padding: 0;
  background: transparent;
}

.chat-privacy-settings [data-chat-settings-status].error {
  color: var(--pa-coral);
}

.chat-privacy-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.chat-privacy-actions .button {
  min-height: 44px;
}

.chat-privacy-settings :disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.chat-settings-actions {
  display: grid;
  padding: 4px 20px 10px;
}

.chat-settings-actions[hidden] {
  display: none;
}

.chat-settings-actions > button {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 17px;
  align-items: center;
  gap: 13px;
  border: 0;
  border-bottom: 1px solid var(--pa-line);
  padding: 0;
  color: var(--pa-text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.chat-settings-actions > button:last-child {
  border-bottom: 0;
}

.chat-settings-actions > button:hover {
  background: var(--pa-bg);
}

.chat-settings-actions > button > span:nth-child(2) {
  min-width: 0;
}

.chat-settings-actions strong,
.chat-settings-actions small {
  display: block;
}

.chat-settings-actions strong {
  font-size: 13px;
}

.chat-settings-actions small {
  margin-top: 4px;
  color: var(--pa-muted);
  font-size: 11px;
  line-height: 1.35;
}

.chat-settings-actions > button > svg {
  width: 17px;
  height: 17px;
  color: var(--pa-faint);
}

.chat-settings-actions > button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.profile-edit-form {
  max-height: calc(100dvh - 34px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.profile-dialog-header {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--pa-line);
  padding: 20px 20px 17px;
}

.profile-dialog-header > div {
  min-width: 0;
}

.profile-dialog-header h2,
.profile-dialog-header p {
  margin: 0;
  overflow-wrap: anywhere;
}

.profile-dialog-header h2 {
  font-size: 18px;
  line-height: 1.25;
}

.profile-dialog-header p {
  margin-top: 5px;
  color: var(--pa-muted);
  font-size: 12px;
  line-height: 1.45;
}

.profile-dialog-close {
  margin: -5px -5px 0 0;
}

.profile-form-fields {
  min-height: 0;
  display: grid;
  gap: 17px;
  overflow-y: auto;
  padding: 20px;
}

.profile-field {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--pa-text);
  font-size: 12px;
  font-weight: 720;
}

.profile-field input,
.profile-field textarea,
.profile-field select,
.profile-username-input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--pa-line-strong);
  border-radius: 8px;
  color: var(--pa-text);
  background: var(--pa-bg);
}

.profile-field input,
.profile-field textarea,
.profile-field select {
  font: inherit;
  outline: 0;
}

.profile-field > input {
  height: 42px;
  padding: 0 12px;
}

.profile-field > select {
  height: 42px;
  padding: 0 34px 0 12px;
}

.profile-field textarea {
  min-height: 96px;
  resize: vertical;
  padding: 10px 12px;
  line-height: 1.45;
}

.profile-field > input:focus,
.profile-field textarea:focus,
.profile-field select:focus,
.profile-username-input:focus-within {
  border-color: var(--pa-blue);
  background: var(--pa-surface);
  box-shadow: 0 0 0 2px var(--pa-blue-soft);
}

.profile-username-input {
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.profile-username-input > span {
  flex: 0 0 auto;
  color: var(--pa-faint);
  font-size: 14px;
}

.profile-username-input input {
  height: 40px;
  border: 0;
  padding: 0 2px;
  background: transparent;
}

.profile-field small {
  color: var(--pa-muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
}

.profile-field .profile-bio-count {
  justify-self: end;
  margin-top: -3px;
}

.profile-field-heading {
  display: grid;
  gap: 4px;
  color: var(--pa-text);
  font-size: 12px;
  font-weight: 720;
}

.profile-field-heading small {
  color: var(--pa-muted);
  font-size: 10px;
  font-weight: 500;
}

.profile-media-editor {
  display: grid;
  gap: 10px;
}

.profile-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-media-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  border: 1px solid var(--pa-line);
  border-radius: 10px;
  padding: 10px;
  background: var(--pa-bg);
}

.profile-media-card > strong {
  font-size: 11px;
}

.profile-media-preview {
  width: 100%;
  display: grid;
  position: relative;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: var(--pa-muted);
  background: linear-gradient(135deg, var(--pa-blue-soft), var(--pa-bg));
  font-size: 10px;
}

.profile-media-preview.is-avatar {
  width: 72px;
  height: 72px;
  justify-self: center;
  border-radius: 50%;
}

.profile-editor-aura {
  width: 76px;
  height: 76px;
  justify-self: center;
}

.profile-media-preview.is-cover {
  aspect-ratio: 16 / 9;
}

.profile-media-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.profile-media-actions button {
  min-height: 30px;
  flex: 1;
  border: 1px solid var(--pa-line-strong);
  border-radius: 7px;
  padding: 0 8px;
  color: var(--pa-blue-strong);
  background: var(--pa-surface);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.profile-media-actions button.danger {
  color: var(--pa-coral);
}

.profile-media-actions button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.profile-decoration-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-crop-dialog {
  width: min(680px, calc(100vw - 32px));
  max-width: 680px;
}

.profile-crop-form {
  max-height: calc(100dvh - 34px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.profile-crop-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  overflow-y: auto;
  padding: 20px;
}

.profile-crop-stage {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #111820;
}

.profile-crop-stage[data-kind="avatar"] {
  width: min(100%, 430px);
  justify-self: center;
  border-radius: 50%;
}

.profile-crop-stage canvas {
  width: 100%;
  height: auto;
  display: block;
  touch-action: none;
  cursor: grab;
  outline: 0;
}

.profile-crop-stage canvas.dragging {
  cursor: grabbing;
}

.profile-crop-stage canvas:focus-visible {
  box-shadow: inset 0 0 0 3px var(--pa-blue);
}

.profile-crop-help {
  grid-column: 1 / -1;
  margin-top: -6px;
  color: var(--pa-muted);
  font-size: 10px;
  line-height: 1.4;
}

.profile-crop-zoom {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--pa-text);
  font-size: 11px;
  font-weight: 700;
}

.profile-crop-zoom input {
  width: 100%;
  accent-color: var(--pa-blue);
}

.product-app .profile-crop-rotate {
  min-width: 158px;
  align-self: end;
  gap: 7px;
}

.profile-crop-rotate svg {
  width: 16px;
  height: 16px;
}

.profile-crop-body .profile-form-status {
  grid-column: 1 / -1;
  margin: 0;
}

.profile-form-status {
  margin: 0 20px;
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--pa-coral);
  background: var(--pa-danger-soft);
  font-size: 11px;
  line-height: 1.4;
}

.profile-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--pa-line);
  padding: 14px 20px;
}

.product-app .profile-dialog .button {
  min-width: 100px;
  min-height: 40px;
  border: 1px solid var(--pa-line-strong);
  border-radius: 8px;
  padding: 0 15px;
  color: var(--pa-text);
  background: var(--pa-surface);
  box-shadow: none;
}

.product-app .profile-dialog .button-primary {
  border-color: var(--pa-blue);
  color: #ffffff;
  background: var(--pa-blue);
}

.product-app .profile-dialog .button-primary:hover {
  border-color: var(--pa-blue-strong);
  background: var(--pa-blue-strong);
}

.product-app .profile-dialog .button:disabled,
.profile-dialog .icon-button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.status-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--pa-mint);
  background: var(--pa-mint-soft);
  font-size: 11px;
  font-weight: 760;
}

.app-section {
  width: min(860px, 100%);
  margin: 0 auto;
  border-bottom: 1px solid var(--pa-line);
  padding: 0 24px;
}

.app-section:last-child {
  margin-bottom: 40px;
}

.app-section-title {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--pa-line);
}

.app-section-title h2,
.app-section-title h3,
.app-section-title p {
  margin: 0;
}

.app-section-title h2,
.app-section-title h3 {
  color: var(--pa-text);
  font-size: 15px;
  font-weight: 780;
}

.app-section-title p {
  margin-top: 5px;
  color: var(--pa-muted);
  font-size: 12px;
}

.setting-row {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--pa-line);
  color: var(--pa-text);
  text-decoration: none;
}

.setting-row:last-child {
  border-bottom: 0;
}

.setting-icon {
  width: 36px;
  height: 36px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
}

.setting-icon svg {
  width: 18px;
  height: 18px;
}

.setting-icon.blue { color: var(--pa-blue); background: var(--pa-blue-soft); }
.setting-icon.mint { color: var(--pa-mint); background: var(--pa-mint-soft); }
.setting-icon.violet { color: var(--pa-violet); background: rgba(115, 103, 220, 0.12); }
.setting-icon.purple { color: var(--pa-violet); background: rgba(115, 103, 220, 0.12); }
.setting-icon.coral { color: var(--pa-coral); background: var(--pa-danger-soft); }

.setting-copy {
  min-width: 0;
  flex: 1;
}

.setting-copy strong,
.setting-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.setting-copy strong {
  font-size: 13px;
  font-weight: 720;
}

.setting-copy span {
  margin-top: 4px;
  color: var(--pa-muted);
  font-size: 11px;
  line-height: 1.35;
}

.setting-link:hover,
.setting-command:hover {
  background: var(--pa-bg);
}

.setting-command {
  padding: 0;
  text-align: left;
}

.setting-command.danger .setting-copy strong {
  color: var(--pa-coral);
}

.row-chevron {
  width: 17px !important;
  height: 17px !important;
  color: var(--pa-faint);
}

.theme-segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  padding: 3px;
  background: var(--pa-bg);
}

.theme-segmented button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--pa-muted);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.theme-segmented button.active {
  color: var(--pa-blue-strong);
  background: var(--pa-surface);
  box-shadow: 0 1px 5px rgba(32, 55, 80, 0.1);
}

.theme-segmented svg {
  width: 15px;
  height: 15px;
}

.text-button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 11px;
  color: var(--pa-blue-strong);
  background: var(--pa-blue-soft);
  font-size: 11px;
  font-weight: 760;
  cursor: pointer;
}

.text-button:hover {
  color: var(--pa-text);
}

.text-button:disabled,
.setting-command:disabled,
.icon-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.session-state-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--pa-faint);
}

.session-state-dot.current {
  background: var(--pa-mint);
}

.session-badge {
  color: var(--pa-mint);
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

.session-revoke-button {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--pa-muted);
  background: transparent;
  cursor: pointer;
}

.session-revoke-button:hover {
  color: var(--pa-coral);
  background: var(--pa-danger-soft);
}

.session-revoke-button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.session-revoke-button svg {
  width: 17px;
  height: 17px;
}

.message-history-action {
  align-self: center;
  margin: 0 0 8px;
}

.app-toast {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, calc(100vw - 32px));
  border: 1px solid var(--pa-line-strong);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--pa-text);
  background: var(--pa-elevated);
  box-shadow: 0 14px 40px rgba(24, 42, 61, 0.2);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1080px) and (min-width: 781px) {
  .messenger-shell {
    grid-template-columns: 64px 300px minmax(0, 1fr);
  }

  .product-app .app-rail {
    padding-right: 7px;
    padding-left: 7px;
  }

  .rail-action.active::before {
    left: -7px;
  }

  .message-timeline {
    padding-right: 28px;
    padding-left: 28px;
  }
}

@media (max-width: 780px) {
  .compatibility-actions,
  .app-entry-actions {
    width: min(320px, 100%);
    align-items: stretch;
    flex-direction: column;
  }

  .compatibility-actions .button,
  .app-entry-actions .button {
    width: 100%;
    justify-content: center;
  }

  .product-app-page {
    height: 100dvh;
  }

  .messenger-shell {
    display: block;
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .product-app[data-active-view="chats"][data-mobile-pane="chat-detail"] .messenger-shell {
    padding-bottom: 0;
  }

  .product-app .app-rail {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(64px + env(safe-area-inset-bottom));
    display: block;
    border: 0;
    border-top: 1px solid var(--pa-line);
    border-radius: 0;
    padding: 0 4px env(safe-area-inset-bottom);
    background: var(--pa-surface);
  }

  .product-app[data-active-view="chats"][data-mobile-pane="chat-detail"] .app-rail {
    display: none;
  }

  .rail-brand,
  .rail-footer {
    display: none;
  }

  .rail-navigation {
    height: 64px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
  }

  .rail-action {
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    border-radius: 0;
  }

  .rail-action > span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    color: inherit;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
  }

  .rail-action svg {
    width: 21px;
    height: 21px;
  }

  .rail-action.active {
    background: transparent;
  }

  .rail-action.active::before {
    top: 0;
    left: 50%;
    width: 30px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    transform: translateX(-50%);
  }

  .rail-action em {
    top: 7px;
    right: calc(50% - 21px);
    border-color: var(--pa-surface);
  }

  .messenger-sidebar,
  .app-workspace {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .messenger-sidebar {
    display: none;
    grid-template-rows: 62px 54px 46px minmax(0, 1fr);
    border-right: 0;
  }

  .product-app[data-mobile-pane="chat-list"] .messenger-sidebar {
    display: grid;
  }

  .product-app[data-mobile-pane="chat-list"] .app-workspace {
    display: none;
  }

  .app-workspace {
    grid-template-rows: 58px minmax(0, 1fr);
  }

  .workspace-header {
    padding: 0 10px;
  }

  .product-app[data-active-view="chats"][data-mobile-pane="chat-detail"] .mobile-back {
    display: grid;
  }

  .workspace-refresh {
    margin-left: auto;
  }

  .feed-view {
    grid-template-rows: 48px minmax(0, 1fr);
  }

  .feed-source-tabs {
    justify-content: stretch;
    padding: 7px 10px;
  }

  .feed-source-tabs button {
    min-width: 0;
    flex: 1;
  }

  .feed-scroll {
    padding: 10px 10px 84px;
  }

  .feed-list {
    gap: 10px;
    padding-bottom: 12px;
  }

  .feed-stories {
    margin-bottom: 10px;
    border-radius: 9px;
    padding-right: 11px;
    padding-left: 11px;
    box-shadow: none;
  }

  .feed-composer {
    margin-bottom: 10px;
    border-radius: 9px;
    padding: 12px;
    box-shadow: none;
  }

  .feed-create-fab {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    width: 58px;
    min-width: 58px;
    padding: 0;
  }

  .feed-create-fab span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .feed-composer-footer {
    align-items: flex-end;
    flex-wrap: wrap;
  }

  .feed-composer-options {
    flex: 1 1 260px;
  }

  .feed-post-dialog {
    width: 100vw;
    max-width: none;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .feed-create-dialog,
  .feed-recipient-dialog,
  .chat-create-dialog {
    width: 100vw;
    max-width: none;
    max-height: min(92dvh, 760px);
    margin: auto 0 0;
    border-width: 1px 0 0;
    border-radius: 18px 18px 0 0;
  }

  .feed-create-shell,
  .feed-recipient-shell,
  .chat-create-shell {
    max-height: min(92dvh, 760px);
  }

  .feed-create-shell > .feed-composer-footer,
  .feed-recipient-actions,
  .chat-create-actions {
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }

  .channel-post-timeline {
    padding: 10px 10px calc(90px + env(safe-area-inset-bottom));
  }

  .feed-post-dialog-shell {
    max-height: 100dvh;
  }

  .feed-stories-list {
    gap: 10px;
  }

  .feed-pagination {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .profile-content-list {
    gap: 10px;
    margin-top: 14px;
  }

  .profile-content-section {
    padding-bottom: 18px;
  }

  .feed-card {
    box-shadow: none;
  }

  .message-timeline {
    padding: 16px 12px 20px;
  }

  .chat-history-state {
    top: 7px;
    max-width: calc(100% - 8px);
    margin-bottom: 3px;
  }

  .chat-new-messages {
    right: 10px;
    bottom: 10px;
    width: 46px;
    min-width: 46px;
    min-height: 46px;
    justify-content: center;
    border-radius: 50%;
    padding: 5px;
  }

  .chat-new-messages-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .chat-new-messages-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .chat-new-messages-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    border: 2px solid var(--pa-workspace);
    padding: 0 4px;
    font-size: 9px;
  }

  .chat-message-tools {
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 7px;
    padding: 8px;
  }

  .chat-message-filter {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .chat-message-filter button {
    flex: 1;
  }

  .message-bubble {
    max-width: 86%;
  }

  .chat-composer {
    padding: 7px 8px calc(6px + env(safe-area-inset-bottom));
  }

  .composer-row {
    gap: 6px;
  }

  .composer-meta {
    padding: 0 2px;
  }

  .composer-capture-bar {
    gap: 5px;
    padding-right: 5px;
    padding-left: 5px;
  }

  .composer-capture-hint {
    font-size: 10px;
  }

  .composer-capture-lock {
    right: -8px;
    width: 60px;
    border-radius: 30px;
  }

  .composer-capture-review {
    gap: 9px;
    border-radius: 15px;
    padding: 10px;
  }

  .profile-hero {
    min-height: 238px;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    padding: 126px 18px 20px;
  }

  .profile-cover {
    height: 148px;
  }

  .profile-avatar {
    width: 68px;
    height: 68px;
    font-size: 23px;
  }

  .profile-name-line {
    margin-bottom: -6px;
    transform: translateY(-6px);
  }

  .profile-hero h2 {
    color: #fff;
    text-shadow: 0 1px 5px rgba(9, 17, 27, 0.72);
  }

  .profile-hero-actions {
    grid-column: 2;
    justify-self: start;
    margin-top: -7px;
  }

  .profile-dialog {
    width: min(480px, calc(100vw - 20px));
    max-height: calc(100dvh - 20px);
  }

  .profile-dialog.feed-create-dialog,
  .profile-dialog.feed-recipient-dialog,
  .profile-dialog.chat-create-dialog {
    width: 100vw;
    max-width: none;
    max-height: min(92dvh, 760px);
  }

  .chat-details-shell {
    max-height: calc(100dvh - 22px);
  }

  .profile-edit-form {
    max-height: calc(100dvh - 22px);
  }

  .profile-crop-form {
    max-height: calc(100dvh - 22px);
  }

  .chat-create-kind,
  .chat-create-grid,
  .chat-create-toggles {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-section {
    padding: 0 16px;
  }

  .settings-account-card-wrap {
    padding: 16px;
  }

  .setting-row {
    min-height: 66px;
  }

  .theme-setting-row {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .theme-segmented {
    width: 100%;
    margin-left: 49px;
  }

  .app-toast {
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    left: 12px;
    max-width: none;
  }
}

@media (max-width: 360px) {
  .composer-emoji-picker {
    grid-template-columns: repeat(5, 36px);
  }

  .composer-capture-hint {
    max-width: 82px;
  }

  .capture-review-media video {
    width: 138px;
    height: 138px;
  }
}

@media (forced-colors: active) {
  .composer-field:focus-within {
    outline: 2px solid Highlight;
    outline-offset: 2px;
    box-shadow: none;
  }

  .composer-capture-lock,
  .composer-capture-control,
  .capture-review-actions button,
  .capture-trim-ranges input::-webkit-slider-thumb {
    border: 2px solid ButtonText;
  }

  .feed-create-fab,
  .feed-recipient-option.selected,
  .chat-new-messages {
    border: 2px solid ButtonText;
  }
}

@media (max-width: 430px) {
  .app-entry-actions {
    width: min(100%, 320px);
    align-items: stretch;
    flex-direction: column;
  }

  .product-app .app-entry-actions .button {
    width: 100%;
  }

  .feed-card-head {
    padding-right: 12px;
    padding-left: 12px;
  }

  .feed-body,
  .feed-card-metrics {
    padding-right: 12px;
    padding-left: 12px;
  }

  .feed-card-metrics {
    gap: 5px;
    padding-right: 7px;
    padding-left: 7px;
  }

  .feed-card-primary-actions {
    gap: 1px;
  }

  .feed-metric {
    gap: 4px;
    padding: 6px 5px;
  }

  .feed-metric svg {
    width: 16px;
    height: 16px;
  }

  .feed-composer-attachments {
    grid-template-columns: 1fr;
  }

  .feed-composer-submit {
    margin-left: auto;
  }

  .feed-publisher-select select {
    max-width: 172px;
  }

  .feed-post-detail,
  .feed-comments-list,
  .feed-comment-form {
    padding-right: 10px;
    padding-left: 10px;
  }

  .feed-comments > header {
    padding-right: 10px;
    padding-left: 10px;
  }

  .feed-comment-replies {
    margin-left: 14px;
    padding-left: 8px;
  }

  .feed-comment > .feed-comment-body,
  .feed-comment-reply-context,
  .feed-comment-action-status {
    margin-left: 0;
  }

  .feed-comment > footer {
    margin-left: -2px;
  }

  .theme-segmented {
    margin-left: 0;
  }

  .theme-segmented button {
    gap: 4px;
    padding: 0 6px;
    font-size: 10px;
  }

  .profile-dialog-header,
  .profile-form-fields,
  .profile-dialog-actions {
    padding-right: 14px;
    padding-left: 14px;
  }

  .chat-details-hero {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 14px;
  }

  .chat-details-cover {
    margin: -18px -14px 2px;
  }

  .chat-details-avatar {
    width: 58px;
    height: 58px;
    font-size: 21px;
  }

  .chat-details-status {
    padding-right: 14px;
    padding-left: 14px;
  }

  .chat-profile-content {
    padding-right: 14px;
    padding-left: 14px;
  }

  .chat-settings-actions {
    padding-right: 14px;
    padding-left: 14px;
  }

  .chat-privacy-settings,
  .feed-create-body,
  .feed-recipient-body,
  .feed-create-shell > .feed-composer-footer {
    padding-right: 14px;
    padding-left: 14px;
  }

  .profile-form-status {
    margin-right: 14px;
    margin-left: 14px;
  }

  .profile-decoration-fields {
    grid-template-columns: 1fr;
  }

  .profile-crop-body {
    grid-template-columns: 1fr;
    padding-right: 14px;
    padding-left: 14px;
  }

  .product-app .profile-crop-rotate {
    width: 100%;
  }

  .profile-dialog-actions .button {
    min-width: 0;
    flex: 1;
  }

  .action-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
  }
}

/* Chat motion is decorative: semantic state always commits before these effects. */
@keyframes chat-motion-message-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 7px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes chat-motion-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes chat-motion-row-enter {
  from {
    opacity: 0;
    transform: translate3d(-6px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes chat-motion-pane-forward {
  from {
    opacity: 0;
    transform: translate3d(12px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes chat-motion-pane-back {
  from {
    opacity: 0;
    transform: translate3d(-12px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes chat-motion-pop {
  from {
    opacity: 0;
    transform: translate3d(0, 4px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes chat-motion-dialog-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.product-app[data-motion-mode="full"] :where(
  button,
  a[href],
  [role="button"]
):not(:disabled):not([aria-disabled="true"]),
.product-app[data-motion-mode="lite"] :where(
  button,
  a[href],
  [role="button"]
):not(:disabled):not([aria-disabled="true"]) {
  transition-property: transform, opacity, color, background-color, border-color;
  transition-duration: var(--chat-motion-press);
  transition-timing-function: var(--chat-motion-ease);
}

.product-app[data-motion-mode="full"]:not([data-motion-paused="true"]) :where(
  button,
  a[href],
  [role="button"]
):not(:disabled):not([aria-disabled="true"]):active,
.product-app[data-motion-mode="lite"]:not([data-motion-paused="true"]) :where(
  button,
  a[href],
  [role="button"]
):not(:disabled):not([aria-disabled="true"]):active {
  transform: scale(0.97);
}

.product-app[data-motion-mode="full"] .chat-list-item {
  transition-duration: 80ms, 110ms, 110ms, 110ms, 110ms, 110ms;
}

.product-app[data-motion-mode="full"] .chat-motion-message-enter {
  transform-origin: bottom left;
  animation: chat-motion-message-enter var(--chat-motion-message) var(--chat-motion-ease) both;
}

.product-app[data-motion-mode="full"] .chat-motion-message-enter.own {
  transform-origin: bottom right;
}

.product-app[data-motion-mode="full"] .chat-motion-row-enter {
  animation: chat-motion-row-enter 140ms var(--chat-motion-ease) both;
}

.product-app[data-motion-mode="full"] .chat-motion-pane-forward {
  animation: chat-motion-pane-forward var(--chat-motion-pane) var(--chat-motion-ease) both;
}

.product-app[data-motion-mode="full"] .chat-motion-pane-back {
  animation: chat-motion-pane-back var(--chat-motion-pane) var(--chat-motion-ease) both;
}

.product-app[data-motion-mode="full"] .chat-motion-view-enter,
.product-app[data-motion-mode="full"] .chat-motion-chat-switch,
.product-app[data-motion-mode="full"] .chat-motion-ack {
  animation: chat-motion-fade var(--chat-motion-fast) var(--chat-motion-ease) both;
}

.product-app[data-motion-mode="lite"] .chat-motion-message-enter,
.product-app[data-motion-mode="lite"] .chat-motion-view-enter,
.product-app[data-motion-mode="lite"] .chat-motion-chat-switch,
.product-app[data-motion-mode="lite"] .chat-motion-ack {
  animation: chat-motion-fade var(--chat-motion-fast) ease-out both;
}

.product-app[data-motion-mode="full"] :where(
  .chat-message-tools:not([hidden]),
  .chat-history-state:not([hidden]),
  .chat-new-messages:not([hidden]),
  .composer-emoji-picker:not([hidden]),
  .composer-capture-bar:not([hidden]),
  .composer-capture-review:not([hidden]),
  .composer-capture-preview:not([hidden]),
  .app-toast:not([hidden])
) {
  animation: chat-motion-pop var(--chat-motion-fast) var(--chat-motion-ease) both;
}

.product-app[data-motion-mode="lite"] :where(
  .chat-message-tools:not([hidden]),
  .chat-history-state:not([hidden]),
  .chat-new-messages:not([hidden]),
  .composer-emoji-picker:not([hidden]),
  .composer-capture-bar:not([hidden]),
  .composer-capture-review:not([hidden]),
  .composer-capture-preview:not([hidden]),
  .app-toast:not([hidden])
) {
  animation: chat-motion-fade var(--chat-motion-fast) ease-out both;
}

.product-app[data-motion-mode="full"] .profile-dialog[open] {
  animation: chat-motion-dialog-enter 160ms var(--chat-motion-ease) both;
}

.product-app[data-motion-mode="full"] .profile-dialog[open]::backdrop,
.product-app[data-motion-mode="lite"] .profile-dialog[open],
.product-app[data-motion-mode="lite"] .profile-dialog[open]::backdrop {
  animation: chat-motion-fade var(--chat-motion-fast) ease-out both;
}

.product-app[data-motion-mode="full"] :where(
  .composer-action-button,
  .composer-capture-control
) > svg:not([hidden]) {
  animation: chat-motion-pop var(--chat-motion-fast) var(--chat-motion-ease) both;
}

.product-app[data-motion-mode="lite"] .composer-voice-button.recording {
  animation: none;
}

.product-app[data-motion-mode="reduced"],
.product-app[data-motion-paused="true"] {
  scroll-behavior: auto;
}

.product-app[data-motion-mode="reduced"] *,
.product-app[data-motion-mode="reduced"] *::before,
.product-app[data-motion-mode="reduced"] *::after,
.product-app[data-motion-paused="true"] *,
.product-app[data-motion-paused="true"] *::before,
.product-app[data-motion-paused="true"] *::after {
  animation: none !important;
  transition-duration: 0s !important;
  scroll-behavior: auto !important;
}

.product-app[data-motion-mode="reduced"] :where(
  .chat-new-messages,
  .composer-action-button
):hover {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .product-app *,
  .product-app *::before,
  .product-app *::after {
    animation: none !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}
