@font-face {
  font-family: "Pretendard Variable";
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
  src: url("./vendor/fonts/PretendardVariable.woff2") format("woff2-variations"),
       url("./vendor/fonts/PretendardVariable.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef4f8;
  --surface-strong: #e5edf5;
  --ink: #142033;
  --muted: #637188;
  --faint: #8b98aa;
  --line: #d9e2ee;
  --line-strong: #c6d4e3;
  --teal: #0f766e;
  --teal-dark: #0b5f59;
  --blue: #2563eb;
  --amber: #b7791f;
  --red: #c2410c;
  --green: #15803d;
  --shadow: 0 18px 45px rgba(20, 32, 51, 0.08);
  --shadow-lift: 0 14px 34px rgba(20, 32, 51, 0.13);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --radius: 8px;
  --header-h: 68px;
  --nav-h: 72px;
  font-family: "Pretendard Variable", Pretendard, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 248, 251, 0.95) 26%),
    var(--bg);
  color: var(--ink);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(16px, 3vw, 36px);
  background: rgba(246, 248, 251, 0.86);
  border-bottom: 1px solid rgba(217, 226, 238, 0.78);
  backdrop-filter: blur(18px);
}

.app-header::after {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 34%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0;
  transform: translateX(-40%);
  pointer-events: none;
}

.app-shell[data-syncing="true"] .app-header::after {
  opacity: 1;
  animation: syncBar 1.1s var(--ease-standard) infinite;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.16);
}

.brand-text {
  display: grid;
  line-height: 1.08;
}

.brand-text strong {
  font-size: 16px;
  letter-spacing: 0;
}

.brand-text span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.profile-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  max-width: 260px;
  height: 42px;
  padding: 4px 10px 4px 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
}

.avatar-mini,
.avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-weight: 800;
}

.avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  font-size: 13px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 14px;
}

.profile-copy {
  display: grid;
  min-width: 0;
  text-align: left;
  line-height: 1.15;
}

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

.profile-copy strong {
  font-size: 13px;
}

.profile-copy span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.view-stack {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(14px, 2.4vw, 26px) clamp(12px, 2.4vw, 28px) 22px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
  animation: viewIn 240ms var(--ease-out);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(360px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.account-panel,
.home-section,
.placeholder-view,
.messenger-shell,
.wallet-panel,
.apps-panel,
.hunt-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.account-panel {
  padding: clamp(16px, 2.2vw, 24px);
}

.home-section {
  padding: 16px;
}

.messenger-summary {
  min-height: 260px;
}

.activity-section,
.service-section {
  grid-column: 1 / -1;
}

.section-kicker {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-line,
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 4px;
  font-size: 36px;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-top: 2px;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0;
}

.account-line p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(15, 118, 110, 0.08);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill::before {
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.12);
}

.app-shell[data-syncing="true"] .status-pill::before {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(183, 121, 31, 0.16);
  animation: statusPulse 900ms var(--ease-standard) infinite;
}

.balance-block {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.balance-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.balance-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 5px;
  color: var(--ink);
  font-size: 54px;
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: 0;
}

.balance-value small {
  color: var(--muted);
  font-size: 16px;
  font-weight: 850;
}

.balance-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.balance-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.balance-foot strong {
  color: var(--ink);
}

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

.quick-actions button {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 88px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.brand-lockup,
.profile-button,
.icon-button,
.text-button,
.quick-actions button,
.wallet-actions button,
.hunt-actions button,
.module-actions button,
.bottom-nav button,
.thread-preview,
.thread-row,
.service-item,
.app-card,
.registry-row,
.hunt-lock-row,
.module-row,
.sheet-action,
.sheet-result,
.inline-form button,
.send-button {
  transition:
    background 160ms var(--ease-standard),
    border-color 160ms var(--ease-standard),
    box-shadow 180ms var(--ease-standard),
    color 160ms var(--ease-standard),
    opacity 160ms var(--ease-standard),
    transform 160ms var(--ease-standard);
}

.profile-button:active,
.icon-button:active,
.text-button:active,
.quick-actions button:active,
.wallet-actions button:active,
.hunt-actions button:active,
.module-actions button:active,
.bottom-nav button:active,
.thread-preview:active,
.thread-row:active,
.service-item:active,
.app-card:active,
.sheet-action:active,
.sheet-result:active,
.inline-form button:active,
.send-button:active {
  transform: scale(0.98);
}

.quick-actions button:focus-visible,
.text-button:focus-visible,
.thread-preview:focus-visible,
.thread-row:focus-visible,
.service-item:focus-visible,
.app-card:focus-visible,
.hunt-actions button:focus-visible,
.wallet-actions button:focus-visible,
.module-actions button:focus-visible,
.sheet-action:focus-visible,
.sheet-result:focus-visible,
.icon-button:focus-visible,
.profile-button:focus-visible,
.inline-form button:focus-visible,
.send-button:focus-visible,
.bottom-nav button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.26);
  outline-offset: 2px;
}

.quick-actions button:hover,
.text-button:hover,
.thread-preview:hover,
.thread-row:hover,
.service-item:hover,
.sheet-action:hover,
.sheet-result:hover {
  border-color: var(--line-strong);
  background: #f9fbfd;
  box-shadow: 0 8px 22px rgba(20, 32, 51, 0.06);
}

.action-icon,
.nav-glyph {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
}

.action-icon::before,
.action-icon::after,
.nav-glyph::before,
.nav-glyph::after {
  position: absolute;
  content: "";
  box-sizing: border-box;
}

.icon-send::before {
  inset: 5px 3px 5px 5px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 15px solid var(--blue);
}

.icon-receive::before {
  left: 4px;
  top: 5px;
  width: 16px;
  height: 14px;
  border: 2px solid var(--teal);
  border-top: 0;
  border-radius: 0 0 5px 5px;
}

.icon-receive::after {
  left: 10px;
  top: 2px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg);
}

.icon-swap::before,
.icon-swap::after {
  width: 17px;
  height: 7px;
  border: 2px solid var(--amber);
  border-left: 0;
  border-bottom: 0;
}

.icon-swap::before {
  top: 5px;
  left: 3px;
}

.icon-swap::after {
  right: 3px;
  bottom: 5px;
  transform: rotate(180deg);
}

.icon-chat::before,
.nav-chat::before {
  inset: 4px 3px 6px;
  border: 2px solid var(--teal);
  border-radius: 7px;
}

.icon-chat::after,
.nav-chat::after {
  left: 8px;
  bottom: 3px;
  width: 7px;
  height: 7px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-22deg);
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 850;
}

.thread-preview-list,
.activity-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.thread-preview,
.thread-row,
.activity-item,
.service-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.thread-preview {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 10px;
  color: inherit;
  text-align: left;
}

.thread-main,
.activity-copy,
.service-copy {
  min-width: 0;
}

.thread-main strong,
.thread-main span,
.activity-copy strong,
.activity-copy span,
.service-copy strong,
.service-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-main strong,
.activity-copy strong,
.service-copy strong {
  font-size: 14px;
}

.thread-main span,
.activity-copy span,
.service-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.thread-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
}

.unread-dot {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-size: 11px;
}

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

.activity-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 70px;
  padding: 12px;
}

.activity-mark,
.service-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: white;
  font-size: 13px;
  font-weight: 850;
}

.activity-mark.trade {
  background: var(--blue);
}

.activity-mark.identity {
  background: var(--teal);
}

.activity-mark.system {
  background: var(--amber);
}

.activity-amount {
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.activity-amount.positive {
  color: var(--green);
}

.activity-amount.neutral {
  color: var(--muted);
}

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

.service-item {
  display: grid;
  gap: 10px;
  min-height: 116px;
  padding: 12px;
  color: inherit;
  text-align: left;
}

.service-mark.wallet {
  background: var(--teal);
}

.service-mark.lab {
  background: var(--blue);
}

.service-mark.docs {
  background: var(--amber);
}

.service-mark.ai {
  background: #475569;
}

.service-mark.guard {
  background: var(--green);
}

.service-mark.market {
  background: var(--red);
}

.wallet-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 16px;
  align-items: start;
}

.wallet-panel {
  padding: clamp(16px, 2.2vw, 22px);
}

.wallet-main {
  display: grid;
  gap: 18px;
}

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

.wallet-head p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.wallet-balance-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(238, 244, 248, 0.94), rgba(255, 255, 255, 0.96));
}

.wallet-balance-card > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.wallet-balance-card strong {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.wallet-balance-card small {
  color: var(--muted);
  font-size: 16px;
}

.wallet-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.wallet-meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.wallet-meta-line b {
  color: var(--ink);
}

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

.wallet-actions button {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 84px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

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

.icon-refresh::before {
  inset: 5px;
  border: 2px solid var(--green);
  border-right-color: transparent;
  border-radius: 50%;
}

.icon-refresh::after {
  right: 4px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--green);
  border-right: 2px solid var(--green);
  transform: rotate(28deg);
}

.wallet-account {
  min-width: 0;
}

.wallet-details {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
}

.wallet-details div,
.wallet-history-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.wallet-details div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
  min-height: 46px;
  align-items: center;
  padding: 10px 12px;
}

.wallet-details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.wallet-details dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.wallet-history {
  grid-column: 1 / -1;
}

.wallet-history-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.wallet-history-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 66px;
  padding: 12px;
}

.wallet-history-row .activity-mark {
  width: 36px;
  height: 36px;
}

.wallet-history-copy {
  min-width: 0;
}

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

.wallet-history-copy strong {
  font-size: 14px;
}

.wallet-history-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.apps-layout,
.hunt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
}

.hunt-integrated {
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 0.64fr);
  align-items: start;
}

