@import url("/assets/fonts/fonts.css?v=20260517-self-hosted-fonts");

:root {
  --bg: #0b0d10;
  --panel: #111418;
  --panel-soft: #171b21;
  --card: #111418;
  --input: #20242c;
  --border: #343a46;
  --border-soft: #2b3038;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --accent: #e5e7eb;
  --accent-strong: #f8fafc;
  --blue: #252a33;
  --blue-border: #596273;
  --blue-text: var(--blue-border);
  --gold: #9ca3af;
  --red: var(--accent);
  --red-border: #f85149;
  --surface-soft: var(--panel-soft);
  --border-strong: var(--border);
  --shadow: rgba(0, 0, 0, 0.32);
  --font-body: "Courier New", Courier, monospace;
  --font-weight: 800;
  --field-font-family: var(--font-body);
  --field-font-size: 13px;
  --title-size: 28px;
  --panel-title-size: 22px;
  --content-size: 15px;
  --title-padding: 4px;
  --text-padding: 8px;
  --chat-box-font-size: 15px;
  --chat-box-padding: 12px;
  --chat-box-border-radius: 14px;
  --button-bg: #111418;
  --button-text: #f8fafc;
  --button-border: #343a46;
  --button-primary-bg: #e5e7eb;
  --button-primary-text: #0b0d10;
  --button-primary-border: #f8fafc;
  --button-blue-bg: #252a33;
  --button-blue-text: #f8fafc;
  --button-blue-border: #596273;
  --button-gold-bg: #9ca3af;
  --button-gold-text: #0b0d10;
  --button-gold-border: #cbd5e1;
  --button-danger-bg: #4b1114;
  --button-danger-text: #fee2e2;
  --button-danger-border: #f87171;
  --theme-background-image: none;
  --theme-background-opacity: 1;
  --spotlight-canvas-opacity: 1;
  --spotlight-panel-mix: 92%;
  --spotlight-sidebar-mix: 88%;
  --spotlight-dark-base: #050712;
  --spotlight-dark-lift: #111827;
}

.l2c-screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.preloader-active {
  overflow: hidden;
}

.l2c-preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #05060d;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.03);
  filter: blur(14px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out, filter 0.45s ease-out, visibility 0s linear 0.45s;
}

.l2c-preloader.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  filter: blur(0);
  animation: l2cPreloaderEnter 0.45s ease-out both;
  transition: opacity 0.45s ease-out, transform 0.45s ease-out, filter 0.45s ease-out;
}

.l2c-preloader-glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.l2c-preloader-glow-main,
.l2c-preloader-glow-left,
.l2c-preloader-glow-right {
  position: absolute;
  display: block;
  border-radius: 999px;
  pointer-events: none;
}

.l2c-preloader-glow-main {
  left: 50%;
  top: 50%;
  width: min(820px, 112vw);
  height: min(820px, 112vw);
  background: radial-gradient(circle, rgba(255, 20, 92, 0.18), rgba(0, 138, 214, 0.14) 34%, rgba(255, 255, 255, 0.04) 54%, transparent 72%);
  filter: blur(32px);
  transform: translate(-50%, -50%);
  animation: l2cGlowMain 16s linear infinite;
}

.l2c-preloader-glow-left {
  left: -112px;
  top: 48px;
  width: 320px;
  height: 320px;
  background: rgba(255, 11, 85, 0.18);
  filter: blur(48px);
  animation: l2cGlowLeft 10s ease-in-out infinite;
}

.l2c-preloader-glow-right {
  right: -96px;
  bottom: 32px;
  width: 384px;
  height: 384px;
  background: rgba(0, 138, 214, 0.2);
  filter: blur(48px);
  animation: l2cGlowRight 11s ease-in-out infinite;
}

.l2c-preloader-figure {
  position: relative;
  display: grid;
  width: min(24rem, 82vw);
  height: min(24rem, 82vw);
  place-items: center;
}

.l2c-preloader-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  animation: l2cSpin 22s linear infinite, l2cRingScale 5s ease-in-out infinite;
}

.l2c-preloader-ring.dashed {
  inset: 40px;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.15);
  animation: l2cSpinReverse 17s linear infinite, l2cRingDashScale 5.6s ease-in-out infinite;
}

.l2c-preloader-svg {
  width: min(24rem, 82vw);
  height: min(24rem, 82vw);
  overflow: visible;
  transform-style: preserve-3d;
  animation: l2cTilt 7.5s ease-in-out infinite;
}

.l2c-eight-track,
.l2c-eight-dots {
  transform-origin: 210px 210px;
}

.l2c-eight-track {
  animation: l2cSpinReverse 8.5s linear infinite;
}

.l2c-eight-dots {
  animation: l2cSpin 5.4s linear infinite;
}

.l2c-eight-shadow,
.l2c-eight-soft,
.l2c-eight-main {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.l2c-eight-shadow {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 44;
  animation: l2cShadowPulse 2.8s ease-in-out infinite;
}

.l2c-eight-soft {
  stroke-width: 32;
  stroke-dasharray: 220 210;
  animation: l2cSoftDash 4.2s ease-in-out infinite;
}

.l2c-eight-main {
  stroke-width: 16;
  stroke-dasharray: 120 46 22 46;
  animation: l2cMainDash 3.2s linear infinite, l2cMainWidth 2.4s ease-in-out infinite;
}

.l2c-eight-dots .dot {
  transform-origin: center;
}

.l2c-eight-dots .red {
  fill: #ff0b55;
  animation: l2cDotPulseRed 1.6s ease-in-out infinite;
}

.l2c-eight-dots .blue {
  fill: #008ad6;
  animation: l2cDotPulseBlue 1.6s ease-in-out infinite;
}

@keyframes l2cPreloaderEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes l2cGlowMain {
  0% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  33% { transform: translate(-50%, -50%) scale(1.14) rotate(120deg); }
  66% { transform: translate(-50%, -50%) scale(0.94) rotate(240deg); }
  100% { transform: translate(-50%, -50%) scale(1) rotate(360deg); }
}

@keyframes l2cGlowLeft {
  0%, 100% { transform: translate(0, 0) scale(1); }
  34% { transform: translate(130px, 80px) scale(1.25); }
  67% { transform: translate(40px, -35px) scale(0.9); }
}

@keyframes l2cGlowRight {
  0%, 100% { transform: translate(0, 0) scale(1); }
  34% { transform: translate(-130px, -80px) scale(0.86); }
  67% { transform: translate(-30px, 45px) scale(1.2); }
}

@keyframes l2cSpin {
  to { transform: rotate(360deg); }
}

@keyframes l2cSpinReverse {
  to { transform: rotate(-360deg); }
}

@keyframes l2cRingScale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes l2cRingDashScale {
  0%, 100% { transform: scale(1); }
  34% { transform: scale(0.94); }
  67% { transform: scale(1.03); }
}

@keyframes l2cTilt {
  0%, 100% { transform: perspective(900px) rotateY(0deg) rotateX(0deg); }
  25% { transform: perspective(900px) rotateY(24deg) rotateX(10deg); }
  50% { transform: perspective(900px) rotateY(0deg) rotateX(0deg); }
  75% { transform: perspective(900px) rotateY(-24deg) rotateX(-10deg); }
}

@keyframes l2cShadowPulse {
  0%, 100% { opacity: 0.16; }
  50% { opacity: 0.32; }
}

@keyframes l2cSoftDash {
  0%, 100% { stroke-dashoffset: 0; opacity: 0.35; }
  45% { stroke-dashoffset: -210; opacity: 0.7; }
  75% { stroke-dashoffset: -410; opacity: 0.45; }
}

@keyframes l2cMainDash {
  to { stroke-dashoffset: -468; }
}

@keyframes l2cMainWidth {
  0%, 100% { stroke-width: 13; }
  50% { stroke-width: 22; }
}

@keyframes l2cDotPulseRed {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  34% { opacity: 1; transform: scale(1.45); }
  67% { opacity: 0.55; transform: scale(0.85); }
}

@keyframes l2cDotPulseBlue {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  34% { opacity: 0.65; transform: scale(1); }
  67% { opacity: 1; transform: scale(1.45); }
}

.friends-profile-stack {
  display: grid;
  gap: 16px;
}

.friend-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.friend-card.vip-member-card {
  padding: 24px;
}

.friend-profile-media,
.friend-profile-details {
  min-width: 0;
}

.friend-profile-media {
  display: flex;
}

.friend-profile-photo {
  width: 100%;
  height: 100%;
  min-height: 280px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  border-radius: 8px;
  object-fit: cover;
  background: var(--panel-soft);
}

.friend-profile-photo-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 64px;
  font-weight: 900;
}

.friend-profile-details {
  display: grid;
  align-content: start;
  gap: 12px;
}

.friend-profile-details p {
  margin: 0;
}

.friend-profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.friend-profile-head h2 {
  margin: 0;
}

.friend-profile-head strong {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--input);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.friend-card.vip-member-card .friend-profile-head strong {
  border-color: rgba(245, 185, 66, 0.72);
  background: rgba(245, 185, 66, 0.18);
  color: #ffe8aa;
}

body[data-theme="day"] .friend-card.vip-member-card .friend-profile-head strong {
  border-color: #cf8d00;
  background: #fff0bd;
  color: #5c3700;
}

.friend-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.friend-card-actions .btn {
  width: 100%;
}

.relationship-lines {
  display: grid;
  gap: 8px;
  margin: 8px 0 12px;
  width: 100%;
}

.relationship-line {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(46, 160, 67, 0.55);
  border-radius: 8px;
  background: rgba(46, 160, 67, 0.16);
  color: #d7ffe1;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.relationship-link-panel {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-soft);
}

.relationship-link-panel.compact {
  margin-top: auto;
}

.relationship-link-head,
.relationship-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.relationship-link-panel .field {
  margin: 0;
}

body[data-theme="day"] .relationship-line {
  border-color: #167a3a;
  background: #c9f2d2;
  color: #052e16;
  text-shadow: none;
}

body[data-theme="day"] {
  --bg: #f2f4f7;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --card: #ffffff;
  --input: #edf0f4;
  --border: #c9d1dc;
  --border-soft: #d8dde5;
  --text: #111827;
  --muted: #4b5563;
  --subtle: #6b7280;
  --accent: #111827;
  --accent-strong: #374151;
  --blue: #e5e7eb;
  --blue-border: #9ca3af;
  --shadow: rgba(43, 52, 66, 0.13);
  --button-bg: #ffffff;
  --button-text: #111827;
  --button-border: #c9d1dc;
  --button-primary-bg: #111827;
  --button-primary-text: #ffffff;
  --button-primary-border: #6b7280;
  --button-blue-bg: #e5e7eb;
  --button-blue-text: #111827;
  --button-blue-border: #9ca3af;
  --button-gold-bg: #d1d5db;
  --button-gold-text: #111827;
  --button-gold-border: #9ca3af;
  --button-danger-bg: #fee2e2;
  --button-danger-text: #7f1d1d;
  --button-danger-border: #f87171;
  --spotlight-canvas-opacity: 0.96;
  --spotlight-panel-mix: 84%;
  --spotlight-sidebar-mix: 88%;
  --spotlight-dark-base: #101827;
  --spotlight-dark-lift: #1e293b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--content-size);
  font-weight: var(--font-weight);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.l2c-spotlight-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: var(--spotlight-canvas-opacity);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: var(--theme-background-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: var(--theme-background-opacity);
}

body:not(.has-custom-background)::before {
  display: none;
}

#root {
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

button {
  font: inherit;
}

input,
select,
textarea {
  font-family: var(--field-font-family);
  font-size: var(--field-font-size);
  font-weight: var(--font-weight);
  line-height: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  max-width: 100vw;
  overflow-x: hidden;
  transition: grid-template-columns 180ms ease;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.menu-float {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 30;
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 1px solid var(--blue-border);
  border-radius: 12px;
  background: var(--blue);
  box-shadow: 0 14px 34px var(--shadow);
  cursor: pointer;
}

.menu-float span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--text);
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  align-self: start;
  width: 250px;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 18px;
  background: color-mix(in srgb, var(--panel) var(--spotlight-sidebar-mix), transparent);
  backdrop-filter: blur(14px);
  border-right: 1px solid var(--border-soft);
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 20;
  transition: transform 240ms cubic-bezier(.2, .8, .2, 1), opacity 180ms ease, padding 180ms ease;
  overscroll-behavior: contain;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0 16px;
}

