/* Shared by the app and public help pages. */
:root {
  --radius: 0.625rem;
  --background: #120f14;
  --foreground: #f5eee9;
  --card: #1a161d;
  --card-foreground: #f5eee9;
  --popover: #18141b;
  --popover-foreground: #f5eee9;
  --primary: #ff7a59;
  --primary-foreground: #140f12;
  --secondary: #201a22;
  --secondary-foreground: #f5eee9;
  --muted: #19151b;
  --muted-foreground: #b7abb1;
  --accent: #241c24;
  --accent-foreground: #f5eee9;
  --destructive: #ef4444;
  --border: #342a34;
  --input: #342a34;
  --ring: #ff7a59;
  --brand: #ff7a59;

  /* RGB decompositions for use in rgba() gradients/shadows */
  --primary-rgb: 255, 122, 89;
  --primary-light-rgb: 255, 148, 112;
  --background-rgb: 18, 15, 20;

  /* Warm overlay tints used in gradient layers */
  --surface-warm-rgb: 46, 28, 27;
  --surface-dark-rgb: 24, 19, 26;
  --surface-glow-rgb: 66, 36, 31;
  --surface-mid-rgb: 44, 28, 29;
  --surface-base: #18131a;
  --surface-deep: #100d12;

  /* Status/semantic colors */
  --tone-info: #7db8f5;
  --tone-info-bg: rgba(56, 140, 240, 0.10);
  --tone-info-border: rgba(56, 140, 240, 0.20);
  --tone-warning: #ffb26b;
  --tone-warning-bg: rgba(240, 160, 50, 0.12);
  --tone-warning-border: rgba(240, 160, 50, 0.22);
  --tone-success: #9dd8b6;
  --tone-success-bg: rgba(52, 200, 120, 0.10);
  --tone-success-border: rgba(52, 200, 120, 0.18);
  --tone-error: #f09494;
  --tone-error-bg: rgba(240, 80, 80, 0.10);
  --tone-error-border: rgba(240, 80, 80, 0.18);
}


@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-latin-B6Sd7_ZV.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  font-family: Manrope, Arial, sans-serif;
  color: var(--foreground);
  background: var(--background);
  color-scheme: dark;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 5px;
}
a svg,
button svg {
  vertical-align: middle;
}
button {
  cursor: pointer;
}
.shell {
  max-width: 1320px;
  margin: auto;
  padding: 0 52px;
}
header {
  height: 110px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  font-size: 32px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
  text-decoration: none;
}
.brand img {
  display: block;
  width: 4.9713378em;
  height: 0.80218em;
}
.header-label {
  border-left: 1px solid var(--border);
  padding-left: 24px;
  color: var(--muted-foreground);
  font-size: 15px;
}
header nav {
  margin-left: auto;
  display: flex;
  gap: 32px;
  align-items: center;
}
header nav a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
header nav a:hover {
  text-decoration: underline;
}
.search-wrap {
  margin-top: 60px;
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  color: var(--muted-foreground);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--surface-base), var(--background));
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.search-wrap input {
  width: 100%;
  border: 0;
  background: none;
  font-size: 23px;
  color: var(--foreground);
  outline-offset: 8px;
}
.search-wrap input::placeholder {
  color: var(--muted-foreground);
  opacity: 1;
}
kbd {
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--muted-foreground);
  padding: 0 8px;
  font-size: 14px;
}
.categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 54px;
  row-gap: 75px;
  margin: 74px 0 86px;
}
.category {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  text-decoration: none;
  border-radius: 12px;
  padding: 10px;
  margin: -10px;
  transition: background 0.15s;
}
.category:hover {
  background: rgba(255, 255, 255, 0.04);
}
.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, var(--accent), var(--surface-base));
  color: var(--primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.category h2 {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.45px;
  margin: 0 0 8px;
}
.category p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted-foreground);
  margin: 0;
}
.article-count {
  display: block;
  font-size: 12px;
  color: var(--muted-foreground);
  margin-top: 12px;
}
.support-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--border);
  padding: 32px 0 44px;
}
.support-banner h2 {
  font-size: 18px;
  margin: 0 0 4px;
}
.support-banner p {
  color: var(--muted-foreground);
  font-size: 14px;
  margin: 0;
}
.button {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border: 1px solid transparent;
  color: var(--primary-foreground);
  border-radius: 999px;
  transition: filter 0.15s;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.button:hover {
  filter: brightness(1.05);
}
.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
footer {
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--border);
  padding: 35px 0 40px;
  color: var(--muted-foreground);
  font-size: 11px;
}
footer .brand {
  font-size: 22px;
  color: var(--brand);
}
footer nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
}
footer a {
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted-foreground);
  margin: 30px 0 58px;
}
.breadcrumbs a {
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs svg {
  flex-shrink: 0;
}
h1 {
  font-size: 38px;
  line-height: 1.25;
  letter-spacing: -1.5px;
  font-weight: 650;
  margin: 0 0 20px;
}
.lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin: 0 0 26px;
}
.collection {
  max-width: 850px;
  min-height: 380px;
  margin: 0 auto 80px;
}
.collection > .category-icon {
  margin-bottom: 22px;
}
.article-list > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.article-list h2,
.article-list h3 {
  font-size: 18px;
  margin: 0 0 5px;
}
.article-list p {
  font-size: 14px;
  color: var(--muted-foreground);
  margin: 0;
}
.article-list > a:hover h2,
.article-list > a:hover h3 {
  text-decoration: underline;
}
.article-list svg {
  flex-shrink: 0;
}
.prose {
  max-width: 740px;
  margin: 0 auto 80px;
}
.prose > .category-icon {
  margin-bottom: 20px;
}
.prose h2 {
  font-size: 23px;
  line-height: 1.4;
  letter-spacing: -0.5px;
  margin-top: 40px;
  scroll-margin-top: 28px;
}
.prose p,
.prose li {
  color: var(--foreground);
}
.prose li {
  margin-bottom: 8px;
}
.prose a {
  color: var(--primary);
}
.page-toc {
  margin: 28px 0 36px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}