.apps-panel,
.hunt-panel {
  min-width: 0;
  padding: clamp(16px, 2.2vw, 22px);
}

.apps-main .section-head,
.hunt-main .section-head {
  align-items: flex-start;
}

.apps-main p,
.hunt-main p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.apps-metrics,
.hunt-summary,
.module-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.apps-metrics span,
.hunt-summary div,
.module-metrics span {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.apps-metrics strong,
.hunt-summary strong,
.module-metrics strong {
  color: var(--ink);
  font-size: 17px;
  overflow-wrap: anywhere;
}

.apps-tools {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.apps-search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.apps-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.apps-filter-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  min-width: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.apps-filter-bar button {
  min-width: 0;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.apps-filter-bar button.is-selected {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 5px 12px rgba(20, 32, 51, 0.08);
}

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

.app-card,
.registry-row,
.hunt-lock-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.app-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  min-height: 148px;
  padding: 14px;
  color: inherit;
  text-align: left;
}

.app-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  min-height: 118px;
  place-content: center;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  text-align: center;
}

.app-empty strong {
  color: var(--ink);
}

.app-card:hover,
.registry-row:hover,
.hunt-lock-row:hover,
.hunt-actions button:hover {
  border-color: var(--line-strong);
  background: #f9fbfd;
  box-shadow: 0 8px 22px rgba(20, 32, 51, 0.06);
}

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

.app-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: white;
  background: var(--teal);
  font-weight: 850;
}

.app-card strong,
.registry-copy strong,
.hunt-lock-copy strong {
  display: block;
  font-size: 15px;
}

.app-card p,
.registry-copy span,
.hunt-lock-copy span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.app-chip {
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 850;
}

.registry-list,
.hunt-lock-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.registry-row,
.hunt-lock-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  min-width: 0;
  align-items: center;
  min-height: 66px;
  padding: 12px;
}

.registry-copy,
.hunt-lock-copy {
  min-width: 0;
}

.registry-copy strong,
.registry-copy span,
.hunt-lock-copy strong,
.hunt-lock-copy span {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.registry-count,
.hunt-lock-state {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

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

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

.hunt-actions button {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 84px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.hunt-game-panel {
  order: -1;
  grid-column: 1 / -1;
  padding: 0;
  overflow: hidden;
}

.hunt-game-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.hunt-game-head h2 {
  margin: 2px 0 0;
  font-size: 18px;
}

.hunt-game-frame {
  display: block;
  width: 100%;
  height: min(860px, calc(100vh - var(--header-h) - var(--nav-h) - 96px));
  min-height: 620px;
  border: 0;
  background: transparent;
}

.module-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1.08fr);
  gap: 16px;
  align-items: start;
}

.module-panel {
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.module-main {
  position: sticky;
  top: calc(var(--header-h) + 14px);
}

.module-main p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

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

.module-actions button {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 84px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.module-actions button:hover,
.module-row:hover {
  border-color: var(--line-strong);
  background: #f9fbfd;
  box-shadow: 0 8px 22px rgba(20, 32, 51, 0.06);
}

.module-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.module-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 68px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.module-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: white;
  background: var(--teal);
  font-size: 13px;
  font-weight: 850;
}

.module-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.module-copy strong,
.module-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-copy strong {
  color: var(--ink);
  font-size: 14px;
}

.module-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.module-value {
  max-width: 130px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-hunt-run::before {
  inset: 5px;
  border: 2px solid var(--red);
  border-radius: 50%;
}

.icon-hunt-run::after {
  left: 9px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.messenger-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  min-height: calc(100vh - var(--header-h) - var(--nav-h) - 52px);
  overflow: hidden;
}

.messenger-sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--line);
  background: rgba(248, 251, 253, 0.9);
}

.messenger-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px 12px;
}

.messenger-titlebar h1 {
  font-size: 28px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  margin: 0 16px 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.search-field input,
.composer-input input,
.inline-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-field input::placeholder,
.composer-input input::placeholder,
.inline-form input::placeholder {
  color: var(--faint);
}

.search-glyph {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.search-glyph::before {
  position: absolute;
  inset: 0;
  content: "";
  border: 2px solid var(--faint);
  border-radius: 999px;
}

.search-glyph::after {
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  content: "";
  background: var(--faint);
  transform: rotate(45deg);
  transform-origin: center;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0 16px 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.segmented-control button {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.segmented-control button.is-selected {
  background: var(--surface);
  color: var(--teal-dark);
  box-shadow: 0 3px 10px rgba(20, 32, 51, 0.08);
}

.inline-form button,
.send-button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  font-size: 13px;
  font-weight: 850;
}

.thread-list {
  display: grid;
  align-content: start;
  gap: 2px;
  min-height: 0;
  overflow: auto;
  padding: 2px 10px 16px;
}

.thread-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 9px 10px;
  border-color: transparent;
  background: transparent;
  color: inherit;
  text-align: left;
}

.thread-row[data-kind="regional"] {
  background: transparent;
}

.thread-row[data-kind="random"] {
  background: transparent;
}

.thread-row[data-kind="requests"] {
  background: transparent;
}

.thread-row:hover {
  background: rgba(241, 245, 249, 0.9);
}

.thread-row.is-active {
  border-color: transparent;
  background: rgba(15, 118, 110, 0.09);
}

.thread-row[data-has-draft="true"] .thread-main span {
  color: var(--teal-dark);
  font-weight: 800;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-width: 0;
  background: var(--surface);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.chat-peer {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-right: auto;
}

.chat-peer strong,
.chat-peer small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-peer strong {
  font-size: 15px;
}

.chat-peer small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.chat-tools {
  display: flex;
  gap: 6px;
}

.call-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.16);
  background: rgba(15, 118, 110, 0.07);
}

.call-banner[hidden] {
  display: none;
}

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

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

.call-copy strong {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.call-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.call-actions {
  display: flex;
  gap: 6px;
}

.call-actions .icon-button {
  width: 38px;
  height: 38px;
}

.call-banner audio {
  display: none;
}

.icon-end-call {
  color: var(--red);
}

.icon-mic[data-muted="true"] {
  color: var(--red);
}

.message-feed {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
  overflow: auto;
  padding: 18px clamp(12px, 2vw, 22px);
  background:
    linear-gradient(180deg, rgba(238, 244, 248, 0.38), rgba(255, 255, 255, 0.94)),
    var(--surface);
}

.day-divider {
  align-self: center;
  margin: 6px 0;
  color: var(--faint);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.message {
  display: grid;
  gap: 3px;
  max-width: min(560px, 74%);
}

.message.is-me {
  align-self: flex-end;
}

.message:not(.is-me) {
  align-self: flex-start;
}

.bubble {
  display: grid;
  gap: 6px;
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid rgba(217, 226, 238, 0.86);
  font-size: 14px;
  line-height: 1.38;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.bubble:hover {
  border-color: rgba(148, 163, 184, 0.58);
}

.message.is-me .bubble {
  color: white;
  background: var(--teal);
  border-color: var(--teal);
}

.message.is-me .bubble:hover {
  border-color: color-mix(in srgb, var(--teal) 82%, white);
}

.bubble-reply {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border-left: 3px solid rgba(15, 118, 110, 0.48);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.56);
}

.message.is-me .bubble-reply {
  border-left-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.16);
}

.message.is-me .bubble-reply strong {
  color: #ffffff;
}

.message.is-me .bubble-reply small {
  color: rgba(255, 255, 255, 0.86);
}

.bubble-reply strong,
.bubble-reply small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bubble-reply strong {
  color: inherit;
  font-size: 12px;
  font-weight: 900;
}

.bubble-reply small {
  color: color-mix(in srgb, currentColor 72%, transparent);
  font-size: 12px;
  font-weight: 700;
}

.message small {
  color: var(--faint);
  font-size: 11px;
  font-weight: 750;
}

.message.is-me small {
  text-align: right;
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.reply-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.07);
}

.reply-preview[hidden] {
  display: none;
}

.reply-preview span,
.reply-preview strong,
.reply-preview small {
  min-width: 0;
}

.reply-preview strong,
.reply-preview small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reply-preview strong {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.reply-preview small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.reply-preview .icon-button {
  width: 32px;
  height: 32px;
}

.reply-preview .icon-add {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.35' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12'/%3E%3Cpath d='M18 6 6 18'/%3E%3C/svg%3E");
}

.composer-input {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.icon-button:hover {
  background: var(--surface-soft);
  border-color: var(--line-strong);
}

.icon-button:disabled {
  cursor: default;
  opacity: 0.42;
  box-shadow: none;
}

.icon-button::before,
.icon-button::after {
  position: absolute;
  content: "";
  box-sizing: border-box;
}

.icon-search::before {
  width: 15px;
  height: 15px;
  border: 2px solid var(--muted);
  border-radius: 999px;
  transform: translate(-2px, -2px);
}

.icon-search::after {
  width: 8px;
  height: 2px;
  background: var(--muted);
  transform: translate(8px, 8px) rotate(45deg);
}

.icon-bell::before {
  width: 16px;
  height: 18px;
  border: 2px solid var(--muted);
  border-bottom: 0;
  border-radius: 10px 10px 4px 4px;
  transform: translateY(-2px);
}

.icon-bell::after {
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: var(--muted);
  transform: translateY(10px);
}

.icon-more::before,
.icon-more::after {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--muted);
}

.icon-more::before {
  box-shadow: -8px 0 0 var(--muted), 8px 0 0 var(--muted);
}

.icon-add::before,
.icon-add::after {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--muted);
}

.icon-add::after {
  transform: rotate(90deg);
}

.icon-back::before {
  width: 11px;
  height: 11px;
  border-left: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateX(2px) rotate(45deg);
}

.icon-call::before {
  width: 15px;
  height: 15px;
  border: 2px solid var(--muted);
  border-radius: 4px 4px 8px 4px;
  transform: rotate(-28deg);
}

.icon-attach::before {
  width: 9px;
  height: 19px;
  border: 2px solid var(--muted);
  border-radius: 999px;
  transform: rotate(28deg);
}

.icon-attach::after {
  width: 5px;
  height: 12px;
  border: 2px solid var(--muted);
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 999px 0 0;
  transform: translate(2px, -1px) rotate(28deg);
}

.icon-apps::before {
  inset: 4px;
  background:
    linear-gradient(var(--teal), var(--teal)) left top / 7px 7px no-repeat,
    linear-gradient(var(--teal), var(--teal)) right top / 7px 7px no-repeat,
    linear-gradient(var(--teal), var(--teal)) left bottom / 7px 7px no-repeat,
    linear-gradient(var(--teal), var(--teal)) right bottom / 7px 7px no-repeat;
  border-radius: 2px;
}

.icon-back {
  display: none;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(760px, calc(100% - 24px));
  min-height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  border: 1px solid rgba(217, 226, 238, 0.92);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -14px 34px rgba(20, 32, 51, 0.11);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  position: relative;
  display: grid;
  place-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.bottom-nav button.is-active {
  color: var(--teal-dark);
  background: rgba(15, 118, 110, 0.08);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.08);
}

.bottom-nav button.is-active::after {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 18px;
  height: 3px;
  content: "";
  border-radius: 999px;
  background: var(--teal);
  transform: translateX(-50%);
}

.bottom-nav button.is-active .nav-glyph::before,
.bottom-nav button.is-active .nav-glyph::after {
  border-color: var(--teal-dark);
}

.nav-home::before {
  left: 4px;
  top: 9px;
  width: 16px;
  height: 11px;
  border: 2px solid var(--muted);
  border-top: 0;
  border-radius: 0 0 5px 5px;
}

.nav-home::after {
  left: 6px;
  top: 4px;
  width: 13px;
  height: 13px;
  border-left: 2px solid var(--muted);
  border-top: 2px solid var(--muted);
  transform: rotate(45deg);
}

.nav-wallet::before {
  inset: 6px 3px;
  border: 2px solid var(--muted);
  border-radius: 5px;
}

.nav-wallet::after {
  right: 5px;
  top: 11px;
  width: 7px;
  height: 5px;
  border: 2px solid var(--muted);
  border-radius: 4px;
  background: var(--surface);
}

.nav-apps::before {
  inset: 4px;
  background:
    linear-gradient(var(--muted), var(--muted)) left top / 7px 7px no-repeat,
    linear-gradient(var(--muted), var(--muted)) right top / 7px 7px no-repeat,
    linear-gradient(var(--muted), var(--muted)) left bottom / 7px 7px no-repeat,
    linear-gradient(var(--muted), var(--muted)) right bottom / 7px 7px no-repeat;
  border-radius: 2px;
}

.nav-hunt::before {
  inset: 5px;
  border: 2px solid var(--muted);
  border-radius: 999px;
}

.nav-hunt::after {
  left: 11px;
  top: 11px;
  width: 2px;
  height: 2px;
  background: var(--muted);
  box-shadow: 0 0 0 4px rgba(99, 113, 136, 0.18);
}

.action-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  visibility: hidden;
}

