/* Exact Receipt C3: familiar controls with restrained micro-3D depth. */
:root {
  --c3-canvas: #071522;
  --c3-surface: #0d1d2b;
  --c3-surface-raised: #142536;
  --c3-surface-high: #1a2d40;
  --c3-edge: #2b4054;
  --c3-icon-top: #263b4e;
  --c3-icon-bottom: #101d2a;
  --c3-icon-shadow: rgba(0, 0, 0, .34);
  --c3-blue: #2b9cf4;
  --c3-blue-deep: #0876d4;
  --c3-amber-deep: #4b2600;
  --c3-stars-edge: #8d78ed;
  --c3-stars-tile-top: #9b86f5;
  --c3-stars-tile-bottom: #6651c6;
  --c3-stars-ink-light: #d99300;
  --c3-stars-shadow-light: rgba(102, 68, 0, .2);
  --blue: var(--c3-blue);
  --link: #62b7f7;
  --button-text: #fff;
}

html[data-appearance="dark"] {
  --bg: var(--c3-canvas);
  --bg-deep: #050f19;
  --header: #091724;
  --surface: var(--c3-surface);
  --section: var(--c3-surface);
  --nav: #091724;
  --surface-2: var(--c3-surface-raised);
  --surface-3: var(--c3-surface-high);
  --control: var(--c3-surface-high);
  --line: var(--c3-edge);
  --text: #f6f9fd;
  --muted: #9aaabc;
  --section-heading: #a8b7c7;
  --blue: var(--c3-blue);
  --link: #62b7f7;
}

html {
  font-size: 17px;
}

body {
  scrollbar-color: var(--surface-3) var(--bg);
}

button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

button:active:not(:disabled),
.settings-row:active,
.sheet-option:active {
  transform: translateY(1px);
}

.app-shell {
  padding-top: 1.15rem;
}

.screen-heading h1,
.screen-title-row h1 {
  font-size: 1.82rem;
}

.screen-heading p {
  max-width: 31rem;
  font-size: .95rem;
}

/* Shared micro-3D icon material. The glyphs stay conventional and front-facing. */
.home-profile button,
.quick-actions button i,
.settings-icon,
.activity-icon,
.row-icon,
.appearance-mark,
.language-mark,
.public-link-icon,
.referral-step-icon,
.sheet-header button,
.sheet-option > i:last-child,
.wallet-row > i:last-child,
.c3-state-icon,
.c3-account-proof,
.c3-account-icon,
.app-nav button i {
  border: 1px solid color-mix(in srgb, var(--muted) 24%, transparent);
  background: linear-gradient(145deg, var(--c3-icon-top), var(--c3-icon-bottom));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 18%, transparent),
    0 4px 9px var(--c3-icon-shadow);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .34);
}

