﻿/* Courier Route Planner — how-to hub & article pages (shared with index design tokens) */
:root {
  --bg: #F8FAFC;
  --bg-card: #FFFFFF;
  --text: #0F172A;
  --text-muted: #64748B;
  --accent: #6A6FE6;
  --border: #E2E8F0;
  --radius: 16px;
  --radius-lg: 24px;
  --header-bg: rgba(255, 255, 255, 0.78);
  --header-border: rgba(226, 232, 240, 0.95);
  --header-shadow: 0 1px 0 rgba(15, 23, 42, 0.05), 0 12px 40px rgba(15, 23, 42, 0.07);
  --focus-ring: 2px solid var(--accent);
  --focus-offset: 3px;
  --surface: #f1f5f9;
}
*, *::before, *::after { box-sizing: border-box; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.howto-body {
  margin: 0;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.howto-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.howto-skip:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 10000;
  width: auto;
  height: auto;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}
.howto-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
.howto-site-header {
  padding: 14px 0;
  padding-top: max(14px, env(safe-area-inset-top));
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--header-border);
  box-shadow: var(--header-shadow);
}
.howto-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  min-height: 52px;
}
.howto-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  border-radius: 12px;
}
.howto-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.howto-logo:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.howto-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.howto-lang {
  font: inherit;
  font-size: 0.875rem;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  min-height: 44px;
}
.howto-btn-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(106, 111, 230, 0.35);
}
.howto-btn-dl:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.howto-page-main {
  padding: 28px 0 72px;
}
.howto-breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 20px;
  line-height: 1.5;
}
.howto-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.howto-breadcrumb a:hover { text-decoration: underline; }
.howto-breadcrumb [aria-current="page"] {
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
}
.howto-hub-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.howto-hub-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}
.howto-hub-hero p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.howto-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.howto-hub-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  min-height: 100%;
}
.howto-hub-card:hover {
  border-color: rgba(106, 111, 230, 0.45);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.howto-hub-card:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}
.howto-hub-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #EEF2FF;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.howto-hub-card h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text);
}
.howto-hub-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.58;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.howto-hub-card-cta {
  margin-top: 14px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
}
.howto-article-grid {
  display: grid;
  gap: 28px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .howto-article-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, 318px);
    gap: clamp(20px, 3.2vw, 28px);
    align-items: center;
  }
  .howto-article-grid--ocr {
    align-items: start;
  }
  .howto-article-visual--ocr-stack {
    position: relative;
    top: auto;
  }
}
.howto-article-visual--ocr-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
}
.howto-ocr-fig {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 318px;
}
.howto-ocr-cap {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: #6366f1;
}
.howto-article-lead--tight {
  margin-top: 4px;
}
.howto-article-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text);
}
.howto-article-play-cta {
  margin: 0 0 16px;
}
.howto-article-lead {
  margin: 0 0 24px;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.howto-article-visual {
  position: relative;
}
@media (min-width: 900px) {
  .howto-article-visual {
    position: sticky;
    top: calc(72px + env(safe-area-inset-top, 0px));
  }
}
.howto-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  align-items: stretch;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.howto-pager--first,
.howto-pager--last {
  grid-template-columns: 1fr;
}
.howto-pager--first .howto-pager-next {
  justify-self: stretch;
}
.howto-pager--last .howto-pager-prev {
  justify-self: stretch;
}
/* [hidden] must win over .howto-pager a { display: flex } */
.howto-pager a[hidden] {
  display: none !important;
}
.howto-pager a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 18px 20px;
  min-height: 88px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  max-width: 100%;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
.howto-pager a:hover {
  border-color: rgba(106, 111, 230, 0.45);
  background: linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);
  box-shadow: 0 8px 24px rgba(106, 111, 230, 0.12);
  transform: translateY(-1px);
}
.howto-pager a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}
.howto-pager-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  color: #6a6fe6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
  line-height: 1.2;
}
.howto-pager-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  text-align: left;
}
.howto-pager-title:empty {
  display: none;
}
@media (max-width: 640px) {
  .howto-pager {
    grid-template-columns: 1fr;
  }
  .howto-pager--first .howto-pager-next,
  .howto-pager--last .howto-pager-prev {
    justify-self: stretch;
  }
}
.howto-site-footer {
  padding: 28px 0;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: #fff;
  margin-top: auto;
}
.howto-site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.howto-site-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.howto-site-footer a:hover { text-decoration: underline; }
.howto-body { min-height: 100vh; display: flex; flex-direction: column; }
.howto-body .howto-page-main { flex: 1; }
/* Article page: phone preview + step pill overlaid (reads as one device card) */
.howto-article-visual .howto-glow {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
  max-width: 318px;
}
.howto-glow.howto-glow--article {
  position: relative;
}
.howto-glow.howto-glow--article .howto-step-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  margin-bottom: 0;
  z-index: 4;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* How-to articles: stylized UI previews (no photo screenshots) — larger type for readability */