.brand img {
  width: 170px;
  max-width: 100%;
  height: auto;
}

.nav {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

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

.nav-label {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav a,
.theme-toggle {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  min-width: 0;
  text-decoration: none;
}

.nav a:hover,
.theme-toggle:hover {
  border-color: var(--border);
  background: var(--panel-soft);
}

.nav a.active {
  border-color: var(--blue-border);
  background: var(--blue);
}

.theme-box {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

.theme-toggle span:last-child {
  min-width: 72px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--input);
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.pwa-install-button {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--blue-border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--blue) 70%, var(--panel) 30%);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.pwa-install-button:disabled {
  cursor: default;
  opacity: .88;
}

.pwa-install-button img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.pwa-install-button span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.pwa-install-button strong {
  font-size: 14px;
  line-height: 1.1;
}

.pwa-install-button em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.pwa-install-button.installed {
  border-color: rgba(46, 160, 67, 0.55);
  background: rgba(35, 134, 54, 0.22);
}

.pwa-install-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.pwa-install-banner {
  display: none;
}

.sidebar-collapsed .sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 250px;
  transform: translateX(-110%);
  opacity: 0;
  pointer-events: none;
}

.main {
  grid-column: 2;
  min-width: 0;
  padding: 28px;
  display: grid;
  gap: 22px;
}

.sidebar-collapsed .main {
  grid-column: 1;
}

.page {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
  min-width: 0;
}

.hero,
.panel,
.card,
.filters {
  width: 100%;
  min-width: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel-soft) var(--spotlight-panel-mix), transparent) 0%, color-mix(in srgb, var(--panel) var(--spotlight-panel-mix), transparent) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 18px 48px var(--shadow);
}

.hero {
  padding: 24px;
}

.hero h1,
.panel h2,
.card h3 {
  margin: 0;
  padding-bottom: var(--title-padding);
}

.hero h1 {
  font-size: var(--title-size);
  line-height: 1.1;
}

.panel h2,
.card h3 {
  font-size: var(--panel-title-size);
  line-height: 1.18;
}

.hero p,
.panel p,
.card p {
  margin: var(--text-padding) 0;
  color: var(--muted);
  font-size: var(--content-size);
  line-height: 1.5;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

.panel,
.card,
.filters {
  padding: 20px;
}

body.appearance-glass-goo {
  --glass-goo-border: color-mix(in srgb, var(--blue-border) 54%, rgba(255, 255, 255, 0.58));
  --glass-goo-sheen: color-mix(in srgb, var(--accent) 24%, rgba(255, 255, 255, 0.5));
  --glass-goo-glow: color-mix(in srgb, var(--accent-strong) 28%, transparent);
}

body.appearance-glass-goo .hero,
body.appearance-glass-goo .panel,
body.appearance-glass-goo .card,
body.appearance-glass-goo .filters,
body.appearance-glass-goo .appearance-control-group,
body.appearance-glass-goo .appearance-background-card,
body.appearance-glass-goo .appearance-preview,
body.appearance-glass-goo .message,
body.appearance-glass-goo .room-card,
body.appearance-glass-goo .event-card,
body.appearance-glass-goo .group-card,
body.appearance-glass-goo .marketplace-card,
body.appearance-glass-goo .oracle-reader-card {
  position: relative;
  overflow: hidden;
  border-color: var(--glass-goo-border);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06) 42%, rgba(0, 0, 0, 0.14)),
    color-mix(in srgb, var(--panel) 68%, transparent);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 18px 16px 36px rgba(255, 255, 255, 0.08),
    inset -22px -20px 38px rgba(0, 0, 0, 0.12),
    0 24px 70px var(--shadow);
  backdrop-filter: blur(18px) saturate(1.22);
  -webkit-backdrop-filter: blur(18px) saturate(1.22);
}

body.appearance-glass-goo .hero::before,
body.appearance-glass-goo .panel::before,
body.appearance-glass-goo .card::before,
body.appearance-glass-goo .filters::before,
body.appearance-glass-goo .appearance-control-group::before,
body.appearance-glass-goo .appearance-background-card::before,
body.appearance-glass-goo .appearance-preview::before,
body.appearance-glass-goo .message::before,
body.appearance-glass-goo .room-card::before,
body.appearance-glass-goo .event-card::before,
body.appearance-glass-goo .group-card::before,
body.appearance-glass-goo .marketplace-card::before,
body.appearance-glass-goo .oracle-reader-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 32%, rgba(255, 255, 255, 0.08) 72%),
    linear-gradient(90deg, transparent 0 64%, var(--glass-goo-sheen) 92%, transparent 100%);
  opacity: 0.7;
  mix-blend-mode: screen;
}

body.appearance-glass-goo .hero::after,
body.appearance-glass-goo .panel::after,
body.appearance-glass-goo .card::after,
body.appearance-glass-goo .filters::after,
body.appearance-glass-goo .message::after {
  content: "";
  position: absolute;
  right: -28px;
  top: 18%;
  z-index: 0;
  width: 72px;
  height: 54%;
  min-height: 64px;
  border-radius: 999px 0 0 999px;
  pointer-events: none;
  background: linear-gradient(180deg, var(--glass-goo-sheen), var(--glass-goo-glow));
  filter: blur(13px);
  opacity: 0.24;
  transform: scaleX(0.68);
}

body.appearance-glass-goo .hero > *,
body.appearance-glass-goo .panel > *,
body.appearance-glass-goo .card > *,
body.appearance-glass-goo .filters > *,
body.appearance-glass-goo .appearance-control-group > *,
body.appearance-glass-goo .appearance-background-card > *,
body.appearance-glass-goo .appearance-preview > *,
body.appearance-glass-goo .message > *,
body.appearance-glass-goo .room-card > *,
body.appearance-glass-goo .event-card > *,
body.appearance-glass-goo .group-card > *,
body.appearance-glass-goo .marketplace-card > *,
body.appearance-glass-goo .oracle-reader-card > * {
  position: relative;
  z-index: 1;
}

body.appearance-glass-goo .btn,
body.appearance-glass-goo .tiny-btn,
body.appearance-glass-goo .theme-toggle,
body.appearance-glass-goo .nav a,
body.appearance-glass-goo input,
body.appearance-glass-goo select,
body.appearance-glass-goo textarea {
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.appearance-glass-goo .hero,
  body.appearance-glass-goo .panel,
  body.appearance-glass-goo .card,
  body.appearance-glass-goo .filters,
  body.appearance-glass-goo .message {
    background: color-mix(in srgb, var(--panel) 92%, var(--panel-soft) 8%);
  }
}

.public-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.public-cta-panel h2 {
  max-width: 760px;
}

.public-cta-panel .button-row {
  margin-top: 0;
  justify-content: flex-end;
}

.public-feature-preview {
  display: grid;
  gap: 16px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.feature-preview-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 240px;
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.feature-preview-card h3 {
  margin: 0;
  font-size: 22px;
}

.feature-preview-card .btn {
  justify-self: start;
  margin-top: auto;
}

.blog-preview-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.blog-preview-card .button-row {
  margin-top: auto;
}

.locked-route em {
  color: var(--gold);
}

.auth-benefits-panel {
  grid-column: 1 / -1;
}

.stat {
  display: grid;
  gap: 6px;
}

.stat span,
.label {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 800;
}

.stat strong {
  font-size: var(--title-size);
}

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

.appearance-studio {
  display: grid;
  gap: 18px;
  border-color: var(--blue-border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, var(--blue) 8%), var(--panel));
}

.appearance-head,
.appearance-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.appearance-toolbar .field {
  min-width: 0;
}

.appearance-body {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  align-items: stretch;
}

.appearance-side,
.appearance-controls {
  display: grid;
  gap: 14px;
}

.appearance-side {
  grid-template-rows: auto auto minmax(320px, 1fr);
  align-content: stretch;
}

.appearance-controls .appearance-control-group,
.appearance-background-card,
.appearance-preview {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 86%, var(--panel-soft) 14%);
}