html[data-appearance="light"] .home-profile button,
html[data-appearance="light"] .quick-actions button i,
html[data-appearance="light"] .settings-icon,
html[data-appearance="light"] .activity-icon,
html[data-appearance="light"] .row-icon,
html[data-appearance="light"] .appearance-mark,
html[data-appearance="light"] .language-mark,
html[data-appearance="light"] .public-link-icon,
html[data-appearance="light"] .referral-step-icon,
html[data-appearance="light"] .sheet-header button,
html[data-appearance="light"] .sheet-option > i:last-child,
html[data-appearance="light"] .wallet-row > i:last-child,
html[data-appearance="light"] .c3-state-icon,
html[data-appearance="light"] .c3-account-proof,
html[data-appearance="light"] .c3-account-icon,
html[data-appearance="light"] .app-nav button i {
  border-color: #d4dce4;
  background: linear-gradient(145deg, #fff, #e3e9ef);
  box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(27, 47, 68, .14);
  text-shadow: none;
}

html[data-appearance="light"] .settings-icon:not(.blue):not(.cyan):not(.green):not(.telegram):not(.stars),
html[data-appearance="light"] .activity-icon,
html[data-appearance="light"] .language-mark,
html[data-appearance="light"] .row-icon,
html[data-appearance="light"] .appearance-mark,
html[data-appearance="light"] .public-link-icon,
html[data-appearance="light"] .referral-step-icon,
html[data-appearance="light"] .app-nav button i {
  color: #223142;
}

html[data-appearance="light"] .settings-icon.blue,
html[data-appearance="light"] .settings-icon.cyan,
html[data-appearance="light"] .settings-icon.green,
html[data-appearance="light"] .settings-icon.telegram,
html[data-appearance="light"] .settings-icon.stars,
html[data-appearance="light"] .app-nav button[aria-current="page"] i {
  color: #fff;
}

html[data-appearance="light"] .settings-icon.stars {
  color: #ffd45a;
}

.settings-icon.blue,
.settings-icon.cyan,
.settings-icon.telegram,
.c3-account-proof,
.app-nav button[aria-current="page"] i,
html[data-appearance="light"] .settings-icon.blue,
html[data-appearance="light"] .settings-icon.cyan,
html[data-appearance="light"] .settings-icon.telegram,
html[data-appearance="light"] .c3-account-proof,
html[data-appearance="light"] .app-nav button[aria-current="page"] i {
  border-color: color-mix(in srgb, var(--blue) 55%, #fff 12%);
  background: linear-gradient(145deg, #31a9ff, var(--c3-blue-deep));
  color: #fff;
}

.settings-icon.green,
.c3-state-icon.is-safe,
html[data-appearance="light"] .settings-icon.green,
html[data-appearance="light"] .c3-state-icon.is-safe {
  border-color: color-mix(in srgb, var(--green) 55%, #fff 10%);
  background: linear-gradient(145deg, color-mix(in srgb, var(--green) 84%, #fff), color-mix(in srgb, var(--green) 64%, #061a13));
  color: #fff;
}

html[data-appearance="light"] .settings-icon.stars {
  border-color: color-mix(in srgb, #7663d7 62%, #fff);
  background: #7663d7;
  color: #ffd45a;
}

html[data-appearance="light"] .recipient-native-option.selected > i:last-child {
  border-color: color-mix(in srgb, var(--blue) 55%, #fff 12%);
  background: linear-gradient(145deg, #31a9ff, var(--c3-blue-deep));
  color: #fff;
}

.payment-icon-stack {
  filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .28));
}

.payment-asset {
  border: 1px solid color-mix(in srgb, #fff 25%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 26%, transparent), inset 0 -3px 7px rgba(0, 0, 0, .19);
}

.payment-network {
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 24%, transparent), 0 2px 5px rgba(0, 0, 0, .32);
}

/* Activity-first home */
.c3-home {
  display: grid;
  gap: 1rem;
}

.c3-home[hidden] {
  display: none;
}

.home-onboarding {
  display: grid;
  justify-items: center;
  gap: .85rem;
  padding: .55rem .2rem .4rem;
  text-align: center;
}

.home-onboarding-mark {
  display: grid;
  width: 4.25rem;
  height: 4.25rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, #fff 25%, transparent);
  border-radius: 1.35rem;
  background: linear-gradient(145deg, #31a9ff, var(--c3-blue-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 7px 16px rgba(0, 86, 161, .2);
  color: #fff;
  font-size: 2rem;
}

.home-onboarding-copy {
  display: grid;
  align-content: center;
  gap: .45rem;
  min-width: 0;
  max-width: 29rem;
}

.home-onboarding-copy h1 {
  margin: 0;
  font-size: clamp(1.7rem, 7vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.home-onboarding-copy p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.home-onboarding-actions {
  display: grid;
  width: 100%;
  margin-top: .15rem;
}

.home-onboarding-actions button {
  display: flex;
  min-height: 3.7rem;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-radius: .95rem;
  font-size: .96rem;
  font-weight: 780;
  line-height: 1.2;
}

.home-onboarding-actions .home-primary {
  border: 0;
  background: var(--blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 6px 14px rgba(0, 86, 161, .2);
  color: var(--button-text);
}

.home-onboarding-actions i {
  flex: 0 0 auto;
  font-size: 1.35rem;
}

.home-fee-line {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin: -.15rem 0 0;
  padding: .2rem .35rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: max(.8rem, 13px);
  line-height: 1.35;
}

.home-fee-line i {
  color: var(--green);
  font-size: .95rem;
}

.home-fee-line i:last-child {
  color: var(--link);
}

.seller-fee-copy p {
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--line);
  font-size: max(.84rem, 14px);
  line-height: 1.5;
}

.seller-fee-copy strong {
  color: var(--text);
  font-size: 1rem;
}

.home-seller-access-note {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: center;
  gap: .55rem;
  margin: 0;
  padding: .75rem .85rem;
  border-radius: .85rem;
  background: color-mix(in srgb, var(--blue) 9%, var(--section));
  color: var(--muted);
  font-size: max(.8rem, 13px);
  line-height: 1.42;
  text-align: left;
}

.home-seller-access-note i {
  flex: 0 0 auto;
  margin-top: .08rem;
  color: var(--link);
  font-size: 1rem;
}

/* First-party seller activation: one decision per screen, no support dead end. */
.seller-access-screen {
  padding-bottom: 1rem;
}

.seller-access-form,
.seller-access-result {
  display: grid;
  gap: 1rem;
}

.seller-access-summary {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  gap: .75rem;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--section);
}

.seller-access-summary > span:last-child {
  display: grid;
  gap: .18rem;
}

.seller-access-summary b {
  font-size: .92rem;
}

.seller-access-summary small,
.seller-access-description small {
  color: var(--muted);
  font-size: max(.78rem, 13px);
  line-height: 1.4;
}

.seller-access-use-cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.seller-access-use-cases legend {
  grid-column: 1 / -1;
  margin-bottom: .15rem;
  color: var(--section-heading);
  font-size: .85rem;
  font-weight: 750;
}

.seller-access-use-cases label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.seller-access-use-cases input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seller-access-use-cases span {
  display: grid;
  min-height: 5.35rem;
  align-content: center;
  justify-items: start;
  gap: .5rem;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: .95rem;
  background: var(--section);
}

.seller-access-use-cases i {
  color: var(--link);
  font-size: 1.45rem;
}

.seller-access-use-cases b {
  font-size: .86rem;
  line-height: 1.25;
}

.seller-access-use-cases input:checked + span {
  border-color: color-mix(in srgb, var(--blue) 72%, var(--line));
  background: color-mix(in srgb, var(--blue) 10%, var(--section));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 18%, transparent);
}

.seller-access-use-cases input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--blue) 28%, transparent);
  outline-offset: 2px;
}

.seller-access-description {
  display: grid;
  gap: .4rem;
  color: var(--section-heading);
  font-size: .85rem;
  font-weight: 750;
}

.seller-access-description textarea,
.seller-access-description input {
  width: 100%;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: .95rem;
  outline: 0;
  background: var(--section);
  color: var(--text);
  font: inherit;
  line-height: 1.45;
}

.seller-access-description textarea {
  min-height: 7rem;
  resize: vertical;
}

.seller-access-description textarea:focus-visible,
.seller-access-description input:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--blue) 15%, transparent);
}

.seller-access-terms {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  align-items: start;
  gap: .65rem;
  cursor: pointer;
}

.seller-access-terms input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seller-access-terms > span {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: .05rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: .42rem;
  background: var(--section);
  color: transparent;
}

.seller-access-terms input:checked + span {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.seller-access-terms input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--blue) 28%, transparent);
  outline-offset: 2px;
}

.seller-access-terms em {
  color: var(--muted);
  font-size: max(.78rem, 13px);
  font-style: normal;
  line-height: 1.45;
}

.seller-access-result {
  justify-items: center;
  padding: 1.25rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--section);
  text-align: center;
}

.seller-access-result-icon {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border-radius: 1.25rem;
  background: var(--blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 7px 16px rgba(0, 86, 161, .2);
  color: #fff;
  font-size: 1.9rem;
}

.seller-access-result h2,
.seller-access-result p {
  margin: 0;
}

.seller-access-result .seller-access-operator-comment {
  width: 100%;
  padding: .8rem;
  border-radius: .8rem;
  background: color-mix(in srgb, var(--blue) 8%, var(--surface-2));
  color: var(--text);
  text-align: left;
}

.seller-access-result p {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.5;
}

.seller-access-result dl {
  width: 100%;
  margin: 0;
  border-block: 1px solid var(--line);
}

.seller-access-result dl > div {
  display: flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.seller-access-result dt {
  color: var(--muted);
}

.seller-access-result dd {
  margin: 0;
  font-weight: 750;
}

.seller-access-secondary {
  display: flex;
  width: 100%;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 750;
}

.home-how {
  display: grid;
  gap: .75rem;
}

.home-how h2,
.home-fee h2 {
  margin: 0 .15rem;
  font-size: 1rem;
  letter-spacing: -.012em;
}

.home-how ol {
  display: grid;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--section);
  list-style: none;
}

.home-how li {
  display: grid;
  grid-template-columns: 2.55rem minmax(0, 1fr);
  align-items: center;
  gap: .75rem;
  min-height: 4.25rem;
  padding: .65rem .85rem;
  border-bottom: 1px solid var(--line);
}

.home-how li:last-child {
  border-bottom: 0;
}

.home-how li > span {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: .78rem;
  background: var(--control);
  color: var(--link);
  font-size: 1.2rem;
}

.home-how li p {
  display: grid;
  gap: .12rem;
  margin: 0;
}

.home-how li b {
  font-size: .95rem;
}

.home-how li small {
  color: var(--muted);
  font-size: max(.78rem, 13px);
  line-height: 1.4;
}

.home-fee {
  display: grid;
  gap: .7rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--section);
}

