:root,
[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #0c0b09;
  --surface: #12100d;
  --surface-raised: #17140f;
  --text-strong: #f1ede5;
  --text-body: #cbc5ba;
  --text-muted: #8f897f;
  --text-faint: #656059;
  --accent: #d4b36a;
  --accent-light: #ead39c;
  --accent-deep: #9c712b;
  --accent-text: var(--accent-light);
  --line: rgba(234, 211, 156, .15);
  --line-strong: rgba(234, 211, 156, .30);
  --page-glow-primary: rgba(212, 179, 106, .055);
  --page-glow-secondary: rgba(212, 179, 106, .03);
  --button-primary-bg: #d4b36a;
  --button-primary-hover: #ead39c;
  --button-primary-text: #1a140b;
  --button-secondary-bg: rgba(212, 179, 106, .02);
  --button-secondary-hover: rgba(212, 179, 106, .07);
  --image-border: rgba(234, 211, 156, .15);
  --image-shadow: 0 30px 90px rgba(0, 0, 0, .26);
  --toggle-bg: rgba(255, 255, 255, .025);
  --toggle-active: rgba(212, 179, 106, .14);
  --toggle-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
  --field-bg: rgba(255, 255, 255, .025);
  --image-radius: 30px;
}

[data-theme="light"] {
  color-scheme: light;
  --page-bg: #f5f1e9;
  --surface: #fbf8f2;
  --surface-raised: #fffdf8;
  --text-strong: #1b1916;
  --text-body: #48433c;
  --text-muted: #70685d;
  --text-faint: #918778;
  --accent: #b98735;
  --accent-light: #d0a95d;
  --accent-deep: #835a1b;
  --accent-text: #a87322;
  --line: rgba(108, 78, 31, .14);
  --line-strong: rgba(108, 78, 31, .26);
  --page-glow-primary: rgba(185, 135, 53, .10);
  --page-glow-secondary: rgba(255, 255, 255, .78);
  --button-primary-bg: #b88635;
  --button-primary-hover: #a9792f;
  --button-primary-text: #fffaf0;
  --button-secondary-bg: rgba(255, 255, 255, .50);
  --button-secondary-hover: rgba(185, 135, 53, .08);
  --image-border: rgba(128, 91, 32, .16);
  --image-shadow: 0 32px 88px rgba(91, 65, 28, .15);
  --toggle-bg: rgba(255, 255, 255, .52);
  --toggle-active: #fffdf8;
  --toggle-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 7px 20px rgba(83, 62, 28, .08);
  --field-bg: rgba(255, 255, 255, .52);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--page-bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  color: var(--text-strong);
  background: var(--page-bg);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.page {
  min-height: 100svh;
  padding-inline: clamp(22px, 3.5vw, 58px);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 17%, var(--page-glow-primary), transparent 28%),
    radial-gradient(circle at 76% 38%, var(--page-glow-secondary), transparent 31%),
    var(--page-bg);
}

.site-header {
  min-height: 92px;
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 30px;
  letter-spacing: -.04em;
}

.brand img {
  width: 49px;
  height: 55px;
  display: block;
  object-fit: contain;
}

[data-theme="light"] .brand img {
  filter: brightness(.72) saturate(1.45) contrast(1.12);
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3vw, 44px);
  color: var(--text-muted);
  font-size: 11px;
}

.desktop-nav a,
.site-footer a {
  position: relative;
  padding-block: 11px;
  transition: color .22s ease;
}

.desktop-nav a::after {
  content: "";
  height: 1px;
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"],
.site-footer a:hover {
  color: var(--text-strong);
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.theme-toggle {
  width: 72px;
  height: 36px;
  padding: 3px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  color: var(--text-muted);
  background: var(--toggle-bg);
  border: 1px solid var(--line);
  border-radius: 99px;
  box-shadow: var(--toggle-shadow);
  cursor: pointer;
}

.theme-toggle::before {
  content: "";
  width: 28px;
  height: 28px;
  position: absolute;
  top: 3px;
  left: 3px;
  background: var(--toggle-active);
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translateX(0);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}

[data-theme="light"] .theme-toggle::before {
  transform: translateX(35px);
}

.theme-icon {
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--text-muted);
}

[data-theme="dark"] .theme-icon-moon,
[data-theme="light"] .theme-icon-sun {
  color: var(--accent-text);
}

.theme-icon-moon::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: -3px 1px 0 0 currentColor;
  transform: translateX(2px);
}

.theme-icon-sun::before {
  content: "";
  width: 7px;
  height: 7px;
  position: absolute;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.theme-icon-sun::after {
  content: "";
  width: 17px;
  height: 17px;
  position: absolute;
  background: repeating-conic-gradient(
    from 0deg,
    currentColor 0deg 5deg,
    transparent 5deg 45deg
  );
  -webkit-mask: radial-gradient(circle, transparent 0 6px, #000 6.5px);
  mask: radial-gradient(circle, transparent 0 6px, #000 6.5px);
}

.menu-toggle,
.mobile-nav {
  display: none;
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(500px, 1fr) minmax(400px, 512px);
  align-items: center;
  gap: clamp(48px, 7vw, 108px);
  padding: 38px clamp(0px, 2vw, 30px) 34px;
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(80px, 7.2vw, 115px);
  font-weight: 500;
  line-height: .83;
  letter-spacing: -.075em;
}

.hero h1 em {
  color: var(--accent-text);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 400;
}

.intro {
  max-width: 590px;
  margin-top: 39px;
}

.intro p {
  margin: 0;
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.52;
}

.intro p + p {
  margin-top: 4px;
  color: var(--text-muted);
}

.cta-area {
  max-width: 484px;
  margin-top: 38px;
}

.cta-row {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 12px;
}

.cta-button {
  min-height: 59px;
  display: grid;
  place-items: center;
  padding: 0 22px;
  border-radius: 5px;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 18px;
  letter-spacing: -.01em;
  cursor: pointer;
  transition:
    transform .25s ease,
    border-color .25s ease,
    background-color .25s ease,
    box-shadow .25s ease;
}

.cta-login {
  color: var(--button-primary-text);
  background: var(--button-primary-bg);
  border: 1px solid var(--accent-light);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .30),
    0 14px 34px rgba(117, 80, 25, .14);
}

.cta-register {
  color: var(--text-strong);
  background: var(--button-secondary-bg);
  border: 1px solid rgba(185, 135, 53, .64);
}

.cta-button:hover {
  transform: translateY(-2px);
}

.cta-login:hover {
  background: var(--button-primary-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .36),
    0 18px 40px rgba(117, 80, 25, .19);
}

.cta-register:hover {
  background: var(--button-secondary-hover);
  border-color: var(--accent-light);
}

.cta-area > p {
  margin: 12px 0 0;
  color: var(--text-faint);
  font-size: 9px;
}

.hero-media {
  width: 100%;
  max-width: 512px;
  margin: 0;
  justify-self: end;
}

.hero-media-frame {
  width: 100%;
  aspect-ratio: 1122 / 1402;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--image-border);
  border-radius: var(--image-radius);
  background: #2a2116;
  box-shadow: var(--image-shadow);
  isolation: isolate;
}

.hero-media-frame img {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  display: block;
  object-fit: contain;
}

.hero-media-frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 59%, rgba(19, 13, 7, .47) 100%),
    linear-gradient(90deg, rgba(10, 8, 5, .07), transparent 28%);
}

