/* App design/tokens.json and 2026-10-19 help template. Scoped to help / app mode. */
html.app-mode,
.help-page {
  --bg: #0c1721;
  --s1: #15252f;
  --line: #22333f;
  --text: #f4ecdc;
  --text2: #a9b5ba;
  --text3: #8a9aa2;
  --saf: #f2a93b;
  --saf-t: #f2a93b24;
  --saf-icon: #f2a93b1f;
  --saf-line: #f2a93b4d;
  --bg2: #101e2a;
  --s2: #1c3040;
  --line2: #33454f;
  --on-saf: #1e1407;
  --on: #3dd6a0;
}
html.app-mode body {
  background: var(--bg);
}
html.app-mode .header,
html.app-mode body > footer,
html.app-mode .language-menu,
html.app-mode .skip {
  display: none;
}
.help-page {
  max-width: 740px;
  margin: auto;
  padding: 32px 20px 40px;
  color: var(--text);
  font-family: var(--body);
  overflow-wrap: anywhere;
}
.help-page h1 {
  font-size: 1.6rem;
  margin: 0 0 18px;
}
.help-page .help-intro {
  color: var(--text2);
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0 0 14px;
}
.help-card {
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
}
.help-card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}
.help-card-head h2 {
  flex: 1 1 90px;
  min-width: 0;
  margin: 0;
  font: 700 0.96875rem/1.4 var(--body);
  letter-spacing: normal;
}
.help-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 11px;
  background: var(--saf-icon);
  border: 1px solid var(--saf-line);
  color: var(--saf);
}
.help-icon svg {
  width: 20px;
  height: 20px;
}
.help-badge {
  max-width: 100%;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 20px;
  background: var(--saf-t);
  color: var(--saf);
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: end;
}
.help-card dl {
  margin: 0;
}
.help-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
}
.help-row:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}
.help-row dt {
  flex: 1 1 0;
  color: var(--text2);
  font-size: 0.84375rem;
  min-width: 0;
}
.help-row dd {
  flex: 0 1 auto;
  max-width: 58%;
  min-width: 0;
  margin: 0;
  text-align: end;
  font-size: 0.875rem;
  font-weight: 600;
  unicode-bidi: plaintext;
}
.help-bullets {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  color: var(--text2);
  font-size: 0.84375rem;
  line-height: 1.6;
}
.help-bullets li {
  position: relative;
  padding-inline-start: 16px;
  margin: 0 0 8px;
}
.help-bullets li:last-child {
  margin-bottom: 0;
}
.help-bullets li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--saf);
}
.help-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  color: var(--text2);
  font-size: 0.78125rem;
  line-height: 1.55;
}
.help-note p {
  margin: 0;
}
.help-note svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: var(--text3);
  margin-top: 2px;
}
.help-links {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.help-page a {
  display: inline-block;
  padding: 10px 0;
  color: var(--saf);
  font-size: 0.875rem;
  text-underline-offset: 4px;
}
.help-page a:focus-visible,
.help-page button:focus-visible {
  outline: 2px solid var(--saf);
  outline-offset: 3px;
}
html.app-mode .help-page {
  padding-top: 12px;
}
/* The app owns the back button and page title. Keep the document heading accessible. */
html.app-mode .help-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
html.app-mode .legal,
html.app-mode .support-page {
  margin: auto;
  padding: 20px;
  max-width: 900px;
  overflow-wrap: anywhere;
}
html.app-mode .legal-head {
  padding-top: 0;
}
html.app-mode .legal-head .eyebrow {
  display: none;
}
html.app-mode .legal-head h1 {
  font-size: 1.5rem;
}
html.app-mode .legal-layout {
  display: block;
}
html.app-mode .legal-layout aside {
  display: none;
}
html.app-mode .legal article {
  background: var(--s1);
  color: var(--text);
  border-radius: 18px;
  padding: 18px;
}
html.app-mode .legal article p {
  color: var(--text2);
}
html.app-mode .legal article section {
  border-color: var(--line);
}
html.app-mode .legal article h2 {
  color: var(--text);
  font-size: 1.1rem;
}
html.app-mode .legal article a {
  color: var(--saf);
}
html.app-mode .policy-contact {
  border-color: var(--line);
}
@media (max-width: 430px) {
  html.app-mode .support-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  html.app-mode .legal-head {
    margin-bottom: 20px;
  }
}
html.app-mode .policy-contact {
  background: var(--bg);
}
html.app-mode .legal article h2 span {
  color: var(--saf);
}
.help-note + .help-card {
  margin-top: 12px;
}

/* Shared App-native controls for embedded (app=1) activity pages: App design tokens, .field / .chip / .btn / .card.
   Every control is drawn here (appearance:none) so nothing looks like a browser form. No H1 or site chrome:
   the App top bar already shows the page title. Page padding is 20 on both sides; the primary action lives in .am-bar. */
html.app-mode body {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
.am-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 20px 24px;
  color: var(--text);
  font-family: var(--body);
  overflow-wrap: anywhere;
}
.am-page.with-bar {
  padding-bottom: calc(110px + env(safe-area-inset-bottom));
}
.am-page [hidden] {
  display: none !important;
}
.am-card {
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
}
.am-grow {
  flex: 1;
  min-width: 0;
}
.am-cap {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.4;
}
.am-label {
  display: block;
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
}
.am-intro {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text2);
}
.am-field {
  display: block;
  width: 100%;
  height: 46px;
  box-sizing: border-box;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--s1);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}