.home-fee-heading {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.home-fee-heading > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: .65rem;
  background: color-mix(in srgb, var(--green) 16%, var(--surface-2));
  color: var(--green);
}

.home-fee dl {
  display: grid;
  gap: .5rem;
  margin: 0;
}

.home-fee dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.home-fee dt {
  color: var(--muted);
  font-size: .76rem;
}

.home-fee dd {
  margin: 0;
  font-size: .78rem;
  font-weight: 760;
  text-align: right;
}

.home-fee p {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  padding-top: .6rem;
  border-top: 1px solid var(--line);
  color: var(--green);
  font-size: max(.7rem, 12px);
  font-weight: 680;
}

.c3-home .home-purchase-access {
  margin: 0;
}

.c3-home .home-profile {
  grid-template-columns: 3.25rem minmax(0, 1fr) 3rem;
  gap: .85rem;
  margin: 0;
}

.c3-home .home-profile > .profile-avatar {
  width: 3.25rem;
  height: 3.25rem;
  background: #173e67;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 5px 12px rgba(0, 0, 0, .24);
}

.c3-home .home-profile b {
  font-size: 1.22rem;
}

.c3-home .home-profile small {
  font-size: .78rem;
}

.c3-home .home-profile button {
  width: 3rem;
  height: 3rem;
  border-radius: .9rem;
  color: var(--link);
  font-size: 1.55rem;
}

.c3-safety-line {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 -.1rem;
  padding: .75rem .3rem;
  border-block: 1px solid var(--line);
  color: var(--muted);
  font-size: .84rem;
}

.c3-state-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: .65rem;
  font-size: 1rem;
}

.c3-primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.c3-primary-actions button {
  display: flex;
  min-width: 0;
  min-height: 4.05rem;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  margin: 0;
  padding: .7rem .85rem;
  border: 0;
  border-radius: .95rem;
  background: var(--blue);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 7px 15px rgba(0, 86, 161, .22);
  font-size: .96rem;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.c3-primary-actions button > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.c3-primary-actions button:active {
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .2), 0 3px 8px rgba(0, 86, 161, .18);
}

.c3-action-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .22));
}

.c3-receiving-account {
  display: grid;
  width: 100%;
  grid-template-columns: 3.7rem minmax(0, 1fr) 2.25rem 1.1rem;
  align-items: center;
  gap: .8rem;
  min-height: 5.6rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--section);
  color: var(--text);
  text-align: left;
}

.c3-account-icon {
  display: grid;
  width: 3.7rem;
  height: 3.7rem;
  place-items: center;
  overflow: visible;
  border-radius: 1rem;
  color: var(--link);
  font-size: 1.65rem;
}

.c3-account-icon:has(.payment-icon-stack) {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.c3-account-icon .payment-icon-stack {
  width: 3.35rem;
  height: 3.35rem;
}

.c3-account-copy {
  display: grid;
  min-width: 0;
  gap: .05rem;
}

.c3-account-copy small {
  color: var(--muted);
  font-size: .75rem;
}

.c3-account-copy b {
  overflow: hidden;
  font-size: 1.08rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.c3-account-copy em {
  color: var(--muted);
  font-size: .75rem;
  font-style: normal;
}

.c3-account-proof {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: .72rem;
  font-size: 1.1rem;
}

.c3-account-proof.is-unverified,
html[data-appearance="light"] .c3-account-proof.is-unverified {
  border-color: color-mix(in srgb, var(--amber) 55%, var(--line));
  background: linear-gradient(145deg, color-mix(in srgb, var(--amber) 74%, #fff), color-mix(in srgb, var(--amber) 58%, #4b2600));
}

.c3-receiving-account > .ph-caret-right {
  color: var(--muted);
  font-size: 1.25rem;
}

.c3-home .home-trial-note {
  margin: -.25rem .35rem 0;
  justify-content: flex-start;
}

.c3-home .home-monitoring {
  margin: 0;
  min-height: 4.65rem;
}

.c3-home .home-section {
  margin: 0;
}

.c3-home .section-header {
  margin: .2rem .15rem .65rem;
}

.c3-home .section-header h2 {
  font-size: .98rem;
}

.c3-filter-chips {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  margin: 0 0 .75rem;
  scrollbar-width: none;
}

.c3-filter-chips::-webkit-scrollbar {
  display: none;
}

.c3-filter-chips button {
  min-height: 2.75rem;
  padding: .45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}

.c3-filter-chips button[aria-selected="true"] {
  border-color: color-mix(in srgb, var(--blue) 35%, var(--line));
  background: color-mix(in srgb, var(--blue) 17%, var(--surface));
  color: var(--link);
}

.c3-activity-ledger {
  border-radius: 1rem;
}

.c3-activity-ledger.is-activation {
  overflow: visible;
  border: 0;
  background: transparent;
}

.seller-start {
  display: grid;
  gap: 1rem;
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--section);
}

.seller-start-head {
  display: grid;
  grid-template-columns: 3.15rem minmax(0, 1fr);
  align-items: center;
  gap: .8rem;
}

.seller-start-head > span:last-child {
  display: grid;
  gap: .2rem;
}

.seller-start-head b {
  font-size: 1.08rem;
  line-height: 1.2;
}

.seller-start-head small {
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.42;
}

.seller-start-mark {
  display: grid;
  width: 3.15rem;
  height: 3.15rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--blue) 55%, #fff 12%);
  border-radius: .95rem;
  background: linear-gradient(145deg, #31a9ff, var(--c3-blue-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 5px 11px var(--c3-icon-shadow);
  color: #fff;
  font-size: 1.35rem;
}

.seller-start.is-pilot .seller-start-mark {
  border-color: color-mix(in srgb, var(--amber) 55%, var(--line));
  background: linear-gradient(145deg, color-mix(in srgb, var(--amber) 78%, #fff), color-mix(in srgb, var(--amber) 58%, #4b2600));
}

.seller-start-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seller-start-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: .75rem;
  padding: .25rem 0 .85rem;
}

.seller-start-steps li:last-child {
  padding-bottom: 0;
}

.seller-start-steps li:not(:last-child)::after {
  position: absolute;
  top: 2.15rem;
  bottom: .08rem;
  left: .96rem;
  width: 1px;
  background: var(--line);
  content: "";
}

.seller-start-steps li > span {
  z-index: 1;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--blue) 44%, var(--line));
  border-radius: 50%;
  background: color-mix(in srgb, var(--blue) 15%, var(--surface-2));
  color: var(--link);
  font-size: 1rem;
  font-weight: 800;
}

.seller-start-steps p {
  display: grid;
  gap: .1rem;
  margin: .08rem 0 0;
}

.seller-start-steps b {
  font-size: .84rem;
}

.seller-start-steps small {
  color: var(--muted);
  font-size: .71rem;
  line-height: 1.38;
}

.seller-start-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: .6rem;
}

.seller-start-primary,
.seller-start-secondary {
  display: flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem .8rem;
  border-radius: .85rem;
  font-size: .8rem;
  font-weight: 780;
}

.seller-start-primary {
  border: 0;
  background: var(--blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 13px rgba(0, 86, 161, .2);
  color: #fff;
}

.seller-start-secondary {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
}

.seller-start.is-pilot .seller-start-primary {
  width: 100%;
}

.seller-template-trigger {
  display: grid;
  width: 100%;
  grid-template-columns: 2.65rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  min-height: 4.35rem;
  padding: .6rem .8rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--section);
  color: var(--text);
  text-align: left;
}

.seller-template-trigger > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: .12rem;
}

