@font-face {
  font-display: block;
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 400;
  src: url("/assets/fonts/material-symbols-outlined-portal-20260729.woff2") format("woff2");
}

/* ponytail: this font is subset to portal icons; regenerate it when adding an icon name. */
.material-symbols-outlined {
  direction: ltr;
  display: inline-block;
  font-family: "Material Symbols Outlined";
  font-feature-settings: "liga";
  font-style: normal;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #f3f5f9;
  --border: #d9dfE8;
  --danger: #b42318;
  --danger-soft: #ffe8ec;
  --muted: #5f6a7f;
  --navy: #09223f;
  --pink: #dc004a;
  --pink-soft: #fff0f5;
  --success: #08783e;
  --text: #102943;
  --warning: #8a5c00;
  --warning-soft: #fff8e6;
  --whatsapp: #168b4e;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  background: #17191d;
  color: var(--text);
}

button,
input {
  font: inherit;
}

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

button {
  cursor: pointer;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.promoter-shell {
  background: var(--bg);
  margin: 0 auto;
  min-height: 100dvh;
  overflow: hidden;
  width: min(100%, 420px);
}

.promoter-hero {
  background-color: #8f0b53;
  background-image: url("/assets/promoter-hero-v2.webp");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  display: flex;
  height: 258px;
  padding: max(16px, env(safe-area-inset-top)) 26px 14px;
  position: relative;
}

.hero-copy {
  align-self: flex-end;
  position: relative;
  text-align: center;
  width: 100%;
  z-index: 1;
}

.hero-eyebrow {
  color: #ff789d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.2;
  margin: 0 0 5px;
}

.promoter-hero h1 {
  font-size: clamp(26px, 7.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.03;
  margin: 0 auto;
  max-width: 350px;
  text-wrap: balance;
}

.promoter-hero .hero-copy > p:last-child {
  color: #fff;
  font-size: 12.5px;
  line-height: 1.35;
  margin: 6px 0 0;
}

.primary-button:focus-visible,
.register-button:focus-visible,
.whatsapp-button:focus-visible,
.text-button:focus-visible,
.auth-input:focus-visible,
.passkey-option:focus-within,
.help-list summary:focus-visible,
.portal-action-button:focus-visible,
.portal-nav button:focus-visible {
  outline: 3px solid rgb(239 0 80 / 24%);
  outline-offset: 2px;
}

.promoter-content {
  align-content: start;
  display: grid;
  gap: 10px;
  padding: 10px 26px max(16px, env(safe-area-inset-bottom));
}

.portal-session-actions {
  display: grid;
  gap: 8px;
}

.portal-action-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 14px;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 46px;
  padding: 8px 12px;
}

.portal-action-button.install {
  background: #fff;
  border-color: #f2a5bf;
  color: var(--pink);
}

.portal-action-button.logout {
  background: #15253d;
  color: #fff;
}

.portal-action-button svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 20px;
}

.portal-action-button .material-symbols-outlined {
  font-size: 20px;
}

.portal-action-button[hidden] {
  display: none;
}

.onboarding-guide {
  display: grid;
  gap: 10px;
}

.guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-steps li {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 10px;
  grid-template-columns: 48px 22px minmax(0, 1fr);
  min-height: 64px;
  padding: 6px 0;
}