.am-field::placeholder {
  color: var(--text3);
}
.am-field:focus {
  border-color: var(--saf-line);
}
select.am-field {
  padding-inline-end: 40px;
  cursor: pointer;
}
select.am-field:invalid {
  color: var(--text3);
}
select.am-field option {
  color: #1b2430;
}
.am-area {
  height: 96px;
  padding: 12px 14px;
  resize: none;
}
.am-select {
  position: relative;
}
.am-select .am-chev {
  position: absolute;
  inset-inline-end: 14px;
  top: 15px;
  color: var(--text2);
  pointer-events: none;
}
.am-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.am-chip {
  position: relative;
  display: inline-flex;
}
.am-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.am-chip span {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  background: rgba(244, 236, 220, 0.06);
  border: 1px solid rgba(244, 236, 220, 0.1);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text2);
  white-space: nowrap;
}
.am-chip input:checked + span {
  color: var(--saf);
  font-weight: 600;
  background: linear-gradient(
    180deg,
    rgba(242, 169, 59, 0.22),
    rgba(242, 169, 59, 0.1)
  );
  border-color: rgba(242, 169, 59, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 14px rgba(242, 169, 59, 0.18);
}
.am-chip input:focus-visible + span {
  outline: 2px solid var(--saf-line);
  outline-offset: 2px;
}
.am-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.am-btn.pri {
  background: var(--saf);
  color: var(--on-saf);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 4px 12px rgba(242, 169, 59, 0.16);
}
.am-btn.sec {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--line2);
}
.am-btn.sm {
  height: 34px;
  padding: 0 14px;
  font-size: 13.5px;
}
.am-btn.block {
  display: flex;
  width: 100%;
  height: 42px;
}
.am-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.am-btn.busy {
  opacity: 0.8;
  color: transparent;
  position: relative;
}
.am-btn.busy::after,
.am-spin {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid var(--on-saf);
  border-top-color: transparent;
  animation: am-rot 0.8s linear infinite;
  position: absolute;
}
.am-btn.busy::after {
  inset: 0;
  margin: auto;
}
@keyframes am-rot {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .am-btn.busy::after,
  .am-spin {
    animation-duration: 2.4s;
  }
}
.am-loading {
  position: relative;
  height: 120px;
}
.am-loading .am-spin {
  inset: 0;
  margin: auto;
  border-color: var(--saf);
  border-top-color: transparent;
}
.am-acct {
  display: flex;
  align-items: center;
  gap: 12px;
}
.am-avatar {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--s2);
  display: grid;
  place-items: center;
}
.am-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.am-avatar b {
  font-weight: 700;
}
.am-nick {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.3;
}
.am-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 12px;
  background: var(--saf-t);
  color: var(--saf);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.am-pill.lg {
  height: 26px;
  padding: 0 11px;
  border-radius: 13px;
  margin-top: 14px;
}
.am-iw {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--saf);
  background: rgba(242, 169, 59, 0.14);
  box-shadow: inset 0 0 0 1px rgba(242, 169, 59, 0.3);
}
.am-iw.lg {
  width: 64px;
  height: 64px;
  margin: 0 auto;
}
.am-iw.ok {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  color: var(--on);
  background: rgba(61, 214, 160, 0.14);
  box-shadow: inset 0 0 0 1px rgba(61, 214, 160, 0.3);
}
.am-done {
  margin-top: 14px;
  padding: 26px 18px;
  text-align: center;
}
.am-done h2,
.am-center h2 {
  margin: 14px 0 0;
  font-family: var(--body);
  font-size: 18px;
  font-weight: 600;
}
.am-done p,
.am-center p {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text2);
}
.am-center {
  padding: 82px 12px 0;
  text-align: center;
}
.am-center h2 {
  font-size: 19px;
  margin-top: 16px;
}
.am-center .am-btn {
  margin-top: 22px;
}
.am-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}
.am-file-name {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.am-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  font-size: 14px;
  cursor: pointer;
}
.am-agree {
  position: relative;
}
.am-agree input {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 0;
  appearance: none;
  -webkit-appearance: none;
}
.am-box {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--line2);
  color: transparent;
}
.am-agree input:checked + .am-box {
  background: var(--saf);
  border-color: var(--saf);
  color: var(--on-saf);
}
.am-agree input:focus-visible + .am-box {
  outline: 2px solid var(--saf-line);
  outline-offset: 2px;
}
.am-privacy {
  margin: 14px 0 0;
}
.am-privacy a {
  color: var(--saf);
  text-decoration: none;
}
.am-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 5;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.am-bar .am-btn {
  max-width: 528px;
  margin: 0 auto;
}
.am-toast {
  position: fixed;
  inset-inline: 20px;
  bottom: calc(90px + env(safe-area-inset-bottom));
  z-index: 6;
  margin: 0 auto;
  max-width: 420px;
  padding: 11px 16px;
  border-radius: 14px;
  background: var(--s2);
  border: 1px solid var(--line2);
  font-size: 13.5px;
  text-align: center;
}