.hero-media figcaption {
  position: absolute;
  z-index: 3;
  left: 28px;
  bottom: 27px;
  padding-left: 17px;
  border-left: 1px solid rgba(234, 211, 156, .72);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .32);
}

.hero-media figcaption p {
  margin: 0;
  color: #fffaf1;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 21px;
  line-height: 1.08;
}

.process-section {
  min-height: 274px;
  display: grid;
  grid-template-columns: minmax(220px, .36fr) 1fr;
  align-items: center;
  gap: clamp(42px, 6vw, 92px);
  padding: 48px clamp(0px, 2vw, 30px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-heading > p,
.section-kicker {
  margin: 0;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.process-heading h2 {
  margin: 14px 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 400;
  letter-spacing: -.04em;
}

.process-rail {
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 58px);
  list-style: none;
}

.process-rail::before {
  content: "";
  height: 1px;
  position: absolute;
  top: 7px;
  right: 0;
  left: 0;
  background: linear-gradient(90deg, var(--accent), var(--line-strong));
}

.process-rail li {
  min-width: 0;
}

.process-node {
  width: 15px;
  height: 15px;
  position: relative;
  z-index: 1;
  display: block;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--page-bg);
  box-shadow: inset 0 0 0 4px var(--page-bg);
}

.process-rail li:last-child .process-node,
.detailed-process article:last-child .process-node {
  background: var(--accent);
}

.process-rail h3 {
  margin: 25px 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 21px;
  font-weight: 400;
}

.process-rail p {
  max-width: 220px;
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.site-footer {
  min-height: 114px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  color: var(--text-muted);
  font-size: 10px;
}

.site-footer > p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.content-page {
  display: flex;
  flex-direction: column;
}

.content-page .site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.content-main {
  width: min(100%, 1160px);
  margin-inline: auto;
  padding: clamp(72px, 8vw, 120px) 0 clamp(82px, 9vw, 138px);
}

.content-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(330px, .58fr);
  column-gap: clamp(64px, 9vw, 150px);
}

.content-hero .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: 22px;
}

.content-hero h1 {
  margin: 0;
  font-size: clamp(62px, 6.6vw, 102px);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.07em;
}

.content-hero > p:last-child {
  align-self: end;
  margin: 0 0 8px;
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.65;
}

.editorial-grid {
  margin-top: clamp(86px, 10vw, 150px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.editorial-grid article {
  padding: 36px clamp(0px, 3vw, 42px) 0;
}

.editorial-grid article:first-child {
  padding-left: 0;
}

.editorial-grid article + article {
  border-left: 1px solid var(--line);
}

.editorial-grid h2,
.detailed-process h2,
.legal-content h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 24px;
  font-weight: 400;
}

.editorial-grid p,
.detailed-process article > p:last-child,
.legal-content p {
  margin: 13px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.62;
}

.detailed-process {
  margin-top: clamp(84px, 9vw, 138px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 6vw, 84px);
}

.detailed-process::before {
  content: "";
  height: 1px;
  position: absolute;
  top: 7px;
  right: 0;
  left: 0;
  background: linear-gradient(90deg, var(--accent), var(--line));
}

.detailed-process article {
  min-width: 0;
}

.detailed-process .section-kicker {
  margin-top: 30px;
}

.detailed-process h2 {
  margin-top: 12px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(430px, .9fr) minmax(360px, .62fr);
  gap: clamp(72px, 10vw, 150px);
}

.contact-layout .content-hero {
  display: block;
}

.contact-layout .content-hero h1 {
  margin-top: 22px;
}

.contact-layout .content-hero > p:last-child {
  max-width: 510px;
  margin-top: 38px;
}

.contact-form {
  align-self: start;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  gap: 23px;
  background: linear-gradient(145deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .08);
}

.contact-form label {
  display: grid;
  gap: 9px;
}

.contact-form label > span {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  color: var(--text-strong);
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: none;
}

.contact-form input {
  min-height: 48px;
  padding: 0 14px;
}

.contact-form textarea {
  min-height: 132px;
  padding: 14px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(185, 135, 53, .10);
}

.contact-form .cta-button {
  width: 100%;
}

.form-status {
  min-height: 16px;
  margin: -7px 0 0;
  color: var(--text-muted);
  font-size: 11px;
}

.legal-main .content-hero {
  padding-bottom: clamp(70px, 8vw, 112px);
  border-bottom: 1px solid var(--line);
}

.legal-content {
  width: min(100%, 780px);
  margin: clamp(64px, 7vw, 100px) auto 0;
  display: grid;
  gap: 44px;
}

.legal-content article + article {
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.brand:focus-visible,
.desktop-nav a:focus-visible,
.theme-toggle:focus-visible,
.menu-toggle:focus-visible,
.cta-button:focus-visible,
.site-footer a:focus-visible,
.mobile-nav a:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 4px;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
    padding: 0;
    position: relative;
    display: grid;
    place-items: center;
    color: var(--text-strong);
    background: var(--toggle-bg);
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
  }

  .menu-toggle span,
  .menu-toggle::before,
  .menu-toggle::after {
    content: "";
    width: 13px;
    height: 1px;
    position: absolute;
    background: currentColor;
    transition: transform .22s ease, opacity .22s ease;
  }

  .menu-toggle::before {
    transform: translateY(-4px);
  }

  .menu-toggle::after {
    transform: translateY(4px);
  }

  .menu-toggle[aria-expanded="true"] span {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"]::before {
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"]::after {
    transform: rotate(-45deg);
  }

  .mobile-nav {
    padding: 18px;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    gap: 3px;
    min-width: 210px;
    color: var(--text-body);
    background: color-mix(in srgb, var(--surface-raised) 94%, transparent);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
    backdrop-filter: blur(18px);
  }

  .mobile-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-nav a {
    padding: 12px 13px;
    border-radius: 7px;
    font-size: 13px;
  }

  .mobile-nav a:hover,
  .mobile-nav a[aria-current="page"] {
    background: var(--toggle-active);
  }

  .hero {
    grid-template-columns: minmax(390px, 1fr) minmax(330px, 440px);
    gap: 48px;
  }

  .content-hero {
    grid-template-columns: 1fr;
  }

  .content-hero > p:last-child {
    max-width: 610px;
    margin-top: 40px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-form {
    width: min(100%, 660px);
  }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 46px;
    padding-top: 64px;
  }

  .hero-media {
    width: min(100%, 512px);
    justify-self: center;
  }

  .process-section {
    grid-template-columns: 1fr;
  }

  .process-rail {
    margin-top: 8px;
  }

  .editorial-grid,
  .detailed-process {
    grid-template-columns: 1fr;
  }

  .editorial-grid article {
    padding: 30px 0;
  }

  .editorial-grid article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .detailed-process {
    padding-left: 28px;
    gap: 42px;
  }

  .detailed-process::before {
    width: 1px;
    height: auto;
    top: 7px;
    right: auto;
    bottom: 7px;
    left: 7px;
  }
}