.guide-icon {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 7px 18px rgb(34 45 65 / 8%);
  color: var(--navy);
  display: flex;
  font-size: 25px;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.step-number {
  align-items: center;
  background: var(--pink);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.step-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.step-copy strong {
  font-size: 13px;
  line-height: 1.2;
}

.step-copy small {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.register-button,
.whatsapp-button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  color: #fff;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  text-decoration: none;
  width: 100%;
}

.register-button {
  background: var(--pink);
  cursor: pointer;
}

.field-help {
  color: var(--muted);
  font-size: 10px;
  margin-top: -5px;
}

.register-button .material-symbols-outlined,
.whatsapp-button .material-symbols-outlined {
  font-size: 20px;
}

.activation-note {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 10.5px;
  gap: 7px;
  justify-content: center;
  line-height: 1.3;
  margin: -2px 0 0;
  text-align: center;
}

.activation-note .material-symbols-outlined {
  font-size: 15px;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  gap: 11px;
  padding: 18px;
}

.auth-card.login-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.card-heading {
  text-align: center;
}

.card-heading h2 {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}

.card-heading p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
  margin: 4px 0 0;
}

.auth-form {
  display: contents;
}

.field,
.status-group {
  display: grid;
  gap: 6px;
}

.field label,
.field-label {
  font-size: 10px;
  font-weight: 700;
}

.login-card .field label {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.input-shell,
.status-field {
  align-items: center;
  background: #fff;
  border: 1px solid #c7cfdb;
  border-radius: 8px;
  display: flex;
  gap: 9px;
  min-height: 48px;
  padding: 0 12px;
}

.input-shell .material-symbols-outlined,
.status-field .material-symbols-outlined {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 18px;
}

.auth-input {
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 12px;
  min-width: 0;
  outline: 0;
  padding: 0;
  width: 100%;
}

.auth-input::placeholder {
  color: #8a96aa;
}

.password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0;
}

.password-toggle .material-symbols-outlined {
  font-size: 19px;
}

.status-field {
  background: #f8fafc;
  font-size: 11px;
}

.status-field.passkey {
  background: var(--pink-soft);
  border-color: #f9a8c7;
}

.status-field.danger {
  background: var(--danger-soft);
  border-color: #f9a8b8;
  color: var(--danger);
}

.status-field.danger .material-symbols-outlined {
  color: var(--danger);
}

.passkey-option,
.info-row {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 9px;
  display: flex;
  gap: 9px;
  min-height: 48px;
  padding: 9px 10px;
}

.login-card .passkey-option {
  background: transparent;
  border: 0;
  color: var(--pink);
  justify-content: center;
  min-height: 44px;
  padding: 0;
}

.passkey-option input {
  accent-color: var(--pink);
  height: 17px;
  margin: 0;
  width: 17px;
}

.passkey-option .material-symbols-outlined,
.info-row .material-symbols-outlined {
  color: var(--pink);
  font-size: 18px;
}

.login-card .passkey-option .option-copy strong {
  font-size: 12px;
}

.login-card .passkey-option .option-copy small {
  display: none;
}

.info-row.security .material-symbols-outlined {
  color: var(--success);
}

.info-row.warning {
  background: var(--warning-soft);
  border-color: #e8c267;
}

.info-row.warning .material-symbols-outlined {
  color: var(--warning);
}

.option-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.option-copy strong {
  font-size: 10.5px;
  line-height: 1.25;
}

.option-copy small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.3;
}

.primary-button {
  align-items: center;
  background: var(--navy);
  border: 0;
  border-radius: 8px;
  color: #fff;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 9px 14px;
  width: 100%;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.primary-button .material-symbols-outlined {
  font-size: 18px;
}

.text-button {
  background: transparent;
  border: 0;
  color: var(--pink);
  font-size: 12px;
  font-weight: 700;
  margin: -2px auto 0;
  min-height: 44px;
  padding: 8px 10px;
}

.text-button.muted {
  color: var(--muted);
  font-weight: 400;
}

.passkey-login-button {
  align-items: center;
  display: flex;
  gap: 5px;
  justify-content: center;
}

.passkey-login-button .material-symbols-outlined {
  font-size: 18px;
}

.form-message {
  color: var(--danger);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.35;
  margin: -5px 0 0;
  text-align: center;
}

.form-message.success {
  color: var(--success);
}

.privacy-footer {
  color: var(--muted);
  font-size: 10.5px;
  margin: 0;
  text-align: center;
}

.portal-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.portal-panel {
  display: grid;
  gap: 14px;
}

.portal-panel-header {
  display: grid;
  gap: 5px;
}

.portal-panel-header h2 {
  font-size: 23px;
  line-height: 1.15;
  margin: 0;
}

.portal-panel-header p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
  margin: 0;
}