.appearance-preview {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.appearance-preview strong {
  font-size: var(--panel-title-size);
}

.appearance-control-group {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.appearance-control-group h3 {
  margin: 0;
  color: var(--subtle);
  font-size: 13px;
}

.appearance-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.appearance-background-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.appearance-background-card {
  grid-template-rows: auto minmax(0, 1fr);
}

.appearance-background-card .appearance-background-row {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(280px, 1fr) auto;
  min-height: 100%;
}

.appearance-background-card .appearance-background-preview {
  min-height: 280px;
}

.appearance-background-preview {
  --preview-background-image: none;
  --preview-background-opacity: 1;
  position: relative;
  min-height: 120px;
  display: grid;
  place-items: end start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

.appearance-background-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--preview-background-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: var(--preview-background-opacity);
}

.appearance-background-preview span {
  position: relative;
  z-index: 1;
  padding: 6px 9px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.appearance-background-preview:not(.has-background)::before {
  display: none;
}

.appearance-background-preview.has-background {
  box-shadow: none;
}

.appearance-background-actions {
  display: grid;
  align-content: center;
  gap: 10px;
}

.appearance-background-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.appearance-background-action-grid .btn {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.appearance-background-action-grid .range-field {
  min-width: 0;
}

.color-field {
  grid-template-columns: minmax(0, 1fr) 54px;
  align-items: center;
}

.color-field input[type="color"] {
  min-height: 42px;
  padding: 3px;
  cursor: pointer;
}

.range-field {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.range-field input[type="range"] {
  grid-column: 1 / -1;
  padding: 0;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 16px;
}

.auth-layout.auth-layout-verify {
  grid-template-columns: minmax(0, 760px);
}

.field {
  display: grid;
  gap: 7px;
  font-family: var(--field-font-family);
  font-weight: var(--font-weight);
  font-size: var(--field-font-size);
}

.field.full {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--input);
  color: var(--text);
  padding: 12px 14px;
}

.translation-toggle-field {
  align-content: start;
}

.switch-control {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--input);
  font-family: var(--field-font-family);
  font-size: var(--field-font-size);
  cursor: pointer;
}

.switch-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.switch-track {
  width: 56px;
  height: 30px;
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--panel-soft);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.switch-thumb {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--muted);
  transition: transform 0.2s ease, background 0.2s ease;
}

.switch-control input:focus-visible + .switch-track {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.switch-control input:checked + .switch-track {
  border-color: var(--button-primary-border);
  background: var(--button-primary-bg);
}

.switch-control input:checked + .switch-track .switch-thumb {
  transform: translateX(26px);
  background: var(--button-primary-text);
}

.switch-control strong {
  min-width: 28px;
  color: var(--text);
  text-align: right;
}

.field input[type="file"] {
  color: var(--text);
  padding: 10px 12px;
}

.field input[type="file"]::file-selector-button {
  margin-right: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-weight: var(--font-weight);
}

.file-status {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--text);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.password-field > label {
  font-weight: var(--font-weight);
}

.password-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.password-eye-control {
  grid-template-columns: minmax(0, 1fr) 48px;
}

.password-control input {
  min-width: 0;
}

.password-eye-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--input);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.password-eye-btn.active {
  border-color: var(--button-gold-border);
  background: var(--button-gold-bg);
  color: var(--button-gold-text);
}

.password-control .password-suggest-btn {
  min-height: 48px;
  white-space: nowrap;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--button-border);
  border-radius: 14px;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.btn.primary {
  background: var(--button-primary-bg);
  border-color: var(--button-primary-border);
  color: var(--button-primary-text);
}

.btn.secondary {
  background: var(--button-blue-bg);
  border-color: var(--button-blue-border);
  color: var(--button-blue-text);
}

.btn.moderation-queue-button-clear {
  border-color: rgba(46, 160, 67, 0.55);
  background: rgba(46, 160, 67, 0.18);
  color: #b8f5c7;
}

.btn.moderation-queue-button-hot {
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  border-color: #efb4b4;
  color: #fff;
}

.btn:disabled {
  opacity: 0.58;
  cursor: default;
}

.btn.blue {
  background: var(--button-blue-bg);
  border-color: var(--button-blue-border);
  color: var(--button-blue-text);
}

.btn.gold {
  background: var(--button-gold-bg);
  border-color: var(--button-gold-border);
  color: var(--button-gold-text);
}

.btn.danger {
  border-color: var(--button-danger-border);
  background: var(--button-danger-bg);
  color: var(--button-danger-text);
}

body[data-theme="day"] .btn.danger {
  border-color: var(--button-danger-border);
  background: var(--button-danger-bg);
  color: var(--button-danger-text);
}

body[data-theme="day"] .btn.danger:disabled {
  opacity: 1;
  color: var(--button-danger-text);
}

body[data-theme="day"] .btn.moderation-queue-button-clear {
  border-color: #167a3a;
  background: #c9f2d2;
  color: #052e16;
  text-shadow: none;
}

body[data-theme="day"] .btn.moderation-queue-button-hot {
  border-color: #d1242f;
  background: #d81725;
  color: #fff;
  text-shadow: none;
}

.btn.small {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
}

.dashboard-page {
  max-width: 1082px;
  gap: 18px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-grid-small {
  gap: 18px;
}

.dashboard-card {
  min-height: 206px;
  padding: 20px;
  border-color: var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--panel-soft) 0%, var(--panel) 100%);
  box-shadow: none;
}

.dashboard-card h2 {
  font-size: var(--title-size);
  line-height: 1.28;
  font-weight: 400;
}

.dashboard-card h2 strong {
  font-size: var(--title-size);
  line-height: 1.12;
  font-weight: 800;
}

.dashboard-card p {
  max-width: 300px;
  margin: 8px 0 0;
  color: #ffffff;
  line-height: 1.45;
}

.dashboard-card .blue-text {
  color: #bfe0ff;
  font-size: 14px;
}

body[data-theme="day"] .dashboard-card {
  border-color: var(--border);
  background: linear-gradient(180deg, #ffffff 0%, var(--panel-soft) 100%);
  color: var(--text);
  box-shadow: 0 10px 26px var(--shadow);
}

body[data-theme="day"] .dashboard-card h2,
body[data-theme="day"] .dashboard-card h2 strong {
  color: var(--text);
}

body[data-theme="day"] .dashboard-card p {
  color: var(--muted);
}

body[data-theme="day"] .dashboard-card .blue-text {
  color: #214e77;
}

.dashboard-notice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.dashboard-notice.success {
  border: 1px solid rgba(46, 160, 67, 0.7);
  background: rgba(46, 160, 67, 0.2);
  color: #c6f6d2;
}

.dashboard-notice.warning {
  border: 1px solid rgba(245, 158, 11, 0.78);
  background: rgba(146, 83, 6, 0.34);
  color: #ffe2ad;
}

.dashboard-notice.error {
  border: 1px solid rgba(255, 79, 88, 0.72);
  background: rgba(153, 27, 33, 0.28);
  color: #ffd0d3;
}

body[data-theme="day"] .dashboard-notice.success {
  border-color: #167a3a;
  background: #d8f8de;
  color: #052e16;
}

body[data-theme="day"] .dashboard-notice.warning {
  border-color: #d89a18;
  background: #fff2c7;
  color: #5f3b00;
}

body[data-theme="day"] .dashboard-notice.error {
  border-color: #b91c1c;
  background: #ffe1e3;
  color: #7f1d1d;
}

.dashboard-notice .btn.small {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
}

.dashboard-wide {
  min-height: 134px;
}

.dashboard-divider {
  height: 1px;
  margin: 14px 0 12px;
  background: #2d2d2d;
}

body[data-theme="day"] .dashboard-divider {
  background: var(--border-soft);
}

.dashboard-actions {
  margin-top: 12px;
}

.dashboard-actions .btn {
  min-height: 46px;
  border-radius: 13px;
}

.admin-token-gift-panel {
  display: grid;
  gap: 14px;
  border-radius: 10px;
}

.admin-token-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-token-grid .field.full {
  grid-column: 1 / -1;
}

.admin-token-results {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-token-results .tiny-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.admin-token-gift-panel .field input,
.admin-token-gift-panel .field select {
  border-radius: 6px;
}

.admin-token-gift-panel .btn {
  border-radius: 8px;
}

.admin-token-gift-panel .tiny-btn,
.admin-token-gift-panel .pill {
  border-radius: 6px;
}

.admin-token-gift-panel .dashboard-notice {
  max-width: 420px;
  padding: 8px 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 8px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-pill.gold {
  border: 1px solid #6fa8dc;
  background: #14314d;
  color: #e8f4ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-theme="day"] .status-pill.gold {
  border-color: #f0b84a;
  background: #fff2c7;
  color: #6b4300;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.room-mini-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.room-mini-list button {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid #31445a;
  border-radius: 12px;
  background: #111821;
  color: #fff;
  cursor: pointer;
}

body[data-theme="day"] .room-mini-list button {
  border-color: var(--blue-border);
  background: #f8fbff;
  color: var(--text);
}

body[data-theme="day"] .room-mini-list span {
  color: var(--muted);
}

.room-mini-list span {
  font-size: 12px;
}

.match-card {
  display: grid;
  gap: 12px;
}

.vip-member-card {
  border-color: color-mix(in srgb, #f5b942 72%, var(--border));
  background:
    linear-gradient(180deg, color-mix(in srgb, #f5b942 16%, var(--panel-soft)) 0%, color-mix(in srgb, #f5b942 8%, var(--panel)) 100%);
  box-shadow: 0 20px 54px color-mix(in srgb, #f5b942 20%, var(--shadow));
}

body[data-theme="day"] .vip-member-card {
  border-color: #cf8d00;
  background: linear-gradient(180deg, #fff6dc 0%, #f7fbff 78%);
  box-shadow: 0 18px 44px rgba(114, 78, 0, 0.16);
}

body.appearance-glass-goo .vip-member-card {
  border-color: color-mix(in srgb, #f5b942 78%, rgba(255, 255, 255, 0.62));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(245, 185, 66, 0.16) 38%, rgba(0, 0, 0, 0.12)),
    color-mix(in srgb, var(--panel) 70%, rgba(245, 185, 66, 0.18));
}

.match-card-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: 8px;
  object-fit: cover;
  background: var(--panel-soft);
}

.match-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.profile-name-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.profile-name-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.vip-member-name {
  color: #ffd36a;
  font-weight: 900;
}

body[data-theme="day"] .vip-member-name {
  color: #7a4b00;
}

.vip-crown {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #ffe6a3;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff0b8, #f5b942);
  color: #251600;
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(245, 185, 66, 0.18), 0 6px 14px rgba(0, 0, 0, 0.24);
}

.pill.vip-pill {
  border-color: rgba(245, 185, 66, 0.78);
  background: rgba(245, 185, 66, 0.2);
  color: #ffe8aa;
}

body[data-theme="day"] .pill.vip-pill {
  border-color: #cf8d00 !important;
  background: #fff0bd !important;
  color: #5c3700 !important;
  text-shadow: none !important;
}

.presence-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 999px;
  border: 2px solid var(--panel);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 12%, transparent);
}

.presence-dot-online {
  background: #17ef45;
  box-shadow: 0 0 0 1px rgba(23, 239, 69, 0.35), 0 0 12px rgba(23, 239, 69, 0.48);
}

.presence-dot-away {
  background: #ffd43b;
  box-shadow: 0 0 0 1px rgba(255, 212, 59, 0.42), 0 0 10px rgba(255, 212, 59, 0.36);
}

.presence-dot-offline {
  background: #9aa5b1;
  box-shadow: 0 0 0 1px rgba(154, 165, 177, 0.24);
}

.friend-online-toasts {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  display: grid;
  gap: 8px;
  width: min(420px, calc(100vw - 28px));
  transform: translateX(-50%);
  pointer-events: none;
}

.friend-online-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(23, 239, 69, 0.48);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 92%, rgba(23, 239, 69, 0.16));
  color: var(--text);
  box-shadow: 0 16px 38px var(--shadow);
  animation: friendOnlineToast 3s ease forwards;
}

.friend-online-toast span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.friend-online-toast strong {
  color: inherit;
  font-weight: 900;
}

body[data-theme="day"] .friend-online-toast {
  border-color: #167a3a;
  background: #ecfdf3;
  color: #052e16;
}

@keyframes friendOnlineToast {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  10%, 78% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

.pill-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--input);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.compact-pill-list {
  gap: 6px;
}

.compact-pill-list .pill {
  min-height: 28px;
  padding: 4px 8px;
}

.auth-layout .pill-list {
  gap: 10px;
  margin-top: 12px;
  align-items: center;
}

.auth-layout .pill {
  min-height: 30px;
  padding: 8px 12px;
  line-height: 1.15;
}

.plate-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid var(--blue-border);
  border-radius: 7px;
  background: color-mix(in srgb, var(--blue) 78%, #000 22%);
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.progress {
  height: 15px;
  border-radius: 999px;
  background: var(--input);
  overflow: hidden;
}

.match-card .progress {
  width: calc(100% + 5px);
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #22c7ff 0%, #ffe866 48%, #ff3b5f 100%);
  box-shadow: 0 0 14px rgba(34, 199, 255, 0.24), 0 0 12px rgba(255, 59, 95, 0.18);
}

.message {
  padding: var(--chat-box-padding);
  border: 1px solid var(--border-soft);
  border-radius: var(--chat-box-border-radius);
  background: var(--panel-soft);
  font-size: var(--chat-box-font-size);
}

.message.mine {
  border-color: var(--blue-border);
  background: var(--blue);
}

.message-stats .stat strong {
  overflow-wrap: anywhere;
}

.messages-workspace {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(240px, 300px);
  gap: 16px;
  align-items: stretch;
}

.messages-friend-rail,
.messages-thread-panel,
.message-profile-panel {
  min-width: 0;
  display: grid;
  gap: 16px;
  align-content: start;
}

.messages-thread-panel {
  min-height: 640px;
}

.messages-thread-panel .section-head {
  flex-wrap: wrap;
  align-items: flex-start;
}

.messages-thread-panel .section-head > div {
  min-width: 0;
  flex: 1 1 220px;
}

.messages-thread-panel .section-head h2,
.messages-thread-panel .section-head p {
  overflow-wrap: anywhere;
}

.messages-thread-panel .section-head .button-row {
  min-width: 0;
  max-width: 100%;
  flex: 1 1 170px;
  justify-content: flex-start;
  margin-top: 0;
}

.messages-thread-panel .section-head .btn {
  min-width: 0;
  max-width: 100%;
}

.tight-head {
  align-items: flex-start;
}

.tight-head h2,
.message-profile-head h2 {
  margin: 4px 0 0;
}

.messages-friend-list,
.direct-thread,
.message-interest-strip {
  display: grid;
  gap: 10px;
}

.messages-friend-list {
  max-height: 620px;
  overflow: auto;
  padding-right: 2px;
}

.message-friend-row {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--panel-soft);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.message-friend-row.active,
.message-friend-row:hover {
  border-color: var(--blue-border);
  background: var(--blue);
}

.message-friend-row.vip-member-row {
  border-color: rgba(245, 185, 66, 0.62);
  background: color-mix(in srgb, var(--panel-soft) 82%, #f5b942 18%);
}

.message-friend-row.vip-member-row.active,
.message-friend-row.vip-member-row:hover {
  border-color: #f5b942;
  background: color-mix(in srgb, var(--blue) 72%, #f5b942 28%);
}

body[data-theme="day"] .message-friend-row.vip-member-row {
  border-color: #cf8d00;
  background: #fff6dc;
}

.message-friend-avatar,
.message-profile-photo {
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--input);
  color: var(--text);
  font-weight: 900;
}

.message-friend-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.message-friend-row.vip-member-row .message-friend-avatar {
  border-color: rgba(245, 185, 66, 0.78);
  background: rgba(245, 185, 66, 0.22);
  color: #ffe8aa;
}

body[data-theme="day"] .message-friend-row.vip-member-row .message-friend-avatar {
  background: #fff0bd;
  color: #5c3700;
}

.message-friend-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.message-friend-copy strong,
.message-friend-copy small,
.message-friend-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-friend-copy small,
.message-friend-meta {
  color: var(--subtle);
  font-size: 12px;
}

.message-friend-meta {
  display: grid;
  gap: 5px;
  justify-items: end;
}

.message-friend-meta em {
  min-width: 24px;
  min-height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.direct-thread {
  min-height: 340px;
  max-height: 520px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 82%, #000 18%);
}

.direct-thread .game-invite-message {
  border-color: color-mix(in srgb, var(--accent) 70%, #fff 10%);
  background: color-mix(in srgb, var(--accent) 18%, var(--panel) 82%);
}

.chess-table-chat-panel {
  min-height: 520px;
}

.chess-spectator-chat-window {
  min-height: 260px;
  max-height: 420px;
}

.chess-chat-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
  margin-top: 10px;
}

.chess-chat-input-row input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--input);
  color: var(--text);
  padding: 0 14px;
}

.chess-table-people {
  margin-top: 14px;
}

.messages-thread-panel .form-grid {
  margin-top: 4px;
}

.message-profile-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.message-profile-panel .message-profile-head {
  grid-template-columns: minmax(0, 1fr);
}

.message-profile-photo-wrap,
.message-profile-details,
.message-profile-description {
  min-width: 0;
  border: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--panel-soft) 82%, var(--input) 18%);
}

.message-profile-photo-wrap,
.message-profile-details {
  min-height: 132px;
  border-radius: 14px;
}

.message-profile-panel .message-profile-photo-wrap,
.message-profile-panel .message-profile-details {
  min-height: 0;
}

.message-profile-photo-wrap {
  overflow: hidden;
}

.message-profile-head > div:not(.message-profile-photo-wrap):not(.message-profile-details) {
  display: contents;
}

.message-profile-head > div:not(.message-profile-photo-wrap):not(.message-profile-details) > .label,
.message-profile-head > div:not(.message-profile-photo-wrap):not(.message-profile-details) > h2 {
  grid-column: 2;
  min-width: 0;
}

.message-profile-head > div:not(.message-profile-photo-wrap):not(.message-profile-details) > p {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel-soft) 82%, var(--input) 18%);
  color: var(--muted);
  line-height: 1.55;
}

.message-profile-head > .message-profile-photo {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.message-profile-details {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
}

.message-profile-photo {
  width: 100%;
  height: 100%;
  min-height: 132px;
  border: 0;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.message-profile-panel .message-profile-photo {
  aspect-ratio: 4 / 5;
  min-height: 240px;
}

.message-profile-photo.initial {
  font-size: 28px;
}

.message-profile-photo > span {
  position: relative;
  z-index: 1;
  font-size: 28px;
}

.message-profile-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.message-profile-photo.photo-error img {
  display: none;
}

.message-profile-detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.message-profile-detail-list span {
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--input);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.message-profile-description {
  width: 100%;
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  color: var(--muted);
  line-height: 1.55;
}

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

.message-interest-strip span {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--input);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.compact-empty {
  min-height: 160px;
}

.direct-message-photo,
.message-photo-preview {
  width: min(100%, 420px);
  max-height: 260px;
  object-fit: cover;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}

.profile-message-composer {
  display: grid;
  gap: 16px;
}

.profile-composer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.profile-message-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  border: 0;
  background: rgba(7, 13, 24, 0.48);
  cursor: pointer;
}

.profile-message-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(820px, 100vw);
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 20px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  border-left: 1px solid var(--border-soft);
  background: var(--panel);
  color: var(--text);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.35);
  animation: oracleApplyDrawerIn 0.22s ease-out both;
}

.profile-message-drawer-head,
.profile-message-drawer-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-message-drawer-head h2 {
  margin: 4px 0 0;
}

.profile-message-drawer-topline {
  justify-content: flex-end;
}

.profile-message-drawer .chat-rules-card {
  width: 100%;
}

.profile-message-drawer-grid {
  flex: 1 1 auto;
  min-height: 0;
}

.composer-main {
  display: grid;
  gap: 12px;
  align-content: start;
}

.profile-message-field span,
.profile-message-composer .card-pill-row strong {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.profile-message-field {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
}

.composer-main textarea[data-profile-message-body] {
  min-height: 300px;
  height: 300px;
  resize: vertical;
}

.profile-emoji-panel {
  display: grid;
  grid-template-rows: auto minmax(0, auto);
  gap: 12px;
  align-self: start;
  min-width: 0;
}

.profile-emoji-panel > .card-pill-row {
  margin-bottom: -5px;
}

.profile-icon-library {
  height: auto;
  min-height: 0;
  max-height: none;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  align-content: start;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.profile-icon-library::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.emoji-scroll-shell {
  display: grid;
  grid-template-rows: 32px minmax(0, 1fr) 32px;
  gap: 4px;
  align-content: start;
  height: var(--profile-emoji-shell-height, 300px);
  min-height: 220px;
  max-height: 520px;
}

.emoji-scroll-control {
  width: 100%;
  height: 32px;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border-color: rgba(217, 169, 74, 0.55);
  background: rgba(152, 106, 22, 0.22);
  color: #ffe8b7;
  line-height: 1;
}

.dm-boundary-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 8px;
  background: var(--panel-soft);
  background: color-mix(in srgb, var(--panel-soft) 84%, rgba(20, 184, 166, 0.16));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.dm-boundary-card h3,
.dm-boundary-card p {
  margin: 0;
}

.dm-boundary-card h3 {
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.dm-boundary-card p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.dm-boundary-card[data-dm-boundary-mode="no_porn"],
.dm-boundary-card[data-dm-boundary-mode="clean_chat"] {
  border-color: rgba(248, 113, 113, 0.58);
  background: var(--panel-soft);
  background: color-mix(in srgb, var(--panel-soft) 84%, rgba(248, 113, 113, 0.15));
}

.dm-boundary-card[data-dm-boundary-mode="ask_first"],
.dm-boundary-card[data-dm-boundary-mode="no_surprise_photos"] {
  border-color: rgba(217, 169, 74, 0.58);
  background: var(--panel-soft);
  background: color-mix(in srgb, var(--panel-soft) 84%, rgba(217, 169, 74, 0.16));
}

.hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.activity-list {
  display: grid;
  gap: 12px;
}

.activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--input);
}

.activity-row.unread {
  border-color: var(--blue-border);
  background: var(--blue);
}

.activity-row h3,
.activity-row p {
  margin: 8px 0 0;
}

.activity-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.activity-actions span,
.activity-actions em {
  color: var(--subtle);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.notification-feed {
  gap: 14px;
}

.notification-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.notification-head h2,
.notification-head p {
  margin: 0;
}

.notification-head p {
  margin-top: 8px;
}

.notification-row {
  padding: 16px;
  border-radius: 12px;
}

.notification-row.read {
  opacity: 0.78;
}

.notification-row-focus {
  outline: 2px solid var(--button-primary-border);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--button-primary-bg) 24%, transparent);
}

.notification-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.notification-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--blue-border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--blue) 74%, #000 26%);
  color: var(--text);
  font-weight: 900;
}