.page-toc span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
  margin-bottom: 10px;
}
.page-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.page-toc li {
  margin: 0;
}
.page-toc a {
  font-size: 14px;
  color: var(--foreground);
  text-decoration: none;
}
.page-toc a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.result-guide {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
  margin-bottom: 4px;
}
.support-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  margin: 0 0 90px;
}
.eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 20px;
}
.support-note {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding-top: 20px;
  max-width: 390px;
}
.support-note h2 {
  font-size: 16px;
}
.support-note p {
  font-size: 14px;
  color: var(--muted-foreground);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  text-underline-offset: 5px;
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
}
.form-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, var(--surface-base), var(--background));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  border-radius: 24px;
  padding: 30px;
}
.form-panel label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
}
.form-panel input,
.form-panel select,
.form-panel textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 11px 12px;
  font-size: 14px;
  color: var(--foreground);
  margin-bottom: 22px;
}
.form-panel select option {
  background: var(--card);
  color: var(--foreground);
}
.form-panel textarea {
  resize: vertical;
  min-height: 150px;
}
.form-panel ::placeholder {
  color: var(--muted-foreground);
}
.form-notice {
  font-size: 12px;
  color: var(--muted-foreground);
  margin: 0 0 20px;
}
.form-panel .button {
  width: 100%;
  margin-top: 16px;
}
#form-status {
  font-size: 13px;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}
#retry-support {
  margin-top: 20px;
}
#search-results {
  min-height: 260px;
  margin: 35px 0 65px;
}
#search-status {
  color: var(--muted-foreground);
  font-size: 14px;
}
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--background);
  padding: 10px;
  z-index: 10;
}
.skip:focus {
  top: 16px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .shell {
    max-width: 1440px;
  }
  .categories {
    row-gap: 90px;
    column-gap: 75px;
  }
  .category-icon {
    width: 72px;
    height: 72px;
  }
  .category h2 {
    font-size: 21px;
  }
  .category p {
    font-size: 16px;
  }
}
@media (max-width: 1000px) {
  .categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 38px;
  }
  .support-layout {
    gap: 40px;
  }
  .shell {
    padding: 0 32px;
  }
  .header-label {
    display: none;
  }
}
@media (max-width: 640px) {
  .shell {
    padding: 0 24px;
  }
  header {
    height: 88px;
  }
  .brand {
    font-size: 27px;
  }
  header nav {
    gap: 16px;
  }
  header nav a {
    font-size: 12px;
  }
  .contact-nav {
    display: none;
  }
  .search-wrap {
    margin-top: 25px;
    padding: 18px 16px;
    gap: 12px;
  }
  .search-wrap input {
    font-size: 18px;
  }
  kbd {
    display: none;
  }
  .categories {
    grid-template-columns: 1fr;
    gap: 32px;
    margin: 42px 0 52px;
  }
  .category {
    gap: 20px;
  }
  .category-icon {
    width: 55px;
    height: 55px;
  }
  .category h2 {
    font-size: 18px;
  }
  .category p {
    font-size: 14px;
  }
  .article-count {
    margin-top: 7px;
  }
  .support-banner {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px 0 32px;
  }
  footer {
    flex-wrap: wrap;
    gap: 14px;
  }
  footer nav {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    gap: 10px 18px;
  }
  .breadcrumbs {
    margin: 20px 0 36px;
    gap: 8px;
  }
  h1 {
    font-size: 31px;
  }
  .support-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
  }
  .support-note {
    display: none;
  }
  .form-panel {
    padding: 22px;
  }
  .lead {
    font-size: 16px;
  }
  .collection,
  .prose {
    margin-bottom: 50px;
  }
  .prose h2 {
    font-size: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