.help-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.help-list li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.help-list li.featured {
  background: var(--pink-soft);
  border-color: transparent;
}

.help-list summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  list-style: none;
  min-height: 58px;
  padding: 10px 12px;
}

.help-list summary::-webkit-details-marker {
  display: none;
}

.help-list summary > .material-symbols-outlined:first-child {
  align-items: center;
  background: var(--pink-soft);
  border-radius: 50%;
  color: var(--pink);
  display: flex;
  font-size: 19px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.help-list li.featured summary > .material-symbols-outlined:first-child {
  background: #fff;
}

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

.help-list strong {
  font-size: 11.5px;
  line-height: 1.3;
}

.help-list small {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.4;
}

.help-toggle-icon {
  color: #94a3b8;
  font-size: 19px;
  transition: transform 160ms ease;
}

.help-list details[open] .help-toggle-icon {
  transform: rotate(180deg);
}

.help-list details > p {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  margin: 0 12px 12px 56px;
  padding-top: 10px;
}

.funds-note {
  align-items: flex-start;
  background: var(--warning-soft);
  border: 1px solid #e8c267;
  border-radius: 11px;
  color: var(--warning);
  display: flex;
  font-size: 10px;
  font-weight: 700;
  gap: 9px;
  line-height: 1.45;
  padding: 11px 12px;
}

.funds-note .material-symbols-outlined {
  flex: 0 0 auto;
  font-size: 20px;
}

.whatsapp-button {
  background: var(--whatsapp);
  min-height: 50px;
}

.support-number {
  color: var(--muted);
  font-size: 9.5px;
  margin: -7px 0 0;
  text-align: center;
}

.empty-state {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 190px;
  padding: 24px;
  text-align: center;
}

.empty-state .material-symbols-outlined {
  color: var(--pink);
  font-size: 36px;
}

.empty-state strong {
  font-size: 13px;
}

.empty-state small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.promoter-order-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.promoter-order-card summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr);
  list-style: none;
  min-height: 62px;
  padding: 10px 12px;
}

.promoter-order-card summary::-webkit-details-marker {
  display: none;
}