/* Agreement pages (privacy, terms, community, …) in the App: no H1 (the sheet title row shows it), "last updated" as a
   caption on top, sections inside one s1 card separated by 1px lines, saf numbers that never wrap. */
html.app-mode .legal > .legal-head h1,
html.app-mode .support-page > .legal-head h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
html.app-mode .legal,
html.app-mode .support-page {
  padding: 8px 20px 24px;
}
html.app-mode .legal-head {
  margin-bottom: 12px;
}
html.app-mode .legal-head p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text3);
}
html.app-mode .legal-layout article {
  padding: 0 16px;
}
html.app-mode .legal-layout section + section {
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
html.app-mode .legal article section {
  padding: 14px 0;
}
html.app-mode .legal article section:first-child {
  padding-top: 14px;
  border-top: 0;
}
html.app-mode .legal article h2 {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}
html.app-mode .legal article h2 span {
  flex: none;
  white-space: nowrap;
  color: var(--saf);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
html.app-mode .legal article p {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.6;
}
html.app-mode .legal .policy-contact {
  margin-top: 16px;
  padding: 16px;
  background: var(--s1);
  border: 1px solid var(--line);
  color: var(--text);
}
html.app-mode .legal .policy-contact a {
  color: var(--saf);
}
html.app-mode .legal .policy-contact .button {
  border-color: var(--line2);
  color: var(--text);
}

/* Support / account deletion request form in the App: App controls instead of paper cards, send button in a fixed bar. */
html.app-mode .support-page .legal-head p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text2);
}
html.app-mode .support-grid {
  display: block;
  margin-top: 0;
}
html.app-mode .support-grid > section {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
}
html.app-mode .support-grid > section + section {
  margin-top: 28px;
}
html.app-mode .support-grid > section.tracking {
  padding: 16px;
  border-radius: 18px;
  background: var(--s1);
  border: 1px solid var(--line);
}
html.app-mode .support-grid h2 {
  font-size: 15px;
  margin: 0;
}
html.app-mode #request-form > h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
html.app-mode .support-grid label {
  display: block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
}
html.app-mode .support-grid label > input,
html.app-mode .support-grid label > select,
html.app-mode .support-grid label > textarea {
  display: block;
  margin-top: 8px;
}
html.app-mode .support-grid input,
html.app-mode .support-grid select,
html.app-mode .support-grid textarea,
html.app-mode .support-grid .tracking input {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--s1);
  color: var(--text);
  font: 15px/1.5 var(--body);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}