.seller-template-trigger b {
  font-size: .86rem;
}

.seller-template-trigger small {
  overflow: hidden;
  color: var(--muted);
  font-size: .7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-template-trigger > i {
  color: var(--muted);
  font-size: 1.08rem;
}

.seller-template-list .sheet-option {
  min-height: 4.65rem;
}

.seller-template-list .sheet-option small {
  line-height: 1.32;
  white-space: normal;
}

.c3-activity-ledger .activity-row {
  grid-template-columns: 3.35rem minmax(0, 1fr) minmax(7.4rem, auto);
  gap: .85rem;
  min-height: 6.15rem;
  padding: .75rem .9rem;
}

.c3-activity-ledger .activity-icon {
  width: 3.2rem;
  height: 3.2rem;
  overflow: visible;
  border-radius: .95rem;
  font-size: 1.35rem;
}

.c3-activity-ledger .activity-icon:has(.payment-icon-stack) {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.c3-activity-ledger .activity-icon .payment-icon-stack {
  width: 3rem;
  height: 3rem;
}

.c3-activity-ledger .activity-row b {
  font-size: 1.08rem;
  font-variant-numeric: tabular-nums;
}

.c3-activity-ledger .activity-row small {
  font-size: .77rem;
}

.c3-activity-ledger .status-stamp {
  font-size: .74rem;
}

.c3-activity-ledger .activity-row time {
  font-size: .69rem;
}

.quick-actions button {
  min-height: 5.1rem;
  font-size: .68rem;
}

.quick-actions button i {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: .82rem;
  font-size: 1.28rem;
}

/* Wallets, forms and sheets inherit the same larger control scale. */
.wallet-account-summary,
.wallet-connections {
  margin-inline: 0;
}

.wallet-account-summary {
  padding: 1.05rem;
}

.wallet-account-head {
  grid-template-columns: 3.45rem minmax(0, 1fr);
  gap: .55rem .85rem;
}

.wallet-account-head h2 {
  font-size: 1.08rem;
}

.wallet-account-head p,
.wallet-connection-row code,
.wallet-proof-badge {
  font-size: .75rem;
}

.wallet-connection-row {
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  min-height: 5.45rem;
  padding: .8rem .9rem;
}

.wallet-connection-row b {
  font-size: .96rem;
}

.wallet-add-primary,
.fallback-primary,
.secondary-action,
.wide-secondary,
.star-buy-button {
  min-height: 3.65rem;
  font-size: .92rem;
}

.composer-row {
  grid-template-columns: 2.9rem minmax(0, 1fr) auto;
  min-height: 5.25rem;
  padding: .75rem .9rem;
}

.recipient-trigger {
  width: 100%;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.recipient-trigger .row-copy strong {
  overflow: hidden;
  font-size: 1.02rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipient-trigger .row-copy small {
  margin-top: .12rem;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.35;
}

.recipient-trigger > .ph-caret-right {
  color: var(--muted);
  font-size: 1.15rem;
}

.composer-progress {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  align-items: center;
  gap: .7rem;
  padding: .7rem .75rem;
  border: 1px solid var(--line);
  border-radius: .95rem;
  background: var(--surface);
}

.composer-progress > span {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: .78rem;
  background: color-mix(in srgb, var(--blue) 15%, var(--surface-high));
  color: var(--link);
  font-size: 1.1rem;
}

.composer-progress p {
  display: grid;
  gap: .12rem;
  margin: 0;
}

.composer-progress b {
  font-size: .82rem;
}

.composer-progress small {
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.35;
}

.recipient-native-summary {
  cursor: default;
}

.telegram-recipient-icon {
  border: 1px solid color-mix(in srgb, var(--blue) 55%, #fff 12%);
  background: linear-gradient(145deg, #31a9ff, var(--c3-blue-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 5px 10px var(--c3-icon-shadow);
  color: #fff;
}

.settings-icon.amber {
  border-color: color-mix(in srgb, var(--amber) 58%, #fff 10%);
  background: linear-gradient(145deg, color-mix(in srgb, var(--amber) 88%, #fff), color-mix(in srgb, var(--amber) 68%, var(--c3-amber-deep)));
  color: #fff;
}

.settings-icon.stars > i {
  display: none;
}

.settings-icon.stars::before {
  content: "★";
  color: #ffd45a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Symbol", sans-serif;
  font-size: 1.25em;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35), 0 2px 5px rgba(73, 48, 0, .32);
}

.recipient-native-summary > i:last-child {
  color: var(--blue);
  font-size: 1.35rem;
}

.payment-method-locked {
  cursor: default;
}

.payment-method-locked .row-copy small {
  display: block;
  margin-top: .2rem;
  color: var(--muted);
  font-size: .76rem;
}

.row-icon {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: .8rem;
  font-size: 1.3rem;
}

.row-copy > b {
  font-size: .78rem;
}

.username-field input,
.note-field input,
.row-copy select {
  font-size: 1.03rem;
}

.bottom-sheet {
  max-height: min(88vh, 50rem);
  padding: .45rem max(1rem, var(--safe-right)) calc(1.1rem + var(--safe-bottom)) max(1rem, var(--safe-left));
  border-radius: 1.45rem 1.45rem 0 0;
}

.recipient-sheet {
  padding-bottom: calc(1.3rem + var(--safe-bottom));
}

.recipient-native-option.selected > i:last-child {
  color: var(--blue);
}

.recipient-avatar {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--blue) 55%, #fff 10%);
  border-radius: 50%;
  background: linear-gradient(145deg, #31a9ff, var(--c3-blue-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 5px 10px var(--c3-icon-shadow);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}

.recipient-manual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .65rem;
}

.recipient-manual label {
  display: flex;
  min-width: 0;
  min-height: 3.5rem;
  align-items: center;
  gap: .15rem;
  padding: .65rem .9rem;
  border: 1px solid var(--line);
  border-radius: .95rem;
  background: var(--surface);
}

.recipient-manual label:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent);
}

.recipient-manual em {
  color: var(--blue);
  font-style: normal;
  font-weight: 800;
}

.recipient-manual input {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
}

.recipient-manual button {
  min-height: 3.5rem;
  padding: .7rem 1rem;
  border: 0;
  border-radius: .95rem;
  background: var(--blue);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
}

.recipient-manual .field-error {
  grid-column: 1 / -1;
  margin: 0 .15rem;
}

.recipient-privacy {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: .9rem .2rem 0;
  color: var(--muted);
  font-size: .73rem;
  line-height: 1.4;
}

.recipient-privacy i {
  flex: 0 0 auto;
  margin-top: .08rem;
  color: var(--green);
  font-size: 1rem;
}

.sheet-handle {
  width: 3rem;
  height: .3rem;
  margin-bottom: .8rem;
}

.sheet-header {
  padding-bottom: .9rem;
}

.sheet-header h2 {
  font-size: 1.45rem;
}

.sheet-header p {
  font-size: .82rem;
  line-height: 1.42;
}

.sheet-header button {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .8rem;
}

.sheet-option,
.wallet-provider-list .sheet-option {
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  gap: .85rem;
  min-height: 5.65rem;
  padding: .75rem .9rem;
}

.sheet-option b {
  font-size: .96rem;
}

.sheet-option small,
.wallet-provider-list .sheet-option small {
  overflow: visible;
  font-size: .75rem;
  line-height: 1.35;
  text-overflow: clip;
  white-space: normal;
}

.provider-status {
  font-size: .68rem;
}

.sheet-option > i:last-child {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: .65rem;
  color: var(--muted);
}

.sheet-option.selected > i:last-child {
  color: #fff;
}

.app-nav {
  right: 0;
  bottom: 0;
  left: 0;
  padding: .35rem max(.65rem, var(--safe-right)) calc(.35rem + var(--safe-bottom)) max(.65rem, var(--safe-left));
  border-radius: 0;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .2);
}

.app-nav button {
  grid-template-rows: 2.65rem 1rem;
  align-content: center;
  min-height: 4.3rem;
  gap: .22rem;
  font-size: .68rem;
  line-height: 1;
}

.app-nav button i {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border-radius: .78rem;
  font-size: 1.34rem;
  line-height: 1;
}

.app-nav button i::before {
  display: block;
  line-height: 1;
}

.app-nav button span {
  align-self: center;
  line-height: 1;
}

.app-nav button[aria-current="page"] {
  background: transparent;
}

@media (max-width: 390px) {
  html {
    font-size: 16px;
  }

  .app-shell {
    padding-inline: .8rem;
  }

  .c3-primary-actions {
    gap: .55rem;
  }

  .c3-primary-actions button {
    gap: .45rem;
    padding-inline: .55rem;
    font-size: .88rem;
  }

  .recipient-manual {
    grid-template-columns: 1fr;
  }

  .recipient-manual button {
    width: 100%;
  }

  .c3-receiving-account {
    grid-template-columns: 3.35rem minmax(0, 1fr) 2.05rem 1rem;
    gap: .65rem;
    padding-inline: .75rem;
  }

  .c3-account-icon {
    width: 3.35rem;
    height: 3.35rem;
  }

  .c3-activity-ledger .activity-row {
    grid-template-columns: 3.05rem minmax(0, 1fr) minmax(6.5rem, auto);
    gap: .65rem;
    min-height: 5.8rem;
    padding-inline: .75rem;
  }

  .c3-activity-ledger .activity-icon {
    width: 2.9rem;
    height: 2.9rem;
  }

  .sheet-option,
  .wallet-provider-list .sheet-option {
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    gap: .7rem;
  }
}

@media (max-width: 350px) {
  .c3-home,
  .c3-home > * {
    min-width: 0;
    max-width: 100%;
  }

  .home-onboarding {
    gap: .75rem;
    padding-inline: 0;
  }

  .home-onboarding-mark {
    width: 3.8rem;
    height: 3.8rem;
  }

  .home-onboarding-actions {
    grid-template-columns: 1fr;
  }

  .home-onboarding-copy h1 {
    font-size: 1.65rem;
  }

  .seller-access-use-cases {
    grid-template-columns: 1fr;
  }

  .seller-access-use-cases span {
    min-height: 4.4rem;
    grid-template-columns: 1.7rem minmax(0, 1fr);
    align-items: center;
  }

  .c3-safety-line > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .c3-primary-actions button {
    min-height: 3.8rem;
    font-size: .8rem;
    text-align: center;
    white-space: normal;
  }

  .c3-action-icon {
    width: 1.65rem;
    font-size: 1.25rem;
  }

  .c3-account-proof {
    display: none;
  }

  .c3-receiving-account {
    grid-template-columns: 3.2rem minmax(0, 1fr) 1rem;
  }

  .c3-activity-ledger .activity-row {
    grid-template-columns: 2.9rem minmax(0, 1fr);
  }

  .c3-activity-ledger .activity-row > span:last-child {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }

  .c3-filter-chips {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-start-actions {
    grid-template-columns: 1fr;
  }

  .seller-template-trigger small {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
}

/* Delivery is a release gate, not a decorative order timeline. */
.purchase-screen,
.invoice-screen {
  padding-bottom: calc(6rem + var(--tg-content-safe-area-inset-bottom));
}

.purchase-summary,
.delivery-panel {
  margin-bottom: 1rem;
  border-radius: 1.15rem;
  background: var(--surface);
}

.purchase-summary {
  display: grid;
  justify-items: center;
  gap: .65rem;
  padding: 1.15rem 1rem;
  text-align: center;
}

/* Seller pricing is an account control, not a digital-service purchase. */
.seller-plan-current {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: .85rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--surface);
}

.seller-plan-current-icon,
.seller-plan-symbol {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--blue) 45%, var(--line));
  border-radius: .9rem;
  background: color-mix(in srgb, var(--blue) 13%, var(--surface-high));
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 14%, transparent);
  color: var(--link);
  font-size: 1.35rem;
}

.seller-plan-current > span:nth-child(2) {
  display: grid;
  gap: .13rem;
  min-width: 0;
}

.seller-plan-current small,
.seller-plan-current em {
  color: var(--muted);
  font-size: .72rem;
  font-style: normal;
  line-height: 1.35;
}

.seller-plan-current strong {
  font-size: 1.05rem;
}

.seller-plan-current > b {
  color: var(--link);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.seller-plan-grid {
  display: grid;
  gap: .75rem;
}

.seller-plan-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--surface);
}

.seller-plan-card.is-current {
  border-color: color-mix(in srgb, var(--blue) 62%, var(--line));
  box-shadow: inset 3px 0 0 var(--blue);
}

.seller-plan-card > header {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: .8rem;
  align-items: center;
  padding: .85rem .9rem;
}

.seller-plan-card > header > span:nth-child(2) {
  display: grid;
  gap: .12rem;
  min-width: 0;
}

.seller-plan-card h2 {
  margin: 0;
  font-size: 1rem;
}

.seller-plan-card header small,
.seller-plan-card > p,
.seller-plan-fee span {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.4;
}

.seller-plan-card header > strong {
  font-size: .83rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.seller-plan-symbol.pro {
  color: var(--link);
}

.seller-plan-symbol.business {
  color: var(--c3-stars-edge);
}

.seller-plan-fee {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  padding: .72rem .9rem;
  border-block: 1px solid var(--line);
  background: var(--surface-2);
}

.seller-plan-fee b {
  color: var(--link);
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
}

.seller-plan-card > p {
  margin: 0;
  padding: .75rem .9rem 0;
}

.seller-plan-card > button {
  display: flex;
  width: calc(100% - 1.8rem);
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin: .75rem .9rem .9rem;
  border: 0;
  border-radius: .9rem;
  background: var(--blue);
  color: #fff;
  font-size: .84rem;
  font-weight: 800;
}

.seller-plan-card > button i {
  color: #ffd45a;
}

.seller-plan-terms {
  margin: 1rem 0;
}

.seller-plan-orders {
  display: grid;
  gap: .65rem;
}

.seller-plan-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.seller-plan-order > span {
  display: grid;
  gap: .18rem;
  min-width: 0;
}

.seller-plan-order strong {
  font-size: .82rem;
}

.seller-plan-order small,
.seller-plan-order time {
  color: var(--muted);
  font-size: .7rem;
}

.seller-plan-order button {
  min-height: 2.65rem;
  padding: .5rem .72rem;
  border: 1px solid var(--blue);
  border-radius: .75rem;
  background: transparent;
  color: var(--link);
  font-size: .72rem;
  font-weight: 800;
}

@media (max-width: 350px) {
  .seller-plan-current,
  .seller-plan-card > header {
    grid-template-columns: 2.7rem minmax(0, 1fr);
  }

  .seller-plan-current-icon,
  .seller-plan-symbol {
    width: 2.7rem;
    height: 2.7rem;
  }

  .seller-plan-current > b,
  .seller-plan-card header > strong {
    grid-column: 2;
    justify-self: start;
  }

  .seller-plan-order {
    grid-template-columns: 1fr;
  }

  .seller-plan-order button {
    width: 100%;
  }
}

.purchase-summary .invoice-amount {
  margin: .15rem 0 0;
}

.purchase-summary h2 {
  margin: .35rem 0 0;
  color: var(--text);
  font-size: 1.28rem;
  line-height: 1.18;
}

.purchase-summary > p {
  max-width: 31rem;
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.purchase-seller {
  display: grid;
  grid-template-columns: 2.7rem minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  width: 100%;
  margin-top: .5rem;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: .95rem;
  background: var(--surface-high);
  text-align: left;
}

.purchase-summary .invoice-amount small {
  display: inline-flex;
  align-items: center;
  gap: .18rem;
}

.purchase-summary .invoice-amount .telegram-stars-glyph {
  font-size: .95em;
  text-shadow: none;
}

.purchase-seller .profile-avatar {
  width: 2.7rem;
  height: 2.7rem;
  font-size: 1rem;
}

.purchase-seller > span:nth-child(2) {
  display: grid;
  gap: .12rem;
  min-width: 0;
}

.purchase-seller small {
  color: var(--muted);
  font-size: .72rem;
}

.purchase-seller b {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-seller > i {
  color: var(--telegram-brand);
  font-size: 1.25rem;
}

.delivery-panel {
  overflow: hidden;
}

.delivery-panel-head {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: .8rem;
  align-items: start;
  padding: 1rem;
}

.delivery-panel-head > span:last-child {
  min-width: 0;
}

.delivery-panel-head small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}

.delivery-panel-head h2 {
  margin: .08rem 0 .2rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.25;
}

.delivery-panel-head p,
.delivery-protection,
.delivery-form small {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.4;
}

.delivery-state-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: .92rem;
  background: var(--surface-high);
  color: var(--pending-amber);
  font-size: 1.35rem;
}

.delivery-state-icon.status-confirmed {
  background: color-mix(in srgb, var(--confirmed-green) 15%, var(--surface-high));
  color: var(--confirmed-green);
}

.delivery-state-icon.status-expired {
  background: color-mix(in srgb, var(--expired-red) 14%, var(--surface-high));
  color: var(--expired-red);
}

.delivery-evidence,
.delivery-dispute-note {
  display: grid;
  gap: .3rem;
  margin: 0 1rem .85rem 4.8rem;
  padding: .75rem .8rem;
  border-radius: .85rem;
  background: var(--surface-high);
}

.delivery-evidence small,
.delivery-dispute-note small,
.delivery-form label > span,
.delivery-dispute-form label > span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}

.delivery-evidence p,
.delivery-dispute-note p {
  margin: 0;
  color: var(--text);
  font-size: .84rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.delivery-dispute-note {
  background: color-mix(in srgb, var(--expired-red) 10%, var(--surface-high));
}

.delivery-form,
.delivery-dispute-form {
  display: grid;
  gap: .75rem;
  padding: 0 1rem 1rem;
}

.delivery-form label,
.delivery-dispute-form label {
  display: grid;
  gap: .42rem;
}

.delivery-form textarea,
.delivery-dispute-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 6.25rem;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: .85rem;
  outline: 0;
  background: var(--surface-high);
  color: var(--text);
  padding: .8rem;
  font: inherit;
  font-size: .88rem;
  line-height: 1.4;
}

.delivery-form textarea:focus-visible,
.delivery-dispute-form textarea:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent);
}