.notification-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

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

.case-detail {
  min-width: 0;
  display: grid;
  gap: 12px;
  align-content: start;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--panel-soft);
}

.case-detail .pill-list {
  align-items: center;
  align-content: flex-start;
}

.case-detail .pill {
  min-height: 28px;
  padding: 4px 8px;
}

html body .case-detail .pill-list {
  align-items: flex-start !important;
  align-content: flex-start !important;
  gap: 6px !important;
  min-height: 0 !important;
}

html body .case-detail .pill-list > .pill {
  flex: 0 0 auto !important;
  align-self: flex-start !important;
  height: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  padding: 0 8px !important;
  border-radius: 8px !important;
  line-height: 1 !important;
}

.case-detail h3,
.case-detail p {
  margin: 0;
}

.admin-case-actions {
  gap: 8px;
  margin-top: 8px;
}

.admin-case-actions .btn {
  min-height: 36px;
}

.action-field {
  align-self: end;
}

.room-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.room-card-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.pill.success {
  border-color: rgba(46, 160, 67, 0.55);
  background: rgba(46, 160, 67, 0.18);
  color: #b8f5c7;
}

body[data-theme="day"] .pill.success,
body[data-theme="day"] .panel .pill.success,
body[data-theme="day"] .pill-list .pill.success,
body[data-theme="day"] .profile-hero .pill.success,
body[data-theme="day"] .comment-reward-progress .pill.success,
body[data-theme="day"] .reward-pill,
body[data-theme="day"] .room-card .pill.success,
body[data-theme="day"] .room-card-head .pill.success {
  border-color: #167a3a !important;
  background: #c9f2d2 !important;
  color: #052e16 !important;
  text-shadow: none !important;
}

.pill.gold {
  border-color: rgba(217, 169, 74, 0.7);
  background: rgba(152, 106, 22, 0.34);
  color: #ffe8b7;
}

body[data-theme="day"] .pill.gold,
body[data-theme="day"] .pill.warning {
  border-color: #f0b84a !important;
  background: #fff2c7 !important;
  color: #6b4300 !important;
  text-shadow: none !important;
}

.card-pill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.reward-pill {
  width: fit-content;
  box-shadow: 0 0 0 1px rgba(46, 160, 67, 0.18), 0 10px 24px rgba(46, 160, 67, 0.12);
}

.comment-reward-pill {
  margin-top: 8px;
}

.comment-reward-progress {
  display: grid;
  gap: 8px;
  margin: 10px 0 14px;
  padding: 10px;
  border: 1px solid rgba(46, 160, 67, 0.4);
  border-radius: 8px;
  background: rgba(46, 160, 67, 0.08);
}

.comment-reward-progress div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.comment-reward-progress span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

body[data-theme="day"] .comment-reward-progress span.pill.success {
  border-color: #167a3a !important;
  background: #c9f2d2 !important;
  color: #052e16 !important;
}

.mini-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--input);
  overflow: hidden;
}

.mini-progress span {
  display: block;
  height: 100%;
  background: #2ea043;
}

.pill.warning {
  border-color: rgba(187, 128, 9, 0.6);
  background: rgba(187, 128, 9, 0.18);
  color: #ffd58a;
}