.promoter-order-icon {
  align-items: center;
  background: #fff5df;
  border-radius: 10px;
  color: #b77900;
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.promoter-order-icon.success {
  background: #e8f8ef;
  color: var(--success);
}

.promoter-order-icon.blue {
  background: #eaf2ff;
  color: #2867d7;
}

.promoter-order-icon.muted {
  background: #eef1f5;
  color: var(--muted);
}

.promoter-order-icon .material-symbols-outlined {
  font-size: 19px;
}

.promoter-order-summary,
.promoter-order-summary > span,
.promoter-order-summary > small,
.portal-balance-card > span,
.portal-data-card header,
.portal-rate-card header,
.portal-section-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.promoter-order-summary {
  display: grid;
  gap: 5px;
  justify-content: stretch;
  min-width: 0;
  width: 100%;
}

.promoter-order-summary > span,
.promoter-order-summary > small {
  gap: 12px;
}

.promoter-order-summary b,
.promoter-order-summary em {
  margin-left: auto;
  white-space: nowrap;
}

.promoter-order-summary strong,
.promoter-order-summary b {
  font-size: 11px;
}

.promoter-order-summary small,
.promoter-order-summary em {
  color: var(--muted);
  font-size: 8.5px;
  font-style: normal;
}

.promoter-order-summary em {
  color: var(--success);
}

.promoter-order-details {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 7px;
  padding: 10px 14px 12px 60px;
}

.promoter-order-details p,
.promoter-order-details strong,
.promoter-order-details li {
  font-size: 9px;
  margin: 0;
}

.promoter-order-details ul {
  display: grid;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.promoter-order-details li {
  display: flex;
  justify-content: space-between;
}

.portal-balance-card {
  border-radius: 16px;
  color: #fff;
  display: grid;
  gap: 7px;
  min-height: 112px;
  padding: 18px;
}

.portal-balance-card.pink {
  background: #ef1760;
}

.portal-balance-card.navy {
  background: #20293a;
}

.portal-balance-card > small,
.portal-balance-card b,
.portal-balance-card em {
  font-size: 9px;
  font-style: normal;
}

.portal-balance-card > strong {
  font-size: 27px;
  letter-spacing: -0.03em;
}

.portal-balance-card em {
  color: #8fe0b1;
}

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

.portal-kpi-grid article {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  gap: 10px;
  min-height: 72px;
  padding: 12px;
}

.portal-kpi-grid article > .material-symbols-outlined {
  align-items: center;
  background: #fff5df;
  border-radius: 10px;
  color: #b77900;
  display: flex;
  font-size: 19px;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.portal-kpi-grid article + article > .material-symbols-outlined {
  background: #e8f8ef;
  color: var(--success);
}

.portal-kpi-grid span {
  display: grid;
  gap: 3px;
}

.portal-kpi-grid strong {
  font-size: 17px;
}

.portal-kpi-grid small,
.portal-section-title span,
.portal-privacy-note,
.portal-rate-card small,
.portal-empty-row small {
  color: var(--muted);
  font-size: 8.5px;
}

.portal-section-title h3,
.portal-data-card h3 {
  font-size: 13px;
  margin: 0;
}

.portal-section-title span,
.portal-data-card header > span {
  color: var(--pink);
  font-weight: 700;
}

.portal-privacy-note {
  align-items: center;
  background: #f7f9fc;
  border-radius: 10px;
  display: flex;
  gap: 8px;
  line-height: 1.4;
  padding: 10px;
}

.portal-privacy-note .material-symbols-outlined {
  font-size: 18px;
}

.portal-rate-card,
.portal-payout-card,
.portal-profile-card,
.portal-contact-card,
.portal-data-card,
.portal-empty-row {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.portal-rate-card {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.portal-rate-card header {
  font-size: 10px;
}

.portal-rate-card header strong {
  color: var(--pink);
}

.portal-rate-card progress {
  accent-color: var(--pink);
  height: 7px;
  width: 100%;
}

.portal-payout-card {
  align-items: center;
  background: #fffbea;
  border-color: #f0c944;
  display: grid;
  gap: 10px;
  grid-template-columns: 36px minmax(0, 1fr) 22px;
  padding: 12px;
}

.portal-payout-card > .material-symbols-outlined {
  color: #d1a900;
}

.portal-payout-card > .material-symbols-outlined:last-child {
  color: var(--success);
}

.portal-payout-card span,
.portal-empty-row span {
  display: grid;
  gap: 3px;
}

.portal-payout-card strong,
.portal-empty-row strong {
  font-size: 10px;
}

.portal-payout-card small {
  color: var(--muted);
  font-size: 8.5px;
}

.portal-empty-row {
  align-items: center;
  display: flex;
  gap: 10px;
  min-height: 62px;
  padding: 12px;
}

.portal-empty-row > .material-symbols-outlined {
  color: var(--pink);
}

.portal-payment-list {
  display: grid;
  gap: 8px;
}

.portal-payment-list article,
.portal-payment-list article > span {
  align-items: center;
  display: flex;
}

.portal-payment-list article {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  justify-content: space-between;
  min-height: 56px;
  padding: 10px 12px;
}

.portal-payment-list article > span {
  gap: 9px;
}

.portal-payment-list article > span > span {
  display: grid;
  gap: 2px;
}

.portal-payment-list .material-symbols-outlined {
  align-items: center;
  background: #e8f7ef;
  border-radius: 50%;
  color: var(--success);
  display: flex;
  font-size: 17px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.portal-payment-list strong,
.portal-payment-list b {
  font-size: 10px;
}

.portal-payment-list small {
  color: var(--muted);
  font-size: 8px;
}

.portal-profile-card,
.portal-contact-card {
  align-items: center;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.portal-profile-card {
  grid-template-columns: 44px minmax(0, 1fr) auto;
}

.portal-profile-card > span:nth-child(2),
.portal-contact-card > span {
  display: grid;
  gap: 3px;
}

.portal-profile-card strong,
.portal-contact-card strong {
  font-size: 11px;
}

.portal-profile-card a,
.portal-contact-card small {
  color: var(--muted);
  font-size: 8px;
  overflow-wrap: anywhere;
}

.portal-profile-card em {
  background: #e7f8ee;
  border-radius: 99px;
  color: var(--success);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  padding: 5px 7px;
}

.portal-profile-card em.pending {
  background: #fff4dc;
  color: #9b5d00;
}

.portal-profile-link {
  align-items: center;
  display: flex;
  gap: 5px;
  min-width: 0;
}

.portal-profile-link a {
  min-width: 0;
}

.portal-profile-link button {
  align-items: center;
  background: #eaf3ff;
  border: 0;
  border-radius: 50%;
  color: #245f9f;
  display: inline-flex;
  flex: 0 0 24px;
  height: 24px;
  justify-content: center;
  padding: 0;
}

.portal-profile-link button:disabled {
  opacity: .45;
}

.portal-profile-link .material-symbols-outlined {
  font-size: 14px;
}

.portal-share-help,
.portal-profile-help {
  color: #245f9f;
  font-size: 8px;
  line-height: 1.35;
}

.portal-profile-avatar {
  align-items: center;
  background: #f5a7ce;
  border-radius: 50%;
  color: #fff;
  display: flex;
  height: 44px;
  justify-content: center;
  overflow: hidden;
  width: 44px;
}

.portal-profile-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.portal-contact-card {
  grid-template-columns: 42px minmax(0, 1fr);
}

.portal-contact-card > .material-symbols-outlined {
  align-items: center;
  background: #12b832;
  border-radius: 50%;
  color: #fff;
  display: flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.portal-data-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.portal-profile-completion-form {
  display: grid;
  gap: 10px;
}

.portal-payout-header {
  align-items: center;
}

.portal-payout-header img {
  height: 25px;
  object-fit: contain;
  object-position: right center;
  width: 112px;
}

.portal-payout-edit label small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.3;
}

.portal-edit-button {
  background: #fff0f6;
  border: 1px solid #ffc2d8;
  border-radius: 999px;
  color: var(--pink);
  font-size: 9px;
  font-weight: 700;
  min-height: 28px;
  padding: 5px 12px;
}

.portal-field-list,
.portal-account-list,
.portal-edit-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.portal-edit-list label {
  display: grid;
  gap: 4px;
}

.portal-edit-list label > span {
  color: var(--muted);
  font-size: 8px;
}

.portal-edit-list input,
.portal-edit-list select {
  background: #fff;
  border: 1px solid #bcc8d8;
  border-radius: 7px;
  color: var(--text);
  font-size: 9px;
  min-height: 31px;
  padding: 8px 9px;
  width: 100%;
}

.portal-payout-edit {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
}

.portal-payout-edit label:last-child {
  grid-column: 1 / -1;
}

.portal-profile-actions {
  display: grid;
  gap: 8px;
  padding: 0 12px;
}

.portal-save-button {
  align-items: center;
  background: var(--pink);
  border: 0;
  border-radius: 8px;
  color: #fff;
  display: flex;
  font-size: 10px;
  font-weight: 700;
  gap: 6px;
  justify-content: center;
  min-height: 36px;
}

.portal-save-button .material-symbols-outlined {
  font-size: 16px;
}

.portal-profile-actions .form-message,
.portal-profile-help {
  margin: 0;
}

.portal-profile-saved {
  margin: 0;
}

.portal-field-list > div {
  display: grid;
  gap: 4px;
}

.portal-field-list dt,
.portal-account-list dt {
  color: var(--muted);
  font-size: 8px;
}

.portal-field-list dd {
  border: 1px solid #bcc8d8;
  border-radius: 7px;
  font-size: 9px;
  margin: 0;
  min-height: 31px;
  padding: 9px;
}

.portal-account-list > div {
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 8px;
  grid-template-columns: 88px minmax(0, 1fr);
  padding-bottom: 7px;
}

.portal-account-list dd {
  font-size: 9px;
  margin: 0;
  overflow-wrap: anywhere;
}

.portal-account-list a {
  color: var(--pink);
}

.portal-nav {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  bottom: max(12px, env(safe-area-inset-bottom));
  box-shadow: 0 12px 34px rgb(23 34 53 / 16%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  left: 50%;
  max-width: 380px;
  padding: 5px;
  position: fixed;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  z-index: 5;
}

.portal-nav[hidden] {
  display: none;
}

.portal-nav button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #75839a;
  display: flex;
  flex-direction: column;
  font-size: 8.5px;
  gap: 2px;
  justify-content: center;
  min-height: 56px;
  padding: 5px 2px;
}

.portal-nav button:disabled {
  cursor: not-allowed;
  opacity: .4;
}

.portal-nav button .material-symbols-outlined {
  font-size: 21px;
}

.portal-nav button[aria-current="page"] {
  background: var(--pink-soft);
  color: var(--pink);
}

.promoter-shell.is-authenticated {
  background: #eef1f6;
  width: min(100%, 390px);
}

.portal-header-copy[hidden],
.portal-header-actions[hidden],
.portal-avatar[hidden] {
  display: none !important;
}

.promoter-shell.is-authenticated .promoter-hero {
  background: #a80d5c;
  background-image: none;
  height: max(82px, calc(64px + env(safe-area-inset-top)));
  padding: 0;
}

.promoter-shell.is-authenticated .hero-copy {
  display: none;
}

.portal-header-copy {
  align-self: center;
  display: grid;
  gap: 3px;
  padding: max(10px, env(safe-area-inset-top)) 70px 8px 16px;
  width: 100%;
}

.portal-header-copy h1 {
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

.portal-header-copy p {
  color: #ffd5e6;
  font-size: 8.5px;
  margin: 0;
}

.portal-header-actions {
  align-items: center;
  display: flex;
  gap: 7px;
  position: absolute;
  right: 12px;
  top: max(17px, calc(6px + env(safe-area-inset-top)));
}

.portal-avatar {
  align-items: center;
  background: #15253d;
  border: 0;
  border-radius: 50%;
  color: #fff;
  display: flex;
  height: 38px;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  width: 38px;
}

.portal-avatar .material-symbols-outlined {
  font-size: 19px;
}

.portal-avatar {
  background: #f3a0ca;
}

.portal-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.promoter-shell.is-authenticated .promoter-content {
  min-height: calc(100dvh - 82px);
  padding: 12px 16px calc(94px + env(safe-area-inset-bottom));
}

.promoter-shell.is-authenticated .portal-session-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.promoter-shell.is-authenticated .portal-panel {
  gap: 10px;
}

.promoter-shell.is-authenticated .portal-nav {
  bottom: max(10px, env(safe-area-inset-bottom));
  max-width: 364px;
  width: calc(100% - 26px);
}

.promoter-shell.is-authenticated .portal-nav button {
  min-height: 52px;
}

.promoter-shell.is-authenticated .privacy-footer,
.promoter-shell.is-authenticated .onboarding-guide {
  display: none;
}

@media (min-width: 421px) {
  .promoter-shell {
    box-shadow: 0 24px 80px rgb(0 0 0 / 35%);
  }
}

@media (max-width: 360px) {
  .promoter-content {
    padding-inline: 18px;
  }

  .promoter-hero {
    height: 248px;
    padding-inline: 20px;
  }

  .promoter-shell.is-authenticated .promoter-content {
    padding-inline: 12px;
  }

  .guide-steps li {
    gap: 8px;
    grid-template-columns: 46px 22px minmax(0, 1fr);
  }

  .guide-icon {
    font-size: 24px;
    height: 46px;
    width: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