@media (max-width: 700px) {
  .page {
    padding-inline: 16px;
  }

  .site-header {
    min-height: 68px;
  }

  .brand {
    gap: 5px;
    font-size: 25px;
  }

  .brand img {
    width: 41px;
    height: 46px;
  }

  .header-actions {
    gap: 7px;
  }

  .theme-toggle {
    width: 66px;
    height: 34px;
  }

  .theme-toggle::before {
    width: 26px;
    height: 26px;
  }

  [data-theme="light"] .theme-toggle::before {
    transform: translateX(32px);
  }

  .theme-icon {
    width: 26px;
    height: 26px;
  }

  .menu-toggle {
    width: 34px;
    height: 34px;
  }

  .mobile-nav {
    right: 0;
    left: 0;
  }

  .hero {
    min-height: 0;
    gap: 38px;
    padding: 35px 2px 42px;
  }

  .hero h1 {
    font-size: clamp(57px, 16vw, 68px);
    line-height: .85;
  }

  .intro {
    margin-top: 25px;
  }

  .intro p {
    font-size: 14px;
  }

  .intro p + p {
    display: none;
  }

  .cta-area {
    width: 100%;
    margin-top: 25px;
  }

  .cta-row {
    gap: 9px;
  }

  .cta-button {
    min-height: 55px;
    padding: 0 12px;
    font-size: 16px;
  }

  .hero-media {
    width: min(100%, 420px);
  }

  .hero-media-frame {
    border-radius: 22px;
  }

  .hero-media figcaption {
    left: 17px;
    bottom: 17px;
    padding-left: 12px;
  }

  .hero-media figcaption p {
    font-size: 17px;
  }

  .process-section {
    gap: 38px;
    padding: 44px 2px 50px;
  }

  .process-heading h2 {
    font-size: 36px;
  }

  .process-rail {
    padding-left: 28px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .process-rail::before {
    width: 1px;
    height: auto;
    top: 7px;
    right: auto;
    bottom: 7px;
    left: 7px;
  }

  .process-node {
    position: absolute;
    left: 0;
  }

  .process-rail h3 {
    margin-top: 0;
  }

  .process-rail p {
    max-width: 320px;
  }

  .site-footer {
    min-height: 150px;
    padding-block: 30px;
    flex-direction: column-reverse;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
  }

  .site-footer nav {
    width: 100%;
    gap: 21px;
    flex-wrap: wrap;
  }

  .content-main {
    padding: 64px 2px 84px;
  }

  .content-hero h1 {
    font-size: clamp(54px, 15vw, 68px);
  }

  .content-hero > p:last-child {
    margin-top: 32px;
    font-size: 14px;
  }

  .editorial-grid,
  .detailed-process {
    margin-top: 68px;
  }

  .contact-form {
    padding: 25px 20px;
  }

  .legal-content {
    margin-top: 58px;
    gap: 34px;
  }

  .legal-content article + article {
    padding-top: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .theme-toggle::before,
  .menu-toggle span,
  .menu-toggle::before,
  .menu-toggle::after,
  .mobile-nav,
  .cta-button {
    transition: none;
  }
}

/* Applo application surfaces */

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--button-primary-text);
  background: var(--button-primary-bg);
  border-radius: 5px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.form-main,
.dashboard-main {
  width: min(100%, 1160px);
  margin-inline: auto;
}

.form-main {
  min-height: calc(100svh - 206px);
  display: grid;
  place-items: center;
  padding: clamp(58px, 8vw, 108px) 0;
}

.form-card {
  width: min(100%, 560px);
  padding: clamp(30px, 5vw, 54px);
  background:
    linear-gradient(145deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .12);
}

.form-card h1,
.dashboard-heading h1,
.dashboard-main > h1 {
  margin: 15px 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.055em;
}

.form-intro,
.dashboard-heading p,
.dashboard-lead {
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.form-card form,
.panel form {
  margin-top: 30px;
  display: grid;
  gap: 19px;
}

.form-card label,
.panel label,
.message-card label {
  display: grid;
  gap: 8px;
}

.form-card label > span,
.panel label > span,
.message-card label > span {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.form-card input,
.panel input:not([type="checkbox"]),
.panel select,
.message-card select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--text-strong);
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: none;
}

.form-card input:focus,
.panel input:focus,
.panel select:focus,
.message-card select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(185, 135, 53, .10);
}

.form-card small,
.panel-note {
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.5;
}

.form-aside {
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}

.form-aside a,
.back-link,
.message-card a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color .2s ease;
}

.form-aside a:hover,
.back-link:hover,
.message-card a:hover {
  text-decoration-color: currentColor;
}

.alert,
.success {
  margin-top: 24px;
  padding: 14px 16px;
  color: var(--text-body);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
}

.alert,
.alert-text {
  border-color: rgba(194, 95, 72, .48);
}

.success,
.success-text {
  border-color: rgba(122, 164, 105, .48);
}

.alert-text {
  color: #d69b8b;
}

.success-text {
  color: #9fbd91;
}

[data-theme="light"] .alert-text {
  color: #8c3f2c;
}

[data-theme="light"] .success-text {
  color: #416b31;
}

.registration-closed {
  margin-top: 30px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.registration-closed h2,
.empty-state h2,
.panel h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 26px;
  font-weight: 400;
}