.delivery-form button,
.delivery-dispute-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  border: 0;
  border-radius: .85rem;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
}

.delivery-dispute-form button {
  border: 1px solid color-mix(in srgb, var(--expired-red) 52%, var(--line));
  background: transparent;
  color: var(--expired-red);
}

.delivery-form button:disabled,
.delivery-dispute-form button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.delivery-protection {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  padding: .8rem 1rem;
  border-top: 1px solid var(--line);
}

.delivery-protection i {
  flex: 0 0 auto;
  margin-top: .08rem;
  color: var(--confirmed-green);
  font-size: 1rem;
}

@media (max-width: 350px) {
  .delivery-evidence,
  .delivery-dispute-note {
    margin-left: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  button:active:not(:disabled),
  .settings-row:active,
  .sheet-option:active {
    transform: none;
  }
}

.marketplace-terms {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr);
  gap: .75rem;
  align-items: start;
  margin: .85rem 0;
  padding: .9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--c3-blue) 38%, var(--line));
  border-radius: 1rem;
  background: var(--surface);
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.42;
}

.settlement-preview {
  display: grid;
  gap: .85rem;
  margin: 1rem 0 .85rem;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--c3-blue) 30%, var(--line));
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--stars-violet) 14%, transparent), transparent 42%),
    var(--surface);
}

