:root {
  --nexus-primary: #8761e0;
  --nexus-action: #7046c2;
  --nexus-mint-gradient: linear-gradient(115deg, #c9f0e5, #a4dccb);
  --nexus-mint-ink: #17483d;
  --nexus-mint-edge: #93cdbb;
  --nexus-mint-focus: #397e69;
  --nexus-ink: #292039;
  --nexus-muted: #584666;
}

#header {
  height: calc(72px + env(safe-area-inset-top));
  padding-top: calc(12px + env(safe-area-inset-top));
}
#content { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
#navigation {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  inset-inline: 0;
  margin-inline: auto;
  height: calc(66px + env(safe-area-inset-bottom));
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}
#navigation .nav-icon { max-width: 100%; }
body:has(> .home-shell) {
  --home-glow-height: calc(178px + env(safe-area-inset-top));
  background:
    radial-gradient(ellipse 136px 154px at calc(50% - 35px) var(--home-glow-height), #c9abed94, transparent),
    radial-gradient(ellipse 120px 135px at calc(50% + 41px) calc(var(--home-glow-height) + 30px), #9bddd17a, transparent),
    linear-gradient(180deg, #e8def9 0, #f3eefb 150px, #fff 430px);
}
.home-shell { background: transparent; box-shadow: none; }
.home-shell > #header {
  position: sticky;
  top: 0;
  z-index: 21;
  background: transparent;
}
.home-page-scrolled .home-shell > #header {
  background: linear-gradient(180deg, #ebe1f9 58%, #eee6faee 83%, #eee6fa00);
}
.home-shell > #content {
  background: transparent;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
.home-shell .v3-page { display: flex; flex: 1; flex-direction: column; }
.connection-pill { color: #624484; background: #eee4fa; }
.v3-heading p { color: var(--nexus-muted); font-size: 13px; line-height: 1.55; }
#content .section-heading h2 { color: var(--nexus-ink); }
#content .section-heading button { color: #5d357f; font-size: 12px; font-weight: 600; }
#content .info-block { color: #553d67; }
#content .info-block p { font-size: 12px; line-height: 1.65; }

.solid-btn:not(.secondary),
.wallet-live-hero > .wallet-hero-actions > button:first-child {
  background: var(--nexus-primary);
  color: #fff;
}
.wallet-live-hero {
  background: linear-gradient(122deg, #eee3fa, #e7edfc 56%, #daf2e9);
}
.wallet-live-hero > .wallet-hero-actions > button:first-child { background: var(--nexus-action); }
.wallet-live-hero > .wallet-hero-actions > button:not(:first-child) { background: #f7fbff; color: #3e5290; }
.wallet-live-hero > .wallet-balance-source,
.wallet-balance-meta > small { color: #574369; font-size: 12px; }
.wallet-live-hero > .wallet-balance-amount { color: #432764; }

.launch-home-hero { text-align: center; }
.launch-home-hero-visual {
  display: grid;
  position: relative;
  isolation: isolate;
  place-items: center;
  min-height: clamp(214px, 65vw, 285px);
  padding-top: 7px;
}
.launch-home-hero-visual > * { grid-area: 1 / 1; }
.home-mascot-shadow {
  position: absolute;
  bottom: 12%;
  left: 38%;
  width: 32%;
  height: 7%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #8466b43c, transparent 72%);
  pointer-events: none;
  animation: home-mascot-shadow 6s ease-in-out infinite;
}
.home-mascot-particles {
  position: absolute;
  width: min(100%, 360px);
  height: 100%;
  pointer-events: none;
}
.home-mascot-art {
  display: grid;
  position: relative;
  width: clamp(176px, 58vw, 238px);
  max-width: 100%;
  aspect-ratio: 1;
  filter: drop-shadow(0 8px 14px #916cce20);
  animation: home-mascot-hover 6s ease-in-out infinite;
  z-index: 1;
}
.home-mascot-art::before {
  content: "";
  position: absolute;
  inset: -15% -8% -9%;
  background:
    radial-gradient(ellipse 16% 16% at 36% 23%, #61e6d6a8, #84ead773 30%, transparent 83%),
    radial-gradient(ellipse 16% 15% at 58% 19%, #68f1dfb5, #85ddf372 31%, transparent 84%),
    radial-gradient(ellipse 9% 9% at 37% 42%, #9ab6ff9c, transparent 80%);
  opacity: .1;
  animation: home-mascot-breathe 3.6s ease-in-out infinite;
}
.home-mascot-art > img { position: relative; grid-area: 1 / 1; display: block; width: 100%; height: 100%; object-fit: contain; }
.home-mascot-glow {
  mask-image:
    radial-gradient(ellipse 8% 13% at 34% 14%, #000 32%, transparent 100%),
    radial-gradient(ellipse 10% 13% at 59% 8%, #000 32%, transparent 100%),
    radial-gradient(ellipse 6% 10% at 35% 37%, #000 14%, transparent 100%),
    radial-gradient(ellipse 5% 9% at 76% 29%, #000 14%, transparent 100%);
  mix-blend-mode: screen;
  filter: brightness(1.45) saturate(1.25);
  opacity: .1;
  animation: home-mascot-breathe 3.6s ease-in-out infinite;
}
@keyframes home-mascot-hover {
  0%, 100% { transform: translateY(1px); }
  50% { transform: translateY(-4px); }
}
@keyframes home-mascot-breathe {
  0%, 100% { opacity: .1; }
  44%, 58% { opacity: 1; }
}
@keyframes home-mascot-shadow {
  0%, 100% { transform: scaleX(.88); opacity: .85; }
  50% { transform: scaleX(1.08); opacity: .48; }
}
@media (prefers-reduced-motion: reduce) {
  .home-mascot-art, .home-mascot-art::before, .home-mascot-glow, .home-mascot-shadow { animation: none; }
}
.launch-service-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.launch-service-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, #321f57f2 0%, #3e236ac9 37%, #45266d32 76%);
}
.launch-home-hero-copy { padding: 0 8px 7px; }
.launch-home-hero h1 { margin: 0; color: var(--nexus-ink); font-size: clamp(27px, 7.7vw, 35px); font-weight: 650; line-height: 1.2; letter-spacing: -.025em; }
.launch-home-hero h1 span { color: #693db7; }
.launch-home-hero p { margin: 8px 0 0; color: var(--nexus-muted); font-size: 14px; line-height: 1.55; }

.launch-content-section { margin-top: 20px; }
.launch-content-section > h2, .card-link-header h2 {
  margin: 0 0 9px;
  color: var(--nexus-ink);
  font-size: 17px;
}
.launch-format-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.home-quick { margin: 22px 0 0; }
.home-quick h2 { margin: 0 0 12px; color: var(--nexus-ink); font-size: 16px; font-weight: 600; }
.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.home-quick-grid > button {
  --prompt-glow: #e8defb;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 6px;
  min-width: 0;
  padding: 13px 14px 14px;
  border: 1px solid #efebf2;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 4px 14px -7px #5f487c26;
  color: var(--nexus-ink);
  text-align: left;
}
.home-quick-grid > button[data-home-suggestion="compute"] { --prompt-glow: #d7f0e9; }
.home-quick-grid > button:active { background: #faf8fd; }
.home-quick-grid > button:focus-visible {
  outline: 2px solid var(--nexus-action);
  outline-offset: 3px;
}
.home-quick-visual {
  display: grid;
  place-items: center;
  width: 100%;
  height: 82px;
  background: radial-gradient(ellipse at 41px 50%, var(--prompt-glow), transparent 64px);
}
.home-quick-art { display: block; justify-self: start; width: 82px; height: 82px; object-fit: contain; }
.home-quick-grid strong { font-size: 16px; font-weight: 600; line-height: 1.3; }
.home-quick-grid small { color: var(--nexus-muted); font-size: 12px; line-height: 1.45; }
.home-ai { width: 100%; margin: 22px auto 0; }
@media (max-height: 650px) {
  .launch-home-hero-visual { min-height: min(207px, 68vw); }
  .home-mascot-art { width: min(187px, 58vw); }
}
.home-chat-log {
  display: grid;
  gap: 10px;
  max-height: 42dvh;
  overflow-y: auto;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 13px;
  background: #f6f2fa;
}
.home-chat-log[hidden] { display: none; }
.home-chat-message { justify-self: start; max-width: 94%; padding: 9px 11px; border-radius: 12px; background: #fff; color: var(--nexus-ink); }
.home-chat-user { justify-self: end; background: #e8e0f7; }
.home-chat-message strong { font-size: 11px; color: #593a80; }
.home-chat-message p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.home-chat-message small { display: block; margin-top: 5px; font-size: 11px; overflow-wrap: anywhere; }
.home-chat-composer {
  --composer-shadow: 0 8px 18px -10px #5f487c1c, 0 2px 6px #5f487c08;
  padding: 12px 13px 10px;
  border: 1px solid #efebf2;
  border-radius: 19px;
  background: #fff;
  box-shadow: var(--composer-shadow);
}
.home-chat-composer:focus-within {
  border-color: #d4c8e3;
  box-shadow: var(--composer-shadow), 0 0 0 2px #ae9dc714;
}
.home-chat-composer textarea {
  display: block;
  width: 100%;
  min-height: clamp(82px, 10.5dvh, 102px);
  padding: 3px;
  border: 0;
  resize: none;
  background: transparent;
  color: var(--nexus-ink);
  line-height: 1.55;
}
.home-chat-composer textarea:focus { outline: none; box-shadow: none; }
.home-chat-composer textarea::placeholder { color: #a397ac; font-size: 14px; opacity: 1; }
.home-attachment-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 9px; }
.home-attachment-list[hidden] { display: none; }
.home-attachment-chip { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; border-radius: 9px; padding-left: 9px; background: #e6d8f8; color: #402363; font-size: 12px; }
.home-attachment-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-attachment-chip button { flex: none; display: grid; place-items: center; width: 30px; height: 30px; }
.home-chat-actions { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.home-chat-status { flex: 1; color: #50366f; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.home-attach-menu { position: relative; flex: none; }
.home-attach-trigger { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: #f2eef6; color: #523a72; cursor: pointer; list-style: none; }
.home-attach-trigger::-webkit-details-marker { display: none; }
.home-attach-trigger[aria-disabled="true"] { opacity: .55; cursor: default; }
.home-attach-options { position: absolute; z-index: 3; left: 0; bottom: calc(100% + 8px); min-width: 130px; padding: 5px; border: 1px solid #e0d2ee; border-radius: 12px; background: #fff; box-shadow: 0 5px 16px #59357c24; }
.home-attach-options button { display: block; width: 100%; min-height: 43px; padding: 6px 9px; border-radius: 8px; color: #492873; font-size: 13px; text-align: left; }
.home-attach-options button:hover, .home-attach-options button:focus-visible { background: #f2eafa; }
.home-send-button { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--nexus-action); color: #fff; }
.home-attach-trigger svg, .home-send-button svg { display: block; }
.home-send-button svg { transform: translate(-.65px, .65px); }
.home-send-button:disabled { background: #eeebf3; color: #777085; opacity: 1; }
.home-send-button[data-has-input="true"] { background: linear-gradient(140deg, #a987ff, #7048df); color: #fff; }
.home-send-button:focus-visible { outline: 2px solid var(--nexus-action); outline-offset: 2px; }
button.nexus-mint-action,
.solid-btn.nexus-mint-action {
  background: var(--nexus-mint-gradient);
  color: var(--nexus-mint-ink);
  box-shadow: inset 0 0 0 1px var(--nexus-mint-edge);
}
button.nexus-mint-action:focus-visible {
  outline: 2px solid var(--nexus-mint-focus);
  outline-offset: 2px;
}
.home-guide-link {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 18px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  gap: 11px;
  margin-top: 22px;
  padding: 10px 14px;
  border-radius: 17px;
  background: linear-gradient(110deg, #eadcf9 4%, #e0cef5 58%, #d4ede6);
  color: #392752;
  text-align: left;
}
.home-guide-art { width: 52px; height: 52px; object-fit: contain; }
.home-guide-link strong, .home-guide-link small { display: block; line-height: 1.35; }
.home-guide-link strong { font-size: 15px; }
.home-guide-link small { margin-top: 4px; color: #4d3d61; font-size: 12px; }
.meeting-status { display: flex; align-items: flex-start; gap: 8px; padding: 12px; border-radius: 12px; background: #eee8fa; color: #513b6b; font-size: 13px; line-height: 1.55; }
.meeting-status svg { flex: none; }
.meeting-schedule { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.meeting-schedule button { display: flex; align-items: center; width: 100%; min-height: 62px; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #f5f0fb; text-align: left; }
.meeting-schedule-art { width: 34px; height: 34px; object-fit: contain; }
.meeting-schedule strong, .meeting-schedule small { display: block; }
.meeting-schedule strong { color: var(--nexus-ink); font-size: 14px; }
.meeting-schedule small { margin-top: 4px; color: var(--nexus-muted); font-size: 12px; }
.catalog-product img { filter: saturate(1.14) contrast(1.06); }

.mobile-chips button { color: #513869; }
.mobile-chips button.active { background: var(--nexus-action); }
.catalog-intro h2 { color: #31204b; }
.catalog-intro small { color: #4d3669; font-size: 10px; }
.catalog-product h3 { color: var(--nexus-ink); }
.catalog-product p { color: var(--nexus-muted); }
.catalog-product section > small,
.catalog-product > div > span { color: #553674; font-size: 11px; }
.catalog-product > div > span { background: #faf5ff; }
.catalog-product footer b, .catalog-product footer em { color: #5b328a; }

.nav-item { color: #665378; }
.nav-item.active { color: #593493; font-weight: 700; }
#navigation .nav-item .nav-icon { width: 30px; height: 29px; border-radius: 9px; }
#navigation .nav-item.active .nav-icon {
  color: #fff;
  background: linear-gradient(155deg, #9469ed, #6941be 78%);
  box-shadow: inset 0 1px 1px #ffffff75, 0 2px 5px #7445b84d;
}

.launch-service-hero {
  position: relative;
  display: flex;
  align-items: end;
  isolation: isolate;
  min-height: 163px;
  overflow: hidden;
  border-radius: 17px;
  background: #523382;
}
.launch-service-art { object-position: 66% center; }
.launch-service-hero h2 {
  position: relative;
  margin: 0;
  padding: 15px;
  color: #fff;
  font-size: 22px;
  line-height: 1.25;
}
.launch-format-grid > button {
  display: flex;
  align-items: center;
  min-height: 66px;
  gap: 6px;
  padding: 7px 5px;
  border-radius: 12px;
  background: #f8f3fc;
  color: var(--nexus-ink);
  text-align: left;
}
.launch-format-grid > button[data-create-kind="image"] { background: #eaf0fc; }
.launch-format-grid > button[data-create-kind="video"] { background: #e6f4ee; }
.launch-format-grid > button[data-create-kind="copy"] { background: #faf0e2; }
.launch-format-icon { width: 44px; height: 44px; object-fit: contain; flex: none; }
.launch-draft-art { display: block; width: 82px; height: 82px; object-fit: contain; margin: 0 auto 5px; }
.launch-format-grid strong,
.launch-format-grid small { display: block; }
.launch-format-grid strong { font-size: 14px; line-height: 1.3; }
.launch-format-grid small { margin-top: 3px; color: var(--nexus-muted); font-size: 11px; line-height: 1.45; }
.launch-status-text,
.card-link-panel p,
.card-history-panel p {
  margin: 7px 0 0;
  color: var(--nexus-muted);
  font-size: 12px;
  line-height: 1.55;
}
.card-link-panel { padding: 13px; border-radius: 13px; background: #f8f3fc; }
.card-link-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.card-link-header h2 { margin: 0; }
.card-link-header > span { color: #705092; font-size: 11px; }
.card-link-panel .solid-btn { margin-top: 13px; }
.launch-card-steps { display: grid; gap: 12px; margin: 0; padding: 8px 0 6px 21px; color: var(--nexus-ink); }
.launch-card-steps li { padding-left: 3px; }
.launch-card-steps strong { font-size: 13px; }
.launch-card-steps p { margin: 4px 0 0; color: var(--nexus-muted); font-size: 12px; line-height: 1.45; }
.wallet-international-link {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border-radius: 13px;
  background: #e7f4ee;
  text-align: left;
}
.wallet-international-link > span:nth-child(2) { min-width: 0; flex: 1; }
.wallet-international-link strong,
.wallet-international-link small { display: block; }
.wallet-international-link strong { color: var(--nexus-ink); font-size: 13px; }
.wallet-international-link small { margin-top: 3px; color: var(--nexus-muted); font-size: 11px; }
.wallet-international-status { color: #356b58; font-size: 10px; }

@media (max-width: 360px) {
  .launch-format-icon { width: 34px; height: 34px; }
}
.article-card strong, .template-card strong { color: var(--nexus-ink); }
.article-card em, .template-card em { color: var(--nexus-muted); font-size: 12px; }
.article-card small, .template-card small { color: #5d357f; font-size: 11px; }
.messages-page h1 { margin: 12px 0 15px; color: var(--nexus-ink); font-size: 26px; }
.message-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 14px;
  background: #f0ebf8;
  color: #635079;
}
.message-search input {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--nexus-ink);
}
.message-search input::placeholder { color: #644f7a; }
.message-list { margin: 12px 0 0; padding: 0; list-style: none; }
.message-list li + li { border-top: 1px solid #efe9f3; }
.message-list > li[hidden], .message-search-empty[hidden] { display: none; }
.message-row {
  display: grid;
  width: 100%;
  min-height: 70px;
  grid-template-columns: 47px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  text-align: left;
}
.message-avatar {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  overflow: hidden;
  border-radius: 13px;
  background: #e9e0f5;
}
.message-avatar img { width: 100%; height: 100%; object-fit: cover; }
.message-support-icon { color: #fff; background: linear-gradient(135deg, #915beb, #642eaa); }
.message-notice-icon { color: #503377; background: linear-gradient(145deg, #e9dcff, #d9f1ea); }
.message-row-copy { display: grid; gap: 4px; }
.message-row-copy strong { color: var(--nexus-ink); font-size: 15px; overflow-wrap: anywhere; }
.message-row-copy small { color: var(--nexus-muted); font-size: 12px; line-height: 1.4; }
.message-row-type { color: #634584; background: #eee5fa; border-radius: 5px; padding: 3px 6px; font-size: 10px; }
.message-search-empty { margin: 24px 0; color: var(--nexus-muted); font-size: 13px; text-align: center; }
.draft-list strong, .support-ticket h3, .profile-menu > button { color: var(--nexus-ink); }
.draft-list small, .draft-list p, .support-ticket > span, .support-ticket p,
.support-ticket > small, .profile-identity p { color: var(--nexus-muted); }
.draft-list > button { border-color: #ede6f2; background: #fff; }
.order-delivery { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #f5f0fa; color: var(--nexus-ink); }
.order-delivery summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.order-delivery dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 10px; margin: 12px 0; font-size: 12px; }
.order-delivery dd { margin: 0; overflow-wrap: anywhere; }
.order-delivery p { margin: 10px 0 0; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-room-art { isolation: isolate; position: relative; padding: 22px 15px; background: #4e356e; }
.chat-room-art img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.chat-room-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #281a40eb, #281a4033); }
.chat-room-art > span { position: relative; color: #dfcbff; font-size: 12px; }
.chat-topbar { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.chat-topbar h1 { margin: 0; color: #312442; font-size: 20px; }
.chat-topbar p { margin: 4px 0 0; color: #6b597d; font-size: 12px; line-height: 1.5; }
.chat-room-panel { border-radius: 20px; overflow: hidden; background: #f0f4fb; }
.chat-sync-status { margin: 12px 14px 0; color: #665279; font-size: 11px; }
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  height: clamp(160px, 41dvh, 420px);
  overflow: auto;
  padding: 14px;
  overflow-anchor: none;
}
.chat-empty { margin: auto; color: #665279; font-size: 13px; }
.chat-message { align-self: flex-start; flex-shrink: 0; max-width: 88%; padding: 9px 12px; border-radius: 12px; background: #fff; color: #312442; }
.chat-message.chat-own { align-self: flex-end; background: #dff2ea; }
.chat-message-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 8px; font-size: 11px; color: #654b83; }
.chat-message p { margin: 5px 0 0; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-composer, .chat-sign-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 12px; background: #e7edf8; }
.chat-composer textarea { display: block; width: 100%; min-height: 44px; padding: 10px; border-radius: 12px; border: 1px solid #ccbae0; resize: vertical; background: #fff; color: #312442; }
.chat-composer .solid-btn:not(.secondary), .chat-sign-in button { width: auto; min-height: 44px; margin: 0; padding: 0 14px; border-radius: 12px; background: var(--nexus-action); color: #fff; font-weight: 700; }
.chat-composer .form-error { grid-column: 1 / -1; margin: 0; }
.chat-composer .form-error:empty { display: none; }
.chat-sign-in span { color: #4f3b63; font-size: 13px; }