.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.inline-actions .btn,
.live-actions .btn,
.message-actions .btn {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.tiny-btn.danger {
  border-color: rgba(248, 81, 73, 0.55);
  background: rgba(248, 81, 73, 0.16);
  color: #ffd0cd;
}

body[data-theme="day"] .tiny-btn.danger {
  border-color: #d1242f;
  background: #ffe2e5;
  color: #7f1d1d;
}

body[data-theme="day"] .tiny-btn.danger:disabled {
  opacity: 1;
  color: #7f1d1d;
}

.room-card-meta {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
  gap: 6px 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.room-card-meta span {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 800;
}

.room-card-meta strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.room-card .pill-list {
  margin-bottom: 2px;
}

.event-card {
  display: grid;
  gap: 12px;
  align-self: start;
  align-content: start;
  padding: 20px;
}

.event-card-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: var(--input);
}

.event-card-status {
  display: grid;
  gap: 4px;
  min-height: 0;
  padding: 9px 11px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(37, 37, 36, 0.56);
}

body[data-theme="day"] .event-card-status {
  background: #ffffff;
  border-color: var(--border);
}

.event-detail-panel,
.event-chat-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.event-detail-panel > h2 {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}

.event-detail-panel > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.event-detail-panel .button-row,
.event-chat-panel .button-row {
  margin-top: 8px;
  margin-bottom: 4px;
}

.event-rsvp-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.event-rsvp-controls .field {
  margin: 0;
}

.event-card h2,
.event-card p,
.event-card .pill-list,
.event-card .button-row {
  margin: 0;
}

.event-card .button-row {
  margin-top: 2px;
}

.event-card-status span {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 800;
}

.translation-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(170px, 220px);
  align-items: end;
  gap: 10px;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

.translation-toolbar .field {
  min-width: 0;
  margin: 0;
}

.translation-toolbar .btn {
  min-height: 42px;
  padding: 0 20px;
  border-radius: 12px;
}

.translation-toolbar > .small {
  grid-column: 1 / -1;
}

.private-translation-toolbar {
  grid-template-columns: minmax(0, 1fr);
}

.private-translation-toolbar .btn {
  width: 100%;
  min-width: 0;
}

.event-translation-toolbar {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  margin: 0;
  padding-top: 0;
  border-top: 0;
}

.event-translation-toolbar .field {
  min-width: 0;
}

.event-translation-toolbar .btn {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 10px;
}

.event-translation-toolbar .event-translation-toggle {
  padding: 0 16px;
}

.event-translation-cost {
  grid-column: 1 / -1;
  margin: 0 0 0 4px;
  color: #a7c3e6;
}

[data-event-filter-reset] {
  min-height: 44px;
  width: fit-content;
  padding: 0 24px;
  line-height: 1.2;
  border-radius: 12px;
}

.filters .button-row {
  align-items: center;
  margin-top: 18px;
}

.filters .pill-list {
  gap: 10px;
  margin-top: 10px;
}

.filters .pill {
  min-height: 30px;
  padding: 8px 12px;
}

.vip-upgrade-intro {
  display: grid;
  gap: 8px;
  padding: 26px;
}

.vip-upgrade-intro h2,
.vip-plan-card h2 {
  padding-bottom: 0;
}

.vip-upgrade-intro p {
  max-width: 780px;
}

.vip-plan-card {
  min-height: 318px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 26px 28px 28px;
  border-color: color-mix(in srgb, #f5b942 68%, var(--border));
  background:
    linear-gradient(180deg, color-mix(in srgb, #f5b942 15%, var(--panel-soft)) 0%, color-mix(in srgb, #f5b942 7%, var(--panel)) 100%);
}

body[data-theme="day"] .vip-plan-card {
  border-color: #cf8d00;
  background: linear-gradient(180deg, #fff6dc 0%, #f7fbff 78%);
}

.vip-plan-card .vip-pill {
  width: fit-content;
}

.vip-plan-price strong {
  display: block;
  color: var(--text);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.vip-benefit-list {
  gap: 10px;
  align-content: start;
}

.vip-benefit-list .pill {
  min-height: 32px;
  max-width: 100%;
  padding: 8px 12px;
  white-space: normal;
  line-height: 1.15;
}

.vip-plan-cta {
  width: fit-content;
  min-width: 160px;
  margin-top: 2px;
}

[data-vip-upgrade] {
  min-height: 42px;
  min-width: 100px;
  padding: 0 22px;
  border-radius: 12px;
  line-height: 1;
}

.room-card.active-room {
  border-color: var(--blue-border);
  background: linear-gradient(180deg, var(--blue) 0%, var(--panel) 100%);
}

.room-create-panel {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.room-create-panel p {
  max-width: 680px;
}

.chat-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: stretch;
}

.chat-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.chat-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.chat-head-actions {
  margin-top: 0;
  flex-shrink: 0;
}

.chat-window {
  min-height: 440px;
  max-height: none;
  flex: 1 1 440px;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #070a0e;
}

.chat-window.compact-chat {
  min-height: 240px;
  max-height: 340px;
}

.event-chat-panel .compact-chat {
  min-height: 214px;
  max-height: 214px;
  padding: 12px;
  border-radius: 6px;
  background: #05080b;
}

body[data-theme="day"] .event-chat-panel .compact-chat {
  background: #ffffff;
}

body[data-theme="day"] .chat-window {
  background: #eef3f8;
}

.chat-rules-card {
  width: min(720px, 100%);
  padding: 16px;
  border: 1px solid #ff6b6b;
  border-left: 6px solid #e01e37;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(224, 30, 55, 0.22), rgba(120, 14, 25, 0.34));
  color: #fff;
  box-shadow: 0 12px 28px rgba(224, 30, 55, 0.14);
}

.chat-rules-card h2 {
  margin: 6px 0 8px;
}

.chat-rules-card p {
  color: #ffd8de;
}

.chat-rules-card ul {
  margin: 12px 0 14px;
  padding-left: 20px;
  display: grid;
  gap: 7px;
  color: #fff;
}

.chat-rules-card .label {
  color: #ffd8de;
}

.chat-rules-card .btn.primary {
  color: #ffffff;
}

body[data-theme="day"] .chat-rules-card {
  color: #111827;
}

body[data-theme="day"] .chat-rules-card h2,
body[data-theme="day"] .chat-rules-card p,
body[data-theme="day"] .chat-rules-card ul,
body[data-theme="day"] .chat-rules-card .label {
  color: #111827;
}

body[data-theme="day"] .chat-rules-card .btn.primary {
  color: #111827;
}

.direct-thread .chat-rules-card {
  width: 100%;
}

.empty-state {
  align-self: center;
  justify-self: center;
  max-width: 320px;
  text-align: center;
  color: var(--subtle);
}

.empty-state h2 {
  margin-bottom: 8px;
  color: var(--text);
}

.live-message {
  display: grid;
  grid-template-columns: clamp(88px, 14%, 112px) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.live-message.mine {
  grid-template-columns: clamp(88px, 14%, 112px) minmax(0, 1fr);
}

.live-message.mine .live-avatar {
  order: 0;
}

.live-message.mine .live-bubble {
  order: 0;
  border-color: var(--blue-border);
  background: var(--blue);
}

.live-message.agent-message .live-avatar,
.live-message.agent-message .live-bubble {
  border-color: var(--accent);
}

.live-message.agent-message .live-avatar {
  background: var(--accent);
  color: #fff;
}

.live-message.agent-message .live-bubble {
  background: rgba(177, 24, 24, 0.13);
}

.live-message.token-gift-message .live-avatar,
.live-message.token-gift-message .live-bubble {
  border-color: rgba(32, 200, 115, 0.55);
}

.live-message.token-gift-message .live-avatar {
  background: rgba(32, 200, 115, 0.16);
  color: #24d67e;
}

.live-message.token-gift-message .live-bubble,
.live-message.mine.token-gift-message .live-bubble {
  background: rgba(32, 200, 115, 0.13);
}

.live-message.token-gift-message .message-translation-primary {
  color: #24d67e;
}

.live-message.token-gift-message .plate-badge {
  border-color: rgba(32, 200, 115, 0.55);
}

.live-message.moderation-notice-message .live-avatar,
.live-message.moderation-notice-message .live-bubble {
  border-color: rgba(248, 81, 73, 0.62);
}

.live-message.moderation-notice-message .live-avatar {
  background: rgba(248, 81, 73, 0.16);
  color: #ffd0cd;
}

.live-message.moderation-notice-message .live-bubble,
.live-message.mine.moderation-notice-message .live-bubble {
  background: rgba(248, 81, 73, 0.13);
}

.live-message.moderation-notice-message .message-translation-primary,
.live-message.moderation-notice-message .moderator-name strong {
  color: #ffd0cd;
}

.live-message.moderation-notice-message .plate-badge {
  border-color: rgba(248, 81, 73, 0.62);
}

body[data-theme="day"] .live-message.moderation-notice-message .live-avatar,
body[data-theme="day"] .live-message.moderation-notice-message .live-bubble {
  border-color: #d1242f;
}

body[data-theme="day"] .live-message.moderation-notice-message .live-avatar {
  background: #ffe2e5;
  color: #7f1d1d;
}

body[data-theme="day"] .live-message.moderation-notice-message .live-bubble,
body[data-theme="day"] .live-message.mine.moderation-notice-message .live-bubble {
  background: #fff1f2;
  color: #07192d;
}

body[data-theme="day"] .live-message.moderation-notice-message .message-translation-primary,
body[data-theme="day"] .live-message.moderation-notice-message .moderator-name strong {
  color: #7f1d1d;
}

body[data-theme="day"] .live-message.moderation-notice-message .plate-badge {
  border-color: #d1242f;
  background: #ffe2e5;
  color: #7f1d1d;
}

.live-avatar,
.user-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input);
  color: var(--text);
  font-weight: 800;
}

.live-message > .live-avatar {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
  align-self: start;
}

.live-avatar.profile-photo-avatar {
  overflow: hidden;
  padding: 0;
  border-radius: 8px;
}

.live-avatar.profile-photo-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.live-bubble {
  min-width: 0;
  padding: var(--chat-box-padding);
  border: 1px solid var(--border-soft);
  border-radius: var(--chat-box-border-radius);
  background: var(--panel-soft);
  font-size: var(--chat-box-font-size);
}

.live-bubble p {
  margin: 6px 0 0;
}

.event-chat-panel .live-message,
.event-chat-panel .live-message.mine {
  grid-template-columns: minmax(0, 1fr);
}

.event-chat-panel .live-avatar {
  display: none;
}

.event-chat-panel .live-message.mine .live-bubble {
  order: unset;
}

.event-chat-panel .live-bubble {
  width: min(100%, 398px);
  padding: var(--chat-box-padding);
  border-color: var(--blue-border);
  border-radius: var(--chat-box-border-radius);
  background: var(--blue);
}

.event-chat-panel .live-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.live-message.deleted-message .live-bubble,
.live-message.mine.deleted-message .live-bubble,
.group-chat-panel .live-message.deleted-message .live-bubble,
.group-chat-panel .live-message.mine.deleted-message .live-bubble,
.event-chat-panel .live-message.deleted-message .live-bubble,
.event-chat-panel .live-message.mine.deleted-message .live-bubble {
  border-color: #8e949c !important;
  background: linear-gradient(180deg, #7d838b 0%, #666d75 100%) !important;
  box-shadow: none !important;
  color: #ffffff !important;
}

.live-message.deleted-message .live-meta,
.live-message.deleted-message .moderator-name,
.live-message.deleted-message .moderator-name strong,
.live-message.deleted-message .message-translation-primary,
.live-message.deleted-message .translation-note,
.live-message.deleted-message .deleted-stamp {
  color: #ffffff !important;
}

.live-message.deleted-message .plate-badge,
.live-message.deleted-message .translation-note.original-note {
  border-color: rgba(255, 255, 255, 0.34) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.live-message.deleted-message .translation-note.original-note span {
  color: #ffffff !important;
}

.deleted-stamp {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 800;
}

.deleted-message-body {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.live-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--subtle);
  font-size: 12px;
}

.moderator-name {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 5px;
  color: var(--text);
}

.moderator-name strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.moderator-bolt {
  display: inline-grid;
  width: 14px;
  height: 14px;
  place-items: center;
  flex: 0 0 14px;
  color: #3da2ff;
  font-size: 12px;
  line-height: 1;
}

.translation-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.message-translation-primary {
  margin: 7px 0 0;
  color: var(--text);
  font-size: inherit;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body.chat-hide-number-plate .chat-window .plate-badge,
body.chat-hide-number-plate .direct-thread .plate-badge {
  display: none;
}

body.chat-hide-translation .chat-window .translation-note,
body.chat-hide-translation .direct-thread .translation-note {
  display: none;
}

body.chat-hide-profile .chat-window .live-message,
body.chat-hide-profile .chat-window .live-message.mine,
body.chat-hide-profile .compact-chat .live-message,
body.chat-hide-profile .compact-chat .live-message.mine {
  grid-template-columns: minmax(0, 1fr);
}

body.chat-hide-profile .chat-window .live-avatar,
body.chat-hide-profile .compact-chat .live-avatar,
body.chat-hide-profile .chat-window .live-meta .moderator-name,
body.chat-hide-profile .compact-chat .live-meta .moderator-name,
body.chat-hide-profile .direct-thread .live-meta .moderator-name {
  display: none;
}

.translation-note.original-note {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  gap: 7px;
  margin-top: 7px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--subtle);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.translation-note.original-note span {
  color: #34d475;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.live-message.mine .translation-note.original-note,
.message.mine .translation-note.original-note {
  background: rgba(255, 255, 255, 0.2);
}

body[data-theme="day"] .translation-note.original-note {
  border-color: rgba(31, 39, 51, 0.11);
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 720px) {
  .translation-toolbar {
    grid-template-columns: 1fr;
  }

  .translation-toolbar .btn {
    width: 100%;
  }

  .event-translation-toolbar {
    grid-template-columns: 1fr;
  }

  .event-translation-toolbar .btn {
    width: 100%;
  }

  .event-chat-panel .live-bubble {
    width: 100%;
  }
}

.live-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.live-actions .translation-note.original-note {
  margin-top: 0;
}

.live-actions > .tiny-btn:first-of-type,
.live-actions .message-actions {
  margin-left: auto;
}

.live-actions .message-actions {
  margin-top: 0;
}

.message-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.tiny-btn {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--input);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.tiny-btn.delete-link {
  border-color: transparent;
  background: transparent;
  color: #ffb000 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.live-message.deleted-message .tiny-btn.delete-link {
  color: #ffb000 !important;
}

.chat-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
}

.chat-input-row input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--input);
  color: var(--text);
  padding: 0 14px;
}

.user-list {
  display: grid;
  gap: 10px;
}

.user-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--input);
}

.user-row strong,
.user-row span {
  display: block;
}

.user-row span {
  color: var(--subtle);
  font-size: 12px;
}

.user-row .moderator-name,
.user-row .moderator-bolt {
  display: inline-flex;
}

.user-row .moderator-name {
  color: var(--text);
}

.user-row .moderator-name strong {
  display: inline;
}

.user-row .moderator-bolt {
  color: #3da2ff;
}

.chat-side .user-row {
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
}

.chat-side .user-row > div:nth-child(2) {
  min-width: 0;
}

.chat-side .user-row .moderator-name,
.chat-side .user-row .moderator-name strong {
  max-width: 100%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

.chat-side .user-row > .small {
  grid-column: 2;
  justify-self: start;
  margin-top: 2px;
}

.chat-side .user-row .inline-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: stretch;
  width: 100%;
  margin-top: 4px;
}

.chat-side .user-row .inline-actions .tiny-btn,
.chat-side .user-row .inline-actions .btn,
.chat-side .user-row .inline-actions .pill {
  width: 100%;
  min-width: 0;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

.chat-side .user-row .inline-actions .gold {
  grid-column: 1 / -1;
}

.gift-box {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

.gift-packs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.gift-pack {
  min-width: 0;
  padding: 0 6px;
}

.gift-pack.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.gift-token-notice {
  margin: 0;
  color: #20c873;
  font-size: 0.9rem;
  font-weight: 800;
}

.field.compact {
  gap: 6px;
}

.field.compact input,
.field.compact select {
  min-height: 40px;
  border-radius: 10px;
}

.profile-hero {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.public-profile-preview {
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 24px;
}

.profile-photo-frame {
  min-width: 0;
}

.profile-main-photo {
  width: 120px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: var(--surface-soft);
}

.member-profile-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 24px;
}

.member-profile-media,
.member-profile-details {
  min-width: 0;
}

.member-profile-media {
  display: flex;
}

.member-profile-main-photo,
.member-profile-avatar {
  width: 100%;
  height: 100%;
  min-height: 430px;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
}

.member-profile-main-photo {
  object-fit: cover;
}

.member-profile-avatar {
  display: grid;
  place-items: center;
  border: 1px solid var(--border-soft);
  background: var(--surface-soft);
  font-size: 64px;
}

.member-profile-details {
  display: grid;
  align-content: start;
  gap: 12px;
}

.member-profile-details > h2,
.member-profile-details > p,
.member-profile-details .pill-list,
.member-profile-details .compatibility-pills,
.member-profile-details .button-row {
  margin-top: 0;
  margin-bottom: 0;
}

.member-profile-details > h2 {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.05;
}

.public-profile-preview .profile-main-photo,
.public-profile-preview .avatar {
  width: 100%;
  max-width: 360px;
  min-height: 320px;
  height: 100%;
  aspect-ratio: 4 / 5;
  justify-self: start;
}

.public-profile-preview .avatar {
  display: grid;
  place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface-soft);
  font-size: 64px;
}

.profile-intro {
  min-width: 0;
  display: grid;
  gap: 14px;
  align-content: center;
}

.profile-intro h2 {
  margin-bottom: 0;
  font-size: calc(var(--title-size) + 8px);
  line-height: 1.05;
}

.profile-kicker,
.profile-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-bio {
  max-width: 72ch;
  font-size: 1.05rem;
  line-height: 1.55;
}

.profile-quick-facts,
.profile-detail-list {
  display: grid;
  gap: 10px;
}

.profile-quick-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-quick-facts span,
.profile-detail-list div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-soft) 84%, transparent);
}

.profile-quick-facts strong,
.profile-detail-list span {
  color: var(--subtle);
  font-size: 12px;
}

.profile-quick-facts em,
.profile-detail-list strong {
  color: var(--text);
  font-style: normal;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.profile-gallery-panel .section-head {
  margin-bottom: 14px;
}

.profile-gallery-grid .photo-card {
  gap: 0;
}

.profile-gallery-grid .photo-card img {
  aspect-ratio: 4 / 5;
}

.profile-preview {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: var(--surface-soft);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.event-photo-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.photo-card {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: var(--surface-soft);
}

.photo-card [data-photo-edit-index] {
  border-color: #60a5fa !important;
  background: linear-gradient(180deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.photo-card [data-photo-main] {
  border-color: #f9a8d4 !important;
  background: linear-gradient(180deg, #db2777, #be185d) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(219, 39, 119, 0.22);
}

.photo-card [data-photo-remove] {
  border-color: #fb7185 !important;
  background: linear-gradient(180deg, #dc2626, #991b1b) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.22);
}

.group-composer,
.group-feed {
  display: grid;
  gap: 14px;
}

.profile-stream-composer,
.profile-stream-panel {
  display: grid;
  gap: 14px;
}

.profile-stream-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(240px, 25%, 330px);
  gap: 14px;
  align-items: start;
}

.profile-stream-main {
  min-width: 0;
  align-content: start;
}

.profile-stream-image-field {
  align-content: start;
}

.profile-stream-image-field .button-row {
  margin-top: 4px;
}

.profile-stream-icon-panel {
  display: grid;
  grid-template-rows: auto 32px minmax(0, 1fr) 32px;
  gap: 4px;
  min-width: 0;
  align-self: start;
  height: var(--profile-stream-icon-panel-height, 360px);
  min-height: 240px;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 84%, #000 16%);
  overflow: hidden;
}

.profile-stream-icon-scroll {
  width: 100%;
  height: 32px;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border-color: var(--border-soft);
  background: var(--panel-soft);
  line-height: 1;
}

.profile-stream-icon-library {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  align-content: start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: auto;
}

.profile-stream-editor-grid {
  grid-template-columns: minmax(0, 1fr);
}

.profile-stream-editor .profile-stream-crop-stage {
  width: 100%;
  max-width: none;
}

.profile-stream-editor-controls {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-stream-editor-controls .field {
  min-width: 0;
}

.profile-stream-editor-actions {
  grid-column: 1 / -1;
}

.format-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.form-grid .full,
.format-toolbar.full,
.icon-library.full {
  grid-column: 1 / -1;
}

.icon-library {
  max-height: 158px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 84%, #000 16%);
  overflow: auto;
}

.profile-stream-icon-panel {
  align-self: start !important;
  overflow: hidden !important;
}

.profile-stream-icon-panel > .icon-library.profile-stream-icon-library {
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.icon-choice {
  min-height: 36px;
  padding: 0;
  font-size: 17px;
}

.icon-choice:hover {
  border-color: var(--blue-border);
  background: var(--blue);
}

.emoji-scroll-shell > .icon-library.profile-icon-library {
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.group-post-card {
  display: grid;
  gap: 12px;
}

.group-comments {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}

.group-comment {
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 82%, #000 18%);
}

.group-comment p {
  margin: 6px 0 0;
}

.rich-text strong {
  font-weight: 800;
}

.rich-text em {
  font-style: italic;
}

.comment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  font-size: calc(var(--content-size) + 2px);
}

.comment-row input {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input);
  color: var(--text);
  font: inherit;
  outline: none;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--panel-soft) 70%, transparent);
}

.comment-row input::placeholder {
  color: var(--subtle);
  opacity: 1;
}

.comment-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.comment-row .tiny-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: inherit;
}

.group-chat-panel {
  align-content: start;
  display: grid;
  gap: 14px;
}

.group-chat-panel .chat-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.group-chat-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.group-chat-panel .chat-head .pill-list {
  align-items: center;
}

.group-chat-panel .chat-head .pill {
  min-height: 30px;
  line-height: 1;
}

.group-chat-window {
  min-height: 360px;
}

.group-chat-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
}

.group-chat-input-row input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 0 14px;
  background: var(--input);
  color: var(--text);
  font: inherit;
}

.event-chat-panel .group-chat-input-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.event-chat-panel .group-chat-input-row input,
.event-chat-panel .group-chat-input-row .btn {
  min-height: 42px;
  border-radius: 10px;
}

.event-chat-panel .group-chat-input-row .btn {
  min-width: 86px;
  padding: 0 20px;
}

.group-chat-members {
  max-height: 260px;
  overflow: auto;
}

.group-image-preview img,
.feed-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.profile-stream-crop-preview img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  border-radius: 8px;
  background: var(--surface-soft);
}

.profile-stream-card .feed-image {
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 8px;
  background: var(--surface-soft);
}

.image-editor {
  display: grid;
  gap: 18px;
}

.editor-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.editor-head p {
  margin: 6px 0 0;
}

.editor-badge {
  max-width: 220px;
  padding: 8px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-editor-grid {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.crop-stage {
  width: 100%;
  max-width: 360px;
  padding: 10px;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  background: var(--surface-soft);
}

.crop-stage canvas {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: #0f141b;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.crop-stage canvas.is-dragging {
  cursor: grabbing;
}

.editor-controls input[type="range"] {
  width: 100%;
  min-height: 40px;
  padding: 0;
}

.photo-crop-mode-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.photo-crop-mode-row .tiny-btn.primary {
  border-color: var(--button-primary-border);
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
}

.editor-controls .full {
  grid-column: 1 / -1;
}

.profile-stream-editor .profile-stream-editor-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}

.profile-stream-editor .profile-stream-crop-stage {
  width: 100% !important;
  max-width: none !important;
}

.profile-stream-editor .profile-stream-crop-stage canvas {
  width: 100% !important;
}

.profile-stream-editor .profile-stream-editor-controls {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.profile-stream-editor .profile-stream-editor-controls .field {
  min-width: 0;
}

.profile-stream-editor .photo-crop-mode-row,
.profile-stream-editor .profile-stream-editor-actions {
  grid-column: 1 / -1 !important;
}

.questionnaire-panel {
  display: grid;
  gap: 18px;
}

.question-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.question-head h2 {
  margin-top: 6px;
}

.question-progress {
  width: min(220px, 100%);
  display: grid;
  gap: 8px;
  text-align: right;
}

.question-progress strong {
  font-size: 28px;
}

.question-profile-control {
  display: grid;
  gap: 12px;
}

.question-mode-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.question-mode-button,
.category-toggle {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--input);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.question-mode-button {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.question-mode-button small {
  color: var(--muted);
  font-weight: 800;
}

.question-mode-button.active,
.category-toggle.active {
  border-color: var(--blue-border);
  background: var(--blue);
}

.category-toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.category-toggle {
  min-height: 48px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 10px;
}

.category-toggle strong {
  min-width: 0;
  font-size: 13px;
  line-height: 1.25;
}

.category-toggle-check {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid var(--border-soft);
  background: var(--panel);
  color: var(--accent);
  font-weight: 900;
}

.question-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.question-editor {
  min-width: 0;
  display: grid;
  gap: 16px;
  scroll-margin-top: 16px;
}

.question-editor h3,
.category-list h3 {
  margin: 0;
}

.question-editor h3 {
  font-size: 24px;
  line-height: 1.28;
}

.question-choices {
  display: grid;
  gap: 10px;
}

.question-choice {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--input);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.question-choice span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 800;
}

.question-choice strong {
  min-width: 0;
  line-height: 1.35;
}

.question-choice.active {
  border-color: var(--blue-border);
  background: var(--blue);
}

.question-importance {
  display: grid;
  gap: 10px;
}

.question-importance-label {
  font-weight: 800;
}

.question-importance-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.importance-button {
  min-height: 76px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--input);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.importance-button strong,
.importance-button small {
  min-width: 0;
}

.importance-button small {
  grid-column: 2;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.25;
}

.importance-check {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: var(--panel);
  color: var(--muted);
  font-weight: 900;
}

.importance-button.active {
  border-color: var(--blue-border);
  background: var(--blue);
}

.importance-button.active .importance-check {
  border-color: var(--blue-border);
  background: var(--panel);
  color: var(--accent);
}

.compatibility-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.compatibility-pill {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--input);
  color: var(--text);
  font-weight: 900;
}

.compatibility-pill strong {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.compatibility-pill.active {
  border-color: var(--blue-border);
  background: var(--blue);
}

.question-compare-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  border: 0;
  background: rgba(7, 13, 24, 0.45);
  cursor: pointer;
}

.oracle-apply-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  border: 0;
  background: rgba(7, 13, 24, 0.48);
  cursor: pointer;
}

.oracle-apply-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(620px, 100vw);
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  border-left: 1px solid var(--border-soft);
  background: var(--panel);
  color: var(--text);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.35);
  animation: oracleApplyDrawerIn 0.22s ease-out both;
}