.registration-closed p,
.empty-state p {
  margin: 11px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.compact-button {
  min-height: 46px;
  padding-inline: 22px;
  font-size: 15px;
}

.inline-button {
  width: fit-content;
  min-width: 190px;
  margin-top: 34px;
}

.dashboard-main {
  min-height: calc(100svh - 206px);
  padding: clamp(66px, 8vw, 112px) 0 clamp(84px, 10vw, 140px);
}

.dashboard-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.dashboard-heading h1 {
  font-size: clamp(48px, 6vw, 78px);
}

.dashboard-heading p {
  max-width: 640px;
}

.app-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.app-card,
.panel,
.empty-state,
.message-card {
  background: linear-gradient(145deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--line);
  border-radius: 16px;
}

.app-card {
  min-height: 260px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, border-color .22s ease;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.app-status {
  color: var(--accent-text);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.app-card h2 {
  margin: 22px 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 29px;
  font-weight: 400;
}

.app-card p {
  margin: 12px 0 30px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.app-card strong {
  margin-top: auto;
  color: var(--accent-text);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 16px;
  font-weight: 400;
}

.empty-state {
  margin-top: 42px;
  padding: clamp(28px, 4vw, 44px);
}

.dashboard-narrow {
  width: min(100%, 800px);
}

.dashboard-narrow .section-kicker {
  margin-top: 50px;
}

.back-link {
  font-size: 12px;
}

.admin-main {
  width: min(100%, 1320px);
}

.admin-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.panel {
  padding: clamp(24px, 3vw, 36px);
}

.panel h2 {
  margin-top: 12px;
}

.check {
  min-height: 44px;
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px !important;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.check > span {
  color: var(--text-body) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.table-panel {
  margin-top: 18px;
}

.table-wrap {
  width: 100%;
  margin-top: 28px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 12px;
}

th,
td {
  padding: 15px;
  color: var(--text-body);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

thead th {
  color: var(--text-muted);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody th small {
  margin-top: 4px;
  display: block;
  color: var(--text-faint);
  font-weight: 400;
}

.access-form {
  min-width: 100px;
  margin: 0 !important;
  gap: 8px !important;
}

.small-button {
  min-height: 32px;
  padding: 0 12px;
  color: var(--text-strong);
  background: var(--button-secondary-bg);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  cursor: pointer;
}

.token-result {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.token-result code {
  color: var(--accent-text);
  overflow-wrap: anywhere;
}

.message-list {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.message-card {
  padding: 22px;
}

.message-card header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.message-card h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
}

.message-card a,
.message-card time {
  color: var(--text-muted);
  font-size: 11px;
}

.message-card > p {
  margin: 20px 0;
  color: var(--text-body);
  font-size: 13px;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.message-card form {
  margin: 0;
  display: flex;
  align-items: end;
  gap: 10px;
}

.message-card select {
  min-height: 34px;
}

.brand:focus-visible,
.form-aside a:focus-visible,
.back-link:focus-visible,
.app-card:focus-visible,
.small-button:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .form-main,
  .dashboard-main {
    min-height: 0;
    padding: 46px 0 72px;
  }

  .form-card {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .form-card h1,
  .dashboard-heading h1,
  .dashboard-main > h1 {
    font-size: 45px;
  }

  .dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .app-card {
    min-height: 220px;
  }

  .panel {
    padding: 23px 18px;
  }

  .message-card header,
  .message-card form {
    align-items: flex-start;
    flex-direction: column;
  }

  .message-card form,
  .message-card form label {
    width: 100%;
  }

  .inline-button {
    width: 100%;
  }
}

/* Applo 2.1: clearer contact feedback and direct administration */

select {
  color: var(--text-strong);
  background-color: var(--surface-raised);
}

[data-theme="dark"] select,
[data-theme="dark"] select option {
  color: #f1ede5;
  background-color: #17140f;
}

[data-theme="light"] select,
[data-theme="light"] select option {
  color: #1b1916;
  background-color: #fffdf8;
}

select:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: .64;
}

.contact-success,
.contact-error {
  padding: 19px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 14px;
  border: 1px solid;
  border-radius: 10px;
}

.contact-success {
  color: var(--text-body);
  background: color-mix(in srgb, #7aa469 9%, var(--surface));
  border-color: color-mix(in srgb, #7aa469 58%, var(--line));
  box-shadow: 0 16px 42px rgba(59, 91, 48, .09);
}

.contact-error {
  color: var(--text-body);
  background: color-mix(in srgb, #c25f48 8%, var(--surface));
  border-color: color-mix(in srgb, #c25f48 58%, var(--line));
}

.contact-success-icon {
  width: 27px;
  height: 27px;
  position: relative;
  display: block;
  border: 1px solid #87a979;
  border-radius: 50%;
}

.contact-success-icon::after {
  content: "";
  width: 9px;
  height: 5px;
  position: absolute;
  top: 8px;
  left: 8px;
  border-bottom: 2px solid #87a979;
  border-left: 2px solid #87a979;
  transform: rotate(-45deg);
}

.contact-success strong,
.contact-error strong {
  display: block;
  color: var(--text-strong);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 19px;
  font-weight: 400;
}

.contact-success p,
.contact-error p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.contact-success:focus {
  outline: 2px solid var(--accent-light);
  outline-offset: 4px;
}

.contact-form[aria-busy="true"] .cta-button {
  position: relative;
  padding-right: 48px;
}

.contact-form[aria-busy="true"] .cta-button::after {
  content: "";
  width: 14px;
  height: 14px;
  position: absolute;
  right: 22px;
  border: 1px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: applo-spin .75s linear infinite;
}

@keyframes applo-spin {
  to { transform: rotate(360deg); }
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
}

.panel-heading .panel-note {
  max-width: 520px;
  margin: 0;
  text-align: right;
}

.management-section {
  padding: clamp(25px, 3.5vw, 42px);
}

.management-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.management-card {
  min-width: 0;
  padding: clamp(21px, 2.8vw, 30px);
  background: color-mix(in srgb, var(--surface-raised) 74%, transparent);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.management-card-new {
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.management-card h3 {
  margin: 10px 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 25px;
  font-weight: 400;
}

.management-card form {
  margin-top: 23px;
  display: grid;
  gap: 15px;
}

.management-card label {
  display: grid;
  gap: 8px;
}

.management-card label > span {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.management-card input,
.management-card select,
.management-card textarea {
  width: 100%;
  color: var(--text-strong);
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: none;
}

.management-card input,
.management-card select {
  min-height: 44px;
  padding: 0 13px;
}

.management-card textarea {
  min-height: 90px;
  padding: 12px 13px;
  resize: vertical;
  font: inherit;
  font-size: 12px;
  line-height: 1.55;
}

.management-card input:focus,
.management-card select:focus,
.management-card textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(185, 135, 53, .10);
}

.management-save {
  width: fit-content;
  min-height: 39px;
  margin-top: 3px;
  padding-inline: 17px;
}

.user-management-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.user-card-heading {
  min-height: 78px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
}

.user-card-heading p:not(.section-kicker) {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.status-pill,
.owner-access {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  color: var(--text-muted);
  background: var(--button-secondary-bg);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 9px;
  white-space: nowrap;
}

.status-active {
  color: #9fbd91;
  border-color: rgba(122, 164, 105, .35);
}

[data-theme="light"] .status-active {
  color: #416b31;
}

.status-disabled {
  color: #d69b8b;
  border-color: rgba(194, 95, 72, .35);
}

[data-theme="light"] .status-disabled {
  color: #8c3f2c;
}

.management-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 1080px) {
  .user-management-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .panel-heading .panel-note {
    max-width: none;
    text-align: left;
  }

  .management-grid,
  .user-management-grid {
    grid-template-columns: 1fr;
  }

  .management-form-row {
    grid-template-columns: 1fr;
  }

  .management-save {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-form[aria-busy="true"] .cta-button::after {
    animation: none;
  }
}

/* Applo 3.2.0 – app onboarding and in-product documentation */
button,
input,
textarea,
select {
  font: inherit;
}

.dashboard-wide {
  width: min(1440px, 100%);
}

.heading-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.onboarding-layout {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: start;
}

.wizard-nav {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 8px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.wizard-nav button {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
}

.wizard-nav button span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--text-faint);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 11px;
}

.wizard-nav button:hover,
.wizard-nav button[aria-current="step"] {
  color: var(--text-strong);
  background: var(--button-secondary-hover);
}

.wizard-nav button[aria-current="step"] span {
  color: var(--button-primary-text);
  background: var(--button-primary-bg);
  border-color: transparent;
}

.wizard-form {
  min-width: 0;
  padding: clamp(22px, 4vw, 46px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
}

.wizard-step {
  display: grid;
  gap: 18px;
}

[data-app-wizard][data-enhanced="true"] .wizard-step[hidden] {
  display: none;
}

.wizard-step h2,
.help-section h2,
.integration-hero h2 {
  margin: 0;
}

.wizard-step label,
.settings-form label {
  display: grid;
  gap: 7px;
}

.wizard-step label > span,
.settings-form label > span {
  font-weight: 650;
}

.wizard-step small,
.settings-form small,
.checklist-form small {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.info-box,
.warning-box {
  padding: 16px 18px;
  color: var(--text-body);
  background: var(--button-secondary-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.info-box strong,
.warning-box strong {
  color: var(--text-strong);
}

.info-box p,
.warning-box p {
  margin: 6px 0 0;
}

.warning-box {
  border-color: var(--line-strong);
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.wizard-actions [hidden] {
  display: none;
}

.confirmation-check {
  align-items: start;
}

.wizard-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.wizard-summary > div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 14px;
  background: var(--surface-raised);
}

.wizard-summary strong {
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wizard-summary span {
  overflow-wrap: anywhere;
}

.app-admin-list {
  display: grid;
  gap: 10px;
}

.app-admin-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 18px;
}

.app-admin-icon,
.app-card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--text-strong);
  background: var(--button-secondary-bg);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  font-weight: 700;
}

.app-admin-icon img,
.app-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-admin-copy h3,
.app-admin-copy p {
  margin: 0;
}

.app-admin-copy p:not(.section-kicker) {
  margin-top: 5px;
  color: var(--text-body);
}

.app-admin-copy small {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.app-admin-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.app-card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.app-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.integration-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.integration-hero > div:first-child {
  max-width: 720px;
}

.progress-summary {
  min-width: 150px;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.progress-summary strong {
  font-size: 24px;
}

.progress-summary progress {
  width: 150px;
  height: 10px;
  accent-color: var(--accent);
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.settings-form {
  display: grid;
  gap: 16px;
}

.compact-list {
  margin-bottom: 0;
}

.checklist-group + .checklist-group {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.checklist-group h3 {
  margin-top: 0;
}

.checklist-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.checklist-item:first-of-type {
  border-top: 0;
}

.checklist-item p {
  margin: 4px 0;
  color: var(--text-body);
}

.checklist-item small {
  color: var(--text-muted);
}

.check-indicator {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 12px;
}

.checklist-item.is-complete .check-indicator {
  color: #9fbd91;
  border-color: rgba(122, 164, 105, .45);
}

.checklist-form {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 320px) auto;
  align-items: center;
}

.checklist-form .check {
  margin: 0;
}

.checklist-form .check span {
  display: grid;
  gap: 4px;
}

.check-note {
  min-width: 0;
}

.manifest-panel pre {
  max-height: 520px;
  margin: 18px 0 0;
  padding: 18px;
  overflow: auto;
  color: var(--text-body);
  background: #090806;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre;
}

[data-theme="light"] .manifest-panel pre {
  background: #f0ebe2;
}

.help-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.help-index a {
  padding: 8px 12px;
  color: var(--text-muted);
  background: var(--button-secondary-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
}

.help-index a:hover {
  color: var(--text-strong);
  border-color: var(--line-strong);
}

.help-section {
  scroll-margin-top: 110px;
}

.help-section + .help-section {
  margin-top: 16px;
}

.help-section ol,
.help-section ul {
  color: var(--text-body);
  line-height: 1.7;
}

.definition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.definition-grid > div {
  padding: 16px;
  background: var(--surface-raised);
}

.definition-grid dt {
  margin-bottom: 6px;
  font-weight: 700;
}

.definition-grid dd {
  margin: 0;
  color: var(--text-body);
  line-height: 1.55;
}

.text-link {
  color: var(--accent-text);
  font-size: 12px;
}

@media (max-width: 900px) {
  .onboarding-layout {
    grid-template-columns: 1fr;
  }

  .wizard-nav {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wizard-nav button {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .app-admin-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .app-admin-actions {
    grid-column: 1 / -1;
    grid-auto-flow: column;
    justify-content: end;
  }

  .checklist-form {
    grid-template-columns: 1fr auto;
  }

  .checklist-form .check-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .heading-actions,
  .integration-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .heading-actions > *,
  .wizard-actions > * {
    flex: 1;
    text-align: center;
  }

  .wizard-nav {
    grid-template-columns: 1fr 1fr;
  }

  .wizard-form {
    padding: 20px;
  }

  .form-columns,
  .wizard-summary,
  .admin-detail-grid,
  .definition-grid {
    grid-template-columns: 1fr;
  }

  .wizard-actions {
    flex-wrap: wrap;
  }

  .app-admin-row {
    grid-template-columns: 1fr;
  }

  .app-admin-actions {
    grid-column: auto;
    grid-auto-flow: row;
    justify-items: stretch;
  }

  .checklist-form {
    grid-template-columns: 1fr;
  }

  .checklist-form .check-note {
    grid-column: auto;
  }
}

/* Applo 3.2.1 – refined administration and help experience */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.app-builder-page,
.help-center-page {
  --workspace-surface: color-mix(in srgb, var(--surface-raised) 88%, transparent);
  --workspace-surface-soft: color-mix(in srgb, var(--surface) 78%, transparent);
  --workspace-border: color-mix(in srgb, var(--line-strong) 76%, transparent);
  --workspace-shadow: 0 24px 70px rgba(0, 0, 0, .12);
  padding-top: clamp(30px, 4vw, 54px);
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: var(--text-faint);
  font-size: 12px;
}

.page-breadcrumb a {
  color: var(--text-muted);
  transition: color .2s ease;
}

.page-breadcrumb a:hover {
  color: var(--text-strong);
}

.workspace-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.workspace-heading h1,
.help-hero h1 {
  margin: 7px 0 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(38px, 4.5vw, 60px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.055em;
}

.workspace-heading > div:first-child > p:last-child,
.help-hero-copy > p:last-child {
  max-width: 690px;
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  color: var(--text-strong);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--button-primary-text);
  background: var(--button-primary-bg);
  border-color: var(--accent-light);
  box-shadow: 0 12px 28px rgba(117, 80, 25, .15);
}

.button-primary:hover {
  background: var(--button-primary-hover);
}

.button-secondary {
  background: var(--button-secondary-bg);
  border-color: var(--workspace-border);
}

.button-secondary:hover,
.button-quiet:hover {
  background: var(--button-secondary-hover);
  border-color: var(--line-strong);
}

.button-quiet {
  color: var(--text-muted);
}

.app-builder-alert {
  margin: -18px 0 28px;
}

.app-builder-layout {
  display: grid;
  grid-template-columns: minmax(240px, 292px) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 42px);
  align-items: start;
}

.app-builder-sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 15px;
}

.builder-context-card,
.builder-help-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  padding: 17px;
  background: var(--workspace-surface-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(16px);
}

.context-icon,
.help-card-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--button-primary-text);
  background: var(--button-primary-bg);
  border-radius: 12px;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 18px;
}

.help-card-icon {
  color: var(--accent-text);
  background: var(--button-secondary-hover);
  border: 1px solid var(--line-strong);
  font-family: inherit;
  font-weight: 700;
}

.builder-context-card strong,
.builder-help-card strong {
  display: block;
  font-size: 13px;
}

.builder-context-card p,
.builder-help-card p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.builder-help-card a {
  display: inline-block;
  margin-top: 9px;
  color: var(--accent-text);
  font-size: 11.5px;
  font-weight: 650;
}

.app-builder-page .wizard-nav {
  position: static;
  gap: 3px;
  padding: 8px;
  background: var(--workspace-surface);
  border-color: var(--line);
  border-radius: 20px;
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.app-builder-page .wizard-nav button {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  min-height: 58px;
  padding: 9px 10px;
  border-radius: 13px;
}

.app-builder-page .wizard-nav button::after {
  content: "";
  width: 5px;
  height: 5px;
  position: absolute;
  right: 12px;
  background: transparent;
  border-radius: 50%;
}

.app-builder-page .wizard-nav button[aria-current="step"]::after {
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}

.app-builder-page .wizard-nav button.is-complete .wizard-step-marker {
  color: transparent;
  background: color-mix(in srgb, #70a46b 16%, var(--surface));
  border-color: color-mix(in srgb, #70a46b 45%, var(--line));
}

.app-builder-page .wizard-nav button.is-complete .wizard-step-marker::before {
  content: "";
  width: 10px;
  height: 6px;
  position: absolute;
  border-left: 1.5px solid #8fbd87;
  border-bottom: 1.5px solid #8fbd87;
  transform: rotate(-45deg) translate(1px, -1px);
}

.app-builder-page .wizard-step-marker {
  position: relative;
  width: 32px;
  height: 32px;
  font-size: 11px;
  font-weight: 700;
}

.app-builder-page .wizard-nav button[aria-current="step"] .wizard-step-marker {
  color: var(--button-primary-text);
  box-shadow: 0 6px 16px rgba(117, 80, 25, .16);
}

.wizard-step-label {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.wizard-step-label strong {
  color: inherit;
  font-size: 12.5px;
  font-weight: 650;
}

.wizard-step-label small {
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.3;
}

.app-builder-page .wizard-form {
  padding: 0;
  overflow: hidden;
  background: var(--workspace-surface);
  border-color: var(--workspace-border);
  border-radius: 24px;
  box-shadow: var(--workspace-shadow);
  backdrop-filter: blur(22px);
}

.wizard-progress-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  align-items: end;
  padding: 22px clamp(22px, 4vw, 42px) 18px;
  background: color-mix(in srgb, var(--surface-raised) 55%, transparent);
  border-bottom: 1px solid var(--line);
}

.wizard-progress-copy {
  display: grid;
  gap: 4px;
}

.wizard-progress-copy span,
.wizard-progress-count {
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.wizard-progress-copy strong {
  font-size: 13px;
  font-weight: 650;
}

.wizard-progress-track {
  height: 3px;
  grid-column: 1 / -1;
  overflow: hidden;
  background: var(--line);
  border-radius: 99px;
}

.wizard-progress-track span {
  width: 16.666%;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-light));
  border-radius: inherit;
  transition: width .3s cubic-bezier(.2, .8, .2, 1);
}

.wizard-stage {
  min-height: 560px;
  padding: clamp(28px, 4.5vw, 54px) clamp(22px, 4vw, 48px) 34px;
}

.app-builder-page .wizard-step {
  max-width: 910px;
  gap: 24px;
}

.wizard-step-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 17px;
  align-items: start;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
}

.step-number,
.article-number {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: var(--accent-text);
  background: var(--button-secondary-bg);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .05em;
}

.wizard-step-header .section-kicker,
.help-article-header .section-kicker {
  margin: 0 0 7px;
}

.app-builder-page .wizard-step h2,
.help-article h2 {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.wizard-step-header p:last-child,
.help-article-header p:last-child {
  max-width: 690px;
  margin: 9px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.form-section-card {
  display: grid;
  gap: 20px;
  padding: clamp(19px, 3vw, 28px);
  background: color-mix(in srgb, var(--surface-raised) 70%, transparent);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.form-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-group {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-strong);
  font-size: 12.5px;
  font-weight: 650;
}

.field-label em {
  color: var(--text-faint);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.app-builder-page .field-group input,
.app-builder-page .field-group select,
.app-builder-page .field-group textarea,
.help-search input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  color: var(--text-strong);
  background: color-mix(in srgb, var(--field-bg) 92%, transparent);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.app-builder-page .field-group textarea {
  min-height: 112px;
  padding-block: 13px;
  resize: vertical;
  line-height: 1.55;
}

.app-builder-page .field-group input:hover,
.app-builder-page .field-group select:hover,
.app-builder-page .field-group textarea:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line-strong));
}

.app-builder-page .field-group input:focus,
.app-builder-page .field-group select:focus,
.app-builder-page .field-group textarea:focus,
.help-search input:focus {
  background: var(--surface-raised);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}

.field-group small {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.55;
}

.field-group code {
  color: var(--accent-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .95em;
}

.input-prefix-group {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  background: color-mix(in srgb, var(--field-bg) 92%, transparent);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.input-prefix-group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}

.input-prefix-group > span {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 0 0 15px;
  color: var(--text-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.app-builder-page .input-prefix-group input {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.insight-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  padding: 16px 18px;
  color: var(--text-body);
  background: color-mix(in srgb, var(--button-secondary-bg) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.insight-card-safe {
  border-color: color-mix(in srgb, #70a46b 34%, var(--line));
}

.insight-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: var(--accent-text);
  background: var(--button-secondary-hover);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-weight: 700;
}

.insight-card strong {
  color: var(--text-strong);
  font-size: 12px;
}

.insight-card p {
  margin: 5px 0 0;
  font-size: 11.5px;
  line-height: 1.55;
}

.role-explainer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.role-explainer-grid article {
  min-width: 0;
  padding: 17px;
  background: var(--workspace-surface-soft);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.role-explainer-grid article > span {
  color: var(--accent-text);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .1em;
}

.role-explainer-grid strong {
  display: block;
  margin-top: 14px;
  font-size: 12px;
}

.role-explainer-grid p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.identity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, .75fr);
  gap: 18px;
  align-items: start;
}

.identity-layout .form-section-card {
  min-width: 0;
}

.app-preview-card {
  min-height: 308px;
  position: sticky;
  top: 128px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 8%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 32%),
    linear-gradient(145deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .10);
}

.app-preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-preview-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: var(--button-primary-text);
  background: var(--button-primary-bg);
  border-radius: 13px;
  font-size: 11px;
  font-weight: 750;
}

.app-preview-topline > span:last-child {
  color: var(--text-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
}

.app-preview-card > p {
  margin: 34px 0 0;
  color: var(--accent-text);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.app-preview-card h3 {
  margin: 9px 0 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -.04em;
}

.app-preview-card > span:not(.app-preview-mark) {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.app-preview-action {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  color: var(--text-strong);
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 650;
}

.app-builder-page .wizard-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.app-builder-page .wizard-summary > div {
  min-height: 78px;
  padding: 15px 17px;
  background: var(--workspace-surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.app-builder-page .wizard-summary strong {
  color: var(--text-faint);
  font-size: 9px;
}

.app-builder-page .wizard-summary span {
  color: var(--text-body);
  font-size: 12px;
  line-height: 1.45;
}

.scope-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.scope-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 17px;
  background: var(--workspace-surface-soft);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.scope-card > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--accent-text);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-size: 11px;
}

.scope-card-created {
  border-color: color-mix(in srgb, #70a46b 36%, var(--line));
}

.scope-card strong {
  font-size: 12px;
}

.scope-card p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 10.8px;
  line-height: 1.5;
}

.confirmation-card {
  min-height: 72px;
  padding: 16px 17px;
  background: color-mix(in srgb, var(--accent) 5%, var(--workspace-surface-soft));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 15px;
}

.confirmation-card input {
  margin-top: 2px;
}

.confirmation-card span {
  display: grid;
  gap: 5px;
}

.confirmation-card strong {
  color: var(--text-strong);
  font-size: 12px;
}

.confirmation-card small {
  color: var(--text-muted);
  font-size: 10.8px;
}

.app-builder-page .wizard-actions {
  position: sticky;
  z-index: 4;
  bottom: 0;
  align-items: center;
  margin: 0;
  padding: 17px clamp(22px, 4vw, 48px);
  background: color-mix(in srgb, var(--surface) 91%, transparent);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.wizard-actions-primary {
  display: flex;
  align-items: center;
  gap: 13px;
}

.wizard-save-note {
  color: var(--text-faint);
  font-size: 10px;
}

/* Help center */
.help-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 530px);
  gap: clamp(32px, 6vw, 86px);
  align-items: end;
  padding: 10px 0 clamp(34px, 5vw, 58px);
}

.help-search {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 13px 0 17px;
  background: var(--workspace-surface);
  border: 1px solid var(--workspace-border);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .08);
}

.help-search-icon {
  width: 17px;
  height: 17px;
  position: relative;
  border: 1.5px solid var(--text-faint);
  border-radius: 50%;
}

.help-search-icon::after {
  content: "";
  width: 6px;
  height: 1.5px;
  position: absolute;
  right: -5px;
  bottom: -2px;
  background: var(--text-faint);
  transform: rotate(45deg);
  transform-origin: left center;
}

.help-search input {
  min-height: 54px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 12.5px;
}

.help-search input:focus {
  background: transparent;
  box-shadow: none;
}

.help-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent), 0 18px 48px rgba(0, 0, 0, .08);
}

.help-search kbd {
  padding: 5px 7px;
  color: var(--text-faint);
  background: var(--button-secondary-bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-family: inherit;
  font-size: 9px;
}

.help-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.help-quick-card {
  min-height: 126px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 20px;
  background: var(--workspace-surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.help-quick-card:hover {
  transform: translateY(-3px);
  background: var(--surface-raised);
  border-color: var(--line-strong);
}

.quick-card-icon {
  width: 39px;
  height: 39px;
  position: relative;
  display: block;
  background: var(--button-secondary-bg);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}

.quick-card-icon-create::before,
.quick-card-icon-create::after {
  content: "";
  position: absolute;
  background: var(--accent-text);
  border-radius: 99px;
}

.quick-card-icon-create::before { width: 13px; height: 1.5px; top: 18px; left: 12px; }
.quick-card-icon-create::after { width: 1.5px; height: 13px; top: 12px; left: 18px; }

.quick-card-icon-connect::before {
  content: "";
  width: 15px;
  height: 9px;
  position: absolute;
  top: 13px;
  left: 11px;
  border: 1.5px solid var(--accent-text);
  border-radius: 7px;
  transform: rotate(-38deg);
}

.quick-card-icon-connect::after {
  content: "";
  width: 15px;
  height: 9px;
  position: absolute;
  right: 9px;
  bottom: 12px;
  border: 1.5px solid var(--accent-text);
  border-radius: 7px;
  transform: rotate(-38deg);
}

.quick-card-icon-shield::before {
  content: "";
  width: 15px;
  height: 18px;
  position: absolute;
  top: 9px;
  left: 11px;
  border: 1.5px solid var(--accent-text);
  border-radius: 9px 9px 12px 12px;
  clip-path: polygon(50% 0, 100% 20%, 85% 76%, 50% 100%, 15% 76%, 0 20%);
}

.help-quick-card strong {
  display: block;
  font-size: 13px;
}

.help-quick-card p {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
}

.quick-card-arrow {
  color: var(--text-faint);
  font-size: 17px;
}

.help-layout {
  display: grid;
  grid-template-columns: minmax(200px, 248px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.help-sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 16px;
}

.help-center-page .help-index {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 10px;
  background: var(--workspace-surface-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.help-center-page .help-index > span {
  margin: 10px 10px 5px;
  color: var(--text-faint);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.help-center-page .help-index a {
  padding: 10px;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 11.5px;
}

.help-center-page .help-index a:hover {
  color: var(--text-strong);
  background: var(--button-secondary-hover);
}

.help-sidebar-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  padding: 15px;
  color: var(--text-body);
  background: color-mix(in srgb, var(--accent) 5%, var(--workspace-surface-soft));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 15px;
}

.help-sidebar-card > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--accent-text);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-family: Georgia, serif;
  font-style: italic;
}

.help-sidebar-card strong {
  font-size: 11.5px;
}

.help-sidebar-card p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.5;
}

.help-content {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.help-article {
  scroll-margin-top: 112px;
  padding: clamp(25px, 4vw, 42px);
  background: var(--workspace-surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 16px 46px rgba(0, 0, 0, .055);
}

.help-article[hidden],
.help-quick-card[hidden] {
  display: none;
}

.help-article-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 17px;
  align-items: start;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.help-step-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.help-step-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  background: var(--workspace-surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.help-step-list li > span,
.migration-roadmap article > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: var(--accent-text);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-size: 9px;
  font-weight: 750;
}

.help-step-list strong,
.migration-roadmap strong {
  font-size: 11.5px;
}

.help-step-list p,
.migration-roadmap p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.help-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 15px 17px;
  color: var(--text-body);
  background: var(--button-secondary-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.help-callout > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--accent-text);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
}

.help-callout p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.help-callout-accent {
  border-color: color-mix(in srgb, var(--accent) 31%, var(--line));
}

.help-center-page .definition-grid {
  gap: 10px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.help-center-page .definition-grid > div {
  min-height: 118px;
  padding: 17px;
  background: var(--workspace-surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.help-center-page .definition-grid dt {
  color: var(--text-strong);
  font-size: 11.5px;
}

.help-center-page .definition-grid dd {
  color: var(--text-muted);
  font-size: 10.8px;
  line-height: 1.55;
}

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

.responsibility-card {
  min-height: 280px;
  padding: 23px;
  position: relative;
  overflow: hidden;
  background: var(--workspace-surface-soft);
  border: 1px solid var(--line);
  border-radius: 17px;
}

.responsibility-card::after {
  content: "";
  width: 170px;
  height: 170px;
  position: absolute;
  right: -76px;
  bottom: -92px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.responsibility-core {
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 7%, var(--surface-raised)), var(--workspace-surface-soft));
  border-color: color-mix(in srgb, var(--accent) 27%, var(--line));
}

.responsibility-label {
  color: var(--accent-text);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.responsibility-card h3 {
  margin: 13px 0 0;
  font-size: 22px;
  letter-spacing: -.03em;
}

.responsibility-card ul {
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.responsibility-card li {
  position: relative;
  padding-left: 19px;
  color: var(--text-body);
  font-size: 11px;
  line-height: 1.45;
}

.responsibility-card li::before {
  content: "";
  width: 7px;
  height: 4px;
  position: absolute;
  top: 5px;
  left: 1px;
  border-left: 1px solid var(--accent-text);
  border-bottom: 1px solid var(--accent-text);
  transform: rotate(-45deg);
}

.migration-roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.migration-roadmap article {
  min-height: 142px;
  padding: 16px;
  background: var(--workspace-surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.migration-roadmap article > div {
  margin-top: 17px;
}

.design-freedom-card {
  min-height: 310px;
  display: grid;
  grid-template-columns: minmax(220px, .85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(22px, 4vw, 38px);
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 50%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 34%),
    var(--workspace-surface-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.design-orbit {
  width: min(100%, 250px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  margin-inline: auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.design-orbit::before {
  content: "";
  width: 66%;
  aspect-ratio: 1;
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.design-orbit > span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  color: var(--button-primary-text);
  background: var(--button-primary-bg);
  border-radius: 24px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 17px;
  box-shadow: 0 18px 40px rgba(117, 80, 25, .18);
}

.design-orbit i {
  width: 34px;
  height: 34px;
  position: absolute;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
}

.design-orbit i:nth-child(2) { top: 14%; right: 10%; transform: rotate(11deg); }
.design-orbit i:nth-child(3) { bottom: 10%; left: 17%; transform: rotate(-13deg); border-radius: 50%; }
.design-orbit i:nth-child(4) { right: 2%; bottom: 25%; width: 42px; border-radius: 17px 8px; }

.design-freedom-card h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -.035em;
}

.design-freedom-card p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.design-freedom-card ul {
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--text-body);
  font-size: 11px;
  line-height: 1.75;
}

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

.glossary-grid details {
  background: var(--workspace-surface-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.glossary-grid summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 650;
  list-style: none;
}

.glossary-grid summary::-webkit-details-marker {
  display: none;
}

.glossary-grid summary::after {
  content: "+";
  color: var(--text-faint);
  font-size: 16px;
  font-weight: 400;
}

.glossary-grid details[open] summary::after {
  content: "−";
}

.glossary-grid details p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--text-muted);
  font-size: 10.8px;
  line-height: 1.55;
}

.help-no-results {
  min-height: 330px;
  place-items: center;
  align-content: center;
  text-align: center;
  background: var(--workspace-surface);
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
}

.help-no-results:not([hidden]) {
  display: grid;
}

.help-no-results > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--accent-text);
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  font-size: 18px;
}

.help-no-results h2 {
  margin: 15px 0 0;
  font-size: 22px;
}

.help-no-results p {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 11px;
}

@media (max-width: 1080px) {
  .app-builder-layout,
  .help-layout {
    grid-template-columns: 1fr;
  }

  .app-builder-sidebar,
  .help-sidebar {
    position: static;
  }

  .builder-context-card,
  .builder-help-card,
  .help-sidebar-card {
    display: none;
  }

  .app-builder-page .wizard-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-builder-page .wizard-nav button {
    min-height: 52px;
  }

  .wizard-step-label small {
    display: none;
  }

  .help-center-page .help-index {
    display: flex;
    flex-wrap: wrap;
  }

  .help-center-page .help-index > span {
    width: 100%;
  }

  .help-center-page .help-index a {
    background: var(--button-secondary-bg);
    border: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .workspace-heading,
  .help-hero {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .workspace-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .heading-actions {
    justify-content: flex-start;
  }

  .help-quick-grid,
  .role-explainer-grid,
  .migration-roadmap {
    grid-template-columns: 1fr 1fr;
  }

  .identity-layout,
  .design-freedom-card {
    grid-template-columns: 1fr;
  }

  .app-preview-card {
    position: static;
    min-height: 250px;
  }

  .form-grid-two,
  .responsibility-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .app-builder-page,
  .help-center-page {
    padding-top: 24px;
  }

  .workspace-heading h1,
  .help-hero h1 {
    font-size: 37px;
  }

  .heading-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .heading-actions .button {
    width: 100%;
  }

  .app-builder-page .wizard-nav {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .app-builder-page .wizard-nav::-webkit-scrollbar {
    display: none;
  }

  .app-builder-page .wizard-nav button {
    min-width: 150px;
    scroll-snap-align: start;
  }

  .wizard-stage {
    min-height: 0;
    padding: 25px 18px 28px;
  }

  .wizard-progress-header,
  .app-builder-page .wizard-actions {
    padding-inline: 18px;
  }

  .wizard-step-header,
  .help-article-header {
    grid-template-columns: 1fr;
  }

  .step-number,
  .article-number {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .role-explainer-grid,
  .help-quick-grid,
  .help-step-list,
  .migration-roadmap,
  .glossary-grid,
  .app-builder-page .wizard-summary,
  .scope-summary-grid {
    grid-template-columns: 1fr;
  }

  .app-builder-page .wizard-actions {
    position: static;
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .wizard-actions-primary {
    align-items: stretch;
    flex-direction: column;
  }

  .wizard-save-note {
    text-align: center;
  }

  .wizard-actions .button {
    width: 100%;
  }

  .help-search kbd {
    display: none;
  }

  .help-article {
    padding: 22px 18px;
  }
}

[data-app-wizard][data-current-step="1"] .wizard-progress-track span { width: 16.666%; }
[data-app-wizard][data-current-step="2"] .wizard-progress-track span { width: 33.333%; }
[data-app-wizard][data-current-step="3"] .wizard-progress-track span { width: 50%; }
[data-app-wizard][data-current-step="4"] .wizard-progress-track span { width: 66.666%; }
[data-app-wizard][data-current-step="5"] .wizard-progress-track span { width: 83.333%; }
[data-app-wizard][data-current-step="6"] .wizard-progress-track span { width: 100%; }

.app-builder-page .wizard-nav button .wizard-step-label {
  width: auto;
  height: auto;
  display: grid;
  place-items: initial;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: inherit;
}

.wizard-step h2[tabindex="-1"]:focus {
  outline: none;
}
