@font-face {
  font-family: Inter;
  src: url("assets/inter-regular.ttf");
}
@font-face {
  font-family: Inter;
  src: url("assets/inter-semibold.ttf");
  font-weight: 600 900;
}
:root {
  --bg: #fafaf8;
  --ink: #333437;
  --muted: #858783;
  --line: #e9e9e2;
  --gold: #aa842f;
  --sage: #dfe9d8;
  --soft: #f0f0eb;
  --radius: 26px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: style;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #8d94b3;
  outline-offset: 4px;
}
button:hover:not(:disabled),
a:hover {
  filter: brightness(0.96);
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.22;
  letter-spacing: -0.035em;
}
h1 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 0;
}
h2 {
  font-size: 21px;
}
p {
  line-height: 1.65;
}
small {
  font-size: 12px;
}
button .icon,
a .icon {
  flex-shrink: 0;
}
.icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  display: inline-block;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  background: white;
  padding: 14px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.layout {
  max-width: 1376px;
  min-height: 100vh;
  margin: auto;
  display: grid;
  grid-template-columns: 214px minmax(0, 660px) 260px;
  gap: 40px;
  padding: 0 42px;
}
.sidebar {
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 41px 0 28px;
}
.brand {
  width: 132px;
}
.sidebar-intro {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 23px 0 33px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-link {
  height: 55px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  border-radius: 18px;
  color: #81827e;
  font-size: 16px;
  font-weight: 600;
}
.nav-link.active {
  color: var(--ink);
  background: #eaece5;
}
.nav-link .icon,
.nav-icon {
  width: 25px;
  height: 25px;
  object-fit: contain;
}
.little-dot {
  width: 6px;
  height: 6px;
  background: #94ad85;
  margin-left: auto;
  border-radius: 50%;
}
.primary,
.outline {
  border-radius: 100px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 45px;
  padding: 12px 23px;
  font-size: 13px;
  font-weight: 600;
}
.primary {
  background: #36383b;
  color: white;
}
.outline {
  border: 1px solid #d9dbd3;
  background: transparent;
}
.create-button {
  margin-top: 29px;
  width: 100%;
  font-size: 13px;
  padding: 12px;
}
.create-button .icon {
  width: 17px;
  height: 17px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 35px;
}
.demo-badge {
  font-size: 10px;
  letter-spacing: 0.055em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #efefe9;
  border-radius: 100px;
  padding: 7px 11px;
  color: #777b70;
  white-space: nowrap;
}
.demo-dot,
.status-dot {
  width: 6px;
  height: 6px;
  background: #92a981;
  border-radius: 50%;
  display: inline-block;
}
.sidebar-bottom > p {
  font-size: 11px;
  color: #8e9187;
  margin-top: 13px;
  line-height: 1.8;
}
.account-button {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  width: 100%;
  padding: 0;
}
.account-button > span:nth-child(2) {
  font-weight: 600;
  font-size: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.account-button small {
  display: block;
  color: #8d9087;
  font-weight: 400;
  font-size: 10px;
  margin-top: 4px;
}
.account-button > .icon {
  width: 17px;
  margin-left: auto;
  color: #8a8c85;
}
.center {
  min-width: 0;
  min-height: 100vh;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
main {
  min-height: 100vh;
  padding-bottom: 50px;
}
main:focus {
  outline: 0;
}
.mobile-header,
.bottom-nav {
  display: none;
}
.right-rail {
  padding-top: 49px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.rail-heading {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #8a8d82;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rail-heading span {
  font-size: 23px;
  color: #b9b9a6;
}
.agent-note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.agent-note h2 {
  font-size: 20px;
  margin-bottom: 6px;
}
.agent-note p {
  font-size: 12px;
  color: #8a8c83;
  line-height: 1.5;
  margin-bottom: 10px;
}
.agent-note small {
  font-size: 10px;
  color: #7a826e;
}
.rail-section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 34px;
}
.section-label {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #919487;
  margin-bottom: 19px;
}
.rail-section h2 {
  font-size: 24px;
  line-height: 1.35;
}
.rail-section > p {
  font-size: 12px;
  color: #888c80;
  line-height: 1.9;
  margin-bottom: 23px;
}
.text-link {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  padding: 0;
}
.text-link .icon {
  width: 16px;
  height: 16px;
}
.daily-rail {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 19px;
}
.daily-rail strong,
.daily-rail small {
  display: block;
}
.daily-rail strong {
  font-size: 12px;
}
.daily-rail small {
  font-size: 10px;
  color: #929487;
  margin-top: 6px;
}
.task-emoji {
  font-size: 29px;
  color: #b7a575;
}
.wide {
  width: 100%;
}
.rail-footer {
  border-top: 1px solid var(--line);
  margin-top: 35px;
  padding-top: 22px;
  font-size: 10px;
  line-height: 1.9;
  color: #9b9e93;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 43px;
  height: 43px;
  border-radius: 15px;
  font-size: 24px;
  overflow: hidden;
  background: var(--sage);
  color: #6b775b;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
  transform: translateY(4px) scale(1.1);
}
.avatar.sage {
  background: #e1e8d9;
}
.avatar.lilac {
  background: #e5dff1;
  color: #8c739e;
}
.avatar.peach {
  background: #f6e3ce;
  color: #b98b60;
}
.avatar.you {
  background: #e1e6de;
  color: #78856a;
  font-size: 21px;
  font-weight: 600;
}
.avatar.large {
  width: 80px;
  height: 89px;
  border-radius: 27px;
}
.avatar-button {
  padding: 0;
  line-height: 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 39px 29px 19px;
}
.page-heading h1 {
  font-style: italic;
  font-size: 34px;
}
.eyebrow {
  display: block;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: #9b9b8f;
  font-weight: 600;
  margin-bottom: 10px;
}
.icon-button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: #f1f2ed;
  flex-shrink: 0;
}
.segmented {
  display: flex;
  gap: 24px;
}
.segmented button {
  padding: 10px 0;
  color: #96978e;
  font-size: 19px;
}
.segmented button.active {
  font-weight: 800;
  font-style: italic;
  color: #343537;
}
.world-tabs {
  padding: 0 29px;
  border-bottom: 1px solid var(--line);
}
.world-tabs button.active {
  position: relative;
}
.world-tabs button.active:after {
  content: "";
  height: 3px;
  border-radius: 2px;
  background: #3e403b;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.people-strip {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 23px 29px;
  border-bottom: 1px solid var(--line);
}
.people-strip button {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 0;
  font-size: 10px;
  color: #767c6e;
}
.people-strip .avatar {
  width: 49px;
  height: 49px;
  border-radius: 50%;
}
.people-note {
  font-size: 11px;
  line-height: 1.7;
  color: #a0a194;
  margin-left: auto;
}
.post-card {
  padding: 25px 29px 16px;
  border-bottom: 1px solid var(--line);
}
.post-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.author-name {
  font-size: 14px;
  font-weight: 600;
  padding: 0;
}
.role-tag {
  font-size: 9px;
  font-weight: 400;
  display: inline-block;
  background: #eeead7;
  color: #a29354;
  vertical-align: middle;
  padding: 4px 5px;
  border-radius: 3px;
  letter-spacing: 0;
  font-style: normal;
}
.post-author small {
  display: block;
  color: #a0a097;
  font-size: 10px;
  margin-top: 5px;
}
.follow-button {
  margin-left: auto;
  font-size: 10px;
  color: #8c927b;
  border: 1px solid #e4e6dd;
  padding: 7px 9px;
  border-radius: 50px;
  flex-shrink: 0;
}
.follow-button[aria-pressed="true"] {
  border-color: transparent;
  background: #eff1e8;
}
.post-body {
  padding-top: 16px;
}
.post-body h2 {
  font-size: 18px;
  margin-bottom: 9px;
  line-height: 1.4;
}
.post-body p {
  font-size: 13px;
  color: #74776e;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.post-art {
  width: 100%;
  border-radius: 19px;
  margin-top: 17px;
  max-height: 330px;
  object-fit: cover;
}
.post-actions {
  display: flex;
  align-items: center;
  gap: 23px;
  margin-top: 17px;
}
.post-actions button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  color: #9a9e92;
  font-size: 11px;
}
.post-actions .icon {
  width: 19px;
  height: 19px;
}
.post-actions .selected {
  color: #cb827d;
}
.post-actions .save-post {
  margin-left: auto;
}
.post-actions .selected .icon {
  fill: #f4d8d3;
}
.home-scene {
  height: 490px;
  position: relative;
  isolation: isolate;
  background: #dfded9 url("assets/home-room.png") center 66% / cover;
  overflow: hidden;
}
.home-scene.warm:before {
  content: "";
  position: absolute;
  inset: 0;
  background: #d9af5d;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.home-top {
  position: relative;
  z-index: 3;
  padding: 29px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.home-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 0;
}
.home-identity > .avatar {
  border: 2px solid white;
  width: 47px;
  height: 47px;
  border-radius: 50%;
}
.home-identity strong {
  font-size: 19px;
  color: #4c4d45;
  display: block;
  letter-spacing: -0.05em;
}
.home-identity small {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  margin-top: 7px;
  color: #7a7969;
}
.level-track {
  width: 72px;
  height: 5px;
  background: #ffffff80;
  display: block;
  border-radius: 4px;
}
.level-track i {
  display: block;
  width: 32%;
  height: 100%;
  background: #9caa83;
  border-radius: 4px;
}
.glass {
  background: #ffffff80;
  backdrop-filter: blur(15px);
  border: 1px solid #ffffffa0;
  border-radius: 30px;
  padding: 10px 15px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.025em;
}
.scene-caption {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 12px;
}
.scene-caption .eyebrow {
  color: #8b8b7d;
  font-size: 8px;
}
.scene-caption h1 {
  font-size: 27px;
  color: #595b51;
  letter-spacing: -0.045em;
}
.scene-character {
  position: absolute;
  width: 201px;
  height: 248px;
  object-fit: contain;
  bottom: 54px;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 14px 14px #3c3c3c29);
  z-index: 2;
  animation: arrive 0.8s ease-out;
}
.live-pill {
  position: absolute;
  z-index: 4;
  bottom: 31px;
  left: 50%;
  transform: translateX(-50%);
  padding: 11px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  background: #f5f3e5cf;
  border: 1px solid #ffffffb0;
  border-radius: 30px;
  box-shadow: 0 4px 12px #2d2d2d0c;
  white-space: nowrap;
}
.live-pill > span {
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: white;
  padding: 3px 5px;
  border-radius: 3px;
  background: #d7887b;
}
.live-pill .icon {
  width: 13px;
  height: 13px;
}
.scene-bottom-gradient {
  height: 55px;
  bottom: 0;
  left: 0;
  right: 0;
  position: absolute;
  background: linear-gradient(transparent, var(--bg));
  z-index: 3;
  pointer-events: none;
}
.home-content {
  padding: 0 23px 10px;
}
.home-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.home-card {
  border-radius: 27px;
  background: white;
  box-shadow: 0 8px 30px #66665507;
  min-height: 142px;
  padding: 22px 20px;
}
.home-card small {
  font-size: 11px;
  color: #8a8d80;
}
.goal-card small {
  display: flex;
  justify-content: space-between;
}
.goal-card small .icon {
  width: 13px;
  height: 13px;
}
.goal-card h2 {
  font-size: 20px;
  line-height: 1.25;
  margin: 10px 0 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mini-tag {
  display: inline-block;
  font-size: 9px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #f0f1e9;
  color: #919781;
}
.goal-card .mini-tag {
  padding: 0;
  background: transparent;
  font-size: 8px;
}
.wallet-card {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.wallet-card > img {
  width: 62px;
  height: 83px;
  object-fit: contain;
}
.wallet-card strong {
  display: block;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.05em;
  margin: 8px 0 3px;
}
.wallet-card span {
  font-size: 8px;
  color: #a2a293;
  display: block;
}
.wallet-card > .icon {
  position: absolute;
  top: 22px;
  right: 16px;
  width: 13px;
  height: 13px;
  color: #a1a294;
}
.home-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 23px 0 19px;
  gap: 11px;
}
.home-shortcuts a {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  font-size: 10px;
  color: #7f8277;
}
.home-shortcuts img {
  height: 76px;
  width: 100px;
  object-fit: contain;
  margin-bottom: 9px;
}
.home-composer {
  display: flex;
  align-items: center;
  gap: 11px;
  background: white;
  border: 1px solid #d7d8d0;
  padding: 9px 10px;
  border-radius: 50px;
}
.home-composer .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}
.home-composer input {
  border: 0;
  background: none;
  min-width: 0;
  flex: 1;
  padding: 7px 0;
  font-size: 12px;
}
.home-composer input::placeholder {
  color: #a1a498;
}
.send-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #41443e;
  color: white;
  padding: 9px;
}
.send-button .icon {
  width: 18px;
  height: 18px;
}
.local-caption {
  font-size: 8px;
  color: #a3a597;
  text-align: center;
  margin: 12px 0;
}
.market-tabs {
  justify-content: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.market-tabs button {
  font-size: 26px;
}
.categories {
  display: flex;
  gap: 11px;
  overflow-x: auto;
  padding: 21px 24px 14px;
  scrollbar-width: none;
}
.categories button {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  min-width: 57px;
  padding: 0;
  font-size: 9px;
  color: #8b8f81;
}
.categories button img {
  width: 55px;
  height: 55px;
  object-fit: contain;
  border-radius: 19px;
  padding: 3px;
}
.categories button.active img {
  background: #e9ece1;
  outline: 1px solid #e0e5d5;
}
.categories button.active span {
  font-weight: 600;
  color: #454b3b;
}
.search-field {
  margin: 6px 25px 13px;
  display: flex;
  gap: 9px;
  align-items: center;
  background: #efefea;
  border-radius: 13px;
  padding: 0 13px;
}
.search-field > .icon {
  color: #95998b;
  width: 17px;
  height: 17px;
}
.search-field input {
  border: 0;
  background: none;
  width: 100%;
  min-width: 0;
  outline-offset: 2px;
  padding: 12px 2px;
  font-size: 11px;
}
.market-sort {
  display: flex;
  gap: 7px;
  overflow: auto;
  margin: 0 25px;
}
.market-sort button {
  padding: 8px 13px;
  background: #f0f0eb;
  color: #92968a;
  border-radius: 50px;
  font-size: 10px;
  white-space: nowrap;
}
.market-sort button.active {
  color: white;
  background: #44473f;
}
.market-meta {
  display: flex;
  justify-content: space-between;
  margin: 22px 26px 13px;
  font-size: 9px;
  color: #a1a494;
}
.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 0 24px;
}
.service-card {
  text-align: left;
  background: white;
  border-radius: 23px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px #4c543605;
  min-width: 0;
}
.service-art {
  height: 167px;
  background: #e9eee2;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.service-art img {
  width: 135px;
  height: 135px;
  object-fit: contain;
  transition: transform 0.25s;
}
.service-card:hover .service-art img {
  transform: rotate(-4deg) scale(1.05);
}
.service-art > span {
  position: absolute;
  left: 13px;
  top: 13px;
  background: #ffffffa0;
  backdrop-filter: blur(8px);
  padding: 5px 8px;
  border-radius: 30px;
  font-size: 9px;
  color: #727b66;
}
.service-art.art {
  background: #f4e6e0;
}
.service-art.research {
  background: #e2edf0;
}
.service-art.song {
  background: #e9e2f1;
}
.service-art.design {
  background: #f0e9d4;
}
.service-art.video {
  background: #e0e8ee;
}
.service-info {
  padding: 17px;
}
.service-info h2 {
  font-size: 15px;
  line-height: 1.45;
  margin-bottom: 12px;
  min-height: 44px;
}
.service-info > strong,
.bounty-card > strong {
  font-style: italic;
  font-size: 20px;
  color: #b18e3c;
  font-weight: 800;
  display: block;
}
.service-info > strong small,
.bounty-card > strong small {
  font-size: 11px;
}
.service-author {
  display: block;
  font-size: 9px;
  color: #9a9e90;
  margin-top: 13px;
}
.bounty-card {
  padding: 20px;
  background: #f2efe4;
  border-radius: 22px;
  text-align: left;
}
.bounty-card h2 {
  font-size: 18px;
  margin: 15px 0 12px;
}
.bounty-card p {
  font-size: 11px;
  color: #8f907c;
}
.bounty-card .mini-tag {
  background: #e6e2d2;
}
.applied {
  font-size: 9px;
  color: #7c9270;
  display: block;
  margin-top: 13px;
}
.inbox-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 16px 24px 33px;
  gap: 15px;
}
.inbox-categories button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  line-height: 1.6;
}
.category-icon {
  height: 55px;
  width: 55px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 22px;
  flex-shrink: 0;
}
.category-icon > .icon {
  width: 29px;
  height: 29px;
}
.pink {
  background: #fbe3e4;
  color: #d38e8a;
}
.sand {
  background: #f2e6d4;
  color: #b69b72;
}
.mint {
  background: #d7eee3;
  color: #7cb49a;
}
.sky {
  background: #dceefa;
  color: #75aacb;
}
.notification-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 27px;
  padding: 21px 0;
  border-top: 1px solid var(--line);
}
.notification-row > span:nth-child(2) {
  min-width: 0;
}
.notification-row strong {
  font-size: 14px;
  display: block;
}
.notification-row small {
  display: block;
  color: #999d90;
  font-size: 10px;
  margin-top: 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 330px;
}
.count {
  margin-left: auto;
  background: #ecefe4;
  border-radius: 50%;
  width: 21px;
  height: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #8b9679;
  flex-shrink: 0;
}
.notification-row > .icon {
  margin-left: auto;
  color: #a2a796;
  width: 15px;
}
.inbox-note {
  text-align: center;
  color: #a3a797;
  font-size: 14px;
  line-height: 1.8;
  margin: 130px 35px 70px;
}
.inbox-note span {
  font-size: 10px;
  color: #b1b4a6;
}
.me-page {
  background-image: radial-gradient(#dedfd66b 0.8px, transparent 0.8px);
  background-size: 17px 17px;
  min-height: 100vh;
  padding-bottom: 10px;
}
.me-top {
  display: flex;
  justify-content: space-between;
  padding: 28px;
}
.profile {
  text-align: center;
  padding: 0 28px;
}
.profile-avatar {
  width: 87px;
  height: 92px;
  font-size: 48px !important;
  border-radius: 28px !important;
}
.edit-profile {
  display: block;
  margin: -10px auto 26px;
  position: relative;
  z-index: 1;
  border-radius: 25px;
  background: #454842;
  color: white;
  padding: 6px 13px;
  border: 2px solid var(--bg);
  font-size: 10px;
}
.profile h1 {
  font-size: 30px;
  overflow-wrap: anywhere;
}
.profile h1 .role-tag {
  font-size: 9px;
  transform: translateY(-3px);
}
.profile p {
  font-size: 11px;
  color: #8e9484;
  max-width: 340px;
  margin: 10px auto 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.profile > small {
  font-size: 9px;
  color: #a0a695;
}
.profile > small > span {
  margin: 0 7px;
  color: #c1c4b7;
}
.profile b {
  font-weight: 400;
  color: #8b957d;
}
.profile-stats {
  display: flex;
  justify-content: center;
  gap: 52px;
  margin: 26px 0 33px;
}
.profile-stats strong {
  font-size: 20px;
  display: block;
}
.profile-stats span {
  font-size: 10px;
  display: block;
  color: #a0a691;
  margin-top: 7px;
}
.profile-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin: 0 25px 27px;
}
.profile-wallet {
  background: linear-gradient(150deg, #d4dfed, #e2e9f1 55%, #ebece5);
  border: 5px solid white;
  border-radius: 25px;
  min-height: 171px;
  padding: 16px;
  box-shadow: 0 7px 20px #39473306;
  position: relative;
  overflow: hidden;
}
.profile-wallet .mini-tag {
  background: #ffffff80;
  position: relative;
  z-index: 1;
  font-size: 8px;
}
.profile-wallet > small {
  display: block;
  font-size: 10px;
  position: relative;
  z-index: 1;
  margin-top: 31px;
  color: #899494;
}
.profile-wallet > strong {
  font-size: 30px;
  letter-spacing: -0.06em;
  position: relative;
  z-index: 1;
}
.profile-wallet > img {
  position: absolute;
  width: 119px;
  height: 140px;
  object-fit: contain;
  right: -6px;
  bottom: 4px;
  opacity: 0.55;
}
.daily-card {
  padding: 19px 14px;
  background: #fffffff0;
  border-radius: 26px;
  box-shadow: 0 7px 20px #39473306;
}
.daily-card h2 {
  font-size: 13px;
  text-align: center;
  margin-bottom: 23px;
}
.daily-card > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.daily-card > div > span {
  font-size: 21px;
  color: #d8b36c;
}
.daily-card p {
  margin: 0;
}
.daily-card strong {
  display: block;
  font-size: 11px;
}
.daily-card small {
  display: block;
  font-size: 8px;
  color: #a3aa96;
  margin-top: 4px;
}
.task-claim {
  font-size: 9px;
  margin-left: auto;
  padding: 6px;
  border-radius: 50px;
  background: #edf0e4;
  color: #8d9c74;
}
.task-claim .icon {
  height: 15px;
  width: 15px;
}
.daily-card > .muted {
  font-size: 8px;
  line-height: 1.7;
  margin-top: 15px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: 17px;
  margin: 0;
}
.section-header h2 span {
  font-size: 10px;
  color: #b0b69e;
  margin-left: 5px;
}
.me-page > .section-header {
  padding: 18px 27px 0;
  border-top: 1px solid var(--line);
}
.empty-state {
  text-align: center;
  padding: 62px 27px;
  color: #8d9580;
}
.empty-state > span {
  font-size: 42px;
  display: block;
  color: #b9c1a8;
  margin-bottom: 18px;
}
.empty-state h2 {
  font-size: 17px;
  font-weight: 600;
}
.empty-state p {
  font-size: 11px;
  line-height: 1.8;
  max-width: 300px;
  margin: 0 auto 22px;
  color: #a0a791;
}
.empty-state .outline {
  font-size: 11px;
}
.sub-heading {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 31px 26px;
  border-bottom: 1px solid var(--line);
}
.sub-heading h1 {
  font-size: 22px;
}
.sub-heading .icon-button {
  width: 31px;
  height: 31px;
}
.inner-section {
  padding: 28px;
}
.inner-section > h2 {
  font-size: 27px;
  margin-top: 17px;
}
.muted {
  font-size: 12px;
  color: #919985;
  line-height: 1.8;
}
.wallet-hero {
  text-align: center;
  padding: 32px 25px 27px;
  background: radial-gradient(ellipse at top, #eef0e3, transparent 75%);
}
.wallet-hero > img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 15px;
}
.wallet-hero h1 {
  font-size: 57px;
  letter-spacing: -0.07em;
  font-weight: 600;
}
.wallet-hero > p {
  font-size: 12px;
  color: #949b84;
  margin-top: 10px;
}
.wallet-note {
  font-size: 9px;
  background: #e9eddf;
  border-radius: 9px;
  display: inline-block;
  padding: 9px 12px;
  color: #8d9977;
  margin-top: 12px;
}
.ledger-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.ledger-row > img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.ledger-row strong {
  margin-left: auto;
  color: #8fa36d;
}
.inner-section > .muted {
  margin-top: 23px;
}
.chat-status {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 23px 28px;
}
.chat-status > span {
  font-size: 12px;
}
.chat-status small {
  display: block;
  font-size: 9px;
  margin-top: 7px;
  color: #9a9f8e;
}
.messages {
  min-height: 300px;
  padding: 20px 25px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 90%;
}
.message .avatar {
  width: 28px;
  height: 28px;
  border-radius: 10px;
}
.message p {
  padding: 14px 16px;
  border-radius: 20px 20px 20px 5px;
  background: #eeefe8;
  color: #757d68;
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.message.outgoing {
  align-self: flex-end;
}
.message.outgoing p {
  background: #dfe7d5;
  border-radius: 20px 20px 5px 20px;
  color: #697556;
}
.chat-composer {
  display: flex;
  gap: 9px;
  align-items: flex-end;
  padding: 17px;
  margin: 0 24px;
  border: 1px solid #dfe3d6;
  border-radius: 23px;
  background: white;
}
.chat-composer textarea {
  flex: 1;
  border: 0;
  margin: 0;
  padding: 4px 0;
  min-width: 0;
  font-size: 12px;
  resize: vertical;
  min-height: 45px;
}
.talent-hero {
  text-align: center;
  padding: 20px 24px;
  background: radial-gradient(ellipse at center, #f3e4df, transparent 70%);
}
.talent-hero > img {
  height: 170px;
  width: 270px;
  object-fit: contain;
  margin: 0 auto 20px;
}
.talent-hero h2 {
  font-size: 28px;
}
.talent-hero p {
  font-size: 11px;
  color: #a19b8c;
}
.talent-row {
  display: flex;
  align-items: center;
  gap: 17px;
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
}
.talent-row > img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}
.talent-row strong {
  font-size: 14px;
  display: block;
}
.talent-row small {
  display: block;
  font-size: 10px;
  color: #9b9f8e;
  margin-top: 7px;
}
.talent-row > .icon {
  margin-left: auto;
  color: #a5aa96;
  width: 17px;
}
.notice-card {
  display: flex;
  gap: 15px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.notice-card.unread h2,
.notice-card.unread h3 {
  color: var(--ink);
}
.notice-card.unread .notice-star {
  color: #d38e8a;
}
.unread-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #d9726b;
  color: white;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  flex-shrink: 0;
}
.notification-row > .unread-badge {
  margin-left: auto;
}
.nav-link > .unread-badge {
  margin-left: auto;
}
.category-icon {
  position: relative;
}
.category-icon > .unread-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  border: 2px solid var(--bg);
  box-sizing: content-box;
}
.notice-star {
  font-size: 26px;
  line-height: 1;
  color: #a6b087;
}
.notice-card h2 {
  font-size: 15px;
}
.notice-card p {
  font-size: 11px;
  color: #989f8c;
  margin-bottom: 0;
}
.order-card {
  background: white;
  border: 1px solid #e7eadd;
  padding: 24px;
  border-radius: 22px;
  margin-top: 18px;
}
.order-card h2 {
  font-size: 18px;
  margin: 13px 0;
}
.order-card p {
  font-size: 12px;
  color: #969e88;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.order-card strong {
  font-size: 15px;
  color: #a2925d;
}
.order-card small {
  font-weight: 400;
  font-size: 9px;
  display: block;
  margin-top: 7px;
}
dialog {
  color: var(--ink);
  background: var(--bg);
  border: 1px solid #e1e3d8;
  border-radius: 28px;
  padding: 0;
  width: min(480px, calc(100vw - 28px));
  max-height: 90dvh;
  box-shadow: 0 40px 100px #28311d30;
}
dialog::backdrop {
  background: #25291e50;
  backdrop-filter: blur(5px);
}
.sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 26px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
}
.sheet-heading h2 {
  font-size: 21px;
  margin: 0;
}
.sheet-heading .icon-button {
  height: 32px;
  width: 32px;
  flex-shrink: 0;
}
.sheet-heading .icon {
  height: 17px;
  width: 17px;
}
.sheet-body {
  padding: 26px;
}
.sheet-body > p {
  font-size: 12px;
  line-height: 1.9;
  color: #8e9680;
}
.sheet-body h3 {
  font-size: 17px;
}
.sheet-body .empty-state {
  padding: 23px 0;
}
form label {
  font-size: 11px;
  font-weight: 600;
  display: block;
  margin: 0 0 9px;
}
input:not(.home-composer input, .search-field input),
textarea:not(.chat-composer textarea) {
  width: 100%;
  border: 1px solid #dfe2d6;
  background: #fffffff0;
  border-radius: 13px;
  padding: 12px 14px;
  color: var(--ink);
  margin-bottom: 20px;
  font-size: 12px;
  line-height: 1.6;
}
textarea {
  resize: vertical;
}
form > .primary {
  margin-top: 2px;
}
form input::placeholder,
form textarea::placeholder {
  color: #afb4a4;
}
.demo-disclosure {
  font-size: 10px;
  color: #929c7f;
  line-height: 1.8;
  padding: 12px 14px;
  background: #eef0e6;
  border-radius: 12px;
  margin: 0 0 19px;
}
.person-modal {
  text-align: center;
  padding: 10px 0 18px;
}
.person-modal > .avatar {
  display: flex;
  margin: 0 auto 15px;
}
.person-modal > p {
  font-size: 13px;
  line-height: 1.8;
  color: #939e81;
  margin-top: 18px;
}
.comment-list {
  margin-bottom: 23px;
}
.comment-list article {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.comment-list strong {
  font-size: 11px;
  color: #8b9a74;
}
.comment-list p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #8b937f;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.service-detail > img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 22px;
}
.service-detail > p {
  font-size: 13px;
  line-height: 1.8;
  color: #8d957f;
  margin-top: 17px;
}
.detail-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 24px;
  gap: 12px;
}
.detail-price > strong {
  font-size: 24px;
  color: #ad914a;
  font-style: italic;
}
.detail-price small {
  font-size: 12px;
}
.detail-price > span {
  font-size: 10px;
  color: #a5ac95;
}
.decor-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.decor-option {
  padding: 0;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.decor-option > span {
  font-size: 10px;
  display: block;
  padding: 13px 5px;
}
.decor-option > img {
  height: 120px;
  width: 100%;
  object-fit: cover;
}
.warm-preview > img {
  filter: sepia(0.5);
}
.about-brand img {
  width: 140px;
  margin: 4px auto 27px;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 15px);
  border: 1px solid #ffffff50;
  background: #363e30f2;
  color: #f5f7f0;
  padding: 13px 21px;
  border-radius: 16px;
  font-size: 12px;
  box-shadow: 0 6px 30px #28351b20;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 50;
  max-width: calc(100vw - 32px);
  width: max-content;
  line-height: 1.6;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.storage-notice {
  font-size: 11px;
  color: #947d44;
  background: #faf3dc;
  padding: 12px 20px;
  margin: 0;
}
.nav-link.active .nav-icon {
  filter: brightness(0) opacity(0.75);
}
.goal-detail {
  background: white;
  border: 1px solid var(--line);
  border-radius: 23px;
  padding: 25px;
}
.goal-detail h2 {
  font-size: 31px;
  font-style: italic;
  margin: 23px 0;
}
.goal-detail p {
  font-size: 10px;
  margin-bottom: 0;
}
.milestone-label {
  margin: 31px 0 17px;
}
.milestone {
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  border: 1px solid var(--line);
  padding: 21px;
  border-radius: 23px;
  margin-bottom: 12px;
}
.milestone h3 {
  font-size: 14px;
  margin: 10px 0 0;
}
.milestone-ring {
  height: 24px;
  width: 24px;
  border: 2px solid #dfe4d5;
  border-radius: 50%;
  flex-shrink: 0;
}
.milestone-ring.done {
  border-color: #a4b28c;
  color: #90a071;
  padding: 3px;
}
.milestone-ring .icon {
  width: 14px;
  height: 14px;
  display: block;
}
.daily-task-row {
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  border: 1px solid var(--line);
  padding: 22px 17px;
  border-radius: 22px;
  margin-bottom: 17px;
}
.daily-task-row h2 {
  font-size: 15px;
  margin-bottom: 8px;
}
.daily-task-row p {
  font-size: 10px;
  line-height: 1.7;
  color: #949e86;
  margin: 0;
}
.daily-task-row .outline,
.daily-task-row .text-link {
  margin-left: auto;
  font-size: 10px;
  padding: 8px 13px;
  min-height: 35px;
  white-space: nowrap;
}
.daily-task-row .text-link {
  padding: 0;
}
.daily-task-row .task-emoji {
  width: 31px;
  text-align: center;
  font-size: 26px;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@media (min-width: 1450px) {
  .layout {
    gap: 48px;
    grid-template-columns: 220px minmax(0, 660px) 260px;
    max-width: 1430px;
  }
  .home-scene {
    height: 535px;
  }
  .scene-character {
    width: 220px;
    height: 280px;
    bottom: 54px;
  }
}
@media (max-width: 1190px) {
  .layout {
    grid-template-columns: 180px minmax(0, 660px);
    gap: 28px;
    padding: 0 30px;
    max-width: 970px;
  }
  .right-rail {
    display: none;
  }
  .sidebar {
    padding-top: 36px;
  }
  .sidebar-intro {
    font-size: 12px;
  }
  .nav-link {
    padding: 0 15px;
  }
  .center {
    border-right: 1px solid var(--line);
  }
}
@media (max-width: 720px) {
  .layout {
    display: block;
    padding: 0;
    width: 100%;
    max-width: 580px;
  }
  .sidebar,
  .right-rail {
    display: none;
  }
  .center {
    border: 0;
  }
  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 63px;
    padding: 16px 23px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-header img {
    width: 83px;
    height: 34px;
    object-fit: contain;
  }
  .mobile-header .demo-badge {
    font-size: 8px;
    padding: 6px 9px;
  }
  main {
    padding-bottom: 120px;
  }
  .bottom-nav {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: space-around;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 36px);
    max-width: 530px;
    height: 68px;
    z-index: 10;
    border: 1px solid #c8ccbf;
    border-radius: 40px;
    background: #fafbf8d9;
    backdrop-filter: blur(22px);
    box-shadow: 0 8px 35px #3745280c;
    padding: 5px;
  }
  .bottom-nav > a {
    width: 20%;
    height: 57px;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    color: #92978a;
  }
  .bottom-nav .nav-icon,
  .bottom-nav .icon {
    width: 25px;
    height: 25px;
  }
  .bottom-nav span {
    font-size: 9px;
  }
  .bottom-nav > a {
    position: relative;
  }
  .bottom-nav .unread-badge {
    position: absolute;
    top: 3px;
    left: calc(50% + 6px);
    font-size: 9px;
    min-width: 15px;
    height: 15px;
    line-height: 15px;
    padding: 0 4px;
  }
  .bottom-nav > a.active {
    background: #3e4244;
    color: white;
    box-shadow: 0 2px 10px #30353926;
  }
  .bottom-nav > a.active img {
    filter: brightness(0) invert(1);
  }
  .page-heading {
    padding: 28px 23px 20px;
  }
  .page-heading h1 {
    font-size: 32px;
  }
  .eyebrow {
    font-size: 8px;
    margin-bottom: 7px;
  }
  .home-scene {
    height: 430px;
  }
  .home-top {
    padding: 23px 21px;
  }
  .home-identity strong {
    font-size: 19px;
  }
  .scene-caption {
    margin-top: 6px;
  }
  .scene-caption h1 {
    font-size: 26px;
  }
  .scene-character {
    width: 175px;
    height: 220px;
    bottom: 49px;
  }
  .home-content {
    padding: 0 17px 5px;
  }
  .home-cards {
    gap: 11px;
  }
  .home-card {
    padding: 18px 15px;
    min-height: 133px;
    border-radius: 25px;
  }
  .goal-card h2 {
    font-size: 19px;
    margin: 11px 0 12px;
  }
  .wallet-card {
    gap: 7px;
  }
  .wallet-card > img {
    width: 47px;
  }
  .wallet-card strong {
    font-size: 25px;
  }
  .wallet-card small {
    font-size: 10px;
  }
  .wallet-card > .icon {
    right: 12px;
    top: 18px;
    width: 12px;
  }
  .home-shortcuts {
    padding: 20px 5px 22px;
  }
  .home-shortcuts img {
    height: 68px;
  }
  .home-composer {
    gap: 8px;
    padding: 8px;
  }
  .local-caption {
    font-size: 7px;
  }
  .world-tabs {
    padding: 0 24px;
    gap: 25px;
  }
  .segmented button {
    font-size: 18px;
  }
  .market-tabs button {
    font-size: 25px;
  }
  .people-strip {
    padding: 22px 24px;
    gap: 23px;
  }
  .people-note {
    font-size: 9px;
  }
  .post-card {
    padding: 23px 23px 14px;
  }
  .post-body h2 {
    font-size: 18px;
  }
  .post-body p {
    font-size: 13px;
  }
  .post-art {
    max-height: 265px;
  }
  .post-author {
    gap: 9px;
  }
  .post-author .avatar {
    width: 40px;
    height: 40px;
  }
  .author-name {
    font-size: 13px;
  }
  .post-author .role-tag {
    font-size: 8px;
  }
  .follow-button {
    font-size: 9px;
  }
  .categories {
    padding: 18px 20px 12px;
    gap: 12px;
  }
  .categories button {
    min-width: 51px;
    font-size: 9px;
  }
  .categories button img {
    width: 51px;
    height: 51px;
  }
  .search-field {
    margin: 5px 21px 13px;
  }
  .market-sort {
    margin: 0 21px;
  }
  .market-grid {
    gap: 12px;
    padding: 0 19px;
  }
  .market-meta {
    margin: 20px 21px 12px;
  }
  .service-art {
    height: 151px;
  }
  .service-art img {
    width: 125px;
    height: 125px;
  }
  .service-info {
    padding: 14px;
  }
  .service-info h2 {
    font-size: 14px;
    min-height: 41px;
  }
  .service-info > strong {
    font-size: 21px;
  }
  .bounty-card {
    padding: 17px;
  }
  .bounty-card h2 {
    font-size: 17px;
  }
  .inbox-categories {
    padding: 17px 20px 27px;
    gap: 12px;
  }
  .inbox-categories button {
    font-size: 10px;
  }
  .notification-row {
    margin: 0 23px;
    padding: 23px 0;
    gap: 12px;
  }
  .notification-row strong {
    font-size: 13px;
  }
  .notification-row small {
    max-width: 240px;
    font-size: 9px;
  }
  .notification-row .category-icon {
    width: 49px;
    height: 49px;
    border-radius: 20px;
  }
  .inbox-note {
    margin-top: 110px;
    font-size: 12px;
  }
  .me-page {
    min-height: calc(100vh - 63px);
  }
  .me-top {
    padding: 23px;
  }
  .profile {
    padding: 0 22px;
  }
  .profile-stats {
    gap: 48px;
  }
  .profile-cards {
    gap: 12px;
    margin: 0 20px 20px;
  }
  .profile-wallet {
    min-height: 165px;
    padding: 14px;
  }
  .daily-card {
    padding: 17px 11px;
  }
  .daily-card h2 {
    font-size: 12px;
  }
  .daily-card > div {
    gap: 6px;
  }
  .daily-card strong {
    font-size: 10px;
  }
  .daily-card small {
    font-size: 7px;
  }
  .daily-card > div > span {
    font-size: 19px;
  }
  .daily-card > .muted {
    font-size: 7px;
  }
  .task-claim {
    font-size: 8px;
  }
  .sub-heading {
    padding: 23px;
  }
  .inner-section {
    padding: 25px;
  }
  .chat-status {
    padding: 23px;
  }
  .messages {
    padding: 14px 21px 23px;
  }
  .message {
    max-width: 94%;
  }
  .chat-composer {
    margin: 0 19px;
  }
  .sheet-heading {
    padding: 21px 23px;
  }
  .sheet-body {
    padding: 23px;
  }
  #toast {
    bottom: 100px;
    font-size: 11px;
  }
  .wallet-note {
    font-size: 8px;
  }
  .wallet-hero {
    padding-top: 28px;
  }
}
@media (max-width: 370px) {
  .page-heading h1 {
    font-size: 29px;
  }
  .home-identity strong {
    font-size: 17px;
  }
  .home-top {
    padding-left: 16px;
    padding-right: 16px;
  }
  .home-card {
    padding: 17px 12px;
  }
  .wallet-card > img {
    width: 35px;
  }
  .wallet-card strong {
    font-size: 22px;
  }
  .goal-card h2 {
    font-size: 17px;
  }
  .home-scene {
    height: 410px;
  }
  .people-note {
    display: none;
  }
  .profile-cards {
    margin-left: 15px;
    margin-right: 15px;
  }
  .daily-card > div > span {
    display: none;
  }
  .service-art {
    height: 130px;
  }
  .service-art img {
    height: 108px;
    width: 108px;
  }
  .service-info {
    padding: 12px;
  }
  .service-info h2 {
    font-size: 12px;
  }
  .notification-row small {
    max-width: 195px;
  }
  .bottom-nav {
    height: 64px;
  }
  .bottom-nav > a {
    height: 53px;
  }
}
.dm-inbox {
  padding: 0 28px 20px;
}
.dm-request,
.dm-conversation {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.dm-request > div,
.dm-conversation > span {
  min-width: 0;
  flex: 1;
}
.dm-request p {
  margin: 8px 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.dm-request small,
.dm-conversation small {
  display: block;
  color: #8c9182;
  font-size: 11px;
  margin-top: 5px;
}
.dm-request-actions,
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 13px;
}
.dm-request-actions .primary,
.dm-request-actions .outline,
.profile-actions .primary,
.profile-actions .outline {
  padding: 10px 16px;
}
.dm-conversation {
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.dm-conversation strong small {
  display: inline;
  margin-left: 4px;
}
.dm-conversation > span > small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dm-conversation > .icon {
  width: 17px;
  flex: 0 0 auto;
}
.dm-start {
  margin: 20px 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  text-align: center;
}
.dm-start > .avatar {
  margin: 0 auto 14px;
}
.dm-start > p,
.dm-pending {
  color: #8c9182;
}
.dm-start form {
  margin-top: 24px;
  text-align: left;
}
.dm-start > .primary {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 20px;
  text-decoration: none;
}
@media (max-width: 600px) {
  .dm-inbox { padding: 0 20px 18px; }
  .dm-start { margin: 16px 20px; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Independent account and model flows reuse the reconstructed visual language. */
select {
  font: inherit;
  color: var(--ink);
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 19px 0 9px;
}
form input:not([type="checkbox"]),
form textarea,
form select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 15px;
  color: var(--ink);
}
form textarea {
  resize: vertical;
  line-height: 1.6;
}
form .primary {
  margin-top: 18px;
}
form .form-error {
  color: #a14436;
  font-size: 13px;
  margin: 12px 0 0;
  white-space: pre-wrap;
}
form .form-error:empty {
  display: none;
}
.home-composer input,
.search-field input,
.chat-composer textarea {
  border: 0 !important;
  background: transparent !important;
}
form.home-composer input {
  padding: 0;
  width: 0;
  flex: 1;
}
form.search-field input {
  padding: 0;
}
.auth-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fbfaf7;
}
.auth-scene {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  padding: 44px 12%;
  background:
    linear-gradient(0deg, #34372b66, #10171308),
    url("assets/home-room.png") center/cover;
}
.auth-brand {
  width: 104px;
  position: relative;
  z-index: 1;
}
.auth-scene > div {
  position: absolute;
  z-index: 2;
  left: 12%;
  top: 24%;
  color: #fffef8;
  text-shadow: 0 2px 25px #16211644;
}
.auth-scene h1 {
  font-size: clamp(34px, 3.4vw, 58px);
  margin: 22px 0;
}
.auth-scene .eyebrow {
  color: #fffde9;
  letter-spacing: 0.15em;
  font-size: 10px;
}
.auth-scene p {
  color: #fffde4e0;
  font-size: 16px;
}
.auth-agent {
  width: min(62%, 410px);
  position: absolute;
  bottom: -5%;
  right: 8%;
  filter: drop-shadow(0 20px 20px #1521132a);
}
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 38px;
}
.auth-card {
  width: min(100%, 380px);
}
.auth-card h2 {
  font-size: 30px;
  margin: 16px 0;
}
.auth-card > .muted {
  font-size: 14px;
}
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 26px 0;
}
.auth-switch button {
  padding: 0 4px;
  font-size: 13px;
}
.auth-footer {
  text-align: center;
  font-size: 11px;
  color: #a6a69c;
  margin: 35px 0 0;
}
.boot-state {
  max-width: 500px;
  margin: 25vh auto;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}
.offline {
  background: #b7b4a7;
}
.rail-footer .icon {
  width: 12px;
  height: 12px;
}
.setup-banner {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  background: #f4efd9;
  color: #827044;
  padding: 15px 18px;
  border-radius: 15px;
  font-size: 12px;
  line-height: 1.65;
  margin: 22px 0;
}
.setup-banner span {
  font-weight: 600;
  flex-shrink: 0;
}
.market-create {
  margin-left: auto;
  color: var(--gold);
}
.market-create .icon {
  width: 16px;
  height: 16px;
}
.service-art img {
  object-fit: contain;
}
.service-info h2,
.bounty-card h2,
.post-body,
.message p,
.order-card p {
  overflow-wrap: anywhere;
}
.service-author {
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-status {
  display: flex;
  align-items: center;
  gap: 9px;
}
.chat-status .text-link {
  margin-left: auto;
  font-size: 11px;
}
.chat-status .text-link .icon {
  width: 16px;
  height: 16px;
}
.messages {
  min-height: 420px;
}
.message p {
  white-space: pre-wrap;
}
.thinking {
  color: var(--muted);
  font-size: 12px;
  padding: 15px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.thinking i {
  width: 5px;
  height: 5px;
  background: #a1ad93;
  border-radius: 50%;
  animation: think 1.5s infinite;
}
.thinking i:nth-child(2) {
  animation-delay: 0.2s;
}
.thinking i:nth-child(3) {
  animation-delay: 0.4s;
  margin-right: 6px;
}
@keyframes think {
  50% {
    opacity: 0.25;
    transform: translateY(-3px);
  }
}
.run-error {
  padding: 15px;
  margin: 15px 0;
  border: 1px solid #ebd6ca;
  border-radius: 14px;
  background: #fff9f3;
  font-size: 12px;
}
.run-error p {
  margin: 0 0 10px;
}
.run-error .outline {
  padding: 8px 12px;
  font-size: 12px;
}
.history-title {
  margin-top: 45px;
}
.wallet-period {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 23px 0 0;
}
.wallet-period button {
  font-size: 12px;
  color: var(--muted);
  padding: 8px 20px;
  border-radius: 20px;
}
.wallet-period button.active {
  background: #edeee7;
  color: var(--ink);
}
.wallet-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
.wallet-stats article {
  background: #f2f3ed;
  border-radius: 18px;
  padding: 23px;
}
.wallet-stats small {
  display: block;
  color: var(--muted);
  margin-bottom: 12px;
}
.wallet-stats strong {
  font-size: 26px;
  font-weight: 600;
}
.ledger-row {
  gap: 15px;
}
.ledger-row > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.ledger-row > div:last-child {
  text-align: right;
}
.ledger-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.ledger-row .positive {
  color: #68845b;
}
.wallet-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 30px;
  line-height: 1.6;
}
.order-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.order-actions .primary,
.order-actions .outline {
  font-size: 12px;
  padding: 10px 16px;
}
.settings-page > h2 {
  font-size: 28px;
  margin: 12px 0;
}
.settings-page > .muted {
  font-size: 13px;
}
.settings-page input,
.settings-page textarea {
  background: #fffefa;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}
.check-label input {
  accent-color: #85936c;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.autonomy-box {
  padding: 1px 20px 20px;
  margin-top: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.autonomy-box .muted {
  font-size: 12px;
  margin: 10px 0 0;
}
.settings-actions {
  padding: 25px 0 0;
}
.settings-actions .muted {
  font-size: 11px;
  text-align: center;
  margin-top: 12px;
}
.account-settings {
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.account-settings p {
  font-size: 13px;
  color: var(--muted);
}
.settings-page details {
  font-size: 12px;
  color: var(--muted);
  padding: 20px 0;
}
.settings-page summary {
  cursor: pointer;
}
.memory-text {
  white-space: pre-wrap;
  padding-top: 14px;
  overflow-wrap: anywhere;
}
.sheet-body form .primary.wide {
  display: flex;
  justify-content: center;
  gap: 8px;
}
@media (max-width: 720px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-scene {
    min-height: 265px;
    padding: 24px;
  }
  .auth-brand {
    width: 78px;
  }
  .auth-scene > div {
    top: 92px;
    left: 28px;
  }
  .auth-scene h1 {
    font-size: 28px;
    margin: 12px 0;
  }
  .auth-scene .eyebrow {
    font-size: 7px;
  }
  .auth-scene p {
    display: none;
  }
  .auth-agent {
    width: 190px;
    right: 0;
    bottom: -45px;
  }
  .auth-panel {
    padding: 34px 26px 50px;
  }
  .auth-card h2 {
    font-size: 26px;
  }
  .auth-footer {
    margin-top: 24px;
  }
  .market-meta {
    font-size: 10px;
  }
  .market-sort {
    gap: 16px;
  }
  .market-sort button {
    font-size: 11px;
  }
  .setup-banner {
    font-size: 11px;
    align-items: flex-start;
  }
  .settings-page > h2 {
    font-size: 24px;
  }
  .wallet-stats article {
    padding: 19px;
  }
  .messages {
    min-height: 50dvh;
  }
}
@media (prefers-reduced-motion: reduce) {
  .thinking i {
    animation: none;
  }
}
.provider-usage {
  padding: 22px;
  background: #f1f2eb;
  border-radius: 16px;
  margin-top: 25px;
}
.provider-usage h3 {
  font-size: 14px;
  margin-bottom: 8px;
}
.provider-usage p,
.provider-usage small {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 0;
}
.heading-actions {
  display: flex;
  gap: 6px;
}
.profile-stats button {
  min-width: 65px;
  padding: 0;
  text-align: left;
}
.profile-stats button strong,
.profile-stats button span {
  display: block;
}
.profile-stats button:hover strong {
  color: var(--gold);
}
.profile-actions {
  display: flex;
  gap: 10px;
  margin: 24px 0 5px;
}
.profile-actions .primary {
  padding: 11px 24px;
  font-size: 13px;
}
.public-profile {
  padding-top: 8px;
}
.public-profile .profile {
  margin-top: 0;
}
.person-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.person-row-profile {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  flex: 1;
  min-width: 0;
  padding: 0;
}
.person-row-profile > span:last-child {
  min-width: 0;
}
.person-row-profile strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.person-row-profile small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.world-search-field {
  margin-top: 12px;
}
.search-tabs {
  padding: 8px 30px 0;
  border-bottom: 1px solid var(--line);
  gap: 0;
}
.search-tabs button {
  border-radius: 0;
  font-size: 13px;
  flex: 1;
  padding: 16px 0;
}
.search-tabs button.active {
  background: transparent;
  border-bottom: 2px solid var(--ink);
}
.people-filters {
  display: flex;
  gap: 8px;
  padding: 23px 30px 0;
}
.people-filters button {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 20px;
  color: var(--muted);
  font-size: 12px;
}
.people-filters button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}
.search-results {
  padding: 0 30px 30px;
}
.search-listing {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 18px;
  padding: 25px 0;
  width: 100%;
  border-bottom: 1px solid var(--line);
}
.search-listing img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  background: #f1f1e8;
  border-radius: 17px;
}
.search-listing > span {
  flex: 1;
  min-width: 0;
}
.search-listing strong {
  display: block;
  font-size: 15px;
  margin: 7px 0;
  overflow-wrap: anywhere;
}
.search-listing small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}
.search-listing b {
  flex-shrink: 0;
  font-size: 16px;
}
.invite-card {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 22px 24px;
  margin: 25px 0;
  border: 1px solid #e5e4d2;
  background: #f4f3e8;
  border-radius: 20px;
}
.invite-card > span {
  font-size: 32px;
  color: #a59257;
}
.invite-card > div {
  flex: 1;
}
.invite-card strong,
.invite-card small {
  display: block;
}
.invite-card strong {
  font-size: 14px;
  margin-bottom: 7px;
}
.invite-card small {
  color: var(--muted);
  font-size: 11px;
}
@media (max-width: 720px) {
  .search-tabs {
    padding-left: 20px;
    padding-right: 20px;
  }
  .search-tabs button {
    font-size: 12px;
  }
  .search-results,
  .people-filters {
    padding-left: 22px;
    padding-right: 22px;
  }
  .profile-stats button {
    min-width: 52px;
  }
  .invite-card {
    padding: 18px;
  }
  .auth-panel {
    align-items: flex-start;
  }
}
.search-discovery {
  padding: 28px 30px;
}
.page-invite .center,
.page-invite main { background: #fafafa; }
.page-invite main { padding-bottom: 0; }
.referral-heading,
.invite-page,
.invite-actions { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.referral-heading { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 64px; padding: 0 20px; }
.referral-heading h1 { text-align: center; font-size: 17px; font-weight: 600; letter-spacing: 0; }
.referral-heading .icon-button { width: 30px; height: 40px; background: transparent; border: 0; padding: 0; }
.referral-heading .text-link { color: #b5a164; font-size: 12px; font-weight: 700; }
.invite-page { padding: 20px 20px 30px; }
.invite-page > h2 { text-align: center; font-size: 24px; font-weight: 700; line-height: 33.6px; letter-spacing: normal; margin: 0 0 12px; }
.referral-summary { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #e6e6e6; border-radius: 16px; background: #fff; text-align: center; min-height: 104px; overflow: hidden; margin: 0 4px 16px; }
.referral-summary > div { padding: 8px 4px; display: flex; flex-direction: column; gap: 4px; line-height: 18px; }
.referral-summary > div + div { border-left: 1px solid #f2f2f2; }
.referral-summary span { color: #777; font-size: 13px; }
.referral-summary strong { color: #86722e; font-size: 15px; font-weight: 700; line-height: 20px; }
.referral-summary p { grid-column: 1 / -1; border-top: 1px solid #f1f1f1; padding: 6px; margin: 0; color: #999; font-size: 12px; line-height: 16px; }
.invite-poster { position: relative; width: 100%; aspect-ratio: 1098 / 1433; overflow: hidden; border-radius: 24px; isolation: isolate; color: white; }
/* Native Image retains the registered asset's intrinsic dimensions under absoluteFill;
   the runtime pixel comparison is recorded in evidence/phase5/runtime. */
.invite-background { position: absolute; left: 0; top: 0; width: 1098px; height: 1433px; max-width: none; object-fit: cover; z-index: -2; }
.invite-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, #102b5000 0%, #102b5000 65%, #102b504d 82%, #102b50bf 100%); z-index: -1; }
.invite-poster-content { height: 100%; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.invite-poster h3 { font-size: 29px; font-weight: 700; line-height: 34px; margin: 0; letter-spacing: normal; }
.invite-poster-bottom { display: flex; align-items: flex-end; gap: 16px; }
.invite-identity { flex: 1; min-width: 0; min-height: 108px; }
.invite-code-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.3px; margin-bottom: 5px; }
.invite-code { display: block; font-size: 25px; font-weight: 800; line-height: 1.3; letter-spacing: 2px; overflow-wrap: anywhere; }
.invite-code.long-code { font-size: clamp(12px, 3.8vw, 19px); letter-spacing: .5px; }
.invite-by { display: flex; align-items: center; margin-top: 12px; }
.invite-by .avatar { width: 28px; height: 28px; border: 2px solid white; flex: 0 0 28px; font-size: 11px; }
.invite-by .avatar + .avatar { margin-left: -8px; }
.invite-by > div { margin-left: 8px; min-width: 0; }
.invite-by small { display: block; color: #ffffffc7; font-size: 10px; font-weight: 700; letter-spacing: .8px; }
.invite-by strong { display: block; font-size: 11px; font-weight: 600; max-width: 150px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.invite-qr { flex: 0 0 108px; background: #fff; border-radius: 10px; padding: 7px; }
.invite-qr img { display: block; width: 94px; height: 94px; image-rendering: pixelated; }
.invite-history-heading { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 8px; }
.invite-history-heading h2 { font-size: 18px; margin: 0; letter-spacing: -.03em; }
.invite-date-controls { display: flex; align-items: center; gap: 4px; }
.invite-date-controls time { min-width: 76px; font-size: 12px; text-align: center; }
.invite-date-controls button { width: 28px; height: 34px; }
.invite-date-controls button:disabled { opacity: .28; }
.referral-icon { display: inline-block; width: 21px; height: 21px; vertical-align: middle; object-fit: contain; }
.invite-date-controls .referral-icon { width: 18px; height: 18px; }
.invite-history-summary { color: #858585; font-size: 12px; margin: 8px 0 12px; }
.invite-history-row { display: flex; gap: 10px; align-items: center; padding: 14px 0; border-bottom: 1px solid #eee; }
.invite-history-row > div { min-width: 0; flex: 1; }
.invite-history-row strong { font-size: 13px; }
.invite-history-row small,
.invite-history-row time { display: block; color: #888; font-size: 10px; margin-top: 4px; }
.invite-linked { color: #6f7f64; background: #eef1e9; border-radius: 20px; padding: 5px 9px; font-size: 10px; }
.referral-empty { text-align: center; border-radius: 16px; border: 1px dashed #e2e2e2; padding: 25px 15px; }
.referral-empty h3 { font-size: 13px; margin-bottom: 8px; }
.referral-empty p { color: #999; font-size: 12px; margin: 0; }
.invite-link-section { margin-top: 24px; }
.invite-link-section label { display: block; color: #777; font-size: 12px; margin-bottom: 8px; }
.invite-link-section input,
#copy-value { width: 100%; border: 1px solid #e4e4e4; background: white; border-radius: 10px; padding: 12px; font: inherit; font-size: 12px; }
.invite-access-note { color: #888; font-size: 11px; margin: 8px 0; }
.invite-link-section .text-link { font-size: 12px; }
.invite-link-attribution { display: block; margin: 24px auto 8px; text-align: center; font-size: 12px; }
.invite-actions { display: grid; grid-template-columns: 52px 1fr 52px; gap: 12px; align-items: center; padding: 12px 20px; position: sticky; bottom: 0; z-index: 5; border-top: 1px solid #efefef; background: #fafafaf5; backdrop-filter: blur(16px); }
.invite-action-round { display: grid; place-items: center; border-radius: 50%; width: 52px; height: 52px; background: white; border: 1px solid #e7e7e7; }
.invite-copy { display: flex; align-items: center; justify-content: center; gap: 10px; background: #3e3e3b; color: white; height: 52px; border-radius: 14px; font-size: 14px; font-weight: 700; }
.invite-copy .referral-icon { filter: invert(1); width: 19px; height: 19px; }
.invite-share-options { display: flex; gap: 12px; margin-top: 22px; }
@media(max-width:720px) {
  .page-invite .mobile-header,
  .page-invite .bottom-nav { display: none; }
  .page-invite main { padding-bottom: 90px; }
  .invite-actions { position: fixed; width: min(100%,580px); left: 50%; transform: translateX(-50%); padding-bottom: max(12px,env(safe-area-inset-bottom)); }
}
.search-discovery h2 {
  font-size: 15px;
  margin: 15px 0 20px;
  letter-spacing: -0.01em;
}
.search-discovery .section-header h2 {
  margin: 0;
}
.search-topics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 36px;
}
.search-topics button {
  font-size: 12px;
  border-radius: 18px;
  background: #f0f0e9;
  padding: 9px 15px;
}
.search-discovery .section-header .text-link {
  color: var(--muted);
  font-size: 12px;
}
.message.pending-send {
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.message.pending-send p {
  opacity: 0.75;
}
.send-state {
  color: var(--muted);
  font-size: 11px;
}
.run-error .text-link {
  font-size: 12px;
  margin-left: 6px;
}
.model-test:empty {
  display: none;
}
.model-test {
  margin: 14px 0 10px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 12px;
  border: 1px solid #dfe7d5;
  background: #f6f9f1;
}
.model-test.warn {
  border-color: #eadfb8;
  background: #fffaf0;
}
.model-test.error {
  border-color: #ebd6ca;
  background: #fff9f3;
}
.model-test p {
  margin: 4px 0;
}
.model-test small {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.archived-milestones {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 12px;
  color: var(--muted);
}
.archived-milestones li.done {
  text-decoration: line-through;
}
.memory-versions-title {
  margin: 14px 0 6px;
  font-size: 12px;
}
.memory-versions {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
}
.memory-versions li {
  padding: 8px 0;
  border-top: 1px solid #eeefe8;
}
.memory-versions p {
  margin: 4px 0;
  white-space: pre-wrap;
}
.status-dot.off {
  background: #c9cbc4;
}
.visitor-disclosure {
  margin: 12px 0 0;
  padding: 18px;
  border: 1px solid #dfe7d5;
  border-radius: 18px;
  background: #f6f9f1;
  font-size: 13px;
}
.visitor-disclosure h3 {
  margin: 0 0 6px;
  font-size: 15px;
}
.visitor-disclosure p {
  margin: 0 0 14px;
  line-height: 1.6;
}
.visitor-disclosure div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.visitor-closed,
.owner-review-note {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.visitor-boundary {
  align-self: center;
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 11px;
}
.owner-thread-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0 4px;
}
.owner-thread-actions .outline {
  padding: 7px 14px;
  font-size: 12px;
}
.visitor-box textarea {
  margin-bottom: 10px;
}
.dm-conversation > .avatar,
.dm-conversation > .count {
  flex: 0 0 auto;
}
.dm-conversation > .count {
  align-self: center;
}
/* Welcome flow: a focused full-screen card without the app chrome. */
.page-welcome .sidebar,
.page-welcome .right-rail,
.page-welcome .mobile-header,
.page-welcome .bottom-nav {
  display: none;
}
.page-welcome .center {
  margin: 0 auto;
  width: 100%;
  max-width: 560px;
}
.page-welcome main {
  min-height: 100vh;
  padding-bottom: 0;
}
.welcome {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}
.welcome-top {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
}
.welcome-top small {
  color: var(--muted);
  font-size: 11px;
}
.welcome-progress {
  height: 6px;
  border-radius: 99px;
  background: #eeefe8;
  overflow: hidden;
}
.welcome-progress i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: #8fa07c;
  transition: width 0.3s ease;
}
.welcome-body {
  flex: 1;
  padding: 34px 0 18px;
}
.welcome-body h1 {
  margin: 8px 0 10px;
  font-size: 28px;
  line-height: 1.2;
}
.welcome-body textarea,
.welcome-body input {
  width: 100%;
  box-sizing: border-box;
}
.welcome-intro {
  text-align: center;
}
.welcome-intro p {
  line-height: 1.7;
  color: var(--muted);
}
.welcome-agent {
  width: 180px;
  max-width: 60%;
  margin: 10px auto 18px;
  display: block;
}
.welcome-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}
.welcome-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d9dccf;
}
.welcome-dots i.active {
  width: 18px;
  border-radius: 99px;
  background: #8fa07c;
}
.welcome-form label {
  display: block;
  margin: 18px 0 6px;
}
.welcome-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.welcome-option {
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: left;
  font-size: 14px;
}
.welcome-option.selected {
  border-color: #8fa07c;
  background: #f1f5ea;
  box-shadow: inset 0 0 0 1px #8fa07c;
}
.welcome-footer {
  display: grid;
  gap: 10px;
}
.welcome-skip {
  justify-self: center;
}
.model-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid #eadfb8;
  border-radius: 18px;
  background: #fffaf0;
  color: inherit;
  text-decoration: none;
}
.model-banner span {
  flex: 1;
  min-width: 0;
}
.model-banner strong,
.model-banner small {
  display: block;
}
.model-banner small {
  color: var(--muted);
  font-size: 12px;
}

/* Inline styles are blocked by the CSP, so each step has its own width rule. */
.welcome-progress[data-step="1"] i {
  width: 10%;
}
.welcome-progress[data-step="2"] i {
  width: 20%;
}
.welcome-progress[data-step="3"] i {
  width: 30%;
}
.welcome-progress[data-step="4"] i {
  width: 40%;
}
.welcome-progress[data-step="5"] i {
  width: 50%;
}
.welcome-progress[data-step="6"] i {
  width: 60%;
}
.welcome-progress[data-step="7"] i {
  width: 70%;
}
.welcome-progress[data-step="8"] i {
  width: 80%;
}
.welcome-progress[data-step="9"] i {
  width: 90%;
}
.welcome-progress[data-step="10"] i {
  width: 100%;
}
.layout.page-welcome {
  display: block;
}
.page-welcome .center {
  border: 0;
}

/* Bounties with seats and escrow */
.bounty-card {
  display: flex;
  flex-direction: column;
}
.bounty-top,
.bounty-foot,
.claim-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.days-left {
  font-size: 10px;
  color: #a0864a;
  font-weight: 700;
}
.bounty-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.bounty-tags .mini-tag {
  background: #e3ead9;
  color: #6d8463;
}
.bounty-foot .service-author {
  margin-top: 0;
}
.bounty-foot {
  margin-top: 13px;
}
.bounty-pill {
  background: var(--ink);
  color: white;
  border-radius: 14px;
  padding: 5px 12px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.bounty-pill.muted-pill {
  background: #e6e2d2;
  color: #7f7a66;
}
.bounty-card.legacy {
  opacity: 0.75;
}
.bounty-detail .mini-tag {
  margin-right: 6px;
}
.bounty-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}
.bounty-facts > div {
  background: #f2efe4;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.bounty-facts strong {
  font-size: 18px;
  color: #b18e3c;
  overflow-wrap: anywhere;
}
.bounty-facts small {
  font-size: 10px;
  color: #8f907c;
}
.task-brief summary,
.appeal summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  margin: 8px 0;
}
.task-brief p,
.submission {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.claim-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  margin: 12px 0;
}
.claim-card.mine {
  background: #fbfaf4;
}
.evidence {
  padding-left: 18px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.notice-inline {
  background: #fbe3e4;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
}
.inline-form {
  margin-top: 14px;
}
.form-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.form-buttons > button {
  flex: 1;
}
.form-columns.three {
  grid-template-columns: repeat(3, 1fr);
}
.records-tabs {
  padding: 0 29px;
}
.records-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 12px 29px 0;
}
.records-filters > button:not(.market-create) {
  border-radius: 16px;
  padding: 7px 14px;
  background: var(--soft);
  font-size: 12px;
  color: #6f716b;
}
.records-filters > button.active {
  background: var(--ink);
  color: white;
}
.records-filters > button span {
  opacity: 0.7;
  margin-left: 2px;
}
.records-filters .market-create {
  margin-left: auto;
}
.record-row {
  display: block;
  width: 100%;
  text-align: left;
}

/* Blocking, muting, reporting and account safety */
.post-more {
  width: 32px;
  height: 32px;
  margin-left: 4px;
}
.post-more .icon {
  width: 18px;
  height: 18px;
}
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 12px;
  border-radius: 14px;
  text-align: left;
  font-size: 14px;
}
.menu-item:hover,
.menu-item:focus-visible {
  background: var(--soft);
}
.menu-item .icon {
  width: 18px;
  height: 18px;
}
.menu-item.danger,
.danger-link {
  color: #c0554d;
}
.primary.danger-button {
  background: #c0554d;
  border-color: #c0554d;
}
.comment-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.small-link {
  font-size: 11px;
}
.blocked-note {
  width: 100%;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.safety-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  margin: 12px 0;
}
.safety-box h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
.safety-box h3 span {
  color: var(--muted);
  font-weight: 400;
}
.people-list,
.report-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.people-list li,
.report-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.report-list li {
  flex-direction: column;
  align-items: stretch;
}
.report-list p {
  margin: 6px 0 2px;
  overflow-wrap: anywhere;
}
.report-list small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.report-note {
  font-style: italic;
}
.delete-risks ul {
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
}

/* Home dressing: walls, light and props (ROOM-DESIGN.md) */
.home-scene:before,
.home-scene:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: background 0.6s ease, opacity 0.6s ease;
}
.home-scene:before {
  z-index: 0;
  mix-blend-mode: multiply;
  opacity: 0.32;
}
.home-scene.wall-linen:before { background: #f3ead8; }
.home-scene.wall-sage:before { background: #b9d0b0; }
.home-scene.wall-blush:before { background: #efc3c0; }
.home-scene.wall-sky:before { background: #b9d3e6; }
.home-scene.wall-dusk:before { background: #b7a7cf; }
.home-scene:after {
  z-index: 2;
  mix-blend-mode: soft-light;
}
.home-scene.light-day:after { background: transparent; }
.home-scene.light-afternoon:after { background: linear-gradient(160deg, #f0b75e 0%, #d9af5d80 60%, transparent 100%); }
.home-scene.light-evening:after { background: linear-gradient(180deg, #c7708a 0%, #8a5f9a 100%); opacity: 0.85; }
.home-scene.light-night:after { background: #2a3558; opacity: 0.7; mix-blend-mode: multiply; }
.home-scene.light-night .home-identity strong,
.home-scene.light-night .home-identity small { color: #f1efe6; }
.home-scene.light-night .scene-caption h1,
.home-scene.light-night .scene-caption .eyebrow { color: #f1efe6; }
.home-scene.mood-resting:after { background: #6d6f78; opacity: 0.55; mix-blend-mode: multiply; }
.room-props {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.room-prop {
  position: absolute;
  transform: translateX(-50%);
  display: block;
  filter: drop-shadow(0 6px 6px #3c3c3c1f);
}
.room-prop svg { display: block; width: 100%; height: auto; }
.room-prop.behind { z-index: -1; filter: none; }
.prop-plant { left: 11%; bottom: 13%; width: 74px; }
.prop-lamp { left: 84%; bottom: 13%; width: 54px; }
.prop-shelf { left: 79%; bottom: 44%; width: 92px; }
.prop-rug { left: 50%; bottom: 5%; width: 240px; }
.prop-frame { left: 21%; bottom: 52%; width: 62px; }
.prop-catbed { left: 27%; bottom: 9%; width: 92px; }
.prop-lights { left: 66%; bottom: 62%; width: 52%; }
.prop-record { left: 72%; bottom: 11%; width: 82px; }
.home-scene.light-evening .prop-lamp .glow,
.home-scene.light-night .prop-lamp .glow { opacity: 1; fill: #ffe9a8; }
.prop-lights .twinkle { animation: twinkle 2.4s ease-in-out infinite; }
.prop-record .spin { transform-origin: 38px 20px; animation: wobble 1.6s linear infinite; }
@keyframes twinkle { 50% { opacity: 0.45; } }
@keyframes wobble { 50% { transform: scaleX(0.92); } }

/* The character and its moods */
.scene-agent {
  position: absolute;
  z-index: 4;
  bottom: 54px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.scene-agent .scene-character {
  position: static;
  transform: none;
  display: block;
  animation: arrive 0.8s ease-out, breathe 4.2s ease-in-out 0.8s infinite;
  transform-origin: 50% 100%;
}
.scene-agent.hop .scene-character { animation: hop 0.5s ease-out; }
.mood-busy .scene-agent .scene-character { animation: arrive 0.8s ease-out, sway 2.4s ease-in-out 0.8s infinite; }
.mood-sleep .scene-agent .scene-character,
.mood-resting .scene-agent .scene-character { animation: breathe 6s ease-in-out infinite; filter: drop-shadow(0 14px 14px #3c3c3c29) saturate(0.65) brightness(0.92); }
.mood-resting .scene-agent .scene-character { opacity: 0.85; }
@keyframes breathe { 50% { transform: scale(1.012, 0.988); } }
@keyframes sway { 25% { transform: rotate(-2deg); } 75% { transform: rotate(2deg); } }
@keyframes hop { 40% { transform: translateY(-18px) scale(1.02); } 70% { transform: translateY(0) scale(1.03, 0.97); } }
.mood-fx {
  position: absolute;
  top: 6%;
  right: -8%;
  display: flex;
  gap: 4px;
  pointer-events: none;
}
.mood-busy .mood-fx {
  background: #fffaf0e6;
  border-radius: 16px;
  padding: 8px 10px;
  box-shadow: 0 4px 10px #2d2d2d14;
}
.mood-fx i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9caa83;
  animation: dots 1.2s ease-in-out infinite;
}
.mood-fx i:nth-child(2) { animation-delay: 0.2s; }
.mood-fx i:nth-child(3) { animation-delay: 0.4s; }
@keyframes dots { 50% { transform: translateY(-4px); opacity: 0.5; } }
.mood-fx b {
  font: 700 16px/1 var(--font, inherit);
  color: #f6f3e8;
  text-shadow: 0 1px 3px #0005;
  opacity: 0;
  animation: zzz 3s ease-in infinite;
}
.mood-fx b:nth-child(2) { animation-delay: 1s; font-size: 13px; }
.mood-fx b:nth-child(3) { animation-delay: 2s; font-size: 10px; }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 8px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(10px, -26px); } }
.speech {
  position: absolute;
  bottom: 92%;
  left: 50%;
  transform: translate(-50%, 6px);
  white-space: nowrap;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #fffdf7;
  border-radius: 16px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--ink);
  box-shadow: 0 6px 14px #2d2d2d1f;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.speech.show { opacity: 1; transform: translate(-50%, 0); }
.mood-pill {
  position: absolute;
  z-index: 5;
  top: 92px;
  right: 25px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 55%;
  padding: 7px 8px 7px 12px;
  border-radius: 20px;
  background: #ffffffa8;
  backdrop-filter: blur(12px);
  border: 1px solid #ffffffb0;
  font-size: 11px;
  color: #4c4d45;
}
.mood-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mood-pill .icon { width: 12px; height: 12px; flex-shrink: 0; }
.wake-button {
  background: var(--ink);
  color: white;
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
}
.home-identity .icon { width: 10px; height: 10px; }
@media (max-width: 760px) {
  .mood-pill { top: 84px; right: 16px; }
  .home-scene .scene-caption .eyebrow { visibility: hidden; }
  .prop-lights { left: 70%; bottom: 55%; width: 50%; }
  .prop-shelf, .prop-frame { width: 70px; }
  .prop-rug { width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-agent .scene-character,
  .mood-fx i,
  .mood-fx b,
  .prop-lights .twinkle,
  .prop-record .spin { animation: none !important; }
  .mood-fx b { opacity: 0.8; }
}

/* Home Decor sheet */
.dressing-form fieldset { border: 0; padding: 0; margin: 14px 0 0; }
.dressing-form legend { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.swatches, .chip-options { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch, .chip, .prop-option { position: relative; cursor: pointer; }
.swatch input, .chip input, .prop-option input { position: absolute; opacity: 0; }
.swatch span {
  display: flex;
  align-items: flex-end;
  width: 64px;
  height: 46px;
  padding: 4px 6px;
  border-radius: 12px;
  font-size: 10px;
  border: 2px solid transparent;
}
.swatch.wall-linen span { background: #f3ead8; }
.swatch.wall-sage span { background: #cfe0c7; }
.swatch.wall-blush span { background: #f5d6d3; }
.swatch.wall-sky span { background: #d3e3ef; }
.swatch.wall-dusk span { background: #d6cbe6; }
.chip span { display: block; padding: 7px 12px; border-radius: 16px; background: var(--soft); font-size: 12px; border: 2px solid transparent; }
.swatch input:checked + span,
.chip input:checked + span,
.prop-option input:checked ~ .prop-thumb { border-color: var(--ink); }
.swatch input:focus-visible + span,
.chip input:focus-visible + span,
.prop-option input:focus-visible ~ .prop-thumb { outline: 2px solid #9caa83; outline-offset: 2px; }
.prop-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.prop-option { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; text-align: center; }
.prop-thumb { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; border-radius: 14px; background: var(--soft); border: 2px solid transparent; padding: 8px; }
.prop-thumb svg { max-width: 100%; max-height: 100%; width: auto; height: 100%; }

/* Agent room (iLog) */
.room-header { display: flex; align-items: center; gap: 14px; padding: 6px 29px 14px; }
.room-header h2 { font-size: 20px; margin: 0; display: flex; align-items: center; gap: 8px; }
.room-header p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.live-dot { background: #d7887b; color: white; font-size: 8px; font-weight: 700; letter-spacing: 0.08em; padding: 2px 5px; border-radius: 4px; font-style: normal; }
.calendar-strip { display: flex; gap: 6px; overflow-x: auto; padding: 4px 29px 14px; scrollbar-width: none; scroll-snap-type: x proximity; }
.calendar-strip::-webkit-scrollbar { display: none; }
.calendar-strip .day { flex: 0 0 42px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 5px; border-radius: 14px; background: var(--soft); color: var(--muted); scroll-snap-align: end; }
.calendar-strip .day small { font-size: 9px; }
.calendar-strip .day b { font-size: 14px; color: var(--ink); }
.calendar-strip .day i { font-style: normal; font-size: 10px; line-height: 1; color: #9caa83; height: 10px; }
.calendar-strip .day.active { background: var(--ink); }
.calendar-strip .day.active b, .calendar-strip .day.active small { color: white; }
.room-notice { margin: 0 29px 14px; padding: 16px; border-radius: 18px; background: #f2efe4; }
.room-notice h3 { margin: 0 0 6px; font-size: 15px; }
.room-notice p { font-size: 13px; color: var(--muted); }
.room-logs { padding: 0 29px; }
.log-group { border: 1px solid var(--line); border-radius: 18px; padding: 6px 14px; margin-bottom: 12px; background: white; }
.log-group header { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); padding: 6px 0; }
.room-log { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.log-icon { width: 26px; height: 26px; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.room-log > div { flex: 1; min-width: 0; }
.room-log p { margin: 0; font-size: 13px; overflow-wrap: anywhere; white-space: pre-wrap; }
.room-log small { color: var(--muted); font-size: 10px; }
.room-log.private { opacity: 0.8; }
.log-status span { font-size: 16px; }
.log-moment { display: block; padding: 10px 12px; border-radius: 12px; background: #f2efe4; margin-bottom: 4px; }
.log-moment p { color: var(--muted); font-size: 12px; }
.log-like { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 11px; }
.log-like .icon { width: 16px; height: 16px; }
.log-like.selected { color: #d38e8a; }
.log-like.selected .icon path { fill: currentColor; }
.room-actions { display: flex; gap: 10px; padding: 8px 29px 30px; }
.room-actions > * { flex: 1; text-align: center; }
.room-chip { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10px; }
.room-chip > .avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #d7887b; }
.room-chip em { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); }
.room-chip .status-emoji { font-style: normal; font-size: 13px; top: 30px; left: auto; right: -4px; transform: none; }
.check-toggle { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line); background: white; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 760px) {
  .room-header, .calendar-strip, .room-logs, .room-actions { padding-left: 16px; padding-right: 16px; }
  .room-notice { margin-left: 16px; margin-right: 16px; }
  .prop-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Community: images, mentions, topics */
.post-media { display: grid; gap: 6px; margin-top: 12px; border-radius: 16px; overflow: hidden; }
.post-media.n-1 { grid-template-columns: 1fr; }
.post-media.n-2 { grid-template-columns: 1fr 1fr; }
.post-media.n-3 { grid-template-columns: repeat(3, 1fr); }
.post-media button { padding: 0; display: block; aspect-ratio: 1; background: var(--soft); }
.post-media.n-1 button { aspect-ratio: 4 / 3; }
.post-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mention { padding: 0; color: #6d8463; font-weight: 600; font: inherit; font-weight: 600; }
.tag-link { color: #a0864a; font-weight: 600; }
.mention-box { border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 8px 20px #2d2d2d1a; margin: 4px 0 8px; overflow: hidden; }
.mention-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; text-align: left; }
.mention-option:hover, .mention-option:focus-visible { background: var(--soft); }
.mention-option .avatar { width: 28px; height: 28px; }
.mention-option small { display: block; color: var(--muted); font-size: 10px; }
.compose-media { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 10px 0; }
.compose-media:empty { display: none; }
.compose-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.compose-thumb img { width: 100%; height: 100%; object-fit: cover; }
.compose-thumb .icon-button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; background: #fffd; border-radius: 50%; }
.compose-thumb .icon-button .icon { width: 12px; height: 12px; }
.uploading { font-style: normal; color: var(--muted); }
.compose-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 4px; }
.compose-tools select { width: auto; }
.file-button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 16px; background: var(--soft); font-size: 13px; font-weight: 600; cursor: pointer; margin: 0; }
.file-button .icon { width: 14px; height: 14px; }
.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; left: 0; top: 0; width: 1px !important; height: 1px; padding: 0; border: 0; opacity: 0; }
.file-button:focus-within { outline: 2px solid #9caa83; outline-offset: 2px; }
.image-viewer { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.image-viewer img { max-width: 100%; max-height: 70vh; border-radius: 12px; object-fit: contain; }
.viewer-nav { display: flex; gap: 16px; }
.tag-count { padding: 0 29px; color: var(--muted); font-size: 13px; }
.topic-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 18px; background: #f2efe4; font-size: 13px; color: #8a6d2c; }
.topic-chip small { color: var(--muted); }
.post-more.own { margin-left: auto; }
@media (max-width: 760px) {
  .tag-count { padding: 0 16px; }
  .compose-media { grid-template-columns: repeat(4, 1fr); }
}

/* Groups */
.group-inbox .market-create { margin-left: auto; }
.group-avatar { display: inline-flex; align-items: center; justify-content: center; background: #e3ead9; color: #6d8463; font-weight: 700; }
.muted-count { background: var(--soft); color: var(--muted); }
.group-invite { border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin: 8px 0 12px; display: flex; flex-direction: column; gap: 10px; background: #fbfaf4; }
.group-invite strong { display: block; font-size: 14px; }
.group-invite small { display: block; font-size: 11px; color: var(--muted); }
.group-invite p { font-size: 12px; margin: 6px 0; }
.group-heading { display: flex; align-items: center; gap: 12px; }
.group-heading > div { flex: 1; min-width: 0; }
.group-heading h1 { font-size: 22px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-heading small { color: var(--muted); font-size: 12px; }
.announcement { margin: 0 29px 10px; padding: 10px 14px; border-radius: 14px; background: #f2efe4; font-size: 13px; overflow-wrap: anywhere; }
.group-messages { display: flex; flex-direction: column; gap: 10px; }
.load-older { align-self: center; font-size: 12px; }
.group-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 85%; }
.group-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.group-msg .avatar { width: 30px; height: 30px; flex-shrink: 0; }
.group-msg .bubble { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 8px 12px; min-width: 0; }
.group-msg.mine .bubble { background: #e3ead9; border-color: transparent; }
.group-msg .bubble p { margin: 2px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.group-msg .sender { font-size: 11px; color: #6d8463; }
.group-msg small { display: flex; gap: 10px; align-items: center; font-size: 10px; color: var(--muted); }
.group-msg small .text-link { font-size: 10px; padding: 0; }
.group-msg blockquote { margin: 4px 0; padding: 4px 8px; border-left: 3px solid #9caa83; background: #0000000a; border-radius: 6px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.group-msg .post-media { margin-top: 6px; max-width: 280px; }
.group-msg.system { align-self: center; max-width: 100%; }
.group-msg.system p { font-size: 11px; color: var(--muted); font-style: italic; margin: 0; }
.reply-preview { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 29px; padding: 8px 12px; border-radius: 12px; background: var(--soft); font-size: 12px; }
.reply-preview span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-composer { align-items: flex-end; }
.file-button.icon-only { padding: 10px; border-radius: 50%; }
.group-details h3 { font-size: 14px; margin: 16px 0 6px; }
.group-details p { font-size: 13px; overflow-wrap: anywhere; white-space: pre-wrap; }
.group-details .people-list li span { display: flex; align-items: center; gap: 8px; }
.group-details .people-list .avatar { width: 28px; height: 28px; }
.group-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.invite-list { display: flex; flex-direction: column; max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
.invite-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin: 0; font-weight: 400; cursor: pointer; }
.invite-row + .invite-row { border-top: 1px solid var(--line); }
.invite-row .avatar { width: 28px; height: 28px; }
.invite-pick { border: 0; padding: 0; margin: 12px 0 0; }
.invite-pick legend { font-weight: 700; font-size: 13px; margin-bottom: 6px; }
@media (max-width: 760px) {
  .announcement, .reply-preview { margin-left: 16px; margin-right: 16px; }
  .group-msg { max-width: 92%; }
}
.invite-row input[type="checkbox"] { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; }

/* Feedback loop: what a revision was based on */
.revision-note { font-size: 11px; color: #6d8463; margin-top: 8px; }
.log-note { font-size: 12px; color: var(--muted); }
.log-basis { margin: 6px 0; padding: 6px 10px; border-left: 3px solid #9caa83; background: #f2efe4; border-radius: 8px; font-size: 12px; overflow-wrap: anywhere; }
.log-basis span { color: var(--muted); font-size: 11px; }
.room-log .text-link { display: block; margin: 2px 0 4px; font-size: 12px; }

/* Host panel */
.host-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 16px 0; border-radius: 18px; background: #f2efe4; }
.host-link span { flex: 1; }
.host-link small { display: block; color: var(--muted); font-size: 11px; }
.admin-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.admin-totals > div { background: #f2efe4; border-radius: 16px; padding: 12px; }
.admin-totals small { display: block; font-size: 10px; color: var(--muted); }
.admin-totals strong { font-size: 20px; }
.admin-users { display: flex; flex-direction: column; gap: 10px; }
.admin-user { border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: white; }
.admin-user.suspended { background: #fbf3f2; }
.admin-user-head { display: flex; gap: 10px; align-items: center; }
.admin-user-head > div { min-width: 0; }
.admin-user-head small { display: block; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.admin-usage { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 12px 0; }
.admin-usage div { background: var(--soft); border-radius: 10px; padding: 6px 8px; }
.admin-usage dt { font-size: 9px; color: var(--muted); }
.admin-usage dd { margin: 0; font-weight: 700; font-size: 13px; }
.danger-tag { background: #f5d6d3; color: #a2433b; }
.temp-password { font: 700 20px/1.4 ui-monospace, Menlo, monospace; text-align: center; padding: 12px; background: var(--soft); border-radius: 12px; letter-spacing: 0.05em; user-select: all; }
@media (max-width: 760px) {
  .admin-usage { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.message.streaming p::after { content: "▍"; margin-left: 2px; animation: blink 1s steps(1) infinite; color: #9caa83; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .message.streaming p::after { animation: none; } }
.agent-bubble { background: #f2efe4 !important; }
.agent-of { font-weight: 400; color: var(--muted); font-size: 10px; margin-left: 4px; }
.backup-box p { font-size: 13px; overflow-wrap: anywhere; } .backup-box code { font-size: 11px; }

/* Message menu, gifts, growth */
.message { position: relative; }
.msg-more { opacity: 0; align-self: center; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); flex-shrink: 0; }
.msg-more .icon { width: 16px; height: 16px; }
.message:hover .msg-more, .msg-more:focus-visible { opacity: 1; }
@media (hover: none) { .msg-more { opacity: 0.6; } }
.menu-quote { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid #9caa83; background: var(--soft); border-radius: 8px; font-size: 13px; overflow-wrap: anywhere; white-space: pre-wrap; }
.home-top-actions { display: flex; gap: 8px; align-items: center; }
.level-chip { font-weight: 700; }
.level-chip.static { display: inline-block; padding: 4px 10px; border-radius: 12px; background: #e3ead9; color: #4c5c41; font-size: 12px; }
.levelup-banner { position: relative; z-index: 6; margin: 0 25px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 16px; background: #fff7e0e6; box-shadow: 0 4px 12px #2d2d2d14; font-size: 12px; }
.levelup-banner span { flex: 1; }
.profile-growth { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0; }
.badge-chip { font-size: 11px; padding: 4px 10px; border-radius: 12px; background: #f2efe4; }
.level-page h3 { margin: 20px 0 8px; font-size: 15px; }
.level-card { display: flex; gap: 18px; align-items: center; padding: 16px; border-radius: 20px; background: #f2efe4; }
.level-card > div:first-child { text-align: center; }
.level-card > div:first-child small { display: block; font-size: 11px; color: var(--muted); }
.level-card > div:first-child strong { font-size: 38px; line-height: 1; }
.level-progress { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.level-progress small { font-size: 11px; color: var(--muted); }
.level-page progress, .badge-card progress { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 6px; background: #ffffffa0; overflow: hidden; }
.level-page progress::-webkit-progress-bar { background: #e9e9e2; border-radius: 6px; }
.level-page progress::-webkit-progress-value { background: #9caa83; border-radius: 6px; }
.level-page progress::-moz-progress-bar { background: #9caa83; }
.reward-list { list-style: none; padding: 0; margin: 0; }
.reward-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.reward-list li small { display: block; color: var(--muted); font-size: 11px; }
.reward-list li.locked { opacity: 0.6; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.badge-card { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: white; }
.badge-card.locked { background: var(--soft); }
.badge-card.locked strong { color: var(--muted); }
.badge-icon { font-size: 22px; }
.badge-card small { font-size: 11px; }
@media (max-width: 760px) { .levelup-banner { margin: 0 16px; } }
.has-levelup .mood-pill { display: none; }

/* Chat photos, files and voice messages (MEDIA-I18N-DESIGN.md §3–4) */
.message-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; align-items: flex-start; }
.message.outgoing .message-body { align-items: flex-end; }
.chat-photos { display: grid; gap: 4px; max-width: 260px; }
.chat-photos.n-2 { grid-template-columns: 1fr 1fr; }
.chat-photos a { display: block; border-radius: 14px; overflow: hidden; background: var(--soft); min-height: 60px; }
.chat-photos img { display: block; width: 100%; height: 100%; max-height: 260px; object-fit: cover; }
.file-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 260px; padding: 10px 14px; border-radius: 16px; background: #eeefe8; font-size: 12px; color: var(--ink); }
.message.outgoing .file-chip { background: #dfe7d5; }
.file-chip .file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.file-chip small { color: var(--muted); flex-shrink: 0; }
.voice-msg { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 20px 20px 20px 5px; background: #eeefe8; color: #697556; min-width: 200px; }
.message.outgoing .voice-msg { background: #dfe7d5; border-radius: 20px 20px 5px 20px; }
.voice-play { width: 30px; height: 30px; border-radius: 50%; background: #697556; color: white; font-size: 11px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.waveform { width: 140px; height: 24px; flex: 1; }
.waveform rect { fill: #a9b596; }
.waveform rect.played { fill: #4e5a3e; }
.waveform.live { width: 100%; }
.waveform.live rect { fill: #c0554d; }
.voice-time { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); }
.transcript { max-width: 260px; font-size: 12px; line-height: 1.6; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.media-note { font-size: 11px; color: var(--muted); }
.chat-tray { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 24px 8px; }
.tray-item { position: relative; display: inline-flex; align-items: center; gap: 6px; max-width: 220px; height: 64px; padding: 0 30px 0 12px; border-radius: 14px; background: var(--soft); font-size: 12px; }
.tray-item.image { width: 64px; padding: 0; overflow: hidden; }
.tray-item.image img { width: 100%; height: 100%; object-fit: cover; }
.tray-item.uploading { opacity: 0.6; }
.tray-item .file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tray-state { position: absolute; left: 4px; bottom: 2px; font-size: 9px; color: var(--ink); }
.tray-remove { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fffffff0; display: inline-flex; align-items: center; justify-content: center; }
.tray-remove .icon { width: 12px; height: 12px; }
.attach-drawer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 24px 8px; padding: 12px; border-radius: 18px; background: var(--soft); }
.attach-drawer .muted { flex-basis: 100%; margin: 0; font-size: 11px; }
.attach-tile { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border-radius: 14px; background: white; font-size: 13px; font-weight: 600; cursor: pointer; }
.attach-tile input { position: absolute; left: 0; top: 0; width: 1px !important; height: 1px; padding: 0; border: 0; opacity: 0; }
.attach-tile:focus-within { outline: 2px solid #9caa83; outline-offset: 2px; }
.chat-composer .icon-button { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--muted); }
.chat-composer .attach-toggle[aria-expanded="true"] { background: var(--soft); color: var(--ink); }
.mic-button { font-size: 17px; }
.voice-recording-bar { align-items: center; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #c0554d; flex-shrink: 0; animation: blink 1s steps(1) infinite; }
.voice-live { flex: 1; min-width: 0; display: flex; }
.voice-words { margin: 6px 24px 0; font-size: 12px; min-height: 1em; }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }
@media (max-width: 760px) {
  .chat-tray, .attach-drawer { margin-left: 16px; margin-right: 16px; }
  .voice-words { margin-left: 16px; margin-right: 16px; }
}

/* Appearance and language (MEDIA-I18N-DESIGN.md §1–2) */
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row button { padding: 8px 14px; border-radius: 16px; border: 1px solid var(--line); font-size: 13px; }
.choice-row button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.display-settings { margin-bottom: 18px; }
.auth-language { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 8px; }
.auth-language button { padding: 4px 10px; border-radius: 12px; font-size: 12px; color: var(--muted); }
.auth-language button.active { background: var(--soft); color: var(--ink); }