.settlement-preview-head {
  display: flex;
  gap: .75rem;
  align-items: center;
}

.settlement-preview-head > span:last-child {
  min-width: 0;
}

.settlement-preview-head small {
  display: block;
  margin-bottom: .12rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.settlement-preview-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.2;
}

.settlement-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .95rem;
  background: var(--line);
}

.settlement-preview-grid > div {
  display: grid;
  gap: .28rem;
  min-width: 0;
  padding: .75rem .8rem;
  background: color-mix(in srgb, var(--surface) 88%, var(--c3-blue));
}

.settlement-preview-grid span {
  color: var(--muted);
  font-size: .73rem;
  line-height: 1.25;
}

.settlement-preview-grid strong {
  color: var(--text);
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.settlement-preview-grid .settlement-preview-net {
  grid-column: 1 / -1;
  grid-row: 2;
  background: color-mix(in srgb, var(--confirmed-green) 10%, var(--surface));
}

.settlement-preview-net strong {
  color: var(--confirmed-green);
  font-size: 1.05rem;
}

.settlement-preview > p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.42;
}

.settlement-preview:not(.is-empty) > p::before {
  content: '\2713';
  margin-right: .35rem;
  color: var(--confirmed-green);
  font-weight: 800;
}

.settlement-preview.is-empty .settlement-preview-grid strong {
  color: var(--muted);
}