.action-sheet.is-open {
  pointer-events: auto;
  visibility: visible;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 32, 51, 0);
  transition: background 180ms ease;
}

.action-sheet.is-open .sheet-backdrop {
  background: rgba(20, 32, 51, 0.32);
}

.sheet-panel {
  position: absolute;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(430px, calc(100vw - 24px));
  max-height: min(680px, calc(100vh - var(--header-h) - var(--nav-h) - 42px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 70px rgba(20, 32, 51, 0.22);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.sheet-panel::before {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 38px;
  height: 4px;
  content: "";
  border-radius: 999px;
  background: rgba(99, 113, 136, 0.22);
  transform: translateX(-50%);
}

.action-sheet.is-open .sheet-panel {
  opacity: 1;
  transform: translateY(0);
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.sheet-head h2 {
  max-width: 300px;
}

.sheet-close::before {
  transform: rotate(45deg);
}

.sheet-close::after {
  transform: rotate(-45deg);
}

.sheet-body {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: 14px;
  overflow-y: auto;
}

.sheet-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
}

.action-sheet[data-sheet-mode="legacy"] .sheet-panel {
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(980px, calc(100vw - 24px));
  max-height: none;
  border-radius: 10px;
}

.action-sheet[data-sheet-mode="legacy"].is-open .sheet-panel {
  transform: none;
}

.action-sheet[data-sheet-mode="legacy"] .sheet-body {
  gap: 0;
  padding: 8px;
  overflow: hidden;
}

.legacy-frame-shell {
  display: grid;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.legacy-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
}

.sheet-action,
.sheet-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.sheet-action {
  min-height: 42px;
  padding: 10px 12px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.sheet-action.is-primary {
  border-color: rgba(15, 118, 110, 0.38);
  background: #eaf7f5;
}

.sheet-row,
.sheet-note,
.sheet-result {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.sheet-row {
  grid-template-columns: minmax(88px, 0.38fr) minmax(0, 1fr);
  align-items: center;
}

.sheet-row span,
.sheet-note small,
.sheet-result small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sheet-row strong,
.sheet-note strong,
.sheet-result strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.sheet-note {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
}

.sheet-note-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 850;
}

.sheet-note-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sheet-search {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.sheet-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.sheet-results {
  display: grid;
  gap: 8px;
}

.messenger-add-form {
  display: grid;
  gap: 10px;
}

.sheet-input-field {
  display: grid;
  gap: 7px;
}

.sheet-input-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.sheet-input-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.sheet-input-field input:focus {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.auth-tabs button {
  min-width: 0;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.auth-tabs button.is-active {
  background: var(--surface);
  color: var(--teal-dark);
  box-shadow: 0 8px 18px rgba(20, 32, 51, 0.08);
}

.google-auth-block,
.google-auth-host {
  display: grid;
  min-width: 0;
}

.google-auth-block {
  gap: 8px;
}

.google-auth-host {
  min-height: 44px;
  align-items: center;
}

.google-auth-host iframe {
  max-width: 100%;
}

.google-auth-host .auth-submit {
  width: 100%;
}

.auth-panel-v4,
.auth-form {
  display: grid;
  gap: 10px;
}

.auth-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.auth-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
}

.auth-submit {
  min-height: 44px;
  border: 1px solid rgba(15, 118, 110, 0.36);
  border-radius: 8px;
  background: #eaf7f5;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.auth-submit.is-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.auth-form.is-busy {
  opacity: 0.82;
}

.auth-form.is-busy input,
.auth-form.is-busy button {
  pointer-events: none;
}

.auth-status {
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  background: #eef8f6;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.auth-status.is-error {
  border-color: rgba(185, 28, 28, 0.22);
  background: #fff1f2;
  color: #b91c1c;
}

.sheet-result {
  width: 100%;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
}

.sheet-result span:last-child {
  justify-self: end;
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom));
  z-index: 80;
  max-width: min(420px, calc(100% - 32px));
  padding: 10px 14px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  background: rgba(20, 32, 51, 0.94);
  color: white;
  font-size: 13px;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes syncBar {
  0% {
    transform: translateX(-45%);
  }
  100% {
    transform: translateX(320%);
  }
}

@keyframes statusPulse {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

.placeholder-view {
  padding: 24px;
}

.placeholder-view h1 {
  font-size: 32px;
}

.placeholder-view p {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 980px) {
  .home-grid {
    grid-template-columns: 1fr;
  }

  .wallet-layout {
    grid-template-columns: 1fr;
  }

  .module-layout {
    grid-template-columns: 1fr;
  }

  .module-main {
    position: static;
  }

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

  .hunt-integrated {
    grid-template-columns: 1fr;
  }

  .messenger-shell {
    grid-template-columns: minmax(300px, 42%) minmax(0, 1fr);
  }

  .activity-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  :root {
    --header-h: 62px;
    --nav-h: 68px;
  }

  .app-header {
    padding-inline: 12px;
  }

  .brand-text span,
  .profile-copy span {
    display: none;
  }

  .profile-button {
    width: 42px;
    padding: 4px;
  }

  .profile-copy {
    display: none;
  }

  .view-stack {
    padding: 12px 10px 16px;
  }

  .account-panel,
  .home-section,
  .wallet-panel {
    padding: 14px;
  }

  .account-line,
  .wallet-head {
    display: grid;
  }

  h1 {
    font-size: 30px;
  }

  .status-pill {
    justify-self: start;
  }

  .balance-value {
    font-size: 42px;
  }

  .quick-actions {
    grid-template-columns: repeat(4, minmax(68px, 1fr));
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .quick-actions button,
  .wallet-actions button {
    min-height: 76px;
  }

  .wallet-actions {
    grid-template-columns: repeat(4, minmax(68px, 1fr));
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .wallet-details div {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .wallet-history-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }

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

  .apps-metrics,
  .hunt-summary,
  .module-metrics {
    grid-template-columns: 1fr;
  }

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

  .apps-filter-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 4px;
  }

  .apps-filter-bar button {
    min-width: 0;
  }

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

  .hunt-actions {
    grid-template-columns: repeat(3, minmax(68px, 1fr));
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .module-actions {
    grid-template-columns: repeat(3, minmax(68px, 1fr));
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hunt-actions button,
  .module-actions button {
    min-height: 76px;
  }

  .hunt-game-head {
    padding: 12px 14px;
  }

  .hunt-game-frame {
    height: calc(100vh - var(--header-h) - var(--nav-h) - 104px);
    min-height: 560px;
  }

  .messenger-shell {
    position: relative;
    display: block;
    min-height: calc(100vh - var(--header-h) - var(--nav-h) - 32px);
  }

  .messenger-sidebar {
    min-height: inherit;
    border-right: 0;
  }

  .chat-panel {
    position: absolute;
    inset: 0;
    display: grid;
    z-index: 3;
    background: var(--surface);
    opacity: 0;
    pointer-events: none;
    transform: translateX(18px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .app-shell[data-chat-open="true"] .messenger-sidebar {
    opacity: 0;
    pointer-events: none;
  }

  .app-shell[data-chat-open="true"] .chat-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .icon-back {
    display: inline-grid;
  }

  .message {
    max-width: 86%;
  }

  .bottom-nav {
    width: 100%;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .sheet-panel {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: min(88vh, calc(100vh - 18px));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 12px 12px 0 0;
  }

  .action-sheet[data-sheet-mode="legacy"] .sheet-panel {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .action-sheet[data-sheet-mode="legacy"] .sheet-head {
    padding-top: max(18px, env(safe-area-inset-top));
  }

  .action-sheet[data-sheet-mode="legacy"] .sheet-body {
    padding: 8px;
  }

  .action-sheet[data-sheet-mode="legacy"] .legacy-frame {
    height: 100%;
    min-height: 0;
  }

  .sheet-head {
    padding-inline: 14px;
  }

  .sheet-body {
    padding-inline: 10px;
  }

  .sheet-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 420px) {
  .balance-value,
  .wallet-balance-card strong {
    font-size: 36px;
  }

  .balance-foot,
  .wallet-meta-line {
    display: grid;
  }

  .thread-preview,
  .thread-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }

  .module-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .module-value {
    grid-column: 2;
    justify-self: start;
    max-width: 100%;
    text-align: left;
  }

  .avatar {
    width: 34px;
    height: 34px;
  }

  .bottom-nav button {
    font-size: 10px;
  }

  .sheet-row,
  .sheet-result {
    grid-template-columns: 1fr;
  }

  .sheet-result span:last-child {
    justify-self: start;
  }
}

/* Soft V3 visual pass: keep V4 layout, add only the calmer parts of the V3 language. */
body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(246, 248, 251, 0.92) 32%),
    #f2f2f7;
}

.app-header {
  background: rgba(246, 248, 251, 0.9);
  border-bottom-color: rgba(60, 60, 67, 0.12);
  backdrop-filter: saturate(160%) blur(22px);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
}

.view-stack {
  padding-bottom: calc(118px + env(safe-area-inset-bottom));
}

.brand-mark,
.avatar-mini,
.avatar {
  box-shadow:
    0 1px 3px rgba(15, 20, 30, 0.08),
    0 0 0 2px rgba(255, 255, 255, 0.85);
}

.profile-button,
.icon-button,
.text-button {
  border-color: rgba(60, 60, 67, 0.14);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 3px rgba(15, 20, 30, 0.07);
}

.account-panel,
.home-section,
.placeholder-view,
.messenger-shell,
.wallet-panel,
.apps-panel,
.hunt-panel,
.module-panel {
  border-color: rgba(60, 60, 67, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 1px 3px rgba(15, 20, 30, 0.06),
    0 0 0 0.5px rgba(20, 22, 32, 0.04);
}

.account-panel {
  position: relative;
  overflow: hidden;
}

.account-panel::before,
.wallet-balance-card::before {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, #fac775, #f4c0d1, #85b7eb, #9fe1cb);
  opacity: 0.85;
}

.wallet-balance-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(60, 60, 67, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(250, 199, 117, 0.2), rgba(244, 192, 209, 0.18) 34%, rgba(133, 183, 235, 0.18) 72%, rgba(159, 225, 203, 0.22)),
    rgba(255, 255, 255, 0.94);
}

.balance-foot span,
.wallet-meta-line span,
.apps-metrics span,
.hunt-summary div,
.module-metrics span,
.wallet-details div,
.wallet-history-row,
.registry-row,
.hunt-lock-row,
.module-row,
.thread-preview,
.thread-row,
.sheet-row,
.sheet-note,
.sheet-result {
  border-color: rgba(60, 60, 67, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.quick-actions button,
.wallet-actions button,
.hunt-actions button,
.module-actions button,
.app-card,
.service-item {
  border-color: rgba(60, 60, 67, 0.12);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 20, 30, 0.06);
}

.quick-actions button:nth-child(1),
.wallet-actions button:nth-child(1),
.hunt-actions button:nth-child(1),
.module-actions button:nth-child(1) {
  background: #fcebeb;
}

.quick-actions button:nth-child(2),
.wallet-actions button:nth-child(2),
.hunt-actions button:nth-child(2),
.module-actions button:nth-child(2) {
  background: #faeeda;
}

.quick-actions button:nth-child(3),
.wallet-actions button:nth-child(3),
.hunt-actions button:nth-child(3),
.module-actions button:nth-child(3) {
  background: #e1f5ee;
}

.quick-actions button:nth-child(4),
.wallet-actions button:nth-child(4),
.hunt-actions button:nth-child(4),
.module-actions button:nth-child(4) {
  background: #eeedfe;
}

.service-mark.wallet,
.app-mark[data-tone="wallet"] {
  background: linear-gradient(135deg, #0f766e, #2563eb) !important;
}

.service-mark.lab,
.app-mark[data-tone="lab"] {
  background: linear-gradient(135deg, #2563eb, #7f77dd) !important;
}

.service-mark.docs,
.app-mark[data-tone="docs"] {
  background: linear-gradient(135deg, #b7791f, #d4537e) !important;
}

.service-mark.ai,
.app-mark[data-tone="ai"] {
  background: linear-gradient(135deg, #475569, #7f77dd) !important;
}

.service-mark.guard,
.app-mark[data-tone="guard"] {
  background: linear-gradient(135deg, #15803d, #0f766e) !important;
}

.service-mark.market,
.app-mark[data-tone="market"] {
  background: linear-gradient(135deg, #c2410c, #b7791f) !important;
}

.apps-filter-bar,
.segmented-control,
.auth-tabs {
  border-color: rgba(60, 60, 67, 0.12);
  border-radius: 12px;
  background: rgba(233, 236, 242, 0.82);
}

.apps-filter-bar button.is-selected,
.segmented-control button.is-selected,
.auth-tabs button.is-selected {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 3px rgba(15, 20, 30, 0.07);
}

.thread-row.is-active {
  background: linear-gradient(135deg, rgba(225, 245, 238, 0.92), rgba(238, 237, 254, 0.78));
}

.message.is-me .bubble {
  background: linear-gradient(135deg, #0f766e, #2563eb);
}

.bottom-nav {
  bottom: calc(10px + env(safe-area-inset-bottom));
  width: min(560px, calc(100% - 24px));
  min-height: 0;
  padding: 8px;
  border: 1px solid rgba(60, 60, 67, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 10px 24px rgba(15, 20, 30, 0.14),
    0 1px 3px rgba(15, 20, 30, 0.08);
  backdrop-filter: saturate(160%) blur(22px);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
}

.bottom-nav button {
  min-height: 52px;
  border-radius: 12px;
}

.bottom-nav button.is-active {
  background: rgba(15, 118, 110, 0.09);
  color: var(--teal-dark);
}

.bottom-nav button.is-active::after {
  top: 5px;
  width: 14px;
  height: 3px;
}

.sheet-panel {
  border-color: rgba(60, 60, 67, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
}

.sheet-action.is-primary,
.send-button,
.inline-form button {
  background: linear-gradient(135deg, #0f766e, #2563eb);
}

@media (max-width: 720px) {
  .app-shell {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .bottom-nav {
    width: calc(100% - 24px);
    border-radius: 18px;
  }

  .sheet-panel {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: auto;
    border-radius: 18px;
  }

  .action-sheet[data-sheet-mode="legacy"] .sheet-panel {
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .view.is-active {
    animation: none;
  }
}

/* Apple polish pass: quieter chrome, tighter hierarchy, and less saturated tiles. */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --surface-strong: #eceef2;
  --ink: #111827;
  --muted: #5f6876;
  --faint: #8b929d;
  --line: rgba(60, 60, 67, 0.16);
  --line-strong: rgba(60, 60, 67, 0.28);
  --teal: #007a73;
  --teal-dark: #00645f;
  --blue: #0a84ff;
  --amber: #b27600;
  --red: #d44735;
  --green: #198754;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.045), 0 18px 44px rgba(0, 0, 0, 0.055);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.07), 0 20px 48px rgba(0, 0, 0, 0.09);
  --polish-card-radius: 8px;
}

html {
  background: var(--bg);
}

body {
  background:
    linear-gradient(180deg, #fbfbfd 0%, #f7f7fa 28%, #f2f3f5 100%),
    var(--bg);
}

.app-header {
  background: rgba(248, 248, 250, 0.82);
  border-bottom-color: rgba(60, 60, 67, 0.13);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(26px);
  -webkit-backdrop-filter: saturate(180%) blur(26px);
}

.brand-text strong,
h1,
h2 {
  font-weight: 820;
}

.section-kicker {
  color: #6b7280;
  font-weight: 760;
  letter-spacing: 0.06em;
}

.account-panel,
.home-section,
.placeholder-view,
.messenger-shell,
.wallet-panel,
.apps-panel,
.hunt-panel,
.module-panel {
  border-color: var(--line);
  border-radius: var(--polish-card-radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.account-panel::before,
.wallet-balance-card::before {
  height: 2px;
  background: linear-gradient(90deg, #f2c36b, #e8a9bb, #7aa7d9, #8ed7c1);
  opacity: 0.54;
}

.profile-button,
.icon-button,
.text-button,
.search-field,
.apps-search-field,
.composer-input,
.inline-form input,
.sheet-search,
.auth-field {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.profile-button:hover,
.icon-button:hover,
.text-button:hover,
.quick-actions button:hover,
.wallet-actions button:hover,
.hunt-actions button:hover,
.module-actions button:hover,
.thread-preview:hover,
.thread-row:hover,
.service-item:hover,
.app-card:hover,
.registry-row:hover,
.hunt-lock-row:hover,
.module-row:hover,
.sheet-action:hover,
.sheet-result:hover {
  border-color: var(--line-strong);
  background: #ffffff;
  box-shadow: var(--shadow-lift);
}

.balance-block {
  border-top-color: rgba(60, 60, 67, 0.12);
}

.balance-value,
.wallet-balance-card strong {
  color: #0b1220;
  font-weight: 860;
}

.wallet-balance-card {
  border-color: var(--line);
  border-radius: var(--polish-card-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 250, 0.94)),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.quick-actions button,
.wallet-actions button,
.hunt-actions button,
.module-actions button,
.app-card,
.service-item {
  border-color: var(--line);
  border-radius: var(--polish-card-radius);
  background:
    linear-gradient(180deg, #ffffff, #f8f9fb);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.045);
}

.quick-actions button:nth-child(1),
.quick-actions button:nth-child(2),
.quick-actions button:nth-child(3),
.quick-actions button:nth-child(4),
.wallet-actions button:nth-child(1),
.wallet-actions button:nth-child(2),
.wallet-actions button:nth-child(3),
.wallet-actions button:nth-child(4),
.hunt-actions button:nth-child(1),
.hunt-actions button:nth-child(2),
.hunt-actions button:nth-child(3),
.hunt-actions button:nth-child(4),
.module-actions button:nth-child(1),
.module-actions button:nth-child(2),
.module-actions button:nth-child(3),
.module-actions button:nth-child(4) {
  background:
    linear-gradient(180deg, #ffffff, #f8f9fb);
}

.action-icon,
.nav-glyph {
  opacity: 0.92;
}

.balance-foot span,
.wallet-meta-line span,
.apps-metrics span,
.hunt-summary div,
.module-metrics span,
.wallet-details div,
.wallet-history-row,
.registry-row,
.hunt-lock-row,
.module-row,
.thread-preview,
.thread-row,
.sheet-row,
.sheet-note,
.sheet-result {
  border-color: var(--line);
  border-radius: var(--polish-card-radius);
  background: rgba(255, 255, 255, 0.92);
}

.apps-filter-bar,
.segmented-control,
.auth-tabs {
  border-color: rgba(60, 60, 67, 0.14);
  border-radius: var(--polish-card-radius);
  background: rgba(232, 234, 238, 0.88);
}

.apps-filter-bar button.is-selected,
.segmented-control button.is-selected,
.auth-tabs button.is-selected {
  background: rgba(255, 255, 255, 0.96);
  color: #1f2937;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
}

.message-feed {
  background:
    linear-gradient(180deg, rgba(247, 248, 250, 0.74), rgba(255, 255, 255, 0.94)),
    var(--surface);
}

.message.is-me .bubble {
  background: #0a84ff;
  border-color: #0a84ff;
}

.bubble {
  border-color: rgba(60, 60, 67, 0.12);
  background: #f2f3f6;
}

.bottom-nav {
  border-color: rgba(60, 60, 67, 0.16);
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
}

.bottom-nav button {
  color: #6b7280;
}

.bottom-nav button.is-active {
  background: rgba(10, 132, 255, 0.1);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(10, 132, 255, 0.06);
}

.bottom-nav button.is-active::after {
  background: var(--blue);
}

.sheet-panel {
  border-color: rgba(60, 60, 67, 0.16);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.18),
    0 1px 2px rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(180%) blur(26px);
  -webkit-backdrop-filter: saturate(180%) blur(26px);
}

.sheet-action.is-primary,
.auth-submit,
.send-button,
.inline-form button {
  border-color: rgba(10, 132, 255, 0.26);
  background: #0a84ff;
  color: #ffffff;
}

.auth-submit.is-secondary {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.toast {
  background: rgba(17, 24, 39, 0.92);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}

/* Apple2 icon pass: replace hand-drawn CSS shapes with refined SVG masks. */
.icon-button,
.action-icon,
.nav-glyph,
.search-glyph {
  color: var(--muted);
}

.icon-button:hover {
  color: var(--ink);
}

.action-icon::before,
.nav-glyph::before,
.icon-button::before,
.search-glyph::before {
  content: "";
  position: absolute;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: currentColor !important;
  box-shadow: none !important;
  transform: none !important;
  -webkit-mask: var(--icon-mask) center / contain no-repeat;
  mask: var(--icon-mask) center / contain no-repeat;
}

.action-icon::before,
.nav-glyph::before {
  inset: 2px;
}

.icon-button::before {
  inset: 10px;
}

.search-glyph::before {
  inset: 0;
}

.action-icon::after,
.nav-glyph::after,
.icon-button::after,
.search-glyph::after {
  display: none !important;
}

.icon-send {
  color: #6875f5;
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2 11 13'/%3E%3Cpath d='M22 2 15 22 11 13 2 9 22 2Z'/%3E%3C/svg%3E");
}

.icon-receive {
  color: var(--teal);
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v11'/%3E%3Cpath d='m7 9 5 5 5-5'/%3E%3Cpath d='M5 16v3a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E");
}

.icon-swap {
  color: #a87900;
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3h5v5'/%3E%3Cpath d='M4 20 21 3'/%3E%3Cpath d='M21 16v5h-5'/%3E%3Cpath d='M15 15l6 6'/%3E%3Cpath d='M4 4l5 5'/%3E%3C/svg%3E");
}

.icon-chat,
.nav-chat {
  color: var(--teal);
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-8 8H8l-5 3 1.7-5.1A8 8 0 1 1 21 12Z'/%3E%3Cpath d='M8 12h8'/%3E%3C/svg%3E");
}

.icon-refresh {
  color: var(--green);
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 0 1-15.5 6.2'/%3E%3Cpath d='M3 12A9 9 0 0 1 18.5 5.8'/%3E%3Cpath d='M18 2v5h5'/%3E%3Cpath d='M6 22v-5H1'/%3E%3C/svg%3E");
}

.icon-hunt-run,
.nav-hunt {
  color: #5b6ee1;
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.05' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 2v4'/%3E%3Cpath d='M12 18v4'/%3E%3Cpath d='M2 12h4'/%3E%3Cpath d='M18 12h4'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/svg%3E");
}

.icon-apps,
.nav-apps {
  color: #606774;
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='4' y='4' width='6' height='6' rx='1.6'/%3E%3Crect x='14' y='4' width='6' height='6' rx='1.6'/%3E%3Crect x='4' y='14' width='6' height='6' rx='1.6'/%3E%3Crect x='14' y='14' width='6' height='6' rx='1.6'/%3E%3C/svg%3E");
}

.icon-search,
.search-glyph {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.8-3.8'/%3E%3C/svg%3E");
}

.icon-bell {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9'/%3E%3Cpath d='M10 21h4'/%3E%3C/svg%3E");
}

.icon-more {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='5' cy='12' r='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Ccircle cx='19' cy='12' r='2'/%3E%3C/svg%3E");
}

.icon-add {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.35' stroke-linecap='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
}

.sheet-close.icon-add {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.35' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12'/%3E%3Cpath d='M18 6 6 18'/%3E%3C/svg%3E");
}

.icon-back {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E");
}

.icon-call {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.05' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.7 19.7 0 0 1-8.6-3.1 19.4 19.4 0 0 1-6-6A19.7 19.7 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 2 .7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.5c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2.1Z'/%3E%3C/svg%3E");
}

.icon-trash {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.05' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3Cpath d='M19 6l-1 16H6L5 6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E");
}

.icon-trash:hover {
  color: var(--red);
}

.icon-mic {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a3 3 0 0 0-3 3v6a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z'/%3E%3Cpath d='M19 10v1a7 7 0 0 1-14 0v-1'/%3E%3Cpath d='M12 18v4'/%3E%3Cpath d='M8 22h8'/%3E%3C/svg%3E");
}

.icon-end-call {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15.5c-5.7-4-12.3-4-18 0'/%3E%3Cpath d='M6.5 13.6 5.2 17a2 2 0 0 0 1.9 2.7h2.2a2 2 0 0 0 2-1.6l.2-1.1a9.3 9.3 0 0 1 3 0l.2 1.1a2 2 0 0 0 2 1.6h2.2a2 2 0 0 0 1.9-2.7l-1.3-3.4'/%3E%3C/svg%3E");
}

.icon-attach {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.05' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.4 11.6-8.9 8.9a6 6 0 0 1-8.5-8.5l9.5-9.5a4 4 0 0 1 5.7 5.7l-9.5 9.5a2 2 0 0 1-2.8-2.8l8.8-8.8'/%3E%3C/svg%3E");
}

.nav-home {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 10.5V20h13v-9.5'/%3E%3Cpath d='M9.5 20v-5h5v5'/%3E%3C/svg%3E");
}

.nav-wallet {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5A2.5 2.5 0 0 1 5.5 5H19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5.5A2.5 2.5 0 0 1 3 17.5Z'/%3E%3Cpath d='M16 12h5'/%3E%3Cpath d='M17.5 15.5h.1'/%3E%3C/svg%3E");
}

.bottom-nav button.is-active .nav-glyph {
  color: var(--blue);
}

/* Apple2 tactile polish: clearer icon hierarchy without changing behavior. */
.quick-actions button,
.wallet-actions button,
.hunt-actions button,
.module-actions button {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 24px rgba(31, 41, 55, 0.045);
}

.quick-actions button:hover,
.wallet-actions button:hover,
.hunt-actions button:hover,
.module-actions button:hover {
  transform: translateY(-1px);
}

.action-icon {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: color-mix(in srgb, currentColor 10%, transparent);
}

.action-icon::before {
  inset: 5px;
}

.quick-actions .action-icon {
  margin-bottom: 1px;
}

.icon-button {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 22px rgba(31, 41, 55, 0.055);
}

.icon-button::before {
  inset: 9px;
}

.bottom-nav .nav-glyph {
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: transparent;
}

.bottom-nav button.is-active .nav-glyph {
  border-radius: 0;
  background: transparent;
}

.bottom-nav .nav-glyph::before {
  inset: 3px;
}

.section-head p:empty,
#homeIdentity:empty,
.app-card p {
  display: none;
}

/* Apple4 product polish: quieter enterprise/mobile surfaces, stronger auth CTA. */
:root {
  --bg: #f7f8fb;
  --surface-soft: #f5f7fa;
  --surface-strong: #eef1f5;
  --ink: #111827;
  --muted: #5f6b7a;
  --faint: #8a94a3;
  --line: #e3e7ee;
  --line-strong: #cfd6e2;
  --shadow: 0 10px 28px rgba(17, 24, 39, 0.075);
  --shadow-lift: 0 16px 38px rgba(17, 24, 39, 0.12);
}

body {
  background:
    linear-gradient(180deg, #ffffff 0, #f7f8fb 260px),
    var(--bg);
}

.app-header {
  border-bottom-color: rgba(17, 24, 39, 0.07);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
}

.app-shell[data-signed-in="false"] .profile-button {
  border-color: rgba(10, 132, 255, 0.3);
  background: rgba(10, 132, 255, 0.08);
  color: #0a4fbf;
  box-shadow: inset 0 0 0 1px rgba(10, 132, 255, 0.08);
}

.app-shell[data-signed-in="false"] .avatar-mini {
  background: #0a84ff !important;
  color: #ffffff;
}

.account-panel,
.home-section,
.wallet-panel,
.apps-panel,
.hunt-panel,
.module-panel,
.messenger-sidebar,
.chat-panel {
  border-color: rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.045), 0 16px 36px rgba(17, 24, 39, 0.055);
}

.balance-value {
  color: #080f1f;
  letter-spacing: 0;
}

.balance-foot span,
.wallet-meta-line span,
.apps-metrics span,
.hunt-summary div,
.module-metrics span,
.wallet-details div {
  border-color: rgba(17, 24, 39, 0.08);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.quick-actions button,
.wallet-actions button,
.hunt-actions button,
.module-actions button,
.service-item,
.app-card {
  border-color: rgba(17, 24, 39, 0.09);
  border-radius: 8px;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.055);
}

.quick-actions button:hover,
.wallet-actions button:hover,
.hunt-actions button:hover,
.module-actions button:hover,
.service-item:hover,
.app-card:hover {
  border-color: rgba(10, 132, 255, 0.28);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.09);
}

.action-icon {
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 12%, #ffffff);
}

.apps-filter-bar,
.segmented-control,
.auth-tabs {
  border-color: rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #eef1f5;
}

.apps-filter-bar button,
.segmented-control button,
.auth-tabs button {
  border-radius: 6px;
}

.apps-filter-bar button.is-selected,
.segmented-control button.is-selected,
.auth-tabs button.is-active,
.auth-tabs button.is-selected {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08);
}

.sheet-panel {
  border-color: rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.22);
}

.auth-panel-v4,
.auth-form {
  gap: 12px;
}

.google-auth-block {
  gap: 10px;
  padding: 2px 0 4px;
}

.google-auth-host {
  min-height: 48px;
}

.google-auth-host iframe,
.google-auth-redirect-host iframe {
  max-width: 100%;
  border-radius: 999px;
}

.google-auth-redirect {
  min-height: 42px;
  font-size: 12px;
}

.auth-field {
  border-color: rgba(17, 24, 39, 0.09);
  border-radius: 8px;
  background: #ffffff;
}

.auth-field:focus-within {
  border-color: rgba(10, 132, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.1);
}

.auth-submit {
  min-height: 48px;
  border-color: #111827;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.16);
}

.auth-submit.is-secondary {
  border-color: rgba(17, 24, 39, 0.12);
  background: #ffffff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.05);
}

.auth-status {
  border-color: rgba(10, 132, 255, 0.16);
  background: rgba(10, 132, 255, 0.07);
  color: #0a4fbf;
}

.bottom-nav {
  border-color: rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.bottom-nav button.is-active {
  background: rgba(10, 132, 255, 0.1);
  box-shadow: none;
}

/* AI UX refresh: cleaner assistant workspace and embedded chat sheet. */
.view-ai .module-layout {
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
}

.view-ai .module-main {
  position: sticky;
  top: calc(var(--header-h) + 14px);
  overflow: hidden;
  border-color: rgba(17, 24, 39, 0.10);
  background: #ffffff;
}

.view-ai .module-main::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: #111827;
}

.view-ai .section-head {
  align-items: center;
}

.view-ai .section-head h1 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.04;
}

.view-ai .module-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.view-ai .module-metrics span {
  min-height: 58px;
  align-content: center;
}

.view-ai .module-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.view-ai .module-actions button {
  min-height: 72px;
  padding: 10px 8px;
  background: #ffffff !important;
}

.view-ai .module-actions button:nth-child(2) {
  border-color: rgba(17, 24, 39, 0.18);
  background: #111827 !important;
  color: #ffffff;
}

.view-ai .module-actions button:nth-child(2) .action-icon {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.view-ai .module-row {
  min-height: 62px;
}

.view-ai .module-mark {
  background: #111827;
}

.action-sheet[data-sheet-mode="legacy"][data-legacy-key="ai-chat"] .sheet-panel {
  width: min(1080px, calc(100vw - 24px));
  background: rgba(248, 250, 252, 0.98);
}

.action-sheet[data-sheet-mode="legacy"][data-legacy-key="ai-chat"] .sheet-head {
  padding: 18px 18px 12px;
}

.action-sheet[data-sheet-mode="legacy"][data-legacy-key="ai-chat"] .sheet-body {
  padding: 10px;
}

.legacy-frame-shell[data-legacy-key="ai-chat"] {
  border-color: rgba(17, 24, 39, 0.10);
  background: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.legacy-frame[data-legacy-key="ai-chat"] {
  background: #f8fafc;
}

.thread-row[data-kind="regional"],
.thread-row[data-kind="random"] {
  position: relative;
  overflow: hidden;
}

.thread-row[data-kind="regional"]::before,
.thread-row[data-kind="random"]::before {
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  content: "";
}

.thread-row[data-kind="regional"]::before {
  background: #0f766e;
}

.thread-row[data-kind="random"]::before {
  background: #0a84ff;
}

.thread-row[data-kind="regional"].is-active {
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.10), rgba(255, 255, 255, 0.96));
}

.thread-row[data-kind="random"].is-active {
  background: linear-gradient(90deg, rgba(10, 132, 255, 0.10), rgba(255, 255, 255, 0.96));
}

.chat-panel[data-kind="regional"] .chat-header {
  box-shadow: inset 3px 0 0 rgba(15, 118, 110, 0.78);
}

.chat-panel[data-kind="random"] .chat-header {
  box-shadow: inset 3px 0 0 rgba(10, 132, 255, 0.76);
}

.chat-panel[data-kind="regional"] .composer-input:focus-within {
  border-color: rgba(15, 118, 110, 0.38);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.10);
}

.chat-panel[data-kind="random"] .composer-input:focus-within {
  border-color: rgba(10, 132, 255, 0.36);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.10);
}

.message[data-status="sending"] small {
  color: #0a84ff;
}

.message[data-status="pending"] .bubble {
  border-style: dashed;
  opacity: 0.88;
}

.message[data-status="pending"] small {
  color: #b45309;
}

@media (max-width: 980px) {
  .view-ai .module-layout {
    grid-template-columns: 1fr;
  }

  .view-ai .module-main {
    position: static;
  }
}

@media (max-width: 560px) {
  .view-ai .module-metrics,
  .view-ai .module-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .view-ai .module-actions button {
    min-height: 64px;
  }

  .action-sheet[data-sheet-mode="legacy"][data-legacy-key="ai-chat"] .sheet-panel {
    inset: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    width: auto;
    border-radius: 8px;
  }

  .action-sheet[data-sheet-mode="legacy"][data-legacy-key="ai-chat"] .sheet-body {
    padding: 8px;
  }
}

/* 2026-06-06 UX/UI refresh: denser messenger-first app shell. */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --surface-strong: #e7edf4;
  --ink: #101827;
  --muted: #5f6d80;
  --faint: #8a96a8;
  --line: #d7dee8;
  --line-strong: #c4cfdd;
  --teal: #087f78;
  --teal-dark: #075f59;
  --blue: #0a84ff;
  --amber: #b7791f;
  --red: #c2410c;
  --green: #15803d;
  --shadow: 0 10px 28px rgba(16, 24, 39, 0.07);
  --shadow-lift: 0 16px 36px rgba(16, 24, 39, 0.12);
  --radius: 8px;
  --header-h: 64px;
  --nav-h: 72px;
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 246, 248, 0.98) 210px),
    var(--bg);
}

.app-header {
  height: var(--header-h);
  padding: 8px 28px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(17, 24, 39, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.brand-lockup {
  gap: 11px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(10, 132, 255, 0.15);
}

.brand-text strong {
  font-size: 18px;
  line-height: 1;
}

.brand-text span,
.section-kicker {
  color: #667085;
}

.profile-button,
.icon-button {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 1px 2px rgba(16, 24, 39, 0.04);
}

.profile-button {
  height: 42px;
}

.view-stack {
  width: min(1180px, 100%);
  padding-top: 16px;
}

.account-panel,
.home-section,
.placeholder-view,
.messenger-shell,
.wallet-panel,
.apps-panel,
.hunt-panel,
.module-panel {
  border-color: rgba(17, 24, 39, 0.09);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.home-grid {
  grid-template-columns: minmax(300px, 0.78fr) minmax(420px, 1.22fr);
  grid-template-areas:
    "account inbox"
    "activity activity"
    "service service";
  gap: 14px;
}

.account-panel {
  grid-area: account;
  position: relative;
  overflow: hidden;
}

.account-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--amber));
}

.messenger-summary {
  grid-area: inbox;
}

.activity-section {
  grid-area: activity;
}

.service-section {
  grid-area: service;
}

.account-line h1,
.wallet-head h1,
.apps-head h1,
.hunt-head h1,
.section-head h1 {
  font-size: 32px;
  line-height: 1.06;
}

.balance-block,
.wallet-balance-card {
  margin-top: 16px;
  padding: 18px;
  border: 0;
  background:
    linear-gradient(135deg, rgba(16, 24, 39, 0.96), rgba(27, 36, 55, 0.96)),
    #111827;
  color: #ffffff;
}

.balance-label,
.wallet-balance-card span,
.balance-foot span,
.wallet-meta-line span {
  color: rgba(255, 255, 255, 0.72);
}

.balance-value,
.wallet-balance-card strong {
  color: #ffffff;
}

.balance-value small,
.wallet-balance-card small {
  color: rgba(255, 255, 255, 0.72);
}

.quick-actions,
.wallet-actions {
  gap: 8px;
}

.quick-actions button,
.wallet-actions button,
.module-actions button,
.service-card,
.activity-card,
.thread-preview {
  border-color: rgba(17, 24, 39, 0.08);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 39, 0.04);
}

.quick-actions button,
.wallet-actions button {
  min-height: 76px;
  padding: 10px;
}

.thread-preview-list,
.activity-list {
  gap: 8px;
}

.thread-preview,
.activity-card {
  min-height: 64px;
}

.service-grid {
  gap: 10px;
}

.service-card {
  min-height: 106px;
  padding: 14px;
}

.messenger-shell {
  grid-template-columns: 336px minmax(0, 1fr);
  min-height: calc(100vh - var(--header-h) - var(--nav-h) - 42px);
  border-radius: 8px;
}

.messenger-sidebar {
  background: #f8fafc;
}

.messenger-titlebar {
  padding: 16px 14px 10px;
}

.messenger-titlebar h1 {
  font-size: 27px;
  line-height: 1.05;
}

.search-field {
  height: 42px;
  margin: 0 12px 8px;
  border-color: rgba(17, 24, 39, 0.10);
  background: #ffffff;
}

.search-field input {
  font-size: 15px;
}

.segmented-control {
  margin: 0 12px 10px;
  padding: 3px;
  background: #e9eef5;
}

.segmented-control button {
  min-height: 32px;
  font-size: 12px;
}

.segmented-control button.is-selected {
  color: #101827;
}

.thread-list {
  gap: 4px;
  padding: 2px 8px 12px;
}

.thread-row {
  min-height: 66px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.thread-row:hover,
.thread-row.is-active {
  border-color: rgba(10, 132, 255, 0.14);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(16, 24, 39, 0.06);
}

.chat-header {
  min-height: 64px;
  background: rgba(255, 255, 255, 0.96);
}

.message-feed {
  padding: 18px 22px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.74), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.bubble {
  max-width: 100%;
  padding: 10px 12px;
  border-color: rgba(17, 24, 39, 0.08);
  background: #eef2f7;
}

.message.is-me .bubble {
  background: #0a84ff;
  border-color: #0a84ff;
}

.composer {
  gap: 8px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
}

.composer-input {
  min-height: 42px;
  border-color: rgba(17, 24, 39, 0.10);
  background: #f8fafc;
}

.send-button,
.inline-form button {
  min-height: 42px;
  background: #0a84ff;
}

.bottom-nav {
  bottom: calc(10px + env(safe-area-inset-bottom));
  width: min(520px, calc(100% - 24px));
  padding: 8px;
  border-radius: 8px;
  border-color: rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(16, 24, 39, 0.14);
}

.bottom-nav button {
  min-height: 50px;
  border-radius: 8px;
}

.bottom-nav button.is-active {
  background: rgba(10, 132, 255, 0.1);
  color: var(--blue);
}

@media (max-width: 980px) {
  .home-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "inbox"
      "account"
      "activity"
      "service";
  }

  .messenger-shell {
    grid-template-columns: 310px minmax(0, 1fr);
  }

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

@media (max-width: 720px) {
  :root {
    --header-h: 62px;
    --nav-h: 74px;
  }

  .app-header {
    padding: 8px 12px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text span,
  .profile-copy {
    display: none;
  }

  .profile-button {
    width: 46px;
    padding: 4px;
  }

  .view-stack {
    padding: 10px 10px calc(86px + env(safe-area-inset-bottom));
  }

  .account-panel,
  .home-section,
  .wallet-panel,
  .apps-panel,
  .hunt-panel,
  .module-panel,
  .messenger-shell {
    border-radius: 8px;
  }

  .account-line h1,
  .wallet-head h1,
  .apps-head h1,
  .hunt-head h1,
  .section-head h1,
  .messenger-titlebar h1 {
    font-size: 28px;
  }

  .quick-actions,
  .wallet-actions,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-actions button,
  .wallet-actions button {
    min-height: 70px;
  }

  .messenger-shell {
    min-height: calc(100vh - var(--header-h) - 110px);
  }

  .messenger-titlebar {
    padding: 16px 12px 8px;
  }

  .search-field {
    height: 44px;
    margin-inline: 12px;
  }

  .segmented-control {
    margin-inline: 12px;
  }

  .thread-row {
    min-height: 74px;
    padding: 10px;
  }

  .chat-header {
    min-height: 60px;
    padding: 8px 10px;
  }

  .message-feed {
    padding: 12px;
  }

  .message {
    max-width: 86%;
  }

  .composer {
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }

  .bottom-nav {
    bottom: calc(8px + env(safe-area-inset-bottom));
    width: calc(100% - 18px);
    padding: 7px;
  }

  .bottom-nav button {
    min-height: 50px;
    font-size: 11px;
  }
}

/* 2026-06-06 clean pass: remove visual crowding while preserving behavior. */
.view-stack {
  padding-bottom: calc(var(--nav-h) + 34px + env(safe-area-inset-bottom));
}

.view-messenger {
  min-height: 0;
}

.messenger-shell {
  height: calc(100vh - var(--header-h) - var(--nav-h) - 24px);
  height: calc(100dvh - var(--header-h) - var(--nav-h) - 24px);
  max-height: 720px;
  min-height: 0;
  align-items: stretch;
}

.messenger-sidebar,
.chat-panel {
  height: 100%;
  max-height: 100%;
  min-height: 0;
}

.chat-panel {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.message-feed {
  min-height: 0;
  overflow-y: auto;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.composer {
  position: relative;
  align-self: end;
  height: fit-content;
  min-height: 0;
  z-index: 8;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 -10px 24px rgba(17, 24, 39, 0.05);
}

.bottom-nav {
  bottom: calc(8px + env(safe-area-inset-bottom));
  width: min(500px, calc(100% - 28px));
  min-height: auto;
  padding: 7px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.13);
}

.bottom-nav button {
  min-height: 46px;
}

.bottom-nav button.is-active::after {
  top: 5px;
}

.action-sheet:not([data-sheet-mode="legacy"]) .sheet-panel {
  left: 50%;
  right: auto;
  bottom: auto;
  top: 50%;
  width: min(440px, calc(100vw - 28px));
  max-height: min(640px, calc(100vh - 32px));
  transform: translate(-50%, calc(-50% + 14px));
}

.action-sheet:not([data-sheet-mode="legacy"]).is-open .sheet-panel {
  transform: translate(-50%, -50%);
}

.action-sheet:not([data-sheet-mode="legacy"]) .sheet-head {
  padding: 24px 18px 12px;
}

.action-sheet:not([data-sheet-mode="legacy"]) .sheet-body {
  padding: 14px 18px 16px;
}

.action-sheet:not([data-sheet-mode="legacy"]) .sheet-actions {
  padding: 12px 18px 16px;
}

.auth-tabs {
  gap: 4px;
  padding: 4px;
}

.auth-tabs button {
  min-height: 34px;
}

.google-auth-block {
  gap: 8px;
  padding: 0 0 2px;
}

.google-auth-host {
  min-height: 46px;
  justify-items: center;
  overflow: hidden;
}

.auth-status {
  margin: 0;
  padding: 8px 10px;
  line-height: 1.35;
}

.auth-field {
  min-height: 58px;
}

@media (max-width: 720px) {
  .view-stack {
    padding-bottom: calc(var(--nav-h) + 26px + env(safe-area-inset-bottom));
  }

  .view-messenger {
    min-height: 0;
  }

  .messenger-shell {
    height: calc(100vh - var(--header-h) - var(--nav-h) - 18px);
    min-height: 0;
  }

  .bottom-nav {
    bottom: calc(6px + env(safe-area-inset-bottom));
    width: calc(100% - 20px);
  }

  .bottom-nav button {
    min-height: 46px;
  }

  .action-sheet:not([data-sheet-mode="legacy"]) .sheet-panel {
    width: min(430px, calc(100vw - 18px));
    max-height: calc(100vh - 18px);
  }
}

@media (max-width: 420px) {
  .header-actions {
    gap: 6px;
  }

  .icon-button {
    width: 40px;
    height: 40px;
  }

  .account-panel,
  .home-section {
    padding: 13px;
  }

  .messenger-titlebar h1 {
    font-size: 26px;
  }

  .search-field input {
    font-size: 15px;
  }

  .thread-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .avatar {
    width: 36px;
    height: 36px;
  }

  .send-button {
    padding-inline: 12px;
  }
}

/* VFZ V4 clean UI pass 2026-06-09 */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --surface-strong: #e2e8f0;
  --ink: #111827;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #d8e0e7;
  --line-strong: #c6d1dc;
  --teal: #229ed9;
  --teal-dark: #168ac2;
  --blue: #229ed9;
  --amber: #b7791f;
  --green: #16a34a;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-lift: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius: 8px;
}

body {
  background: var(--bg) !important;
  color: var(--ink) !important;
  letter-spacing: 0 !important;
}

.app-header {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
}

.app-header::after {
  display: none !important;
}

.brand-mark,
.avatar,
.thread-avatar,
.app-icon,
.activity-icon,
.service-icon {
  border-radius: 8px !important;
  box-shadow: none !important;
}

.brand-text span,
.profile-copy span,
.section-kicker,
.muted,
.thread-row small,
.activity-row small {
  color: var(--muted) !important;
  letter-spacing: 0 !important;
}

.icon-button,
.profile-button,
.text-button,
.primary-button,
.secondary-button,
.send-button,
.bottom-nav button,
.quick-actions button,
.segmented-control button {
  border-radius: 8px !important;
  box-shadow: none !important;
  letter-spacing: 0 !important;
}

.icon-button,
.profile-button,
.text-button,
.secondary-button,
.quick-actions button,
.bottom-nav button {
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  color: #334155 !important;
}

.text-button:hover,
.icon-button:hover,
.quick-actions button:hover,
.bottom-nav button:hover {
  background: #eef7fc !important;
  border-color: #9ed3ec !important;
  color: #0f5f86 !important;
}

.view-stack {
  width: min(100%, 1120px) !important;
  margin: 0 auto !important;
  padding-inline: 16px !important;
}

.account-panel,
.home-section,
.messenger-shell,
.wallet-shell,
.apps-panel,
.hunt-shell,
.activity-row,
.service-card,
.thread-row,
.chat-panel,
.messenger-sidebar,
.action-sheet .sheet-panel {
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  box-shadow: var(--shadow) !important;
}

.account-panel,
.home-section {
  padding: 18px !important;
}

.account-line {
  align-items: flex-start !important;
}

.account-line h1,
.messenger-titlebar h1,
.page-title h1,
.section-head h2 {
  color: var(--ink) !important;
  letter-spacing: 0 !important;
}

.balance-block {
  background: #f8fafc !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  color: var(--ink) !important;
}

.balance-value,
.balance-value small,
.balance-label,
.balance-foot,
.balance-foot strong {
  color: var(--ink) !important;
}

.balance-foot {
  gap: 8px !important;
}

.balance-foot span,
.status-pill,
.sync-pill {
  background: #eaf6fc !important;
  border: 1px solid #b8def0 !important;
  border-radius: 999px !important;
  color: #0f5f86 !important;
}

.quick-actions {
  gap: 8px !important;
}

.quick-actions button {
  min-height: 74px !important;
}

.action-icon {
  background: #eaf6fc !important;
  border: 1px solid #b8def0 !important;
  color: #0f5f86 !important;
}

.messenger-shell {
  overflow: hidden !important;
}

.messenger-sidebar,
.chat-panel {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.messenger-sidebar {
  background: #f1f5f9 !important;
  border-width: 0 1px 0 0 !important;
}

.chat-panel {
  background: #ffffff !important;
  border: 0 !important;
}

.chat-header,
.composer {
  background: #ffffff !important;
  border-color: var(--line) !important;
}

.search-field,
.composer-input,
.segmented-control {
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.segmented-control {
  background: #e2e8f0 !important;
  padding: 4px !important;
}

.segmented-control button.is-selected,
.segmented-control button[aria-selected="true"] {
  background: #ffffff !important;
  color: #0f5f86 !important;
}

.thread-row {
  border-color: transparent !important;
  box-shadow: none !important;
}

.thread-row.is-active,
.thread-row:hover {
  background: #ffffff !important;
  border-color: #9ed3ec !important;
}

.message-bubble,
.bubble {
  border-radius: 12px !important;
  box-shadow: none !important;
}

.message-bubble.out,
.bubble.out,
.chat-message.out .message-bubble {
  background: #229ed9 !important;
  border-color: #229ed9 !important;
  color: #ffffff !important;
}

.bottom-nav {
  left: 50% !important;
  right: auto !important;
  bottom: max(10px, env(safe-area-inset-bottom)) !important;
  width: min(calc(100% - 24px), 560px) !important;
  transform: translateX(-50%) !important;
  gap: 6px !important;
  padding: 8px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  box-shadow: var(--shadow-lift) !important;
}

.bottom-nav button {
  min-height: 44px !important;
  background: #ffffff !important;
  border: 1px solid transparent !important;
  color: #475569 !important;
}

.bottom-nav button.is-active,
.bottom-nav button[aria-current="page"] {
  background: #eaf6fc !important;
  border-color: #9ed3ec !important;
  color: #0f5f86 !important;
}

.bottom-nav .nav-icon,
.bottom-nav svg {
  color: currentColor !important;
}

@media (min-width: 960px) {
  .home-grid {
    grid-template-columns: minmax(320px, 0.9fr) minmax(440px, 1.4fr) !important;
  }
}

@media (max-width: 720px) {
  .view-stack {
    padding-inline: 10px !important;
  }

  .app-header {
    padding-inline: 12px !important;
  }

  .brand-text span {
    display: none !important;
  }

  .profile-copy {
    display: none !important;
  }

  .account-panel,
  .home-section {
    padding: 14px !important;
  }

  .messenger-shell {
    height: calc(100vh - var(--header-h) - var(--nav-h) - 18px) !important;
  }

  .bottom-nav {
    width: calc(100% - 16px) !important;
    gap: 4px !important;
    padding: 6px !important;
  }

  .bottom-nav button {
    min-height: 38px !important;
    padding: 6px !important;
    font-size: 0.72rem !important;
  }
}

/* V4 Hunt fullscreen pass: keep the v3-grade game surface as the primary UI. */
.app-shell[data-active-view="hunt"] {
  --hunt-nav-clear: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom));
  min-height: 100vh;
  padding-bottom: 0 !important;
  background: #0f172a;
}

.app-shell[data-active-view="hunt"] .app-header {
  display: none !important;
}

.app-shell[data-active-view="hunt"] .view-stack {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.app-shell[data-active-view="hunt"] .view-hunt.is-active,
.app-shell[data-active-view="hunt"] .hunt-layout,
.app-shell[data-active-view="hunt"] .hunt-game-panel {
  display: block !important;
  width: 100% !important;
  height: calc(100vh - var(--hunt-nav-clear));
  min-height: 0 !important;
  overflow: hidden !important;
}

.app-shell[data-active-view="hunt"] .hunt-layout {
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

.app-shell[data-active-view="hunt"] .hunt-main,
.app-shell[data-active-view="hunt"] .hunt-locks {
  display: none !important;
}

.app-shell[data-active-view="hunt"] .hunt-game-panel {
  position: relative;
  order: 0 !important;
  grid-column: 1 / -1 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #0f172a !important;
  box-shadow: none !important;
}

.app-shell[data-active-view="hunt"] .hunt-game-head {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  display: flex !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.app-shell[data-active-view="hunt"] .hunt-game-head > div {
  display: none !important;
}

.app-shell[data-active-view="hunt"] .hunt-game-head .text-button {
  min-height: 36px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(148, 163, 184, 0.38) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #0f172a !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18) !important;
  backdrop-filter: blur(12px);
}

.app-shell[data-active-view="hunt"] .hunt-game-frame {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #f8fafc !important;
}

@supports (height: 100dvh) {
  .app-shell[data-active-view="hunt"] {
    min-height: 100dvh;
  }

  .app-shell[data-active-view="hunt"] .view-hunt.is-active,
  .app-shell[data-active-view="hunt"] .hunt-layout,
  .app-shell[data-active-view="hunt"] .hunt-game-panel {
    height: calc(100dvh - var(--hunt-nav-clear));
  }
}

@media (max-width: 720px) {
  .app-shell[data-active-view="hunt"] {
    --hunt-nav-clear: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom));
  }

  .app-shell[data-active-view="hunt"] .bottom-nav {
    bottom: max(6px, env(safe-area-inset-bottom)) !important;
    width: calc(100% - 12px) !important;
  }

  .app-shell[data-active-view="hunt"] .hunt-game-head {
    top: 8px;
    right: 8px;
  }

  .app-shell[data-active-view="hunt"] .hunt-game-head .text-button {
    min-height: 32px !important;
    padding: 0 10px !important;
    font-size: 0.76rem !important;
  }
}
