:root {
  --brand: #fc4c02;
  --brand-dark: #a93608;
  --ink: #171719;
  --muted: #69696f;
  --line: #e5e4e2;
  --surface: #ffffff;
  --canvas: #f2f1ef;
  --soft-orange: #fff1e8;
  --page-max-width: 1120px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
}

body.drawer-open,
body.viewer-open {
  overflow: hidden;
}

button,
a,
input {
  color: inherit;
  font: inherit;
}

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

button {
  border: 0;
}

a {
  text-decoration: none;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(252, 76, 2, 0.38);
  outline-offset: 3px;
}

.app-header {
  position: sticky;
  z-index: 30;
  top: 0;
  padding-top: var(--safe-top);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.app-header-inner {
  position: relative;
  display: grid;
  width: min(var(--page-max-width), 100%);
  height: 58px;
  margin: 0 auto;
  padding: 0 10px;
  align-items: center;
  grid-template-columns: 58px 1fr 58px;
}

.header-brand {
  display: inline-flex;
  justify-self: center;
  line-height: 0;
}

.header-brand img {
  display: block;
  width: 118px;
  height: auto;
}

.language-button {
  display: inline-flex;
  min-width: 44px;
  height: 44px;
  padding: 0 7px;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-self: end;
  justify-content: center;
  gap: 2px;
}

.language-button:hover,
.language-button[aria-expanded="true"] {
  background: #f3f2f1;
}

.language-button span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.language-button svg {
  width: 16px;
  transition: transform 180ms ease;
}

.language-button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  z-index: 45;
  top: calc(100% + 7px);
  right: 10px;
  overflow-y: auto;
  width: min(280px, calc(100vw - 20px));
  max-height: min(540px, calc(100dvh - var(--safe-top) - 76px));
  padding: 7px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 50px rgba(36, 28, 23, 0.2);
  backdrop-filter: blur(18px);
  overscroll-behavior: contain;
}