.oracle-apply-drawer .form-grid {
  flex: 0 0 auto;
  align-content: start;
}

.oracle-apply-drawer > .button-row {
  flex: 0 0 auto;
  padding-top: 4px;
}

.oracle-enroll-card {
  display: grid;
  gap: 12px;
}

.oracle-reader-card {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.oracle-reader-card.active {
  border-color: var(--button-blue-border);
  box-shadow: 0 0 0 2px rgba(90, 140, 190, 0.16);
}

.oracle-viewing-pill {
  border-color: var(--button-blue-border);
  background: var(--button-blue-bg);
  color: var(--button-blue-text);
}

.oracle-reader-card .message-photo-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0;
}

.oracle-reader-card h2,
.oracle-reader-card p,
.oracle-reader-card .pill-list,
.oracle-reader-card .button-row {
  margin-top: 0;
  margin-bottom: 0;
}

.oracle-reader-card .button-row {
  width: 100%;
  margin-top: 4px;
}

.oracle-reader-card .dashboard-actions .btn {
  flex: 1 1 130px;
}

.oracle-request-panel {
  display: grid;
  gap: 16px;
}

.oracle-request-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 16px;
  align-items: start;
}

.oracle-request-main {
  display: grid;
  gap: 12px;
}

.oracle-request-main textarea[data-oracle-question] {
  min-height: 170px;
}