html.app-mode .support-grid .tracking input {
  background: var(--bg);
}
html.app-mode .support-grid input:focus,
html.app-mode .support-grid select:focus,
html.app-mode .support-grid textarea:focus {
  border-color: var(--saf-line);
}
html.app-mode .support-grid textarea {
  height: 120px;
  padding: 12px 14px;
  resize: none;
}
html.app-mode .support-grid select {
  padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9b5ba' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px;
  background-position: right 14px center;
}
html.app-mode[dir="rtl"] .support-grid select {
  background-position: left 14px center;
}
html.app-mode .support-grid select:disabled {
  opacity: 0.7;
}
html.app-mode .support-grid .check {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  align-items: flex-start;
}
html.app-mode .support-grid .check input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  padding: 0;
  margin: 0;
  flex: none;
  border-radius: 6px;
  border: 1.5px solid var(--line2);
  background: transparent;
}
html.app-mode .support-grid .check input:checked {
  background: var(--saf)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e1407' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 13px no-repeat;
  border-color: var(--saf);
}
html.app-mode .support-grid .check a,
html.app-mode .support-grid .field-note a {
  color: var(--saf);
}
html.app-mode .support-grid .field-note,
html.app-mode .support-grid .tracking .field-note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text3);
}
html.app-mode .support-grid .cf-turnstile {
  margin-top: 14px;
  background: transparent;
  min-height: 0;
}
html.app-mode .support-grid .error {
  margin-top: 10px;
  color: #ec5e66;
  font-size: 13px;
}
html.app-mode #request-form {
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
}
html.app-mode #request-form .form-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 5;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
}
html.app-mode .support-grid .button {
  min-height: 0;
  height: 42px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.5px solid var(--line2);
  background: transparent;
  color: var(--text);
  font: 600 14.5px var(--body);
  margin-top: 14px;
}
html.app-mode .support-grid .button.primary,
html.app-mode #request-form .form-bar .button {
  display: flex;
  width: 100%;
  height: 48px;
  margin: 0 auto;
  max-width: 520px;
  align-items: center;
  justify-content: center;
  background: var(--saf);
  border-color: var(--saf);
  color: var(--on-saf);
}
html.app-mode .support-grid .button:disabled {
  opacity: 0.45;
}
html.app-mode .support-grid .tracking .button {
  color: var(--text);
}
html.app-mode #receipt {
  text-align: center;
  padding: 26px 18px;
  border-radius: 18px;
  background: var(--s1);
  border: 1px solid var(--line);
}