.purchase-facts {
  display: grid;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .95rem;
  background: var(--surface-high);
  text-align: left;
}

.purchase-facts > div {
  display: grid;
  gap: .25rem;
  padding: .85rem;
}

.purchase-facts > div + div {
  border-top: 1px solid var(--line);
}

.purchase-facts dt {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}

.purchase-facts dt i {
  color: var(--link);
  font-size: 1rem;
}

.purchase-facts dd {
  margin: 0;
  color: var(--text);
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.settlement-timing {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: color-mix(in srgb, var(--surface) 88%, var(--c3-blue));
}

.settlement-timing summary {
  display: flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .65rem .8rem;
  color: var(--text);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 700;
  list-style: none;
}

.settlement-timing summary::-webkit-details-marker {
  display: none;
}

.settlement-timing summary i {
  color: var(--muted);
  transition: transform 160ms ease;
}

.settlement-timing[open] summary i {
  transform: rotate(180deg);
}

.settlement-timing > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.settlement-timing > div > span {
  display: grid;
  gap: .22rem;
  padding: .7rem .8rem;
}

.settlement-timing > div > span + span {
  border-left: 1px solid var(--line);
}

.settlement-timing small,
.settlement-timing > p {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.35;
}

.settlement-timing strong {
  color: var(--text);
  font-size: .86rem;
  font-variant-numeric: tabular-nums;
}

.settlement-timing > p {
  margin: 0;
  padding: 0 .8rem .75rem;
}

.composer-trust {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: .55rem .25rem 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.4;
}

.composer-trust i {
  flex: 0 0 auto;
  margin-top: .05rem;
  color: var(--confirmed-green);
  font-size: 1rem;
}

/* Center the amount and currency as one visual unit for every digit count. */
.amount-input {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}

.amount-input input {
  width: max(1ch, calc(var(--amount-digits) * 1ch));
  padding: 0;
  text-align: center;
}

.amount-input b {
  position: static;
  transform: none;
}

.telegram-stars-glyph {
  display: inline-grid;
  flex: 0 0 auto;
  width: 1.25em;
  height: 1.25em;
  place-items: center;
  color: #ffd45a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Symbol", sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35), 0 2px 5px rgba(73, 48, 0, .32);
}

.telegram-stars-glyph i {
  font-size: inherit;
  line-height: 1;
}

.amount-input .telegram-stars-glyph {
  font-size: 1.55rem;
  transform: translateY(.08rem);
}

html[data-appearance="light"] .amount-input .telegram-stars-glyph {
  color: var(--c3-stars-ink-light);
  text-shadow: 0 1px 0 #fff, 0 2px 4px var(--c3-stars-shadow-light);
}

.payment-method-icon:has(.telegram-stars-glyph) {
  border: 1px solid color-mix(in srgb, var(--c3-stars-edge) 72%, #fff 14%);
  background: linear-gradient(145deg, var(--c3-stars-tile-top), var(--c3-stars-tile-bottom));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 5px 10px var(--c3-icon-shadow);
}

.payment-method-icon .telegram-stars-glyph {
  font-size: 1.45rem;
}

@media (max-width: 350px) {
  .settlement-preview {
    padding: .85rem;
  }

  .settlement-preview-grid > div {
    padding: .7rem;
  }
}

.marketplace-gate {
  margin: 0 0 1rem;
  color: var(--warning);
}

.marketplace-terms input {
  width: 1.25rem;
  height: 1.25rem;
  margin: .05rem 0 0;
  accent-color: var(--c3-blue);
}

.marketplace-terms b,
.marketplace-terms a {
  display: block;
}

.marketplace-terms b {
  color: var(--text);
  font-weight: 600;
}

.marketplace-terms a {
  display: inline-flex;
  width: fit-content;
  min-height: 2.75rem;
  align-items: center;
  margin-top: .1rem;
  color: var(--c3-blue);
  font-weight: 700;
}

.star-sale-proof {
  display: grid;
  gap: .7rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--surface);
}

.star-sale-proof > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: .84rem;
}