.language-option {
  display: grid;
  width: 100%;
  min-height: 46px;
  padding: 8px 11px;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.language-option:hover,
.language-option:focus-visible {
  background: #f4f3f2;
}

.language-option[aria-checked="true"] {
  background: var(--soft-orange);
  color: var(--brand-dark);
}

.language-option strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-option span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.language-option[aria-checked="true"] span {
  color: inherit;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  place-items: center;
}

.icon-button:hover {
  background: #f3f2f1;
}

.menu-button {
  gap: 4px;
  align-content: center;
}

.menu-button span {
  width: 25px;
  height: 2.5px;
  border-radius: 4px;
  background: #171719;
}

.app-main {
  overflow-x: clip;
  width: min(var(--page-max-width), 100%);
  min-height: calc(100vh - 58px);
  margin: 0 auto;
  padding: 0 20px calc(32px + var(--safe-bottom));
  background: var(--surface);
}

.page-intro {
  padding: 28px 0 20px;
}

.page-intro h1 {
  margin: 0;
  font-size: clamp(32px, 8vw, 44px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1;
}

.page-intro p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.qr-app-banner {
  display: flex;
  margin: 16px 0 0;
  padding: 13px 14px;
  border: 1px solid #ffc7ab;
  border-radius: 15px;
  background: var(--soft-orange);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qr-app-banner strong,
.qr-app-banner p {
  display: block;
  margin: 0;
}

.qr-app-banner strong {
  font-size: 14px;
}

.qr-app-banner p {
  margin-top: 3px;
  color: #765b50;
  font-size: 11px;
}

.qr-app-actions,
.drawer-app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.app-action,
.primary-button {
  display: inline-flex;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 750;
}

.app-action-primary,
.primary-button {
  background: var(--brand);
  color: #fff;
}

.app-action-secondary {
  border: 1px solid #dad8d5;
  background: #fff;
}

.guide-section {
  padding: 0 0 25px;
  scroll-margin-top: 74px;
}

.guide-section h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 730;
  letter-spacing: -0.03em;
}

.content-grid {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.content-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  border-radius: 15px;
  background: #242426;
  box-shadow: 0 2px 10px rgba(24, 18, 14, 0.12);
  cursor: pointer;
  aspect-ratio: 4 / 5;
  text-align: left;
  transform: translateZ(0);
}

.featured-card {
  aspect-ratio: 16 / 8.8;
}

.content-card:active {
  transform: scale(0.988);
}

.card-media,
.card-media > img,
.card-artwork,
.card-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.card-media {
  display: block;
}

.card-media > img {
  object-fit: cover;
  transition: transform 260ms ease;
}

.content-card:hover .card-media > img,
.content-card:hover .card-artwork svg {
  transform: scale(1.035);
}

.card-artwork {
  display: grid;
  overflow: hidden;
  place-items: center;
}

.card-artwork::before,
.card-artwork::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.card-artwork::before {
  top: -20%;
  right: -18%;
  width: 70%;
  padding-top: 70%;
  background: rgba(255, 255, 255, 0.22);
}

.card-artwork::after {
  bottom: -28%;
  left: -25%;
  width: 75%;
  padding-top: 75%;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.card-artwork svg {
  position: relative;
  z-index: 1;
  width: 42%;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 260ms ease;
}

.art-mounting { background: linear-gradient(145deg, #56615d, #1d2622 68%, #111); }
.art-box { background: linear-gradient(145deg, #b58a5f, #5c3925 72%); }
.art-battery { background: linear-gradient(145deg, #cf7a35, #6e3216 72%); }
.art-apple { background: linear-gradient(145deg, #4f5967, #171a20 72%); }
.art-google { background: linear-gradient(145deg, #4d7480, #20363e 72%); }
.art-steps { background: linear-gradient(145deg, #867763, #332d27 72%); }
.art-check { background: linear-gradient(145deg, #66725d, #263123 72%); }
.art-locate { background: linear-gradient(145deg, #81755e, #343025 72%); }
.art-care { background: linear-gradient(145deg, #7b6b62, #312924 72%); }
.art-help { background: linear-gradient(145deg, #bd6843, #572512 72%); }

.card-shade {
  background: linear-gradient(180deg, transparent 33%, rgba(0, 0, 0, 0.82));
}

.featured-card .card-shade {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.05) 78%), linear-gradient(0deg, rgba(0, 0, 0, 0.4), transparent 45%);
}

.card-play {
  position: absolute;
  z-index: 2;
  right: 11px;
  top: 11px;
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
}

.card-play svg {
  width: 20px;
  fill: currentColor;
  stroke: none;
}

.card-copy {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  padding: 13px 12px;
  color: #fff;
}

.card-copy small,
.card-copy strong {
  display: block;
}

.card-copy small {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.card-copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(14px, 4.2vw, 19px);
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.featured-card .card-copy {
  width: min(78%, 430px);
  padding: 18px 17px;
}

.featured-card .card-copy strong {
  font-size: clamp(21px, 5.8vw, 32px);
}

.card-type {
  display: inline-flex;
  min-width: 37px;
  min-height: 20px;
  margin-top: 8px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: #222;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
}

.skeleton-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.skeleton-line,
.skeleton-feature,
.skeleton-card {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #e9e8e6;
}

.skeleton-line {
  width: 120px;
  height: 20px;
  grid-column: 1 / -1;
}

.skeleton-feature {
  height: 220px;
  grid-column: 1 / -1;
}

.skeleton-card {
  aspect-ratio: 4 / 5;
}

.faq-section {
  padding: 6px 0 26px;
  scroll-margin-top: 74px;
}

.section-kicker {
  margin: 0 0 5px;
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-heading-row h2 {
  margin: 0 0 14px;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  min-height: 60px;
  padding: 18px 38px 16px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

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

.faq-list summary::after {
  position: absolute;
  top: 17px;
  right: 2px;
  color: var(--brand);
  content: "+";
  font-size: 22px;
  font-weight: 500;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: -3px 0 17px;
  padding-right: 30px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.support-callout {
  display: grid;
  min-height: 92px;
  padding: 16px;
  border: 1px solid #ffe0d0;
  border-radius: 16px;
  background: var(--soft-orange);
  align-items: center;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  scroll-margin-top: 74px;
}

.support-icon {
  display: grid;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  place-items: center;
}

.support-icon svg {
  width: 28px;
}

.support-callout strong,
.support-callout small {
  display: block;
}

.support-callout strong {
  font-size: 15px;
}

.support-callout small {
  margin-top: 3px;
  color: #80675d;
  font-size: 11px;
}

.support-callout > a {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.unsupported-state {
  max-width: 480px;
  margin: 14vh auto 0;
  text-align: center;
}

.unsupported-mark {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 24px;
  background: var(--soft-orange);
  color: var(--brand-dark);
  place-items: center;
  font-size: 32px;
  font-weight: 800;
}

.unsupported-state h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.unsupported-state p {
  margin: 12px 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

.drawer-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: rgba(0, 0, 0, 0.46);
  opacity: 0;
  transition: opacity 220ms ease;
}

.drawer-backdrop.is-visible {
  opacity: 1;
}

.menu-drawer {
  position: fixed;
  z-index: 81;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(390px, 90vw);
  padding-top: var(--safe-top);
  background: #fff;
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.18);
  transform: translateX(-105%);
  transition: transform 250ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.menu-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  height: 62px;
  padding: 0 10px 0 20px;
  border-bottom: 1px solid #ecebea;
  align-items: center;
  justify-content: space-between;
}

.drawer-header > strong {
  font-size: 18px;
  letter-spacing: -0.025em;
}

.close-button svg {
  width: 23px;
  height: 23px;
}

.drawer-scroll {
  overflow-y: auto;
  height: calc(100% - 62px);
  padding: 16px 18px calc(30px + var(--safe-bottom));
}

.drawer-section {
  padding: 8px 0 18px;
  border-bottom: 1px solid #ecebea;
}

.drawer-label {
  margin: 0 0 7px;
  color: #8e8d92;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.task-navigation {
  display: grid;
}

.task-navigation button {
  display: grid;
  width: 100%;
  min-height: 52px;
  padding: 7px 2px;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  grid-template-columns: 32px minmax(0, 1fr) 20px;
  text-align: left;
}

.task-navigation button:hover,
.drawer-link:hover {
  background: #f6f5f4;
}

.task-navigation span {
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 800;
}

.task-navigation strong {
  font-size: 13px;
}

.task-navigation svg,
.drawer-link > svg {
  width: 18px;
  color: #77767a;
}

.drawer-link {
  display: grid;
  width: 100%;
  min-height: 66px;
  padding: 8px 2px;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  text-align: left;
}

.drawer-link-icon {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #f1f1f2;
  color: #55545a;
  place-items: center;
}

.drawer-link-icon svg {
  width: 20px;
}

.drawer-link-icon.pdf-icon {
  background: var(--soft-orange);
  color: var(--brand-dark);
}

.drawer-link strong,
.drawer-link small {
  display: block;
}

.drawer-link strong {
  font-size: 14px;
}

.drawer-link small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.drawer-app-actions:not(:empty) {
  margin: 4px 0 10px;
}

.drawer-app-actions .app-action {
  flex: 1;
}

.store-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.store-links a {
  min-height: 74px;
  padding: 12px;
  border-radius: 13px;
  background: #1d1d1f;
  color: #fff;
}

.store-links span,
.store-links strong {
  display: block;
}

.store-links span {
  color: #bdbdc2;
  font-size: 9px;
}

.store-links strong {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.25;
}

.drawer-legal {
  display: flex;
  padding-top: 17px;
  border: 0;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.drawer-legal a {
  color: #4d4d53;
  font-size: 11px;
  text-decoration: underline;
}

.drawer-legal p {
  width: 100%;
  margin: 0;
  color: #929298;
  font-size: 9px;
  line-height: 1.5;
}

.content-viewer {
  position: fixed;
  z-index: 100;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
}

.viewer-shell {
  position: relative;
  overflow: hidden;
  width: min(100%, 480px);
  height: 100dvh;
  margin: 0 auto;
  background: #050505;
  touch-action: pan-x;
}

.viewer-media,
.viewer-media video,
.viewer-article,
.viewer-pending,
.viewer-error,
.viewer-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.viewer-media {
  background: #000;
}

.viewer-media video {
  background: #000;
  object-fit: contain;
  opacity: 0;
  transition: opacity 160ms ease;
}

.viewer-media video.is-ready {
  opacity: 1;
}

.viewer-article {
  overflow-y: auto;
  padding: calc(88px + var(--safe-top)) 18px calc(225px + var(--safe-bottom));
}

.viewer-article-inner {
  min-height: 100%;
  padding: 26px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.2);
}

.viewer-article-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border-radius: 21px;
  background: var(--soft-orange);
  color: var(--brand-dark);
  place-items: center;
}

.viewer-article-icon svg {
  width: 38px;
}

.viewer-article ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}

.viewer-article li {
  position: relative;
  min-height: 48px;
  padding: 0 0 20px 45px;
  color: #3e3d40;
  font-size: 14px;
  line-height: 1.5;
  counter-increment: guide-step;
}

.viewer-article li::before {
  position: absolute;
  top: -2px;
  left: 0;
  display: grid;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1f1f21;
  color: #fff;
  content: counter(guide-step);
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

.article-action {
  width: 100%;
  min-height: 46px;
  margin-top: 3px;
  border-radius: 13px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.viewer-pending {
  z-index: 1;
  display: flex;
  padding: calc(100px + var(--safe-top)) 30px calc(220px + var(--safe-bottom));
  color: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.viewer-pending > span {
  display: grid;
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 26px;
  background: rgba(0, 0, 0, 0.2);
  place-items: center;
  backdrop-filter: blur(8px);
}

.viewer-pending svg {
  width: 42px;
}

.viewer-pending strong {
  font-size: 22px;
}

.viewer-pending p {
  max-width: 280px;
  margin: 8px 0 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

.viewer-pending button {
  min-height: 44px;
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff;
  color: #222;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.viewer-shade {
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.54), transparent 24%, transparent 58%, rgba(0, 0, 0, 0.88));
  pointer-events: none;
}

.viewer-topbar {
  position: absolute;
  z-index: 6;
  top: calc(10px + var(--safe-top));
  right: 12px;
  left: 12px;
  display: grid;
  align-items: center;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
}

.viewer-topbar > div {
  min-width: 0;
  color: #fff;
  text-align: center;
}

.viewer-topbar strong,
.viewer-topbar span {
  display: block;
}

.viewer-topbar strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-topbar span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
}

.viewer-circle-button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: rgba(24, 24, 26, 0.6);
  color: #fff;
  cursor: pointer;
  place-items: center;
  backdrop-filter: blur(8px);
}

.viewer-circle-button svg {
  width: 24px;
}

.viewer-caption-button,
#viewerCaptionButton {
  font-size: 11px;
  font-weight: 850;
}

#viewerCaptionButton.is-active {
  background: var(--brand);
}

.viewer-play-button {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  cursor: pointer;
  place-items: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
}

.viewer-play-button svg {
  width: 27px;
}

.viewer-play-button .play-icon {
  fill: currentColor;
  stroke: none;
}

.viewer-play-button .pause-icon,
.viewer-play-button.is-playing .play-icon {
  display: none;
}

.viewer-play-button.is-playing {
  opacity: 0;
}

.viewer-play-button.is-playing:hover,
.viewer-play-button.is-playing:focus-visible,
.viewer-play-button.is-playing .pause-icon {
  display: grid;
  opacity: 1;
}

.viewer-loading {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.viewer-loading span {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

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

.viewer-error {
  z-index: 5;
  display: flex;
  padding: 100px 26px 230px;
  background: #151516;
  color: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.viewer-error strong {
  font-size: 20px;
}

.viewer-error p {
  max-width: 310px;
  margin: 9px 0 17px;
  color: #aaa9ae;
  font-size: 13px;
  line-height: 1.5;
}

.viewer-error button {
  min-width: 180px;
  min-height: 44px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.viewer-error button + button {
  border: 1px solid #525256;
  background: transparent;
}

.viewer-copy {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: var(--safe-bottom);
  left: 0;
  padding: 20px 16px 15px;
  color: #fff;
}

.viewer-topbar,
.viewer-copy,
.viewer-play-button {
  transition: opacity 180ms ease;
}

.viewer-shell.controls-hidden .viewer-topbar,
.viewer-shell.controls-hidden .viewer-copy,
.viewer-shell.controls-hidden .viewer-play-button {
  opacity: 0;
  pointer-events: none;
}

.viewer-category {
  display: inline-flex;
  min-height: 24px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(252, 76, 2, 0.9);
  align-items: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.viewer-copy h2 {
  margin: 9px 0 0;
  font-size: 23px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.viewer-copy > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.viewer-progress-row {
  display: grid;
  margin-top: 11px;
  align-items: center;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.viewer-progress-row input {
  width: 100%;
  accent-color: var(--brand);
}

.viewer-progress-row span {
  min-width: 68px;
  font-size: 9px;
  text-align: right;
}

.viewer-navigation {
  display: grid;
  margin-top: 12px;
  align-items: center;
  grid-template-columns: 78px 1fr 78px;
  gap: 8px;
}

.viewer-navigation button {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}

.viewer-navigation button:disabled {
  opacity: 0.3;
}

.viewer-navigation span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  text-align: center;
}

.manual-dialog {
  width: min(520px, calc(100% - 24px));
  max-height: min(720px, calc(100dvh - 24px));
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
}

.manual-dialog::backdrop {
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(3px);
}

.dialog-header {
  display: flex;
  padding: 18px 16px 8px 20px;
  align-items: center;
  justify-content: space-between;
}

.dialog-header span {
  color: var(--brand-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dialog-header h2 {
  margin: 2px 0 0;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.manual-dialog > p {
  margin: 0;
  padding: 0 20px 14px;
  color: var(--muted);
  font-size: 12px;
}

.manual-list {
  display: grid;
  overflow-y: auto;
  max-height: 58vh;
  padding: 0 13px 18px;
  gap: 8px;
}

.manual-link {
  display: grid;
  min-height: 82px;
  padding: 12px;
  border: 1px solid #e2e1df;
  border-radius: 15px;
  align-items: center;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
}

.manual-link:hover {
  border-color: #ffc7ad;
  background: #fff9f6;
}

.manual-pdf-mark {
  display: grid;
  width: 40px;
  height: 48px;
  border-radius: 8px;
  background: var(--soft-orange);
  color: var(--brand-dark);
  place-items: center;
}

.manual-pdf-mark svg {
  width: 24px;
}

.manual-link strong,
.manual-link small {
  display: block;
}

.manual-link strong {
  font-size: 13px;
}

.manual-link small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.manual-open-mark {
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 800;
}

@media (min-width: 761px) {
  body {
    padding: 22px 0;
  }

  .app-header {
    top: 22px;
    width: min(var(--page-max-width), calc(100% - 32px));
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px 18px 0 0;
  }

  .app-main {
    width: min(var(--page-max-width), calc(100% - 32px));
    min-height: calc(100vh - 102px);
    border-radius: 0 0 22px 22px;
    box-shadow: 0 18px 70px rgba(44, 31, 23, 0.12);
  }

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

  .content-card {
    aspect-ratio: 4 / 5;
  }

  .featured-card {
    aspect-ratio: 16 / 7.5;
  }

  .card-copy strong {
    font-size: 17px;
  }
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .app-main {
    padding-right: 14px;
    padding-left: 14px;
  }

  .page-intro {
    padding-top: 23px;
  }

  .page-intro h1 {
    font-size: 34px;
  }

  .content-grid {
    gap: 9px;
  }

  .featured-card {
    aspect-ratio: 16 / 9.4;
  }

  .card-copy {
    padding: 11px 10px;
  }

  .featured-card .card-copy {
    padding: 15px 14px;
  }

  .featured-card .card-copy strong {
    font-size: 23px;
  }

  .qr-app-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .support-callout {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .support-callout > a {
    padding-left: 52px;
    grid-column: 1 / -1;
  }

  .viewer-article {
    padding-right: 13px;
    padding-left: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