.oracle-reading-description {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.oracle-request-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.oracle-payment-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--panel-soft);
}

.oracle-payment-box h3 {
  margin: 0;
  font-size: 28px;
}

.oracle-payment-box p {
  margin: 0;
  color: var(--muted);
}

.oracle-payment-box .table-list {
  gap: 6px;
}

.oracle-payment-box .table-list div {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  min-height: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
  background: transparent;
}

.full-width {
  width: 100%;
}

@keyframes oracleApplyDrawerIn {
  from {
    opacity: 0;
    transform: translateX(36px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.question-compare-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(760px, 100vw);
  height: 100vh;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  overflow: hidden;
  border-left: 1px solid var(--border-soft);
  background: var(--panel);
  color: var(--text);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.35);
}

.question-compare-head,
.question-answer-slide-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.question-compare-head h2,
.question-answer-slide-head h3 {
  margin: 4px 0 0;
}

.question-compare-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.compare-chip {
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.compare-chip.very,
.compare-answer-card.very {
  border-color: rgba(255, 79, 112, 0.72);
  background: rgba(255, 79, 112, 0.14);
}

.compare-chip.care,
.compare-answer-card.care {
  border-color: rgba(255, 196, 76, 0.78);
  background: rgba(255, 196, 76, 0.18);
}

.compare-chip.not,
.compare-answer-card.not {
  border-color: rgba(75, 201, 142, 0.72);
  background: rgba(75, 201, 142, 0.15);
}

.compare-chip.missing,
.compare-answer-card.missing,
.compare-answer-card.locked,
.question-compare-row.has-missing {
  border-color: rgba(132, 145, 166, 0.58);
  background: rgba(132, 145, 166, 0.12);
}

.compare-answer-card.locked strong {
  color: var(--muted);
}

.question-compare-list {
  min-height: 0;
  display: grid;
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}

.question-compare-row {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--input);
}

.question-compare-anchor {
  position: absolute;
  top: -10px;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.question-compare-question {
  display: grid;
  gap: 4px;
}

.question-compare-question small,
.compare-answer-card small {
  color: var(--muted);
  font-weight: 900;
}

.question-compare-answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.compare-answer-card {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}

.compare-answer-card strong {
  line-height: 1.3;
}

.question-compare-actions {
  display: flex;
  justify-content: flex-end;
}

.question-answer-slide {
  position: absolute;
  inset: auto 18px 18px 18px;
  max-height: min(78vh, 720px);
  display: grid;
  gap: 12px;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--blue-border);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 -18px 54px rgba(0, 0, 0, 0.34);
}

.question-choices.compact {
  gap: 8px;
}

.question-choices.compact .question-choice {
  min-height: 52px;
}

.question-importance-options.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.category-list button {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--input);
  color: var(--text);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.category-list button:hover {
  border-color: var(--blue-border);
  background: var(--blue);
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.score-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--input);
}

.score-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.score-card span {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 800;
}

.score-track {
  height: 8px;
  border-radius: 999px;
  background: var(--panel);
  overflow: hidden;
}

.score-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--score-color, #f6e148);
}

.answered-question-list {
  display: grid;
  gap: 12px;
}

.answered-question-list .section-head {
  padding-top: 4px;
}

.answered-question-list .table-list div {
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.8fr) auto;
  align-items: start;
}

.answered-question-list .table-list span {
  min-width: 0;
  display: grid;
  gap: 4px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.answered-question-list .table-list small {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 800;
}

.answered-question-list .table-list strong {
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.avatar {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  border: 1px solid var(--blue-border);
  background: var(--blue);
  color: var(--text);
  font-size: 48px;
  font-weight: 800;
  text-transform: uppercase;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.interest-category-list {
  display: grid;
  gap: 18px;
  margin-top: 14px;
}

.interest-category {
  display: grid;
  gap: 8px;
}

.interest-category h3 {
  margin: 0;
  color: var(--blue-text);
  font-size: 14px;
  line-height: 1.25;
}

.interest-category .checkbox-grid {
  margin-top: 0;
}

.interest-check span {
  line-height: 1.2;
}

.shared-interest-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.shared-interest-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(46, 160, 67, 0.55);
  border-radius: 999px;
  background: rgba(46, 160, 67, 0.16);
  color: #d4f8dc;
  font-size: 12px;
  font-weight: 800;
}

.shared-interest-strip .shared-interest-label {
  border-color: rgba(111, 168, 220, 0.65);
  background: rgba(20, 49, 77, 0.78);
  color: #e8f4ff;
}

.shared-interest-strip.empty span {
  border-color: var(--border-soft);
  background: var(--input);
  color: var(--subtle);
}

body[data-theme="day"] .shared-interest-strip span {
  border-color: rgba(46, 160, 67, 0.42);
  background: #eaffef;
  color: #116329;
}

body[data-theme="day"] .shared-interest-strip .shared-interest-label {
  border-color: #b8d3ee;
  background: #e9f4ff;
  color: #214e77;
}

.step-list {
  display: grid;
  gap: 10px;
}

.step-list span,
.step-list button {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--input);
  color: var(--text);
  font-weight: 800;
  text-align: left;
}

.step-list button {
  cursor: pointer;
}

.upload-zone {
  min-height: 220px;
  display: grid;
  align-content: center;
  gap: 10px;
  border-style: dashed;
}

.draw-studio {
  position: relative;
  display: block;
  min-width: 0;
}

.draw-board,
.draw-controls {
  display: grid;
  gap: 14px;
}

.draw-topbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.draw-topbar h2,
.draw-controls h2 {
  margin-bottom: 4px;
}

.draw-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.draw-viewbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.draw-canvas-frame {
  position: relative;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px),
    var(--input);
  background-size: 28px 28px;
}

.draw-tools-float {
  position: absolute;
  top: 10px;
  right: 58px;
  z-index: 6;
  width: 38px;
  height: 38px;
  display: grid;
  place-content: center;
  gap: 4px;
  border: 1px solid var(--blue-border);
  border-radius: 8px;
  background: var(--blue);
  color: var(--text);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.draw-tools-float span {
  width: 16px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.draw-canvas-frame:fullscreen {
  display: grid;
  place-items: center;
  padding: 18px;
  background: #05080d;
}

.draw-canvas-frame:fullscreen .draw-canvas {
  width: min(96vw, calc(96vh * 1.714));
  max-height: 92vh;
}

.draw-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 12 / 7;
  min-height: 420px;
  touch-action: none;
  color: var(--subtle);
  font-weight: 800;
  overflow: hidden;
  cursor: grab;
}

.draw-canvas.panning {
  cursor: grabbing;
}

.draw-viewport {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  will-change: transform;
}

.draw-canvas canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  pointer-events: none;
}

.draw-canvas canvas.active {
  pointer-events: auto;
}

.draw-wall-canvas {
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto !important;
  cursor: crosshair;
}

.draw-canvas.panning .draw-wall-canvas,
.draw-wall-canvas:active {
  cursor: grabbing;
}

.draw-vector-studio .draw-canvas-frame {
  background: #050912;
}

.draw-vector-studio .draw-canvas {
  min-height: 540px;
  background: #050912;
}

.draw-controls {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 35;
  width: min(390px, 100vw);
  height: 100vh;
  max-height: 100vh;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 18px;
  border-radius: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  transform: translateX(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 240ms cubic-bezier(.2, .8, .2, 1), opacity 180ms ease;
  overflow: hidden;
}

.draw-controls.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.draw-controls-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.draw-controls-head h2 {
  margin-bottom: 4px;
}

.draw-controls-scroll {
  display: grid;
  gap: 14px;
  overflow-y: auto;
  padding-right: 4px;
}

.draw-controls h3 {
  margin: 4px 0 -6px;
}

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

.draw-coordinate-grid span,
.draw-bounds {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--input);
}

.draw-coordinate-grid small,
.draw-bounds span {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.draw-coordinate-grid strong,
.draw-bounds strong {
  color: var(--text);
  font-family: Courier, monospace;
  font-size: 13px;
}

.draw-bounds {
  margin: 2px 0 12px;
}

.draw-fullscreen-btn,
.draw-exit-fullscreen-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--blue-border);
  background: var(--blue);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.draw-exit-fullscreen-btn {
  display: none;
  background: var(--red);
  border-color: var(--red-border);
}

.draw-fullscreen-tools {
  display: none;
}

.draw-canvas-frame:fullscreen .draw-fullscreen-btn {
  display: none;
}

.draw-canvas-frame:fullscreen .draw-exit-fullscreen-btn {
  display: grid;
}

.draw-canvas-frame:fullscreen .draw-fullscreen-tools {
  position: absolute;
  left: 16px;
  top: 16px;
  right: 64px;
  z-index: 6;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  pointer-events: none;
}

.draw-glass-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(115, 168, 224, 0.42);
  border-radius: 8px;
  background: rgba(10, 15, 22, 0.58);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.draw-glass-tools .pill {
  background: rgba(25, 31, 39, 0.72);
}

.draw-glass-settings label {
  display: grid;
  gap: 3px;
  min-width: 92px;
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
}

.draw-glass-settings input,
.draw-glass-settings select {
  min-height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(115, 168, 224, 0.35);
  background: rgba(37, 37, 36, 0.78);
  color: var(--text);
  font-weight: 800;
}

.draw-glass-settings input[type="range"] {
  width: 128px;
}

.draw-glass-settings input[type="color"] {
  width: 48px;
  padding: 2px;
}

.draw-glass-settings.wide label {
  min-width: 146px;
}

.draw-layer-list,
.draw-saved-list {
  display: grid;
  gap: 8px;
}

.draw-layer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--input);
}

.draw-layer-row.selected {
  border-color: var(--blue-border);
  background: var(--blue);
}

.draw-saved-thumb {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--input);
  color: var(--text);
  text-align: left;
  font-weight: 800;
}

.draw-saved-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.draw-saved-thumb img {
  width: 74px;
  aspect-ratio: 12 / 7;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
}

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

.draw-vector-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--input);
}

