:root {
  --hy-bg: #f4f6f8;
  --hy-surface: #ffffff;
  --hy-surface-soft: #f7f9fb;
  --hy-text: #18212b;
  --hy-muted: #87919d;
  --hy-line: #e3e7eb;
  --hy-blue: #168eea;
  --hy-blue-soft: #e9f5ff;
  --hy-green: #27ae75;
  --hy-green-soft: #eaf8f1;
  --hy-amber: #e6a11a;
  --hy-amber-soft: #fff6df;
  --hy-red: #e75b57;
  --hy-red-soft: #fff0ef;
  --hy-star: #f2b72d;
  --hy-shadow: 0 8px 24px rgb(39 54 70 / 8%);
  --hy-icon-shadow: 0 5px 10px rgb(34 59 83 / 16%), inset 0 1px 0 rgb(255 255 255 / 80%);
}

html[data-appearance="dark"] {
  --hy-bg: #17212b;
  --hy-surface: #202c38;
  --hy-surface-soft: #1b2732;
  --hy-text: #f4f7fa;
  --hy-muted: #9ba9b7;
  --hy-line: #30404f;
  --hy-blue: #43a8f4;
  --hy-blue-soft: #183a53;
  --hy-green: #45cc8e;
  --hy-green-soft: #173c31;
  --hy-amber: #ffc352;
  --hy-amber-soft: #46391e;
  --hy-red: #ff7b76;
  --hy-red-soft: #482b2d;
  --hy-shadow: 0 8px 24px rgb(0 0 0 / 18%);
  --hy-icon-shadow: 0 5px 12px rgb(0 0 0 / 24%), inset 0 1px 0 rgb(255 255 255 / 10%);
}

html,
body {
  background: var(--hy-bg) !important;
  color: var(--hy-text) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 16px;
}

body {
  min-width: 0;
  padding-bottom: calc(82px + var(--safe-bottom)) !important;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-header {
  position: sticky !important;
  inset-block-start: 0;
  z-index: 40;
  min-height: 62px !important;
  padding: calc(8px + var(--safe-top)) 14px 8px !important;
  background: color-mix(in srgb, var(--hy-surface) 94%, transparent) !important;
  border-bottom: 1px solid var(--hy-line) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px);
}

.brand {
  min-width: 0;
  gap: 9px !important;
  color: var(--hy-text) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
}

.brand-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 11px !important;
  box-shadow: var(--hy-icon-shadow);
}

.header-back,
.header-close {
  width: 44px !important;
  height: 44px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: var(--hy-text) !important;
  box-shadow: none !important;
  font-size: 23px !important;
}

.header-back:not(.is-placeholder):active,
.header-close:active {
  background: var(--hy-surface-soft) !important;
}

.language-control,
.language-control[hidden] {
  display: none !important;
}

.app-shell {
  width: 100%;
  max-width: 540px !important;
  margin: 0 auto;
  padding: 18px 14px 26px !important;
}

.screen {
  width: 100%;
  min-width: 0;
  color: var(--hy-text);
}

.screen-heading {
  margin: 0 2px 18px !important;
}

.screen-heading h1,
.screen-title-row h1 {
  margin: 0 !important;
  color: var(--hy-text) !important;
  font-size: clamp(25px, 7vw, 32px) !important;
  line-height: 1.14 !important;
  letter-spacing: -0.025em !important;
}

.screen-heading p,
.screen-title-row p {
  margin: 7px 0 0 !important;
  color: var(--hy-muted) !important;
  font-size: 15px !important;
  line-height: 1.42 !important;
}

#payouts-view > .screen-heading {
  display: none !important;
}

.section-header {
  margin: 20px 4px 9px !important;
  color: var(--hy-text) !important;
}

