:root {
  --ink: #111827;
  --paper: #f5f7fb;
  --glass: rgba(236, 242, 250, 0.88);
  --glass-strong: rgba(255, 255, 255, 0.94);
  --line: #243147;
  --line-soft: #7f8da8;
  --chrome: #c9d2e1;
  --chrome-dark: #465874;
  --task: #d7deea;
  --blue: #23549d;
  --blue-bright: #4f8ee8;
  --aqua: #26c2d8;
  --violet: #7d68d8;
  --pink: #d74788;
  --green: #48a868;
  --gold: #f0b33c;
  --red: #c84b52;
  --shadow: 0 18px 42px rgba(8, 17, 35, 0.38), 0 3px 8px rgba(8, 17, 35, 0.28);
  --inner: inset 0 1px 0 rgba(255, 255, 255, 0.88), inset 0 -1px 0 rgba(44, 58, 86, 0.28);
  --radius: 7px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  background: #0c1424;
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  letter-spacing: 0;
  margin: 0;
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  background:
    linear-gradient(#ffffff 0%, #edf1f8 44%, #c7d2e5 45%, #eef3fb 100%);
  border: 1px solid #536680;
  border-radius: 4px;
  box-shadow: var(--inner), 0 1px 2px rgba(0, 0, 0, 0.25);
  color: #102039;
  cursor: pointer;
  font-weight: 600;
  min-height: 30px;
  padding: 6px 12px;
}

button:hover {
  border-color: #2c68b8;
  filter: saturate(1.08) brightness(1.03);
}

button:active {
  background: linear-gradient(#b7c5db, #f3f7ff);
  box-shadow: inset 0 2px 5px rgba(26, 42, 72, 0.35);
  transform: translateY(1px);
}

button:disabled {
  color: #66758c;
  cursor: not-allowed;
  filter: grayscale(0.4);
  opacity: 0.7;
}

button.primary {
  background:
    linear-gradient(#fff2b2 0%, #f7ca5c 46%, #d99321 47%, #ffd56c 100%);
  border-color: #8a5f14;
  color: #2e2109;
}

input,
textarea {
  background:
    linear-gradient(#f6f8fd, #ffffff);
  border: 1px solid #66758d;
  border-radius: 3px;
  box-shadow: inset 0 1px 3px rgba(12, 24, 48, 0.2);
  color: var(--ink);
  min-height: 34px;
  padding: 7px 9px;
  width: 100%;
}

textarea {
  line-height: 1.4;
  resize: vertical;
}

.boot-screen {
  align-items: center;
  background:
    linear-gradient(135deg, #081226, #183969 48%, #0b1526);
  color: #dfe8f9;
  display: grid;
  inset: 0;
  justify-items: center;
  position: fixed;
  z-index: 1000;
}

.boot-screen.hidden {
  animation: bootOut 500ms ease forwards;
}

.boot-box {
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(205, 216, 234, 0.88));
  border: 1px solid #7e8eaa;
  border-radius: 8px;
  box-shadow: var(--shadow), inset 0 1px 0 #fff;
  color: #18304e;
  padding: 24px;
  width: min(440px, calc(100% - 36px));
}

.boot-box p,
.boot-box strong {
  display: block;
  margin: 0 0 14px;
}

.boot-meter {
  background: #7e8da7;
  border: 1px solid #506174;
  border-radius: 10px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
  height: 18px;
  overflow: hidden;
}

.boot-meter span {
  animation: bootLoad 1200ms ease forwards;
  background:
    linear-gradient(90deg, #1959aa, #69b5ff 45%, #1d6ad3);
  display: block;
  height: 100%;
  width: 0;
}

@keyframes bootLoad {
  to {
    width: 100%;
  }
}

@keyframes bootOut {
  to {
    opacity: 0;
    pointer-events: none;
  }
}

.os-shell {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.35) 0 2px, transparent 2px 90px) 0 0 / 180px 180px,
    linear-gradient(150deg, transparent 0 42%, rgba(255, 255, 255, 0.14) 43% 46%, transparent 47% 100%),
    linear-gradient(135deg, #7890b9 0%, #2f5f9f 38%, #101a30 100%);
  height: 100%;
  overflow: hidden;
  position: relative;
}

.os-shell::before {
  background:
    linear-gradient(110deg, transparent 0 12%, rgba(255, 255, 255, 0.24) 13% 16%, transparent 17% 100%),
    linear-gradient(82deg, transparent 0 55%, rgba(183, 213, 255, 0.22) 56% 59%, transparent 60%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.topbar {
  align-items: center;
  background:
    linear-gradient(#f9fbff, #cdd7e7 48%, #8f9db7 49%, #dce4f1);
  border-top: 1px solid rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid #1c2f4e;
  bottom: 0;
  box-shadow: inset 0 1px 0 #fff, 0 -2px 14px rgba(0, 0, 0, 0.34);
  display: grid;
  gap: 7px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  height: 44px;
  left: 0;
  padding: 5px 8px;
  position: fixed;
  right: 0;
  z-index: 80;
}

.start-button {
  background:
    linear-gradient(#ffffff, #d9e4f6 42%, #366ab2 43%, #183f79);
  border-color: #1a3154;
  border-radius: 5px;
  color: #fff;
  letter-spacing: 0;
  min-width: 92px;
  text-shadow: 0 -1px 0 #0a1a32;
}

.topbar-tabs {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.task-tab {
  align-items: center;
  background:
    linear-gradient(#f9fbff, #dfe7f4 52%, #b5c2d7);
  border: 1px solid #526782;
  border-radius: 4px;
  color: #172338;
  display: none;
  font-size: 0.86rem;
  font-weight: 600;
  gap: 6px;
  min-height: 29px;
  padding: 5px 11px;
  white-space: nowrap;
}

.task-tab.open {
  display: inline-flex;
}

.task-tab.active {
  background:
    linear-gradient(#6aa7fb, #245ca7 48%, #123970);
  color: #fff;
  text-shadow: 0 -1px 0 #07152a;
}

.task-tab.minimized {
  opacity: 0.72;
}

.topbar-stats {
  align-items: center;
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.topbar-stats span {
  background:
    linear-gradient(#17243d, #283c61);
  border: 1px solid #7284a1;
  border-radius: 4px;
  color: #eaf2ff;
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 8px;
}

#balanceBadge {
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
}

#balanceBadge.balance-flash-spend {
  animation: balance-flash-spend 620ms ease;
}

#balanceBadge.balance-flash-earn {
  animation: balance-flash-earn 620ms ease;
}

#balanceBadge.balance-flash-locked {
  animation: balance-flash-locked 540ms ease;
}

@keyframes balance-flash-spend {
  0% { background: linear-gradient(#ff4fa3, #b41776); color: #fff5fb; transform: scale(1.08); }
  100% { background: linear-gradient(#17243d, #283c61); color: #eaf2ff; transform: scale(1); }
}

@keyframes balance-flash-earn {
  0% { background: linear-gradient(#13d5c4, #058a7d); color: #f4ffff; transform: scale(1.08); }
  100% { background: linear-gradient(#17243d, #283c61); color: #eaf2ff; transform: scale(1); }
}

@keyframes balance-flash-locked {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); border-color: #ff5f5f; }
  50% { transform: translateX(3px); border-color: #ff5f5f; }
  75% { transform: translateX(-2px); border-color: #ff5f5f; }
}

#subscribeButton.subscribe-pulse {
  animation: subscribe-pulse 880ms ease;
}

@keyframes subscribe-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 79, 163, 0.0); transform: scale(1); }
  25% { box-shadow: 0 0 0 6px rgba(255, 79, 163, 0.55); transform: scale(1.06); }
  60% { box-shadow: 0 0 0 12px rgba(255, 79, 163, 0.0); transform: scale(1); }
  100% { box-shadow: 0 0 0 0 rgba(255, 79, 163, 0.0); transform: scale(1); }
}

.notification-terminal {
  position: relative;
}

.notification-button {
  align-items: center;
  background:
    linear-gradient(#ffffff, #e9f0fb 52%, #c0d0e6);
  border: 1px solid #526782;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(16, 32, 58, 0.2);
  color: #172338;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 6px;
  min-height: 29px;
  padding: 5px 10px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.notification-button.has-alerts .notification-bell {
  animation: bell-pop 1.8s ease-in-out infinite;
}

.notification-button strong {
  background: #d74788;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  color: #fff;
  min-width: 20px;
  padding: 1px 6px;
  text-align: center;
  text-shadow: none;
}

.notification-bell {
  background:
    radial-gradient(circle at 50% 82%, #7d5420 0 10%, transparent 11%),
    radial-gradient(circle at 50% 26%, #fff3b2 0 18%, transparent 19%),
    linear-gradient(#fbd45e, #c68a25);
  border: 1px solid #8d6421;
  border-radius: 10px 10px 8px 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 2px rgba(20, 34, 56, 0.22);
  display: inline-block;
  height: 16px;
  position: relative;
  width: 15px;
}

.notification-bell::after {
  background: #7d5420;
  border-radius: 999px;
  bottom: -4px;
  content: "";
  height: 5px;
  left: 5px;
  position: absolute;
  width: 5px;
}

.notification-panel {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(225, 235, 249, 0.94) 54%, rgba(194, 209, 230, 0.96)),
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.9), transparent 28%);
  border: 1px solid #788ba8;
  border-radius: 12px;
  bottom: calc(100% + 8px);
  box-shadow: inset 0 1px 0 #fff, 0 -12px 36px rgba(21, 38, 68, 0.34);
  color: #1f304d;
  max-height: min(580px, calc(100vh - 76px));
  overflow: hidden;
  padding: 12px;
  position: absolute;
  right: 0;
  width: min(430px, calc(100vw - 24px));
}

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

.notification-titlebar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.notification-titlebar strong {
  color: #152742;
  font-size: 1.02rem;
}

.notification-titlebar button {
  background: linear-gradient(#fff, #dde7f6);
  border-color: #7e8fa8;
  color: #24344f;
  min-height: 26px;
  padding: 3px 10px;
}

.notification-log {
  display: grid;
  gap: 9px;
  max-height: min(500px, calc(100vh - 140px));
  overflow: auto;
  padding: 2px 4px 2px 0;
}

.notification-line {
  background:
    linear-gradient(#ffffff, #eef4fc);
  border: 1px solid #9aabc4;
  border-left: 7px solid #6aa7fb;
  border-radius: 9px;
  box-shadow: inset 0 1px 0 #fff, 0 3px 9px rgba(19, 36, 65, 0.12);
  color: #24344f;
  display: grid;
  gap: 5px;
  padding: 10px 11px;
}

.notification-line.purchase,
.notification-line.subscription {
  border-left-color: #ff69a8;
}

.notification-line.earn,
.notification-line.work {
  border-left-color: #48a868;
}

.notification-line.dm,
.notification-line.relationship {
  border-left-color: #f0b33c;
}

.notification-line.tip,
.notification-line.stream {
  border-left-color: #38bdf8;
}

.notification-line span {
  color: #637087;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.notification-line strong {
  color: #15243e;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

@keyframes bell-pop {
  0%,
  100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(8deg) scale(1.08);
  }
}

.desktop {
  height: 100%;
  padding: 18px 18px 66px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.desktop-icons {
  align-content: flex-start;
  align-items: flex-start;
  bottom: 66px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 10px 14px;
  left: 18px;
  position: absolute;
  right: 18px;
  top: 18px;
}

.desktop-icon {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 94px;
  justify-content: flex-start;
  margin-bottom: 0;
  padding: 7px;
  text-shadow: 0 1px 2px #001226, 0 0 8px rgba(0, 0, 0, 0.45);
  width: 88px;
}

.desktop-icon:hover,
.desktop-icon:focus-visible {
  background: rgba(177, 208, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.78);
}

.icon-pixel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.1) 45%, rgba(0, 0, 0, 0.18)),
    var(--icon-bg, #6aa7fb);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  display: block;
  height: 44px;
  position: relative;
  width: 44px;
}

.icon-fans {
  --icon-bg: linear-gradient(135deg, #8a2be2, #e1519a);
}

.icon-stream {
  --icon-bg: linear-gradient(135deg, #2a5ed4, #25c5d8);
}

.icon-call {
  --icon-bg: linear-gradient(135deg, #1c7f6e, #74f2c2);
}

.icon-dm {
  --icon-bg: linear-gradient(135deg, #d74788, #f0b33c);
}

.icon-calendar {
  --icon-bg: linear-gradient(135deg, #fff7cf, #ef6f63);
}

.icon-calendar::before {
  background: #fff;
  border: 1px solid rgba(74, 54, 48, 0.35);
  border-radius: 4px;
  box-shadow: inset 0 9px 0 #ef6f63;
  content: "30";
  color: #27324b;
  font-size: 0.8rem;
  font-weight: 900;
  height: 25px;
  left: 9px;
  line-height: 31px;
  position: absolute;
  text-align: center;
  top: 9px;
  width: 25px;
  z-index: 2;
}

.icon-word {
  --icon-bg: linear-gradient(135deg, #164f9e, #7ab4ff);
}

.icon-word::before {
  color: #fff;
  content: "W";
  font-size: 1.35rem;
  font-weight: 800;
  left: 13px;
  position: absolute;
  text-shadow: 0 -1px 0 #0b2b59;
  top: 9px;
  z-index: 2;
}

.icon-gallery {
  --icon-bg: linear-gradient(135deg, #eeb948, #d05b76);
}

.icon-wallet {
  --icon-bg: linear-gradient(135deg, #258b5a, #88d59a);
}

.icon-settings {
  --icon-bg: linear-gradient(135deg, #465a78, #b7c4d8);
}

.icon-pixel::after {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 3px;
  box-shadow: 13px 10px 0 rgba(255, 255, 255, 0.5);
  content: "";
  height: 9px;
  left: 10px;
  position: absolute;
  top: 10px;
  width: 18px;
}

.ticker-window {
  background:
    linear-gradient(rgba(255, 255, 255, 0.95), rgba(215, 224, 239, 0.92));
  border: 1px solid #64738d;
  border-radius: 7px;
  top: 14px;
  box-shadow: var(--shadow), inset 0 1px 0 #fff, 0 4px 18px rgba(8, 14, 28, 0.32);
  max-width: 560px;
  padding: 12px 14px;
  position: absolute;
  right: 18px;
  width: calc(100% - 150px);
  z-index: 50;
}

.ticker-window p {
  background: linear-gradient(#273a62, #102342);
  border-radius: 3px;
  color: #fff;
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  margin: 0 0 7px;
  padding: 4px 7px;
}

.ticker-window strong {
  color: #1b2d48;
  display: block;
  line-height: 1.32;
}

.window {
  background:
    linear-gradient(rgba(239, 244, 251, 0.92), rgba(199, 210, 226, 0.92));
  border: 1px solid #17243d;
  border-radius: 8px 8px 5px 5px;
  box-shadow: var(--shadow);
  display: none;
  min-width: 320px;
  overflow: hidden;
  position: absolute;
  width: min(1080px, calc(100vw - 130px));
}

.window.open {
  display: block;
}

.window.active {
  z-index: 20;
}

.window-titlebar {
  align-items: center;
  background:
    linear-gradient(#eaf2ff 0%, #9fb2d4 7%, #315f9f 8%, #183f79 52%, #0e2a57 53%, #2b5f9d 100%);
  color: #fff;
  cursor: move;
  display: flex;
  font-weight: 700;
  justify-content: space-between;
  min-height: 34px;
  padding: 4px 5px 4px 10px;
  text-shadow: 0 -1px 0 #081b35;
  user-select: none;
}

.window-actions {
  display: flex;
  gap: 4px;
}

.window-actions button {
  align-items: center;
  background:
    linear-gradient(#ffffff, #dfe8f5 46%, #8d9cb4 47%, #c9d3e2);
  border-color: #26344a;
  border-radius: 50%;
  display: inline-flex;
  font-size: 0.82rem;
  height: 22px;
  justify-content: center;
  min-height: 22px;
  padding: 0;
  width: 24px;
}

.status-dot {
  background:
    radial-gradient(circle at 35% 30%, #ffffff, transparent 22%),
    linear-gradient(#9ef0af, #2d994f);
  border: 1px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(80, 255, 150, 0.7);
  display: inline-block;
  height: 11px;
  margin-right: 7px;
  width: 11px;
}

.status-dot.live {
  animation: blink 900ms steps(2, jump-none) infinite;
  background:
    radial-gradient(circle at 35% 30%, #ffffff, transparent 22%),
    linear-gradient(#ff9aa2, #bf2334);
  box-shadow: 0 0 8px rgba(255, 60, 80, 0.78);
}

@keyframes blink {
  50% {
    opacity: 0.38;
  }
}

.window-body {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(221, 229, 240, 0.72));
  border-top: 1px solid rgba(255, 255, 255, 0.62);
  max-height: calc(100vh - 112px);
  overflow: auto;
}

.slopfans-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 650px;
}

.creator-rail {
  background:
    linear-gradient(#f6f8fd, #c9d4e5);
  border-right: 1px solid #6d7d98;
  color: #fff;
  overflow: auto;
  padding: 10px;
}

.creator-button {
  align-items: center;
  background:
    linear-gradient(#fff, #e4ebf7 50%, #ccd8ea);
  border: 1px solid #7c8ca6;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(25, 42, 70, 0.2);
  color: var(--ink);
  display: grid;
  gap: 9px;
  grid-template-columns: 46px minmax(0, 1fr);
  margin-bottom: 9px;
  padding: 8px;
  text-align: left;
  width: 100%;
}

.creator-button.active {
  background:
    linear-gradient(#fff7cf, #f0c76a 50%, #cf9227);
  border-color: #8e681d;
}

.mini-avatar,
.avatar-large,
.avatar-live {
  --a: var(--aqua);
  --b: var(--pink);
  --c: var(--gold);
  background:
    radial-gradient(circle at 50% 38%, var(--c) 0 12%, transparent 13%),
    radial-gradient(circle at 48% 42%, var(--a) 0 28%, transparent 29%),
    linear-gradient(135deg, var(--b), var(--a));
  background-position: center;
  background-size: cover;
  border: 1px solid #26344a;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 2px 5px rgba(0, 0, 0, 0.28);
  display: block;
  height: 46px;
  overflow: hidden;
  position: relative;
  width: 46px;
}

.mini-avatar::before,
.avatar-large::before,
.avatar-live::before {
  background: var(--line);
  box-shadow: 30px 0 0 var(--line);
  content: "";
  height: 8px;
  left: 24px;
  position: absolute;
  top: 34%;
  width: 8px;
}

.mini-avatar::after,
.avatar-large::after,
.avatar-live::after {
  background: var(--line);
  content: "";
  height: 7px;
  left: 33%;
  position: absolute;
  top: 58%;
  width: 34%;
}

.photo-avatar::before,
.photo-avatar::after {
  display: none;
}

.photo-avatar {
  background-position: center;
  background-size: cover;
}

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

.creator-button span {
  color: #4c5a72;
  font-size: 0.8rem;
}

.creator-profile {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(212, 222, 237, 0.72));
  min-width: 0;
  padding: 14px;
}

.profile-hero {
  align-items: stretch;
  background: var(--glass-strong);
  border: 1px solid #8796b0;
  border-radius: 7px;
  box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(24, 42, 70, 0.22);
  display: grid;
  gap: 14px;
  grid-template-columns: 170px minmax(0, 1fr) 186px;
  padding: 14px;
}

.avatar-large {
  border-radius: 7px;
  height: 170px;
  width: 170px;
}

.profile-copy {
  min-width: 0;
}

.label {
  background:
    linear-gradient(#263a62, #0f223e);
  border-radius: 3px;
  color: #fff;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  margin: 0 0 8px;
  padding: 4px 7px;
  text-transform: uppercase;
}

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

h1 {
  color: #10213b;
  font-size: 2.08rem;
  line-height: 1;
  margin-bottom: 10px;
}

h2 {
  color: #15243e;
  font-size: 1rem;
  margin: 0;
}

.profile-copy p:not(.label) {
  color: #34445e;
  line-height: 1.42;
  margin-bottom: 12px;
}

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

.taste-card {
  background: linear-gradient(#ffffff, #e8f0fb);
  border: 1px solid #9aabc4;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 #fff;
  color: #2d3d59;
  padding: 8px;
}

.taste-card strong,
.taste-card span {
  display: block;
}

.taste-card strong {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.taste-card span {
  font-size: 0.78rem;
  line-height: 1.32;
}

.taste-card.likes {
  border-color: #62a878;
}

.taste-card.dislikes {
  border-color: #c78282;
}

.profile-actions {
  display: grid;
  gap: 8px;
}

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

.meter {
  background: #51627e;
  border: 1px solid #22304a;
  border-radius: 9px;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.42);
  height: 17px;
  overflow: hidden;
}

.meter span {
  background:
    linear-gradient(90deg, #d74788, #f0b33c, #48a868);
  display: block;
  height: 100%;
  width: 0;
}

.content-split {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 14px;
}

.goal-panel {
  background: var(--glass-strong);
  border: 1px solid #8796b0;
  border-radius: 7px;
  box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(24, 42, 70, 0.18);
  margin-top: 14px;
  padding: 12px;
}

.goal-status {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  margin-bottom: 12px;
}

.goal-status > div {
  background: linear-gradient(#ffffff, #e6edf8);
  border: 1px solid #9aa8bf;
  border-radius: 6px;
  padding: 10px;
}

.goal-status strong {
  color: #173051;
  display: block;
  font-size: 1.15rem;
}

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

.goal-card {
  background: linear-gradient(#ffffff, #e7edf7);
  border: 1px solid #8796b0;
  border-radius: 7px;
  box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(26, 42, 72, 0.16);
  display: grid;
  gap: 8px;
  min-height: 190px;
  padding: 10px;
}

.goal-card strong,
.goal-card p {
  margin: 0;
}

.goal-card p {
  color: #526078;
  font-size: 0.86rem;
  line-height: 1.32;
}

.goal-meta {
  align-items: center;
  color: #526078;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 0.82rem;
}

.media-shop,
.chat-pane,
.wallet-panel {
  background: var(--glass-strong);
  border: 1px solid #8796b0;
  border-radius: 7px;
  box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(24, 42, 70, 0.18);
  padding: 12px;
}

.dm-layout {
  background:
    linear-gradient(135deg, rgba(247, 250, 255, 0.84), rgba(205, 215, 231, 0.84));
  display: grid;
  gap: 12px;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 560px;
  padding: 12px;
}

.dm-contact-list,
.dm-thread {
  background: var(--glass-strong);
  border: 1px solid #8796b0;
  border-radius: 7px;
  box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(24, 42, 70, 0.18);
  padding: 12px;
}

.dm-contact-list {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 560px;
  overflow: auto;
  scrollbar-gutter: stable;
}

.dm-contact-card {
  align-items: center;
  background: linear-gradient(#ffffff, #e3ecf8 52%, #cad8ea);
  border: 1px solid #7c8ca6;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 #fff, 0 2px 5px rgba(18, 36, 66, 0.14);
  display: grid;
  gap: 10px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  line-height: 1.2;
  min-height: 68px;
  padding: 9px;
  text-align: left;
  width: 100%;
}

.dm-contact-card.active {
  background: linear-gradient(#fff7cf, #f0c76a 52%, #cf9227);
  border-color: #8e681d;
}

.dm-contact-avatar {
  background-position: center;
  background-size: cover;
  border: 1px solid #26344a;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 2px 5px rgba(0, 0, 0, 0.24);
  height: 42px;
  width: 42px;
}

.dm-contact-copy {
  min-width: 0;
}

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

.dm-contact-copy span {
  color: #58667b;
  font-size: 0.74rem;
  line-height: 1.25;
}

.dm-unread-pill {
  background: #d74788;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  min-width: 24px;
  padding: 4px 7px;
  text-align: center;
}

.dm-thread {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dm-context {
  background: linear-gradient(#fffdf2, #f4e3ad);
  border: 1px solid #b98525;
  border-radius: 6px;
  color: #3d2b0b;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  padding: 8px 9px;
}

.calendar-layout {
  background:
    linear-gradient(135deg, rgba(252, 248, 238, 0.9), rgba(213, 225, 242, 0.9));
  display: grid;
  gap: 12px;
  min-height: 650px;
  padding: 12px;
}

.calendar-hero {
  align-items: stretch;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.95), transparent 32%),
    linear-gradient(135deg, #fff7cf, #e6eefb 52%, #bdd1eb);
  border: 1px solid #8796b0;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(24, 42, 70, 0.18);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 210px;
  padding: 14px;
}

.calendar-hero h2,
.calendar-hero p {
  margin: 0;
}

.calendar-hero h2 {
  color: #172b4a;
  font-size: clamp(1.4rem, 3vw, 2.15rem);
}

.calendar-hero p:not(.label) {
  color: #40506a;
  line-height: 1.42;
  margin-top: 6px;
}

.calendar-countdown {
  background:
    linear-gradient(#ffffff, #e8f0fb);
  border: 1px solid #9aabc4;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  justify-items: end;
  padding: 12px;
  text-align: right;
}

.calendar-countdown strong {
  color: #d74788;
  font-size: 1.08rem;
}

.calendar-countdown span {
  color: #15243e;
  font-size: 1.45rem;
  font-weight: 900;
}

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

.calendar-card {
  background: var(--glass-strong);
  border: 1px solid #8796b0;
  border-radius: 9px;
  box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(24, 42, 70, 0.14);
  display: grid;
  gap: 8px;
  min-height: 155px;
  padding: 12px;
}

.calendar-card strong {
  color: #172b4a;
  font-size: 1.02rem;
}

.calendar-card span {
  color: #526078;
  font-size: 0.86rem;
  line-height: 1.35;
}

.calendar-progress {
  background: #c7d2e3;
  border: 1px solid #7f8ca3;
  border-radius: 999px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.22);
  height: 14px;
  overflow: hidden;
}

.calendar-progress span {
  background: linear-gradient(90deg, #48a868, #f0b33c, #d74788);
  display: block;
  height: 100%;
  width: 0;
}

.story-card {
  background:
    linear-gradient(135deg, rgba(255, 253, 242, 0.96), rgba(244, 227, 173, 0.94));
  border-color: #b98525;
}

.calendar-main {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(360px, 1fr) minmax(320px, 0.85fr);
  min-height: 0;
}

.calendar-month,
.calendar-daily {
  background: var(--glass-strong);
  border: 1px solid #8796b0;
  border-radius: 9px;
  box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(24, 42, 70, 0.14);
  min-width: 0;
  padding: 12px;
}

.calendar-day-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-day-button {
  background: linear-gradient(#ffffff, #e7edf7);
  border: 1px solid #97a8c2;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 #fff;
  color: #1d2f4e;
  display: grid;
  gap: 4px;
  min-height: 68px;
  padding: 8px;
  text-align: left;
}

.calendar-day-button strong {
  font-size: 1rem;
}

.calendar-day-button span {
  color: #66758e;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.calendar-day-button.has-log {
  border-color: #d74788;
}

.calendar-day-button.date-day {
  background:
    linear-gradient(#fff1f7, #f4bdd5 52%, #d74788);
  border-color: #8f2a57;
}

.calendar-day-button.deadline-day {
  background:
    linear-gradient(#f4efff, #c7b6ff 52%, #7c3aed);
  border-color: #4c1d95;
}

.calendar-day-button.date-day span,
.calendar-day-button.deadline-day span {
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.28);
}

.calendar-day-button.current {
  background: linear-gradient(#fff7cf, #f0c76a 52%, #cf9227);
  border-color: #8e681d;
}

.calendar-day-button.active {
  outline: 3px solid rgba(56, 189, 248, 0.45);
}

.calendar-day-button.past {
  opacity: 0.82;
}

.calendar-log {
  display: grid;
  gap: 9px;
  max-height: 456px;
  overflow: auto;
  padding-right: 4px;
}

.calendar-entry {
  background: linear-gradient(#ffffff, #eef4fc);
  border: 1px solid #9aabc4;
  border-left: 7px solid #6aa7fb;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 #fff, 0 2px 7px rgba(18, 36, 66, 0.1);
  display: grid;
  gap: 4px;
  padding: 9px 10px;
}

.calendar-entry.purchase,
.calendar-entry.subscription {
  border-left-color: #d74788;
}

.calendar-entry.earn,
.calendar-entry.work {
  border-left-color: #48a868;
}

.calendar-entry.dm,
.calendar-entry.relationship,
.calendar-entry.story {
  border-left-color: #f0b33c;
}

.calendar-entry.date,
.calendar-entry.deadline {
  border-left-color: #7c3aed;
}

.calendar-entry span {
  color: #637087;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.calendar-entry strong {
  color: #15243e;
  line-height: 1.35;
}

.pane-heading {
  align-items: center;
  background:
    linear-gradient(#f5f8fd, #d7e0ef);
  border: 1px solid #8c9ab3;
  border-radius: 5px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 8px;
}

.pane-heading span {
  background:
    linear-gradient(#e9fbff, #73d7e7);
  border: 1px solid #377f90;
  border-radius: 3px;
  color: #082936;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 6px;
}

.date-cutscene {
  align-items: center;
  background: rgba(7, 13, 26, 0.68);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 22px;
  position: fixed;
  z-index: 120;
}

.date-cutscene.hidden {
  display: none;
}

.cutscene-card {
  background: linear-gradient(rgba(239, 244, 251, 0.96), rgba(199, 210, 226, 0.96));
  border: 1px solid #17243d;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  width: min(880px, calc(100vw - 32px));
}

.cutscene-body {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  padding: 14px;
}

.cutscene-visual {
  --a: var(--aqua);
  --b: var(--pink);
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(135deg, var(--a), var(--b));
  background-position: center;
  background-size: cover;
  border: 1px solid #26344a;
  border-radius: 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 5px 18px rgba(0, 0, 0, 0.24);
}

.cutscene-copy {
  background: var(--glass-strong);
  border: 1px solid #8796b0;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
}

.cutscene-copy p:not(.label) {
  color: #34445e;
  line-height: 1.45;
}

.cutscene-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

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

.media-card {
  background:
    linear-gradient(#ffffff, #e7edf7);
  border: 1px solid #8796b0;
  border-radius: 7px;
  box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(26, 42, 72, 0.16);
  display: grid;
  gap: 8px;
  min-height: 254px;
  padding: 8px;
}

.media-thumb {
  align-items: end;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.4), transparent 25%),
    linear-gradient(135deg, var(--thumb-a, var(--aqua)), var(--thumb-b, var(--pink)));
  border: 1px solid #26344a;
  border-radius: 5px;
  display: flex;
  overflow: hidden;
  padding: 8px;
  position: relative;
}

.media-thumb::before {
  background:
    linear-gradient(120deg, transparent 0 38%, rgba(255, 255, 255, 0.35) 39% 44%, transparent 45% 100%);
  content: "";
  inset: 0;
  opacity: 0.55;
  position: absolute;
}

.media-thumb span {
  background: rgba(16, 28, 49, 0.86);
  border-radius: 3px;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 7px;
  position: relative;
}

.media-thumb.generated-thumb {
  background-position: center;
  background-size: cover;
}

.media-thumb.generated-thumb::before {
  background:
    linear-gradient(180deg, transparent 0 52%, rgba(8, 14, 28, 0.78) 100%);
  opacity: 1;
}

.media-card strong,
.media-card p {
  margin: 0;
}

.media-card p {
  color: #526078;
  font-size: 0.86rem;
  line-height: 1.32;
}

.media-card--locked .media-thumb::after {
  background: rgba(16, 28, 49, 0.55);
  border-radius: 5px;
  content: "🔒";
  display: grid;
  font-size: 1.8rem;
  inset: 0;
  place-items: center;
  position: absolute;
}

.media-card--locked button[data-locked="1"] {
  background: linear-gradient(#f5e1c8, #d9b67e);
  border: 1px solid #8a6328;
  color: #4a2e08;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.media-card--locked button[data-locked="1"]:hover {
  background: linear-gradient(#fdebcb, #e0bc83);
}

.chat-log,
.live-chat {
  background:
    linear-gradient(#101a2e, #1c2b45);
  border: 1px solid #25344f;
  border-radius: 5px;
  box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 380px;
  overflow: auto;
  padding: 10px;
}

.dm-thread .chat-log {
  flex: 1;
  min-height: 0;
}

.chat-bubble {
  background:
    linear-gradient(#ffffff, #dde7f6);
  border: 1px solid #8796b0;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
  color: #172338;
  line-height: 1.35;
  padding: 8px 9px;
}

.chat-bubble.player {
  background:
    linear-gradient(#eefcff, #c7edf4);
}

.chat-bubble.system {
  background:
    linear-gradient(#fff3fa, #efc4d9);
  color: #402136;
  font-size: 0.86rem;
}

.chat-bubble.relationship {
  background:
    linear-gradient(#fff7d9, #f0c76a);
  border-color: #b98525;
  color: #402b08;
  font-size: 0.86rem;
  font-weight: 700;
}

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

.stream-layout {
  display: grid;
  gap: 0;
  grid-template-columns: 210px minmax(0, 1fr) 280px;
  min-height: 570px;
}

.stream-list,
.live-chat {
  background:
    linear-gradient(#dce5f2, #aebcd1);
}

.stream-list {
  border-right: 1px solid #6d7d98;
  overflow: auto;
  padding: 10px;
}

.streamer-button {
  background:
    linear-gradient(#ffffff, #e3ebf7 50%, #cbd7e8);
  border: 1px solid #7c8ca6;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(25, 42, 70, 0.2);
  display: block;
  margin-bottom: 9px;
  padding: 9px;
  text-align: left;
  width: 100%;
}

.streamer-button.active {
  background:
    linear-gradient(#fff2c4, #f0b33c 50%, #b56f19);
}

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

.streamer-button span {
  color: #4c5a72;
  font-size: 0.82rem;
}

.stream-stage {
  background:
    linear-gradient(135deg, rgba(247, 250, 255, 0.82), rgba(205, 215, 231, 0.82));
  min-width: 0;
  padding: 12px;
}

.live-video {
  align-items: center;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 32%),
    linear-gradient(135deg, #111a31, #26345c 42%, #0a5265);
  background-position: center;
  background-size: cover;
  border: 1px solid #17243d;
  border-radius: 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 5px 14px rgba(0, 0, 0, 0.32);
  display: grid;
  justify-items: center;
  overflow: hidden;
  position: relative;
}

.ai-loop-video {
  background: #10192f;
  height: 100%;
  inset: 0;
  object-fit: cover;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.ai-loop-video[hidden] {
  display: none;
}

.live-video.has-loop,
.call-video.has-loop {
  background: #07101d;
}

.live-video.missing-loop::before,
.call-video.missing-loop::before {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(110, 243, 214, 0.18), rgba(215, 71, 136, 0.16)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  color: #e8fbff;
  content: "AI loop not generated yet";
  display: flex;
  font-size: 0.82rem;
  font-weight: 800;
  inset: 38% 24%;
  justify-content: center;
  letter-spacing: 0.08em;
  position: absolute;
  text-align: center;
  text-transform: uppercase;
  z-index: 2;
}

.scanlines {
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 5px);
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}

.avatar-live {
  animation: bob 1200ms ease-in-out infinite alternate;
  border-radius: 9px;
  height: 210px;
  width: 210px;
  z-index: 2;
}

@keyframes bob {
  to {
    transform: translateY(-10px) rotate(1.4deg);
  }
}

.live-lower {
  align-items: center;
  background: rgba(12, 21, 38, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  bottom: 12px;
  color: #fff;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  left: 12px;
  padding: 8px 10px;
  position: absolute;
  right: 12px;
  z-index: 4;
}

.live-lower span {
  color: #ffd87b;
  white-space: nowrap;
}

.stream-controls {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
}

.call-layout {
  display: grid;
  gap: 12px;
  grid-template-columns: 260px minmax(0, 1fr) 330px;
  min-height: 620px;
  padding: 12px;
}

.call-contacts,
.call-stage,
.call-side {
  background: var(--glass-strong);
  border: 1px solid #8796b0;
  border-radius: 7px;
  box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(24, 42, 70, 0.18);
  padding: 12px;
}

.call-contacts {
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.92), rgba(205, 218, 236, 0.9));
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.call-contact-list {
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
}

.call-contact-card {
  align-items: center;
  background: linear-gradient(#ffffff, #e3ecf8 52%, #cad8ea);
  border: 1px solid #7c8ca6;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 #fff, 0 2px 5px rgba(18, 36, 66, 0.14);
  display: grid;
  gap: 9px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  padding: 9px;
  text-align: left;
}

.call-contact-card.selected {
  background: linear-gradient(#eef7ff, #b8dbff 52%, #82acd9);
  border-color: #2d649d;
}

.call-contact-card.locked {
  color: #6a7485;
  filter: grayscale(0.25);
}

.call-contact-card.in-call {
  background: linear-gradient(#ecfff9, #9ef0af 52%, #38a85f);
  border-color: #21783d;
}

.contact-orb {
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.9), transparent 24%),
    linear-gradient(135deg, var(--a), var(--b) 58%, var(--c));
  border: 1px solid #26344a;
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 2px 5px rgba(0, 0, 0, 0.24);
  height: 36px;
  width: 36px;
}

.contact-copy {
  min-width: 0;
}

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

.contact-copy span {
  color: #58667b;
  font-size: 0.74rem;
}

.contact-status {
  background: rgba(27, 45, 72, 0.1);
  border: 1px solid rgba(27, 45, 72, 0.15);
  border-radius: 999px;
  color: #203555;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 7px;
  text-transform: uppercase;
}

.call-contact-card.locked .contact-status {
  background: rgba(120, 126, 138, 0.18);
}

.call-stage {
  background:
    linear-gradient(180deg, rgba(242, 247, 255, 0.88), rgba(185, 201, 224, 0.84)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.95), transparent 44%);
}

.call-dial-header {
  color: #1e314f;
  margin-bottom: 10px;
  text-align: center;
}

.call-dial-header h2 {
  font-size: 1.85rem;
  margin: 2px 0 4px;
}

.call-dial-header p:last-child {
  color: #53637a;
  margin: 0;
}

.call-video {
  align-items: center;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.24), transparent 30%),
    linear-gradient(135deg, #111a31, #223763 45%, #0e5763);
  border: 1px solid #17243d;
  border-radius: 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 5px 14px rgba(0, 0, 0, 0.32);
  display: grid;
  justify-items: center;
  overflow: hidden;
  position: relative;
}

.call-video.connected {
  background:
    radial-gradient(circle at 48% 28%, rgba(255, 255, 255, 0.28), transparent 30%),
    linear-gradient(135deg, #111a31, #204060 45%, #0f665b);
}

.call-video.has-loop {
  background-position: center;
  background-size: cover;
}

.call-video.listening {
  box-shadow: inset 0 0 0 2px rgba(111, 243, 214, 0.55), 0 5px 16px rgba(0, 0, 0, 0.34);
}

.call-video.responding {
  box-shadow: inset 0 0 0 2px rgba(240, 179, 60, 0.6), 0 5px 16px rgba(0, 0, 0, 0.34);
}

.call-video.speaking {
  box-shadow: inset 0 0 0 2px rgba(215, 71, 136, 0.62), 0 5px 16px rgba(0, 0, 0, 0.34);
}

.call-video.missing-loop::before {
  content: attr(data-placeholder);
}

.call-signal {
  align-items: center;
  background: rgba(11, 18, 32, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  color: #dff9ff;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 700;
  gap: 6px;
  left: 12px;
  padding: 5px 7px;
  position: absolute;
  text-transform: uppercase;
  top: 12px;
  z-index: 4;
}

.call-signal span {
  background: #6ef3d6;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(110, 243, 214, 0.8);
  display: inline-block;
  height: 8px;
  width: 8px;
}

.avatar-call {
  --a: var(--aqua);
  --b: var(--pink);
  --c: var(--gold);
  animation: bob 1200ms ease-in-out infinite alternate;
  background:
    radial-gradient(circle at 50% 38%, var(--c) 0 12%, transparent 13%),
    radial-gradient(circle at 48% 42%, var(--a) 0 28%, transparent 29%),
    linear-gradient(135deg, var(--b), var(--a));
  background-position: center;
  background-size: cover;
  border: 1px solid #26344a;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 5px 18px rgba(0, 0, 0, 0.34);
  height: 240px;
  position: relative;
  width: 240px;
  z-index: 2;
}

.call-video.speaking .avatar-call {
  animation: bob 620ms ease-in-out infinite alternate;
}

.call-video.has-loop .avatar-call {
  opacity: 0;
}

.avatar-call::before {
  background: var(--line);
  box-shadow: 40px 0 0 var(--line);
  content: "";
  height: 10px;
  left: 84px;
  position: absolute;
  top: 36%;
  width: 10px;
}

.avatar-call::after {
  background: var(--line);
  content: "";
  height: 8px;
  left: 34%;
  position: absolute;
  top: 59%;
  width: 32%;
}

.avatar-call.photo-avatar::before,
.avatar-call.photo-avatar::after {
  display: none;
}

.call-wave {
  align-items: end;
  bottom: 58px;
  display: flex;
  gap: 4px;
  height: 34px;
  justify-content: center;
  left: 50%;
  opacity: 0;
  position: absolute;
  transform: translateX(-50%);
  transition: opacity 160ms ease;
  z-index: 4;
}

.call-video.listening .call-wave,
.call-video.speaking .call-wave {
  opacity: 1;
}

.call-wave span {
  animation: waveBar 680ms ease-in-out infinite alternate;
  background: linear-gradient(#fff, #6ef3d6);
  border-radius: 4px;
  display: block;
  height: 10px;
  width: 6px;
}

.call-wave span:nth-child(2) {
  animation-delay: 80ms;
}

.call-wave span:nth-child(3) {
  animation-delay: 160ms;
}

.call-wave span:nth-child(4) {
  animation-delay: 240ms;
}

.call-wave span:nth-child(5) {
  animation-delay: 320ms;
}

@keyframes waveBar {
  to {
    height: 32px;
  }
}

.call-lower {
  align-items: center;
  background: rgba(12, 21, 38, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  bottom: 12px;
  color: #fff;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  left: 12px;
  padding: 8px 10px;
  position: absolute;
  right: 12px;
  z-index: 4;
}

.call-lower span {
  color: #9ef0af;
}

.call-affinity-gate {
  background: linear-gradient(#ffffff, #dfe9f6);
  border: 1px solid #8b9ab2;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 #fff;
  color: #2a3d5d;
  font-size: 0.84rem;
  font-weight: 800;
  margin: 10px auto 0;
  max-width: 520px;
  padding: 8px 12px;
  text-align: center;
}

.call-affinity-gate.locked {
  background: linear-gradient(#fff3f3, #ffd4d4);
  border-color: #c26c6c;
  color: #7f2727;
}

.call-controls {
  align-items: center;
  display: flex;
  gap: 26px;
  justify-content: center;
  margin-top: 14px;
}

.call-orb {
  align-items: center;
  border: 1px solid rgba(30, 40, 58, 0.48);
  border-radius: 50%;
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.72),
    inset 0 -8px 14px rgba(0, 0, 0, 0.22),
    0 8px 16px rgba(15, 29, 52, 0.3);
  color: #fff;
  display: inline-flex;
  flex-direction: column;
  font-size: 0.72rem;
  font-weight: 900;
  gap: 3px;
  height: 86px;
  justify-content: center;
  min-height: 86px;
  padding: 0;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.38);
  text-transform: uppercase;
  width: 86px;
}

.call-orb.receive {
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.92), transparent 18%),
    linear-gradient(#6ffb8d, #18b84f 54%, #087b2d);
}

.call-orb.hang {
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.9), transparent 18%),
    linear-gradient(#ff8c8c, #e23a3a 54%, #9f1414);
}

.call-orb:disabled {
  cursor: not-allowed;
  filter: grayscale(0.85);
  opacity: 0.54;
}

.phone-receiver {
  border-bottom: 8px solid #fff;
  border-left: 5px solid transparent;
  border-radius: 0 0 28px 28px;
  border-right: 5px solid transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.28));
  height: 24px;
  transform: rotate(-34deg);
  width: 42px;
}

.call-orb.hang .phone-receiver {
  transform: rotate(146deg);
}

.call-secondary-controls {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 160px));
  justify-content: center;
  margin-top: 12px;
}

.call-log {
  background: linear-gradient(#101a2e, #1c2b45);
  border: 1px solid #25344f;
  border-radius: 5px;
  box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 390px;
  overflow: auto;
  padding: 10px;
}

.word-layout {
  background:
    linear-gradient(#d7e3f4, #aab8ce);
  overflow: hidden;
  padding: 10px;
}

.word-shell {
  background: #d9e4f4;
  border: 1px solid #566b88;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(16, 30, 55, 0.22);
  display: flex;
  flex-direction: column;
  height: min(720px, calc(100vh - 126px));
  min-height: 650px;
  overflow: hidden;
}

.word-ribbon {
  background:
    linear-gradient(#eef5ff, #c7d5ea 48%, #a7b7d0 49%, #d8e2f2);
  border-bottom: 1px solid #687b98;
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 6;
}

.word-topline {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 7px 9px 4px;
}

.word-orb {
  background:
    radial-gradient(circle at 35% 28%, #fff, rgba(255, 255, 255, 0.18) 28%),
    linear-gradient(#ffb36d, #d85a22 52%, #9e2f16);
  border-color: #8d2d12;
  border-radius: 50%;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  height: 44px;
  min-height: 44px;
  padding: 0;
  text-shadow: 0 -1px 0 #6b1d0d;
  width: 44px;
}

.word-quick {
  align-items: center;
  display: flex;
  gap: 5px;
  min-width: 0;
}

.word-quick button {
  font-size: 0.78rem;
  min-height: 25px;
  padding: 4px 8px;
}

#wordModeBadge {
  background: linear-gradient(#eff8ff, #89c5ef);
  border: 1px solid #376f9c;
  border-radius: 4px;
  color: #12304b;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 8px;
  text-transform: uppercase;
}

.word-tabs {
  align-items: end;
  display: flex;
  gap: 1px;
  overflow-x: auto;
  padding: 0 8px;
}

.word-tabs button {
  background: linear-gradient(#e8eef8, #c7d3e5);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  box-shadow: inset 0 1px 0 #fff;
  color: #20324e;
  font-size: 0.82rem;
  min-height: 28px;
  padding: 5px 12px;
  white-space: nowrap;
}

.word-tabs button.active {
  background: linear-gradient(#ffffff, #e5edf9);
  color: #10294b;
}

.word-tools {
  display: grid;
  gap: 7px;
  grid-template-columns: 1.1fr 1.2fr 1.25fr 1fr;
  padding: 7px 9px 9px;
}

.word-tools > div {
  background: linear-gradient(#f9fbff, #dbe5f4);
  border: 1px solid #8b9ab2;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 #fff;
  min-height: 54px;
  padding: 7px;
}

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

.word-tools strong {
  color: #18304e;
  font-size: 0.82rem;
}

.word-tools span {
  color: #56647a;
  font-size: 0.76rem;
  margin-top: 7px;
}

.word-main {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(320px, 34%) minmax(0, 1fr);
  min-height: 0;
}

.word-recents {
  background: linear-gradient(#f7f9fd, #d4deec);
  border-right: 1px solid #7e8da6;
  overflow: auto;
  padding: 10px;
}

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

.word-doc-button {
  background: linear-gradient(#ffffff, #e3ebf7 52%, #cbd7e8);
  border: 1px solid #7c8ca6;
  border-radius: 5px;
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(25, 42, 70, 0.16);
  display: block;
  padding: 9px;
  text-align: left;
  width: 100%;
}

.word-doc-button.active {
  background: linear-gradient(#fff2c4, #f0b33c 52%, #ca8524);
  border-color: #8a5f14;
}

.word-doc-button strong,
.word-doc-button span {
  display: block;
  line-height: 1.25;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.word-doc-button strong {
  color: #162842;
  font-size: 0.86rem;
}

.word-doc-button span {
  color: #506078;
  font-size: 0.75rem;
  margin-top: 4px;
}

.word-editor-frame {
  background: #8999b3;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  min-width: 0;
}

.word-ruler {
  align-items: center;
  background: linear-gradient(#f5f7fb, #d2dbea);
  border-bottom: 1px solid #75869e;
  display: flex;
  gap: 1px;
  height: 26px;
  padding-left: 58px;
}

.word-ruler span {
  background:
    repeating-linear-gradient(90deg, #6c7e98 0 1px, transparent 1px 18px);
  border-left: 1px solid #8797ad;
  display: block;
  height: 16px;
  width: 92px;
}

.word-paper-wrap {
  background:
    linear-gradient(90deg, #9ba9bf, #c7cfdb 8%, #aab7ca 92%, #8392aa);
  min-height: 0;
  overflow: auto;
  padding: 28px 38px;
  scrollbar-gutter: stable;
}

.word-image-strip {
  display: grid;
  gap: 16px;
  margin: 0 auto 18px;
  width: min(740px, 100%);
}

.word-image-strip[hidden] {
  display: none;
}

.word-inserted-image {
  background: #fff;
  border: 1px solid #6d7b90;
  box-shadow: 0 4px 14px rgba(20, 34, 56, 0.34);
  margin: 0;
  padding: 18px 18px 12px;
}

.word-inserted-image img,
.word-image-pending {
  background:
    linear-gradient(135deg, #111827, #334155);
  border: 1px solid #26344a;
  display: block;
  width: 100%;
}

.word-inserted-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.word-image-pending {
  align-items: center;
  aspect-ratio: 4 / 3;
  color: #eaf2ff;
  display: flex;
  font-weight: 800;
  justify-content: center;
}

.word-inserted-image figcaption {
  color: #333;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 0.92rem;
  margin-top: 8px;
  text-align: center;
}

.word-page {
  background: #fff;
  border: 1px solid #6d7b90;
  box-shadow: 0 4px 14px rgba(20, 34, 56, 0.38);
  color: #171717;
  display: block;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 auto;
  min-height: 760px;
  padding: 58px 64px;
  resize: none;
  width: min(740px, 100%);
}

.word-page.read-only {
  background: linear-gradient(#fff, #fbfbfb);
  cursor: default;
}

.word-status {
  align-items: center;
  background:
    linear-gradient(#eef4fc, #c6d2e3);
  border-top: 1px solid #687b98;
  color: #24344f;
  display: flex;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 16px;
  justify-content: space-between;
  min-height: 30px;
  padding: 5px 10px;
}

.live-chat {
  background:
    linear-gradient(#101a2e, #1c2b45);
  border-left: 1px solid #6d7d98;
  border-radius: 0;
  height: auto;
}

.gallery-layout,
.settings-layout {
  background:
    linear-gradient(135deg, rgba(247, 250, 255, 0.82), rgba(205, 215, 231, 0.82));
  padding: 14px;
}

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

.vault-item {
  background:
    linear-gradient(#ffffff, #e7edf7);
  border: 1px solid #8796b0;
  border-radius: 7px;
  box-shadow: inset 0 1px 0 #fff, 0 3px 9px rgba(26, 42, 72, 0.18);
  display: grid;
  gap: 8px;
  padding: 10px;
}

.vault-item img,
.vault-item video {
  background: #101526;
  border: 1px solid #26344a;
  border-radius: 5px;
  display: block;
  width: 100%;
}

.vault-item img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.vault-item video {
  aspect-ratio: 16 / 9;
}

.wallet-layout {
  background:
    linear-gradient(135deg, rgba(247, 250, 255, 0.82), rgba(205, 215, 231, 0.82));
  display: grid;
  gap: 12px;
  grid-template-columns: 230px minmax(0, 1fr) minmax(0, 1fr);
  padding: 14px;
}

#walletBalance {
  color: #1b3152;
  display: block;
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 14px;
}

.wallet-cap-meter {
  background: linear-gradient(#9aa9bf, #dfe6f1);
  border: 1px solid #536680;
  border-radius: 999px;
  box-shadow: inset 0 2px 5px rgba(20, 35, 60, 0.28);
  height: 13px;
  margin: -4px 0 12px;
  overflow: hidden;
}

.wallet-cap-meter span {
  background: linear-gradient(90deg, #48a868, #f0b33c, #c84b52);
  display: block;
  height: 100%;
  transition: width 0.25s ease;
  width: 0%;
}

.wallet-work-status,
#walletTip {
  color: #273a62;
  font-size: 0.86rem;
  line-height: 1.35;
}

.wallet-work-status {
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(83, 102, 128, 0.42);
  border-radius: 5px;
  margin: 10px 0;
  padding: 8px;
}

.wallet-panel {
  min-height: 230px;
}

.sub-row,
.affinity-row,
.status-row {
  align-items: center;
  border-bottom: 1px solid #c2ccdd;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 8px 0;
}

.sub-row:last-child,
.affinity-row:last-child,
.status-row:last-child {
  border-bottom: 0;
}

.settings-layout {
  display: grid;
  gap: 14px;
  grid-template-rows: auto minmax(0, 1fr);
}

.settings-layout ul {
  background: var(--glass-strong);
  border: 1px solid #8796b0;
  border-radius: 7px;
  line-height: 1.45;
  margin: 0;
  padding: 16px 16px 16px 32px;
}

.settings-nav {
  background:
    linear-gradient(#f9fbff, #cad5e6);
  border: 1px solid #8796b0;
  border-radius: 7px;
  box-shadow: inset 0 1px 0 #fff;
  display: flex;
  gap: 8px;
  padding: 8px;
}

.settings-tab {
  flex: 1;
  min-height: 34px;
}

.settings-tab.active {
  background:
    linear-gradient(#244979, #0f2d55);
  border-color: #081d38;
  color: #fff;
  text-shadow: 0 1px 0 #000;
}

.settings-page {
  display: none;
}

.settings-page.active {
  display: block;
}

.settings-card {
  background: var(--glass-strong);
  border: 1px solid #8796b0;
  border-radius: 7px;
  box-shadow: inset 0 1px 0 #fff, 0 3px 9px rgba(26, 42, 72, 0.18);
  margin-bottom: 12px;
  padding: 16px;
}

.settings-card h2 {
  color: #152742;
  margin: 4px 0 8px;
}

.system-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(214, 226, 245, 0.96));
}

.system-list {
  margin-top: 8px;
}

.danger-button {
  background:
    linear-gradient(#fff7f7 0%, #f3a7a7 44%, #c84b52 45%, #ffb9b9 100%);
  border-color: #83313a;
  color: #2d070b;
}

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

.status-grid {
  background: var(--glass-strong);
  border: 1px solid #8796b0;
  border-radius: 7px;
  padding: 8px 12px;
}

.price {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.pill {
  background:
    linear-gradient(#e9fbff, #73d7e7);
  border: 1px solid #377f90;
  border-radius: 3px;
  color: #082936;
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 6px;
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .os-shell {
    min-height: 100%;
    overflow: visible;
  }

  .topbar {
    grid-template-columns: auto 1fr;
    height: auto;
  }

  .topbar-stats {
    grid-column: 1 / -1;
    overflow-x: auto;
  }

  .desktop {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow: visible;
    padding-bottom: 120px;
  }

  .desktop-icons {
    bottom: auto;
    height: min(520px, calc(100vh - 160px));
    left: auto;
    margin-bottom: 14px;
    overflow: hidden;
    position: relative;
    right: auto;
    top: auto;
  }

  .desktop-icon {
    display: flex;
  }

  .ticker-window {
    top: auto;
    left: 18px;
    margin-top: 10px;
    position: relative;
    right: auto;
    width: calc(100% - 36px);
  }

  .window {
    left: 12px !important;
    max-width: none;
    position: relative;
    top: auto !important;
    width: calc(100% - 24px);
  }

  .window-body {
    max-height: none;
  }

  .word-layout {
    overflow: visible;
  }

  .word-shell {
    height: auto;
    min-height: 680px;
  }

  .slopfans-layout,
  .stream-layout,
  .call-layout,
  .dm-layout,
  .calendar-main,
  .calendar-status-grid,
  .calendar-hero,
  .word-main,
  .wallet-layout,
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .creator-rail,
  .stream-list {
    border-right: 0;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dm-contact-list {
    border-right: 0;
    display: flex;
    flex-direction: column;
    max-height: 340px;
  }

  .word-recents {
    border-right: 0;
  }

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

  .creator-button,
  .streamer-button,
  .word-doc-button {
    margin-bottom: 0;
  }

  .content-split {
    grid-template-columns: 1fr;
  }

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

  .cutscene-body {
    grid-template-columns: 1fr;
  }
}

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

  .taste-grid {
    grid-template-columns: 1fr;
  }

  .avatar-large {
    height: 150px;
    width: 150px;
  }

  .media-grid,
  .vault-grid,
  .calendar-day-grid {
    grid-template-columns: 1fr;
  }

  .stream-controls {
    grid-template-columns: 1fr 1fr;
  }

  .word-tools {
    grid-template-columns: 1fr 1fr;
  }

  .word-paper-wrap {
    padding: 18px 12px;
  }

  .word-page {
    min-height: 620px;
    padding: 36px 24px;
  }

  .call-controls,
  .goal-grid,
  .goal-status {
    grid-template-columns: 1fr;
  }

  .creator-rail,
  .stream-list,
  .word-doc-list {
    grid-template-columns: 1fr;
  }

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