.draw-vector-row div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.draw-vector-row strong,
.draw-vector-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draw-vector-row span {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 800;
}

.game-shell {
  display: grid;
  gap: 14px;
}

.game-shell-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}

.game-feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.game-feature h2 {
  margin-top: 10px;
}

.game-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 680px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #0b1020;
}

.chess-frame {
  min-height: 760px;
}

.golf-frame {
  min-height: 760px;
}

.numerology-frame {
  min-height: 780px;
}

.numerology-chart-frame {
  min-height: 900px;
}

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

.compact-list {
  margin-top: 10px;
}

.table-list div,
.table-list a {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--input);
  color: var(--text);
  text-decoration: none;
}

.table-list a:hover {
  border-color: var(--blue-border);
  background: var(--blue);
}

.table-list.compact-list div {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

.table-list em {
  color: var(--subtle);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.table-list .stacked-action {
  display: grid;
  justify-items: end;
  gap: 4px;
  white-space: nowrap;
}

.table-list .stacked-action small {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 800;
}

.referral-card,
.invite-panel {
  display: grid;
  gap: 16px;
}

.referral-hof-panel {
  display: grid;
  gap: 16px;
}

.referral-hof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.referral-hof-card {
  --hof-accent: #7c3aed;
  --hof-soft: rgba(124, 58, 237, 0.24);
  min-height: 126px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--hof-accent);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--hof-soft), rgba(15, 23, 42, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.referral-hof-card.is-gold {
  --hof-accent: #d4af37;
  --hof-soft: rgba(212, 175, 55, 0.34);
}

.referral-hof-card.is-royal {
  --hof-accent: #4169e1;
  --hof-soft: rgba(65, 105, 225, 0.34);
}

.referral-hof-card.is-grass {
  --hof-accent: #2f9e44;
  --hof-soft: rgba(47, 158, 68, 0.34);
}

.referral-hof-card.is-empty {
  border-style: dashed;
  opacity: 0.72;
}

.referral-hof-rank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.referral-hof-rank span {
  display: inline-grid;
  min-width: 38px;
  min-height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--hof-accent);
  color: #fff;
  font-weight: 900;
}

.referral-hof-rank em {
  color: var(--text);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.referral-hof-card strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.referral-hof-count {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 800;
}

.referral-invite-list {
  display: grid;
  gap: 10px;
}

.referral-invite-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 10px;
}

.referral-row-number {
  min-width: 38px;
  min-height: 42px;
  justify-content: center;
}

.copy-field {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--blue-border);
  border-radius: 8px;
  background: var(--blue);
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.referral-qr-card {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(260px, 50%) minmax(240px, 1fr);
  align-items: stretch;
  gap: 18px;
}

.referral-qr-frame {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #fff;
}

.referral-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.referral-qr-card .small {
  margin: 0;
}

.referral-qr-instructions {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface-soft);
}

.referral-qr-instructions h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.referral-qr-instructions ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.referral-qr-instructions li {
  color: var(--text);
  line-height: 1.5;
}

.referral-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}

.referral-stats div {
  display: grid;
  gap: 4px;
}

.referral-stats span {
  color: var(--muted);
  font-size: 13px;
}

.referral-stats strong {
  font-size: 18px;
}

.check-card {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--input);
  color: var(--text);
  font-family: var(--field-font-family);
  font-size: var(--field-font-size);
  font-weight: var(--font-weight);
}

.check-card input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.small {
  color: var(--subtle);
  font-size: 13px;
}

.footer-nav {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  padding: 12px 0 0;
  min-height: 0;
  border-top: 1px solid var(--border-soft);
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  height: 40px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.footer-nav a:hover {
  border-color: var(--blue-border);
  color: var(--text);
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-shell.sidebar-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    align-self: start;
    height: 100vh;
    max-height: 100vh;
    padding: 22px 18px;
    width: 250px;
    overflow-y: auto;
    border-right: 1px solid var(--border-soft);
    border-bottom: 0;
  }

  .main {
    grid-column: 1;
    padding: 16px 56px 28px 28px;
    min-width: 0;
    overflow-x: hidden;
  }

  .sidebar-collapsed .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    padding: 22px 18px;
    transform: translateX(-110%);
    opacity: 0;
    pointer-events: none;
    border-right: 1px solid var(--border-soft);
    border-bottom: 0;
  }

  .brand img {
    width: 150px;
  }

  .nav {
    grid-template-columns: 1fr;
    padding-right: 0;
    width: auto;
  }

  .nav a {
    width: 280px !important;
    max-width: 100% !important;
    justify-content: flex-start;
  }

  .nav a span:last-child {
    display: none;
  }

  .theme-box {
    margin-top: 0;
  }

  .theme-toggle {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
  }

  .theme-toggle span:last-child {
    min-width: 58px;
    margin-left: 0;
  }

  .grid.cols-3,
  .grid.cols-2,
  .friend-card,
  .appearance-body,
  .appearance-background-row,
  .admin-token-grid,
  .dashboard-grid,
  .profile-stream-layout,
  .form-grid,
  .auth-layout,
  .section-head,
  .public-cta-panel,
  .referral-stats,
  .referral-invite-row,
  .referral-hof-grid,
  .messages-workspace,
  .chat-console,
  .draw-studio,
  .profile-hero,
  .profile-quick-facts,
  .profile-composer-grid,
  .photo-grid,
  .checkbox-grid,
  .question-layout,
  .oracle-request-layout,
  .answered-question-list .table-list div,
  .case-grid,
  .score-grid {
    grid-template-columns: 1fr;
  }

  .member-profile-hero {
    grid-template-columns: 1fr;
  }

  .member-profile-main-photo,
  .member-profile-avatar {
    min-height: 280px;
    aspect-ratio: 4 / 3;
  }

  .profile-stream-icon-library {
    height: auto;
    max-height: 150px !important;
  }

  .profile-stream-icon-panel {
    height: auto !important;
    min-height: 0 !important;
  }

  .referral-qr-card {
    grid-template-columns: 1fr;
  }

  .profile-stream-icon-panel > .icon-library.profile-stream-icon-library {
    height: auto !important;
    max-height: 150px !important;
  }

  .profile-stream-editor .profile-stream-editor-controls {
    grid-template-columns: 1fr !important;
  }

  .friend-profile-photo {
    min-height: 220px;
    aspect-ratio: 4 / 3;
  }

  .appearance-background-action-grid {
    grid-template-columns: 1fr;
  }

  .chat-head,
  .question-head,
  .live-message,
  .live-message.mine,
  .chat-input-row,
  .chess-chat-input-row,
  .group-chat-input-row,
  .activity-row {
    grid-template-columns: 1fr;
  }

  .notification-head,
  .notification-main {
    grid-template-columns: 1fr;
  }

  .notification-head {
    display: grid;
  }

  .password-control {
    grid-template-columns: 1fr;
  }

  .editor-head,
  .image-editor-grid {
    grid-template-columns: 1fr;
  }

  .editor-head {
    display: grid;
  }

  .chat-head,
  .room-create-panel,
  .question-head,
  .section-head {
    display: grid;
  }

  .question-progress {
    text-align: left;
  }

  .question-mode-options,
  .category-toggle-grid,
  .compatibility-pills,
  .question-compare-legend,
  .question-compare-answers,
  .question-importance-options.compact {
    grid-template-columns: 1fr;
  }

  .question-importance-options {
    grid-template-columns: 1fr;
  }

  .question-compare-drawer {
    padding: 14px;
  }

  .profile-message-drawer {
    padding: 14px;
  }

  .oracle-apply-drawer {
    padding: 14px;
  }

  .question-answer-slide {
    inset: auto 10px 10px 10px;
  }

  .live-message.mine .live-avatar,
  .live-message.mine .live-bubble {
    order: unset;
  }

  .live-message > .live-avatar {
    width: 72px;
  }

  .avatar {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    font-size: 38px;
  }

  .public-profile-preview .profile-main-photo,
  .public-profile-preview .avatar {
    max-width: none;
    min-height: 260px;
    height: auto;
  }

  .page {
    width: 100%;
    max-width: 100%;
  }

  .messages-thread-panel {
    min-height: 0;
  }

  .messages-friend-list,
  .direct-thread {
    max-height: none;
  }

  .message-friend-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .message-profile-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .message-profile-panel .message-profile-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .message-profile-photo-wrap,
  .message-profile-details {
    min-height: 118px;
  }

  .message-profile-photo {
    min-height: 118px;
  }

  .message-profile-panel .message-profile-photo {
    min-height: 220px;
  }

  .message-friend-meta {
    grid-column: 2;
    justify-items: start;
    grid-auto-flow: column;
    justify-content: start;
  }
}

@media (min-width: 861px) and (max-width: 1260px) {
  .messages-workspace {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  }

  .message-profile-panel {
    grid-column: 1 / -1;
  }

  .message-profile-panel .message-profile-photo {
    min-height: 280px;
    max-height: 440px;
  }
}

.marketplace-toolbar,
.marketplace-editor,
.marketplace-detail {
  display: grid;
  gap: 18px;
}

.marketplace-grid {
  align-items: stretch;
}

.marketplace-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  min-height: 100%;
}

.marketplace-card-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  background: color-mix(in srgb, var(--panel) 74%, var(--blue) 26%);
  border: 1px solid var(--blue-border);
}

.marketplace-card-photo.placeholder {
  display: grid;
  place-items: center;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
}

.marketplace-card-body {
  display: grid;
  gap: 10px;
  align-content: start;
}

.marketplace-card-body h2,
.marketplace-detail-copy h2,
.marketplace-connector h2 {
  margin: 0;
  overflow-wrap: anywhere;
}

.marketplace-card-body p,
.marketplace-detail-copy p {
  overflow-wrap: anywhere;
}

.marketplace-price-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.marketplace-price-row strong,
.marketplace-detail-price {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 4px 10px;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  background: #fff1f2;
  color: #7f1d1d;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.marketplace-table .button-row {
  justify-content: flex-end;
}

.marketplace-connector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.marketplace-editor-preview {
  max-width: 360px;
}

.marketplace-editor-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--blue-border);
}

.marketplace-detail {
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.marketplace-detail-media img,
.marketplace-detail-media .marketplace-card-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--blue-border);
}

.marketplace-detail-copy {
  display: grid;
  gap: 14px;
}

.seller-strip {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--blue-border);
  background: color-mix(in srgb, var(--panel) 82%, var(--blue) 18%);
}

.danger-text {
  color: var(--red);
}

@media (max-width: 860px) {
  .marketplace-detail,
  .marketplace-connector {
    grid-template-columns: 1fr;
  }

  .marketplace-table .button-row,
  .marketplace-price-row,
  .seller-strip {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .menu-float {
    top: 10px;
    left: 10px;
    z-index: 40;
  }

  .sidebar,
  .sidebar-collapsed .sidebar {
    width: 100vw;
    max-width: 100vw;
    padding: 72px 18px 22px;
  }

  .sidebar {
    transform: translateX(0);
  }

  .sidebar-collapsed .sidebar {
    transform: translateX(-100%);
  }

  .brand img {
    width: 170px;
  }

  .nav {
    width: 100%;
  }

  .nav a,
  .theme-toggle {
    width: 100% !important;
    max-width: 100% !important;
  }

  .main {
    padding: 64px 14px 116px;
  }

  .friend-online-toasts {
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }

  .pwa-install-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 42;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--blue-border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--panel) 94%, #000 6%);
    box-shadow: 0 18px 42px var(--shadow);
  }

  .pwa-install-banner img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
  }

  .pwa-install-banner div {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .pwa-install-banner strong,
  .pwa-install-banner span,
  .pwa-install-banner em {
    overflow-wrap: anywhere;
  }

  .pwa-install-banner strong {
    color: var(--text);
    font-size: 14px;
    line-height: 1.15;
  }

  .pwa-install-banner span,
  .pwa-install-banner em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    line-height: 1.25;
  }

  .pwa-install-banner .btn.small,
  .pwa-install-banner .tiny-btn {
    margin: 0;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar,
  .app-shell {
    transition: none;
  }

  .friend-online-toast {
    animation: none;
  }

  .l2c-preloader,
  .l2c-preloader *,
  .l2c-preloader::before,
  .l2c-preloader::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