.star-sale-proof strong {
  color: var(--text);
  text-align: right;
}

.star-sale-share {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .65rem;
  align-items: center;
  padding: .85rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--c3-blue) 12%, var(--surface));
}

.star-sale-share code {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payout-balance-card {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) minmax(0, 1fr);
  gap: .85rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 1.15rem;
  background: var(--surface-raised);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
}

.payout-balance-card > span:not(.settings-icon) {
  display: grid;
  gap: .2rem;
  min-width: 0;
}

.payout-balance-card small {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.25;
}

.payout-balance-card strong {
  color: var(--text);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.payout-debt-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: .7rem;
  align-items: start;
  padding-block-start: .9rem;
  border-block-start: 1px solid var(--line);
  color: var(--warning);
}

.payout-debt-row[hidden] {
  display: none;
}

.payout-debt-row > i {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: .75rem;
  background: color-mix(in srgb, var(--warning) 16%, transparent);
  font-size: 1.05rem;
}

.payout-debt-row > span {
  display: grid;
  gap: .15rem;
  min-width: 0;
}

.payout-debt-row em {
  color: var(--muted);
  font-size: .76rem;
  font-style: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.settlement-steps {
  display: grid;
  gap: 0;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 1.15rem;
  background: var(--surface);
}

.payout-guide {
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--surface);
}

.payout-guide > summary {
  display: grid;
  grid-template-columns: 2.65rem minmax(0, 1fr) 2rem;
  gap: .75rem;
  align-items: center;
  min-height: 4.6rem;
  padding: .65rem .85rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.payout-guide > summary::-webkit-details-marker {
  display: none;
}

.payout-guide > summary > span:nth-child(2) {
  display: grid;
  gap: .15rem;
  min-width: 0;
}

.payout-guide > summary small {
  color: var(--muted);
  font-size: .75rem;
}

.payout-guide > summary > i {
  color: var(--muted);
  transition: transform 160ms ease;
}

.payout-guide[open] > summary > i {
  transform: rotate(180deg);
}

.payout-guide .settlement-steps {
  margin: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.payout-guide-note {
  display: flex;
  gap: .55rem;
  margin: 0;
  padding: .75rem .9rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.4;
}

.payout-guide-note i {
  flex: 0 0 auto;
  color: var(--link);
  font-size: 1rem;
}

.settlement-steps > div {
  display: grid;
  grid-template-columns: 2.65rem minmax(0, 1fr);
  gap: .8rem;
  align-items: center;
  min-height: 4.9rem;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--line);
}

.settlement-steps > div:last-child {
  border-bottom: 0;
}

.settlement-steps > div > i {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border-radius: .82rem;
  background: var(--surface-high);
  color: var(--muted);
  font-size: 1.25rem;
}

.settlement-steps > div.is-complete > i {
  background: color-mix(in srgb, var(--confirmed-green) 18%, var(--surface-high));
  color: var(--confirmed-green);
}

.settlement-steps span {
  display: grid;
  gap: .18rem;
}

.settlement-steps small,
.payout-history-row small {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.payout-methods {
  margin-bottom: 1rem;
}

.payout-history-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: .8rem;
  align-items: center;
  min-height: 5rem;
  padding: .75rem .9rem;
  border-bottom: 1px solid var(--line);
}

.payout-history-row:last-child {
  border-bottom: 0;
}

.payout-history-row > span:nth-child(2),
.payout-history-row > span:last-child {
  display: grid;
  gap: .25rem;
}

.payout-history-row > span:last-child {
  justify-items: end;
  text-align: right;
}

.payout-history-row time {
  color: var(--muted);
  font-size: .7rem;
}

.ledger-item .ledger-mark {
  align-self: center;
}

.ledger-item {
  grid-template-columns: 3rem minmax(0, 1fr) minmax(6.5rem, auto);
  align-items: center;
}

.ledger-side {
  min-width: 0;
}

.ledger-side .status-stamp {
  max-width: 8.5rem;
  justify-content: flex-end;
  text-align: right;
}

@media (max-width: 350px) {
  .payout-balance-card {
    grid-template-columns: 2.8rem minmax(0, 1fr);
  }

  .payout-balance-card > span:last-child {
    grid-column: 2;
  }

  .payout-history-row {
    grid-template-columns: 2.8rem minmax(0, 1fr);
  }

  .payout-history-row > span:last-child {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }

  .ledger-item {
    grid-template-columns: 2.8rem minmax(0, 1fr);
  }

  .ledger-side {
    grid-column: 2;
    justify-items: start;
  }

  .ledger-side .status-stamp {
    justify-content: flex-start;
    text-align: left;
  }
}