.howto-article-visual .howto-mock {
  font-size: 15px;
  padding: 18px 18px 16px;
}
.howto-article-visual .hm-map {
  height: 228px;
}
.howto-article-visual .hm-map-pin {
  width: 26px;
  height: 26px;
  font-size: 12px;
}
.howto-article-visual .hm-map-pin--s {
  width: 28px;
  height: 28px;
  font-size: 11px;
}
.howto-article-visual .hm-list-t {
  font-size: 12px;
  line-height: 1.25;
}
.howto-article-visual .hm-list-st {
  font-size: 10px;
}
.howto-article-visual .hm-list-badge {
  width: 30px;
  height: 30px;
  font-size: 12px;
}
.howto-article-visual .hm-list-row {
  padding: 10px 12px;
  min-height: 52px;
}
.howto-article-visual .hm-opt-btn {
  height: 44px;
  font-size: 14px;
}
.howto-article-visual .hm-nav {
  min-height: 224px;
}
.howto-article-visual .hm-nav-bar {
  font-size: 12px;
  padding: 12px 14px;
}
.howto-article-visual .hm-lbl {
  font-size: 11px;
}
.howto-article-visual .hm-inp,
.howto-article-visual .hm-notebox {
  font-size: 13px;
}
.howto-article-visual .hm-addr-head h4 {
  font-size: 19px;
}
.howto-article-visual .hm-addr-head p {
  font-size: 13px;
  line-height: 1.35;
}
.howto-article-visual .hm-btn-continue {
  font-size: 16px;
  height: 50px;
}
.howto-article-visual .hm-imp-title {
  font-size: 1.05rem;
}
.howto-article-visual .hm-imp-hero {
  font-size: 1.35rem;
}
.howto-article-visual .hm-imp-sub {
  font-size: 0.88rem;
  line-height: 1.45;
}
.howto-article-visual .hm-imp-btn {
  font-size: 16px;
  height: 48px;
}
.howto-article-visual .howto-visual-wrap--install {
  min-height: 300px;
  padding: 36px 20px 40px;
}
.howto-article-visual .howto-install-appicon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
}
.howto-article-visual .howto-install-badge {
  width: 248px;
  max-width: 100%;
}
@media (max-width: 899px) {
  .howto-article-visual .howto-glow {
    margin-left: auto;
    margin-right: auto;
  }
}
    /* How-to: same visual rhythm as in-app onboarding (app/onboarding.tsx — pill, glow card, title, desc) */
    .howto {
      padding: 72px 0 80px;
      background: linear-gradient(180deg, #F8FAFC 0%, #FAFCFE 45%, #F0F4FF 100%);
      border-top: 1px solid var(--border);
    }
    .howto .section-sub {
      max-width: 720px;
    }
    .howto-list {
      max-width: 400px;
      margin: 40px auto 0;
      padding: 0 12px;
    }
    .howto-slide {
      margin-bottom: 56px;
      scroll-margin-top: 88px;
    }
    .howto-slide:last-child {
      margin-bottom: 0;
    }
    .howto-slide-inner {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
    .howto-step-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 5px 12px;
      border-radius: 999px;
      background: #EEF2FF;
      border: 1px solid rgba(106, 111, 230, 0.1);
      font-size: 12px;
      font-weight: 600;
      color: #6A6FE6;
      letter-spacing: 0.03em;
      margin-bottom: 14px;
      line-height: 1.2;
    }
    /* Single preview card: glow (shadow) + hairline border like onboarding visualWrap */
    .howto-glow {
      width: 100%;
      max-width: 304px;
      margin: 0 auto 22px;
      border-radius: 22px;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    }
    .howto-visual-wrap {
      width: 100%;
      min-height: 280px;
      max-height: min(392px, 52vh);
      border-radius: 22px;
      overflow: hidden;
      background: #FCFBFF;
      border: 1px solid rgba(15, 23, 42, 0.08);
      display: flex;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
    }
    .howto-visual-wrap img {
      width: 100%;
      height: 100%;
      max-height: min(392px, 52vh);
      object-fit: contain;
      object-position: center;
      vertical-align: middle;
    }
    .howto-visual-wrap--install {
      padding: 24px 16px 28px;
      min-height: 240px;
    }
    .howto-install-stack {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 18px;
    }
    .howto-install-appicon {
      width: 72px;
      height: 72px;
      border-radius: 16px;
      box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
    }
    .howto-install-badge-link {
      display: inline-block;
      line-height: 0;
      border-radius: 8px;
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    .howto-install-badge-link:hover {
      transform: translateY(-1px);
      box-shadow: 0 8px 24px rgba(106, 111, 230, 0.18);
    }
    .howto-install-text-link {
      line-height: 1.35;
      padding: 12px 22px;
      font-size: 0.9375rem;
      font-weight: 700;
      color: #fff;
      background: var(--accent);
      border-radius: 12px;
      text-decoration: none;
      box-shadow: 0 4px 14px rgba(106, 111, 230, 0.35);
    }
    .howto-install-text-link:hover {
      color: #fff;
    }
    .howto-install-badge {
      display: block;
      width: 200px;
      max-width: 100%;
      height: auto;
      border-radius: 8px;
    }
    .howto-slide-title {
      width: 100%;
      max-width: 304px;
      margin: 0 auto 8px;
      font-size: clamp(1.35rem, 4.2vw, 1.5rem);
      font-weight: 700;
      line-height: 1.25;
      letter-spacing: -0.035em;
      color: #0F172A;
      min-height: 2.5em;
    }
    @media (min-width: 768px) {
      .howto-slide-title,
      .howto-slide-desc {
        max-width: 400px;
      }
    }
    .howto-slide-desc {
      width: 100%;
      max-width: 304px;
      margin: 0;
      font-size: 15px;
      line-height: 22px;
      color: #64748B;
      text-align: center;
    }

    /* How-to UI mocks — parity with app/onboarding.tsx (AppColors, slideStyles, OptStopCard) */
    .howto-visual-wrap--mock {
      padding: 0;
      align-items: stretch;
      justify-content: flex-start;
    }
    .howto-mock {
      width: 100%;
      box-sizing: border-box;
      padding: 14px 16px 12px;
      background: #FCFBFF;
      text-align: left;
      font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
      overflow-x: hidden;
      overflow-y: auto;
      max-height: min(392px, 52vh);
      -webkit-overflow-scrolling: touch;
    }
    .howto-mock *,
    .howto-mock *::before,
    .howto-mock *::after {
      box-sizing: border-box;
    }
    .hm-svg {
      flex-shrink: 0;
      display: block;
    }
    .hm-search-row {
      display: flex;
      align-items: center;
      height: 38px;
      padding: 0 14px;
      background: #F5F6FF;
      border-radius: 20px;
      margin-bottom: 10px;
      width: 100%;
    }
    .hm-search-row .hm-svg {
      margin-right: 8px;
    }
    .hm-search-row span {
      font-size: 12px;
      color: #475569;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .hm-chip-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 6px;
      margin-top: 2px;
    }
    .hm-chip {
      display: inline-flex;
      align-items: center;
      height: 28px;
      padding: 0 10px;
      border-radius: 12px;
      background: #EEF2FF;
      gap: 5px;
    }
    .hm-chip span {
      font-size: 10px;
      font-weight: 600;
      color: #6A6FE6;
      max-width: 102px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .hm-result {
      display: flex;
      align-items: center;
      background: #F8FAFC;
      padding: 12px;
      border-radius: 16px;
      margin-top: 6px;
      border: 1px solid #E8E6F4;
      min-height: 52px;
      min-width: 0;
    }
    .hm-result-ico {
      width: 30px;
      height: 30px;
      border-radius: 10px;
      background: #EEF2FF;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 10px;
      flex-shrink: 0;
    }
    .hm-result-txt {
      flex: 1;
      min-width: 0;
    }
    .hm-result-title {
      font-size: 12px;
      font-weight: 600;
      color: #0F172A;
      line-height: 16px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .hm-result-sub {
      font-size: 10px;
      color: #64748B;
      margin-top: 3px;
      line-height: 14px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .hm-chev {
      margin-left: 6px;
      flex-shrink: 0;
      opacity: 0.85;
    }
    .hm-handle {
      width: 40px;
      height: 5px;
      border-radius: 3px;
      background: #E2E8F0;
      margin: 0 auto 12px;
    }
    /* OCR article: camera / label scan step (pairs with confirm sheet mock) */
    .hm-scan-mock {
      padding: 14px 14px 12px;
      text-align: left;
    }
    .hm-scan-bar {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 12px;
    }
    .hm-scan-bar-title {
      font-size: 16px;
      font-weight: 800;
      color: #0f172a;
      letter-spacing: -0.02em;
    }
    .hm-scan-viewport {
      border-radius: 18px;
      background: linear-gradient(165deg, #1e293b 0%, #334155 42%, #0f172a 100%);
      padding: 20px 14px 14px;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }
    .hm-scan-frame {
      position: relative;
      margin: 0 auto;
      width: 100%;
      max-width: 210px;
      aspect-ratio: 3 / 4;
    }
    .hm-scan-corner {
      position: absolute;
      width: 26px;
      height: 26px;
      border-color: rgba(255, 255, 255, 0.92);
      border-style: solid;
      border-width: 0;
      pointer-events: none;
    }
    .hm-scan-corner--tl {
      top: 0;
      left: 0;
      border-top-width: 3px;
      border-left-width: 3px;
      border-top-left-radius: 4px;
    }
    .hm-scan-corner--tr {
      top: 0;
      right: 0;
      border-top-width: 3px;
      border-right-width: 3px;
      border-top-right-radius: 4px;
    }
    .hm-scan-corner--bl {
      bottom: 0;
      left: 0;
      border-bottom-width: 3px;
      border-left-width: 3px;
      border-bottom-left-radius: 4px;
    }
    .hm-scan-corner--br {
      bottom: 0;
      right: 0;
      border-bottom-width: 3px;
      border-right-width: 3px;
      border-bottom-right-radius: 4px;
    }
    .hm-scan-label-card {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      width: 78%;
      padding: 10px 10px 12px;
      background: #e8ddd4;
      border-radius: 8px;
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
      border: 1px solid rgba(15, 23, 42, 0.12);
    }
    .hm-scan-bars {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 2px;
      height: 34px;
      margin-bottom: 8px;
    }
    .hm-scan-bars span {
      flex: 1 1 auto;
      min-width: 2px;
      background: #1e293b;
      border-radius: 1px;
      height: 85%;
    }
    .hm-scan-bars span:nth-child(odd) {
      height: 100%;
    }
    .hm-scan-bars span:nth-child(3n) {
      height: 70%;
    }
    .hm-scan-fake-line {
      height: 5px;
      border-radius: 3px;
      background: #94a3b8;
      margin-bottom: 5px;
      opacity: 0.85;
    }
    .hm-scan-fake-line--long {
      width: 100%;
    }
    .hm-scan-fake-line--mid {
      width: 72%;
    }
    .hm-scan-fake-line:not(.hm-scan-fake-line--long):not(.hm-scan-fake-line--mid) {
      width: 88%;
    }
    .hm-scan-hint {
      margin: 14px 0 0;
      text-align: center;
      font-size: 11px;
      font-weight: 600;
      color: rgba(248, 250, 252, 0.78);
      letter-spacing: 0.02em;
    }
    .hm-scan-shutter-row {
      display: flex;
      justify-content: center;
      margin-top: 14px;
    }
    .hm-scan-shutter {
      width: 52px;
      height: 52px;
      border-radius: 50%;
      border: 4px solid rgba(255, 255, 255, 0.35);
      background: radial-gradient(circle at 35% 35%, #f8fafc 0%, #e2e8f0 40%, #cbd5e1 100%);
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    }
    .hm-confirm-pad {
      padding-top: 2px;
    }
    .hm-addr-head {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      margin-bottom: 12px;
    }
    .hm-addr-head-main {
      flex: 1;
      min-width: 0;
    }
    .hm-pencil {
      margin-top: 2px;
      flex-shrink: 0;
    }
    .hm-addr-head h4 {
      margin: 0;
      font-size: 17px;
      font-weight: 800;
      color: #0F172A;
      line-height: 1.2;
      flex: 1;
      min-width: 0;
    }
    .hm-addr-head p {
      margin: 2px 0 0;
      font-size: 12px;
      color: #64748B;
      line-height: 16px;
    }
    .hm-grid2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px 8px;
      margin-bottom: 10px;
    }
    .hm-lbl {
      font-size: 10px;
      color: #64748B;
      margin-bottom: 4px;
      font-weight: 600;
      display: block;
    }
    .hm-inp {
      border: 1px solid #E8E6F4;
      border-radius: 10px;
      padding: 7px 10px;
      background: #F8FAFC;
      min-height: 34px;
      font-size: 12px;
      font-weight: 500;
      color: #0F172A;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .hm-notebox {
      border: 1px solid #E8E6F4;
      border-radius: 10px;
      padding: 8px 10px;
      background: #F8FAFC;
      min-height: 44px;
      margin-bottom: 8px;
      font-size: 12px;
      font-weight: 500;
      color: #0F172A;
      line-height: 1.35;
    }
    .hm-visit {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
      margin-bottom: 4px;
    }
    .hm-visit-chip {
      border: 1px solid #E8E6F4;
      border-radius: 10px;
      padding: 6px 10px;
      background: #F8FAFC;
      font-size: 13px;
      font-weight: 700;
      color: #0F172A;
    }
    .hm-visit-unit {
      font-size: 11px;
      color: #64748B;
      font-weight: 600;
    }
    .hm-btn-continue {
      margin-top: 10px;
      background: #6A6FE6;
      height: 46px;
      border-radius: 23px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      color: #fff;
      font-size: 15px;
      font-weight: 700;
      box-shadow: 0 2px 8px rgba(106, 111, 230, 0.35);
    }
    .hm-imp-title {
      font-size: 17px;
      font-weight: 800;
      color: #0F172A;
      margin: 0 0 6px;
    }
    .hm-imp-hero {
      font-size: 13px;
      font-weight: 700;
      color: #475569;
      margin: 0 0 6px;
    }
    .hm-imp-sub {
      font-size: 10px;
      line-height: 14px;
      color: #64748B;
      margin: 0 0 14px;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .hm-imp-btn {
      width: 100%;
      height: 46px;
      border-radius: 14px;
      background: #6A6FE6;
      color: #fff;
      font-size: 15px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 8px rgba(106, 111, 230, 0.3);
    }
    .hm-map {
      height: 198px;
      border-radius: 16px;
      background: linear-gradient(165deg, #b8d9f0 0%, #d4e8f7 45%, #c9e0f5 100%);
      position: relative;
      overflow: hidden;
      border: 1px solid #E8E6F4;
    }
    .hm-map-b {
      position: absolute;
      background: rgba(255, 255, 255, 0.35);
      border-radius: 4px;
    }
    .hm-map-route {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
    }
    .hm-map-route path {
      fill: none;
      stroke: #4285F4;
      stroke-width: 3.5;
      stroke-linecap: round;
      stroke-linejoin: round;
      opacity: 0.92;
    }
    .hm-map-pin {
      position: absolute;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: #6A6FE6;
      color: #fff;
      font-size: 11px;
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 2px solid #fff;
      box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
      transform: translate(-50%, -50%);
    }
    .hm-map-pin--s {
      background: #1CB386;
      width: 24px;
      height: 24px;
      font-size: 10px;
    }
    .hm-list-col {
      display: flex;
      flex-direction: column;
      min-height: 240px;
      max-height: min(340px, 48vh);
    }
    .hm-list-scroll {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      margin-bottom: 4px;
    }
    .hm-list-row {
      display: flex;
      align-items: center;
      background: #FCFBFF;
      border-radius: 16px;
      padding: 9px 11px;
      margin-bottom: 5px;
      border: 1px solid #E8E6F4;
      min-height: 48px;
    }
    .hm-list-badge {
      width: 28px;
      height: 28px;
      border-radius: 9px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 8px;
      flex-shrink: 0;
      font-size: 11px;
      font-weight: 800;
    }
    .hm-list-badge--s {
      background: #6A6FE6;
      color: #fff;
    }
    .hm-list-badge--n {
      background: #F1F5F9;
      color: #0F172A;
    }
    .hm-list-mid {
      flex: 1;
      min-width: 0;
    }
    .hm-list-t {
      font-size: 11px;
      font-weight: 700;
      color: #0F172A;
      line-height: 14px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .hm-list-st {
      font-size: 9px;
      color: #64748B;
      margin-top: 1px;
      line-height: 12px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .hm-reorder {
      margin-left: 4px;
      color: #CBD5E1;
      flex-shrink: 0;
    }
    .hm-opt-btn {
      width: 100%;
      height: 40px;
      border-radius: 14px;
      background: #6A6FE6;
      color: #fff;
      font-size: 13px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: 6px;
      flex-shrink: 0;
      box-shadow: 0 2px 8px rgba(106, 111, 230, 0.28);
    }
    .hm-opt-wrap {
      margin-bottom: 8px;
    }
    .hm-opt-wrap:last-child {
      margin-bottom: 0;
    }
    .hm-opt-card {
      position: relative;
      border-radius: 16px;
      padding: 10px 12px 10px 12px;
      border: 1px solid #E8E6F4;
      background: #FCFBFF;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    }
    .hm-opt-card--done {
      opacity: 0.7;
      background: #F8FAFC;
      border-color: rgba(28, 179, 134, 0.5);
      border-width: 1.5px;
    }
    .hm-opt-card--active {
      border: 2px solid #6A6FE6;
      padding-left: 14px;
      box-shadow: none;
    }
    .hm-opt-card--active::before {
      content: "";
      position: absolute;
      left: 0;
      top: 12px;
      bottom: 12px;
      width: 4px;
      background: #6A6FE6;
      border-radius: 0 4px 4px 0;
    }
    .hm-opt-row {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .hm-opt-badge {
      width: 32px;
      height: 32px;
      border-radius: 10px;
      background: #F1F5F9;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      font-weight: 800;
      color: #64748B;
      flex-shrink: 0;
    }
    .hm-opt-badge--on {
      background: #6A6FE6;
      color: #fff;
    }
    .hm-opt-badge--done {
      background: #F1F5F9;
      border: 1px solid #E2E8F0;
      color: #64748B;
    }
    .hm-opt-addr {
      flex: 1;
      min-width: 0;
    }
    .hm-opt-line1 {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 2px;
      min-height: 20px;
    }
    .hm-opt-addr-t {
      flex: 1;
      min-width: 0;
      font-size: 12px;
      font-weight: 700;
      color: #0F172A;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .hm-opt-card--done .hm-opt-addr-t,
    .hm-opt-card--done .hm-opt-sub {
      color: #475569;
      text-decoration: line-through;
    }
    .hm-opt-card--active .hm-opt-addr-t {
      font-weight: 800;
    }
    .hm-opt-eta {
      font-size: 11px;
      font-weight: 700;
      color: #64748B;
      flex-shrink: 0;
    }
    .hm-opt-card--active .hm-opt-eta {
      color: #6A6FE6;
    }
    .hm-opt-sub {
      font-size: 10px;
      color: #64748B;
      font-weight: 500;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .hm-opt-dots {
      color: #64748B;
      font-size: 18px;
      line-height: 1;
      padding: 0 2px;
      flex-shrink: 0;
    }
    .hm-opt-actions {
      display: flex;
      gap: 6px;
      margin-top: 10px;
      align-items: center;
    }
    .hm-opt-b {
      flex: 1;
      min-width: 0;
      height: 34px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.02em;
    }
    .hm-opt-b-go {
      background: #EEF2FF;
      border: 2px solid #6A6FE6;
      color: #6A6FE6;
    }
    .hm-opt-b-done {
      background: #ECFDF5;
      border: 2px solid #1CB386;
      color: #1CB386;
    }
    .hm-opt-b-fail {
      background: #FEF2F2;
      border: 2px solid #E85C5C;
      color: #E85C5C;
    }
    .hm-nav {
      display: flex;
      flex-direction: column;
      min-height: 200px;
      background: #FCFBFF;
    }
    .hm-nav-bar {
      background: #1a4731;
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      padding: 11px 14px;
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }
    .hm-nav-bar span {
      flex: 1;
      line-height: 1.35;
    }
    .hm-nav-map {
      flex: 1;
      min-height: 130px;
      background: linear-gradient(180deg, #e8e4dc 0%, #d8e4ec 55%, #cfd9e6 100%);
      position: relative;
    }
    .hm-nav-line {
      position: absolute;
      left: 12%;
      right: 18%;
      top: 42%;
      height: 4px;
      background: #4285F4;
      border-radius: 2px;
      transform: rotate(-8deg);
      opacity: 0.9;
    }
    .hm-nav-pin {
      position: absolute;
      right: 22%;
      top: 38%;
      width: 14px;
      height: 14px;
      background: #EA4335;
      border-radius: 50% 50% 50% 0;
      transform: rotate(-45deg);
      border: 2px solid #fff;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    }
    .hm-mr-h {
      font-size: 17px;
      font-weight: 800;
      color: #0F172A;
      margin: 0 0 10px;
    }
    .hm-mr-card {
      background: #FCFBFF;
      border: 1px solid #E8E6F4;
      border-radius: 16px;
      padding: 12px 14px;
      margin-bottom: 8px;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    }
    .hm-mr-card:last-child {
      margin-bottom: 0;
    }
    .hm-mr-t {
      font-size: 14px;
      font-weight: 700;
      color: #0F172A;
      margin-bottom: 6px;
    }
    .hm-mr-meta {
      font-size: 11px;
      color: #64748B;
      margin-bottom: 8px;
    }
    .hm-mr-badge {
      display: inline-block;
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 0.05em;
      padding: 4px 8px;
      border-radius: 8px;
      background: #FEF3C7;
      color: #92400E;
    }
    .hm-mr-badge--done {
      background: #ECFDF5;
      color: #064E3B;
    }

    /* My Routes — parity with app RouteCard.tsx + AppColors (theme.ts) */
    .howto-mock--myroutes-app {
      padding: 12px 12px 14px;
      background: #f8fafc;
    }
    .app-myroutes-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 4px 11px;
      border-radius: 999px;
      background: #eef2ff;
      border: 1px solid rgba(106, 111, 230, 0.12);
      font-size: 11px;
      font-weight: 700;
      color: #6a6fe6;
      letter-spacing: 0.02em;
      margin: 0 0 10px;
    }
    .app-myroutes-preview {
      background: #f8fafc;
      border-radius: 20px;
      padding: 0;
    }
    .app-myroutes-title {
      font-size: 17px;
      font-weight: 800;
      color: #0f172a;
      letter-spacing: -0.02em;
      line-height: 1.25;
      margin: 0 0 14px;
      padding: 0 2px;
    }
    .app-rcard {
      position: relative;
      background: #FCFBFF;
      border-radius: 24px;
      padding: 18px 18px 16px;
      margin-bottom: 16px;
      border: 2px solid transparent;
      box-shadow: 0 5px 16px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.05);
    }
    .app-rcard:last-child {
      margin-bottom: 0;
    }
    .app-rcard-badge {
      position: absolute;
      top: -9px;
      right: 14px;
      padding: 4px 11px;
      border-radius: 8px;
      font-size: 10px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      background: #FCFBFF;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.05);
      z-index: 2;
    }
    .app-rcard-badge--started {
      background: #fef3c7;
      color: #d97706;
    }
    .app-rcard-badge--finished {
      background: #ecfdf5;
      color: #1cb386;
    }
    .app-rcard-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 11px;
    }
    .app-rcard-name {
      font-size: 16px;
      font-weight: 700;
      color: #0f172a;
      line-height: 1.25;
      flex: 1;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .app-rcard-more {
      flex-shrink: 0;
      color: #64748b;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 22px;
      height: 22px;
    }
    .app-rcard-details {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 14px;
      margin-bottom: 13px;
    }
    .app-rcard-d {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 12px;
      font-weight: 500;
      color: #64748b;
      min-width: 0;
    }
    .app-rcard-d svg {
      flex-shrink: 0;
      opacity: 0.92;
    }
    .app-rcard-stops {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 7px;
      font-size: 11px;
      font-weight: 700;
      color: #475569;
    }
    .app-rcard-stops span:last-child {
      color: #64748b;
    }
    .app-rcard-bar {
      height: 9px;
      background: #f1f5f9;
      border-radius: 5px;
      overflow: hidden;
    }
    .app-rcard-bar-fill {
      height: 100%;
      border-radius: 0;
    }
    .app-rcard-bar-fill--primary {
      background: #6a6fe6;
    }
    .app-rcard-bar-fill--success {
      background: #1cb386;
    }

/* Article-side UI mocks hidden; install guide shows app icon + Play CTA (see IMAGE_SOURCES.txt). */
.howto-page-main .howto-article-visual:not(.howto-article-visual--install) {
  display: none !important;
}
.howto-page-main .howto-article-grid:not(.howto-article-grid--install-visual),
.howto-page-main .howto-article-grid--ocr {
  grid-template-columns: 1fr !important;
  max-width: 720px;
}

/* Simple SEO cluster pages (same shell as how-to) */
.howto-simple-inner {
  max-width: 720px;
  margin: 0 auto;
}
.howto-simple-title {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}
.howto-simple-lead {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.howto-simple-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-top: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.howto-simple-card h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}
.howto-simple-card p {
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.55;
}
.howto-simple-card p:last-child {
  margin-bottom: 0;
}
.howto-simple-links h2 {
  margin-top: 0;
}
.howto-simple-links a {
  margin-right: 14px;
  display: inline-block;
  margin-top: 6px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.howto-simple-links a:hover {
  text-decoration: underline;
}
.howto-simple-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  min-height: 44px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 2px 12px rgba(106, 111, 230, 0.35);
}
.howto-simple-btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* Legal documents (privacy, terms) */
.howto-legal-document {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  max-width: 900px;
  margin: 0 auto;
}
.howto-legal-document h1 {
  color: var(--text);
  border-bottom: 3px solid var(--accent);
  padding-bottom: 10px;
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.howto-legal-document h2 {
  color: #1e40af;
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 700;
}
.howto-legal-document h3 {
  color: var(--text);
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 1.02rem;
  font-weight: 700;
}
.howto-legal-document p {
  margin: 0 0 12px;
  line-height: 1.6;
  color: var(--text);
}
.howto-legal-document ul,
.howto-legal-document ol {
  margin: 0 0 12px 20px;
  padding: 0;
}
.howto-legal-document li {
  margin-bottom: 6px;
}
.howto-legal-document a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.howto-legal-document a:hover {
  text-decoration: underline;
}
.howto-legal-document .last-updated {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
}
.howto-legal-document code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.howto-legal-document .summary-box {
  background: #f0f0f8;
  padding: 20px;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  margin: 20px 0;
}
.howto-legal-document .summary-box h2 {
  margin-top: 0;
}
.howto-legal-document .legal-outro {
  text-align: center;
  color: var(--text-muted);
  margin-top: 24px;
}
@media (max-width: 600px) {
  .howto-legal-document {
    padding: 22px 18px;
  }
}