.section-header h2,
.section-header.spaced h2 {
  color: var(--hy-text) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

.section-header button,
.text-action {
  color: var(--hy-blue) !important;
}

/* Shared grouped rows */
.settings-group,
.composer-group,
.sheet-group,
.wallet-account-summary,
.seller-access-result,
.seller-plan-current,
.purchase-summary,
.star-sale-proof,
.timeline-panel,
.proof-panel,
.public-link-control,
.channel-connect-card {
  overflow: hidden;
  background: var(--hy-surface) !important;
  border: 1px solid var(--hy-line) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

.settings-row,
.composer-row,
.sheet-option,
.activity-row,
.payout-history-row,
.wallet-row {
  min-height: 66px !important;
  padding: 12px 14px !important;
  background: var(--hy-surface) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hy-line) !important;
  border-radius: 0 !important;
  color: var(--hy-text) !important;
  box-shadow: none !important;
}

.settings-row:last-child,
.composer-row:last-child,
.sheet-option:last-child,
.activity-row:last-child,
.payout-history-row:last-child,
.wallet-row:last-child {
  border-bottom: 0 !important;
}

.settings-row > span:nth-child(2),
.composer-row .row-copy,
.sheet-option > span:nth-child(2) {
  min-width: 0;
}

.settings-row b,
.composer-row strong,
.composer-row input,
.sheet-option b {
  color: var(--hy-text) !important;
  font-size: 16px !important;
}

.settings-row small,
.composer-row small,
.sheet-option small,
.form-help {
  color: var(--hy-muted) !important;
  font-size: 13px !important;
  line-height: 1.32 !important;
}

.settings-row > .ph-caret-right,
.composer-row > .ph-caret-right,
.sheet-option > .ph-caret-right {
  color: #aab2bb !important;
  font-size: 19px !important;
}

.settings-icon,
.row-icon,
.seller-start-mark,
.home-onboarding-mark,
.seller-plan-symbol,
.channel-connect-icon {
  display: inline-grid !important;
  place-items: center;
  flex: 0 0 auto;
  width: 42px !important;
  height: 42px !important;
  border: 1px solid color-mix(in srgb, var(--hy-blue) 18%, var(--hy-line)) !important;
  border-radius: 13px !important;
  background: var(--hy-blue-soft) !important;
  color: var(--hy-blue) !important;
  box-shadow: var(--hy-icon-shadow) !important;
  font-size: 21px !important;
}

.settings-icon.stars,
.row-icon.payment-method-icon {
  background: var(--hy-amber-soft) !important;
  border-color: color-mix(in srgb, var(--hy-star) 28%, var(--hy-line)) !important;
  color: var(--hy-star) !important;
}

.settings-icon.green {
  background: var(--hy-green-soft) !important;
  color: var(--hy-green) !important;
}

.settings-icon.telegram,
.settings-icon.blue,
.settings-icon.cyan {
  background: var(--hy-blue-soft) !important;
  color: var(--hy-blue) !important;
}

.status-stamp {
  display: inline-flex !important;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 3px 8px !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-style: normal !important;
  font-weight: 650 !important;
  white-space: normal;
}

.status-pending {
  background: var(--hy-amber-soft) !important;
  color: var(--hy-amber) !important;
}

.status-confirmed {
  background: var(--hy-green-soft) !important;
  color: var(--hy-green) !important;
}

.status-expired {
  background: var(--hy-red-soft) !important;
  color: var(--hy-red) !important;
}

/* Home */
.home-onboarding {
  position: relative;
  display: grid !important;
  grid-template-columns: 1fr auto;
  gap: 16px;
  min-height: 240px;
  margin: 0 !important;
  padding: 24px 18px 18px !important;
  overflow: hidden;
  background: var(--hy-surface) !important;
  border: 1px solid var(--hy-line) !important;
  border-radius: 18px !important;
  box-shadow: var(--hy-shadow) !important;
}

.home-onboarding-art {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.home-onboarding-mark {
  display: none !important;
}

.home-onboarding-copy {
  align-self: center;
}

.home-onboarding-copy h1 {
  margin: 0 !important;
  color: var(--hy-text) !important;
  font-size: clamp(24px, 7.5vw, 34px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
}

.home-onboarding-copy p {
  margin: 9px 0 0 !important;
  color: var(--hy-muted) !important;
  font-size: 15px !important;
  line-height: 1.42 !important;
}

.home-onboarding-actions,
.home-fee-line,
.home-seller-access-note {
  grid-column: 1 / -1;
}

.home-primary,
.journal-create,
.seller-start-primary,
.wallet-add-primary,
.seller-plan-card button,
.channel-connect-card button,
.fallback-primary {
  min-height: 50px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: var(--hy-blue) !important;
  color: #fff !important;
  box-shadow: none !important;
  font-weight: 700 !important;
}

.home-primary {
  width: 100%;
  font-size: 16px !important;
}

.home-fee-line {
  width: 100%;
  min-height: 44px;
  padding: 0 8px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--hy-muted) !important;
  font-size: 13px !important;
}

.home-how {
  margin: 14px 0 !important;
  padding: 18px !important;
  background: var(--hy-surface) !important;
  border: 1px solid var(--hy-line) !important;
  border-radius: 16px !important;
}

.home-how h2 {
  color: var(--hy-text) !important;
  font-size: 18px !important;
}

.home-how li span:first-child {
  background: var(--hy-blue-soft) !important;
  color: var(--hy-blue) !important;
  border: 0 !important;
}

.home-how b { color: var(--hy-text) !important; }
.home-how small { color: var(--hy-muted) !important; }

.c3-receiving-account {
  min-height: 90px !important;
  margin: 14px 0 0 !important;
  padding: 14px !important;
  background: var(--hy-surface) !important;
  border: 1px solid var(--hy-line) !important;
  border-radius: 16px !important;
  color: var(--hy-text) !important;
  box-shadow: none !important;
}

.c3-account-icon,
.c3-account-proof {
  background: var(--hy-blue-soft) !important;
  color: var(--hy-blue) !important;
  border: 0 !important;
  box-shadow: none !important;
}

.c3-account-copy small,
.c3-account-copy em { color: var(--hy-muted) !important; }
.c3-account-copy b { color: var(--hy-text) !important; }

.c3-filter-chips,
.ledger-tabs {
  display: flex !important;
  gap: 8px !important;
  margin: 10px 0 14px !important;
  padding: 0 !important;
  overflow-x: auto;
  scrollbar-width: none;
}

.c3-filter-chips button,
.ledger-tabs button {
  flex: 0 0 auto;
  min-height: 44px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #e9edf1 !important;
  color: #6f7b88 !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

html[data-appearance="dark"] .c3-filter-chips button,
html[data-appearance="dark"] .ledger-tabs button { background: #243442 !important; }

.c3-filter-chips button[aria-selected="true"],
.ledger-tabs button[aria-selected="true"] {
  background: var(--hy-blue-soft) !important;
  color: var(--hy-blue) !important;
}

/* Journal */
.journal-action-row {
  margin-bottom: 12px;
}

.journal-create {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-size: 17px !important;
}

.ledger {
  display: grid !important;
  gap: 18px !important;
}

.ledger-group-title {
  margin: 0 4px 8px;
  color: var(--hy-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ledger-rows {
  overflow: hidden;
  background: var(--hy-surface);
  border: 1px solid var(--hy-line);
  border-radius: 16px;
}

.ledger-item {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) auto 14px !important;
  align-items: center !important;
  gap: 11px !important;
  width: 100%;
  min-height: 84px !important;
  padding: 13px 12px !important;
  background: var(--hy-surface) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hy-line) !important;
  border-radius: 0 !important;
  color: var(--hy-text) !important;
  text-align: left;
  box-shadow: none !important;
}

.ledger-item:last-child { border-bottom: 0 !important; }

.ledger-mark {
  width: 42px !important;
  height: 42px !important;
}

.ledger-main {
  display: grid !important;
  gap: 2px;
  min-width: 0;
}

.ledger-main strong {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--hy-text) !important;
  font-size: 18px !important;
  line-height: 1.1;
}

.ledger-main strong i {
  color: var(--hy-star);
  font-size: 15px;
}

.ledger-main span,
.ledger-main code {
  overflow: hidden;
  color: var(--hy-muted) !important;
  font-family: inherit !important;
  font-size: 13px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-side {
  display: grid !important;
  justify-items: end;
  gap: 7px;
  min-width: 86px;
}

.ledger-side time {
  color: var(--hy-muted) !important;
  font-size: 11px !important;
}

.ledger-caret { color: #b0b8c0; }

/* Composer */
.invoice-composer {
  display: grid !important;
  gap: 14px !important;
}

.composer-progress {
  display: none !important;
}

.seller-template-trigger {
  min-height: 66px !important;
  padding: 12px 14px !important;
  background: var(--hy-surface) !important;
  border: 1px solid var(--hy-line) !important;
  border-radius: 16px !important;
  color: var(--hy-text) !important;
  box-shadow: none !important;
}

.seller-template-trigger b { color: var(--hy-text) !important; }
.seller-template-trigger small { color: var(--hy-muted) !important; }

.amount-composer {
  min-height: 180px !important;
  padding: 22px 0 !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--hy-text) !important;
}

.amount-composer > span:first-child {
  color: var(--hy-muted) !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase;
}

.amount-input {
  position: relative;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  margin: 12px 0 8px !important;
}

.amount-input input {
  display: block;
  grid-column: 2;
  width: calc(var(--amount-digits, 1) * .62em) !important;
  min-width: .62em;
  max-width: calc(100vw - 86px);
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--hy-text) !important;
  font-size: clamp(58px, 18vw, 78px) !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  letter-spacing: -0.055em !important;
  text-align: center !important;
  box-shadow: none !important;
}

.amount-input b {
  position: static;
  grid-column: 3;
  justify-self: start;
  margin-left: 8px;
  color: var(--hy-star) !important;
  font-size: 25px !important;
  transform: none;
}

.amount-composer > small {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px !important;
  background: var(--hy-blue-soft) !important;
  border-radius: 999px;
  color: var(--hy-blue) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.composer-row input {
  width: 100%;
  padding: 3px 0 !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--hy-text) !important;
  box-shadow: none !important;
}

.payment-method-locked .ph-lock-simple { color: var(--hy-green) !important; }

.settlement-preview {
  padding: 15px !important;
  background: var(--hy-surface) !important;
  border: 1px solid var(--hy-line) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

.settlement-preview h2,
.settlement-preview strong { color: var(--hy-text) !important; }
.settlement-preview small,
.settlement-preview span,
.settlement-preview p { color: var(--hy-muted) !important; }

.settlement-preview-grid {
  gap: 0 !important;
  overflow: hidden;
  border: 1px solid var(--hy-line);
  border-radius: 12px;
}

.settlement-preview-grid > div {
  background: var(--hy-surface-soft) !important;
  border: 0 !important;
  border-right: 1px solid var(--hy-line) !important;
  border-radius: 0 !important;
}

.settlement-preview-grid > div:last-child { border-right: 0 !important; }

.marketplace-terms,
.composer-trust,
.rail-boundary,
.verification-strip {
  color: var(--hy-muted) !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

.marketplace-terms a { color: var(--hy-blue) !important; }

/* Seller application */
.seller-access-form {
  display: grid !important;
  gap: 14px !important;
}

.seller-access-summary {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--hy-blue-soft) !important;
  border: 1px solid color-mix(in srgb, var(--hy-blue) 20%, var(--hy-line));
  border-radius: 16px;
}

.seller-access-summary b { color: var(--hy-text) !important; }
.seller-access-summary small { color: var(--hy-muted) !important; }

.seller-access-use-cases {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px !important;
  padding: 0 !important;
  border: 0 !important;
}

.seller-access-use-cases legend {
  grid-column: 1 / -1;
  color: var(--hy-muted) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.seller-access-use-cases label > span {
  min-height: 86px !important;
  padding: 12px !important;
  background: var(--hy-surface) !important;
  border: 1px solid var(--hy-line) !important;
  border-radius: 14px !important;
  color: var(--hy-text) !important;
  box-shadow: none !important;
}

.seller-access-use-cases input:checked + span {
  background: var(--hy-blue-soft) !important;
  border-color: var(--hy-blue) !important;
  color: var(--hy-blue) !important;
}

.seller-access-description textarea,
.seller-access-description input,
.recipient-manual label,
.surface-form input,
.sheet-form input,
.sheet-form select {
  background: var(--hy-surface) !important;
  border: 1px solid var(--hy-line) !important;
  border-radius: 13px !important;
  color: var(--hy-text) !important;
  box-shadow: none !important;
}

/* Payouts */
.payout-balance-card {
  display: grid !important;
  grid-template-columns: 48px 1fr 1fr;
  gap: 10px !important;
  margin: 0 0 14px !important;
  padding: 18px 15px !important;
  background: var(--hy-surface) !important;
  border: 1px solid var(--hy-line) !important;
  border-radius: 18px !important;
  box-shadow: var(--hy-shadow) !important;
}

.payout-balance-card small { color: var(--hy-muted) !important; }
.payout-balance-card strong { color: var(--hy-text) !important; }

.payout-guide {
  margin: 0 0 14px !important;
  background: var(--hy-surface) !important;
  border: 1px solid var(--hy-line) !important;
  border-radius: 16px !important;
  color: var(--hy-text) !important;
  box-shadow: none !important;
}

.payout-guide summary { color: var(--hy-text) !important; }
.payout-guide small,
.payout-guide-note { color: var(--hy-muted) !important; }

.payout-history-row {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) auto !important;
  gap: 11px !important;
}

.payout-history-row b { color: var(--hy-text) !important; }
.payout-history-row small,
.payout-history-row time { color: var(--hy-muted) !important; }

/* Profile, wallet and connections */
.profile-head {
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 13px;
  margin: 0 0 14px !important;
  padding: 14px !important;
  background: var(--hy-surface) !important;
  border: 1px solid var(--hy-line) !important;
  border-radius: 16px !important;
  text-align: left !important;
}

.profile-avatar.large {
  grid-row: 1 / span 2;
  width: 58px !important;
  height: 58px !important;
  background: #236da8 !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: var(--hy-icon-shadow) !important;
}

.profile-head h1 {
  align-self: end;
  margin: 0 !important;
  color: var(--hy-text) !important;
  font-size: 18px !important;
}

.profile-head p {
  align-self: start;
  margin: 2px 0 0 !important;
  color: var(--hy-muted) !important;
  font-size: 14px !important;
}

.profile-trust {
  display: flex !important;
  gap: 12px;
  margin: 14px 0 !important;
  padding: 14px !important;
  background: var(--hy-green-soft) !important;
  border: 1px solid color-mix(in srgb, var(--hy-green) 22%, var(--hy-line)) !important;
  border-radius: 16px !important;
  color: var(--hy-text) !important;
}

.profile-trust small { color: var(--hy-muted) !important; }

.wallet-account-summary { padding: 16px !important; }
.wallet-account-head h2 { color: var(--hy-text) !important; }
.wallet-account-head p { color: var(--hy-muted) !important; }
.wallet-summary-badge { color: var(--hy-blue) !important; }
.wallet-first-use { display: none !important; }

/* Tariffs */
.seller-plan-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

.seller-plan-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px 12px !important;
  padding: 15px !important;
  background: var(--hy-surface) !important;
  border: 1px solid var(--hy-line) !important;
  border-radius: 16px !important;
  color: var(--hy-text) !important;
  box-shadow: none !important;
}

.seller-plan-card.is-current { border-color: var(--hy-blue) !important; }
.seller-plan-card header { grid-column: 1 / -1; }
.seller-plan-card h2,
.seller-plan-card strong,
.seller-plan-card .seller-plan-fee b { color: var(--hy-text) !important; }
.seller-plan-card small,
.seller-plan-card p,
.seller-plan-card .seller-plan-fee span { color: var(--hy-muted) !important; }
.seller-plan-card button { grid-column: 1 / -1; }

/* Buyer and order lifecycle */
.purchase-summary,
.invoice-hero {
  padding: 18px !important;
  background: var(--hy-surface) !important;
  border: 1px solid var(--hy-line) !important;
  border-radius: 18px !important;
  color: var(--hy-text) !important;
  box-shadow: none !important;
}

.invoice-hero {
  text-align: center !important;
}

.invoice-hero h1,
.invoice-hero .invoice-purpose,
.purchase-summary b,
.purchase-summary dd { color: var(--hy-text) !important; }
.invoice-expiry,
.purchase-summary small,
.purchase-summary dt { color: var(--hy-muted) !important; }

.invoice-amount span {
  color: var(--hy-text) !important;
  font-size: clamp(52px, 17vw, 72px) !important;
  letter-spacing: -0.045em !important;
}

.invoice-amount small { color: var(--hy-muted) !important; }
.invoice-amount .telegram-stars-glyph,
.telegram-stars-glyph { color: var(--hy-star) !important; }

.network-chip {
  background: var(--hy-amber-soft) !important;
  border: 0 !important;
  color: var(--hy-amber) !important;
}

.star-sale-proof,
.proof-panel,
.timeline-panel { margin-top: 12px !important; }

.star-sale-proof > div,
.proof-row,
.purchase-facts > div {
  border-color: var(--hy-line) !important;
}

.star-sale-proof span,
.proof-copy span,
.proof-value,
.timeline-panel small { color: var(--hy-muted) !important; }
.star-sale-proof strong,
.proof-copy b,
.timeline-panel b { color: var(--hy-text) !important; }

/* Channel boundary */
.channel-connect-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
}

.channel-connect-card h2 {
  margin: 0;
  color: var(--hy-text);
  font-size: 18px;
}

.channel-connect-card p {
  margin: 5px 0 0;
  color: var(--hy-muted);
  font-size: 14px;
  line-height: 1.4;
}

.channel-connect-card button {
  grid-column: 1 / -1;
  opacity: .62;
}

.channel-native-list em {
  color: var(--hy-muted) !important;
  font-size: 12px !important;
  font-style: normal !important;
  text-align: right;
}

/* Bottom sheets */
.sheet-backdrop { background: rgb(17 27 38 / 36%) !important; }

.bottom-sheet {
  inset: auto 0 0 !important;
  width: min(100%, 540px) !important;
  max-height: min(88vh, 760px) !important;
  margin: auto !important;
  padding: 10px 14px calc(18px + var(--safe-bottom)) !important;
  background: var(--hy-bg) !important;
  border: 1px solid var(--hy-line) !important;
  border-bottom: 0 !important;
  border-radius: 22px 22px 0 0 !important;
  color: var(--hy-text) !important;
  box-shadow: 0 -16px 50px rgb(12 27 42 / 18%) !important;
}

.sheet-handle { background: #b6bec7 !important; }
.sheet-header h2 { color: var(--hy-text) !important; }
.sheet-header p,
.sheet-section-label,
.recipient-privacy,
.wallet-sheet-boundary { color: var(--hy-muted) !important; }
.sheet-header button { color: var(--hy-text) !important; }

/* Bottom navigation */
.app-nav {
  position: fixed !important;
  inset: auto 0 0 !important;
  z-index: 35;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  width: min(100%, 540px) !important;
  min-height: calc(70px + var(--safe-bottom)) !important;
  margin: 0 auto !important;
  padding: 7px 8px calc(6px + var(--safe-bottom)) !important;
  background: color-mix(in srgb, var(--hy-surface) 95%, transparent) !important;
  border: 0 !important;
  border-top: 1px solid var(--hy-line) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px);
}

.app-nav[hidden] { display: none !important; }

.app-nav button {
  display: grid !important;
  place-items: center;
  align-content: center;
  gap: 3px !important;
  min-width: 0;
  min-height: 54px !important;
  padding: 3px 2px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: var(--hy-muted) !important;
  box-shadow: none !important;
}

.app-nav button i {
  display: grid;
  place-items: center;
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  color: currentColor !important;
  font-size: 24px !important;
  line-height: 1 !important;
}

.app-nav button span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: currentColor !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  line-height: 1.15 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-nav button[aria-current="page"] {
  background: var(--hy-blue-soft) !important;
  color: var(--hy-blue) !important;
}

/* Fallback action mirrors Telegram native MainButton */
.native-action-fallback {
  z-index: 50 !important;
  padding: 8px 10px calc(8px + var(--safe-bottom)) !important;
  background: var(--hy-surface) !important;
  border-top: 1px solid var(--hy-line) !important;
}

.native-action-fallback button {
  min-height: 48px !important;
  border: 0 !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
}

#fallback-main { background: var(--hy-blue) !important; color: #fff !important; }
#fallback-secondary { background: var(--hy-surface-soft) !important; color: var(--hy-blue) !important; }

.toast {
  background: #202a34 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: var(--hy-shadow) !important;
}

.empty-panel,
.empty-inline {
  background: var(--hy-surface) !important;
  border: 1px solid var(--hy-line) !important;
  border-radius: 16px !important;
  color: var(--hy-text) !important;
}

.empty-panel p,
.empty-inline small { color: var(--hy-muted) !important; }

@media (max-width: 380px) {
  .app-shell { padding-inline: 10px !important; }
  .home-onboarding { min-height: 224px; padding-inline: 15px !important; }
  .home-onboarding-art { width: 88px; height: 88px; }
  .home-onboarding-copy h1 { font-size: 25px !important; }
  .ledger-item { grid-template-columns: 38px minmax(0, 1fr) auto 10px !important; gap: 8px !important; padding-inline: 10px !important; }
  .ledger-mark { width: 38px !important; height: 38px !important; }
  .ledger-side { min-width: 72px; }
  .status-stamp { padding-inline: 6px !important; font-size: 11px !important; }
  .payout-balance-card { grid-template-columns: 42px 1fr; }
  .payout-balance-card > span:nth-child(3) { grid-column: 2; }
  .seller-access-use-cases { grid-template-columns: 1fr; }
  .settings-row,
  .composer-row,
  .sheet-option { padding-inline: 11px !important; }
  .channel-native-list em { display: none; }
  .ledger-tabs {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px !important;
    width: 100%;
    overflow: visible;
  }
  .ledger-tabs button {
    min-width: 0;
    padding-inline: 5px !important;
    font-size: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}
