/* /learn/ (item 183, docs/design/sketches/183-picture.md option B, 183-parts.css): the tutorial library. Read mode: one column, the
   steps as text, a shot beside (Plain) or under (Large & clear) each step, every shot full size in 1 tap, one Try it last.
   Tokens: Plain = public/app.css; Large & clear = 20 px body, 7:1 text, 56 px targets, accent per the 183 review
   (light 7.52:1 on bg, dark 9.19:1 on bg / 7.44 on surface). The theme is <html data-theme="plain|large">. */
:root {
  --bg: #f2f2f7; --surface: #ffffff; --surface-2: #f7f7fa; --ink: #1d1d1f; --muted: #6e6e73; --line: #d8d8de;
  --accent: #c8372d; --accent-ink: #ffffff; --note: #fff6cc; --note-ink: #2a2414;
  --pin-head: #c8372d; --pin-glint: #ffffff; --po-accent: #c8372d; --po-on-accent: #ffffff;
  --viewer-bg: #000000; --viewer-ink: #ffffff; --viewer-muted: #c7c7cc; --viewer-btn: #1c1c1e; --viewer-x: #3a3a3c; --viewer-line: #48484a; --viewer-ring: #ff5a4a;
  --scrim: rgba(0, 0, 0, .62);
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --body: 17px; --small: 15px; --tap: 44px; --btn: 52px; --num: 32px;
  --shot-dim: 1;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000000; --surface: #1c1c1e; --surface-2: #2c2c2e; --ink: #f5f5f7; --muted: #98989f; --line: #38383a;
    --accent: #ff5a4a; --accent-ink: #1a0604; --po-accent: #ff5a4a; --po-on-accent: #1a0604; --note: #3b3522; --note-ink: #f3ecd2; --shot-dim: .86; }
}
[data-theme="large"] { --ink: #000000; --muted: #3a3a3f; --line: #9a9aa2; --accent: #98241c; --accent-ink: #ffffff; --po-accent: #98241c; --po-on-accent: #ffffff;
  --body: 20px; --small: 18px; --tap: 56px; --btn: 60px; --num: 38px; }
@media (prefers-color-scheme: dark) {
  [data-theme="large"] { --ink: #ffffff; --muted: #d6d6dc; --line: #6a6a70; --accent: #ff8475; --accent-ink: #000000; --po-accent: #ff8475; --po-on-accent: #000000; }
}
/* Chinese: a face with the script's bold */
:lang(zh) { --ui: -apple-system, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif; }
[lang="en"] { --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif; }

* { box-sizing: border-box; margin: 0; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: var(--body)/1.45 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.nb { white-space: nowrap; }

/* top bar: the logo is the way home; Sign in */
.top { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: max(0px, env(safe-area-inset-top)) 16px 0; }
.logo { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); font: 700 20px/1 var(--ui); letter-spacing: -.01em; text-decoration: none; }
.logo svg { width: 22px; height: 22px; }
.logo .pin-head { fill: var(--pin-head); } .logo .pin-glint { fill: var(--pin-glint); opacity: .55; }
.signin { flex-shrink: 0; white-space: nowrap; min-height: var(--tap); display: inline-flex; align-items: center; padding: 0 4px; font-size: var(--small); font-weight: 600; color: var(--accent); text-decoration: none; }

/* the reading column */
.doc { padding: 8px 16px 40px; max-width: 680px; margin: 0 auto; }
.doc h1 { font: 700 34px/1.1 var(--serif); letter-spacing: -.02em; margin: 6px 0 12px; overflow-wrap: break-word; text-wrap: pretty; }
[data-theme="large"] .doc h1 { font-size: 38px; }
.doc p { margin: 0 0 10px; max-width: 62ch; }
.crumb { font-size: var(--small); color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 6px; align-items: center; }
.crumb a { color: var(--accent); font-weight: 600; text-decoration: none; min-height: var(--tap); min-width: var(--tap); display: inline-flex; align-items: center; }
[dir="rtl"] .crumb span[aria-hidden] { transform: scaleX(-1); display: inline-block; }
.who { color: var(--muted); margin-bottom: 6px !important; }
.when { font-weight: 700; }
.takes { font-weight: 600; margin: 6px 0 4px !important; }
.doc > .status { background: var(--note); color: var(--note-ink); border-radius: 12px; padding: 10px 14px; margin: 10px 0 0 !important; max-width: none; }

/* the short: one row under the taps line; the transcript as text after Try it */
.short { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; min-height: 64px; padding: 6px 18px 6px 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; touch-action: manipulation; user-select: none; }
.short:active { transform: scale(.98); }
.short .poster { position: relative; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; flex: none; }
[data-theme="large"] .short .poster { width: 60px; height: 60px; }
.short .poster img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.short .play { position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--scrim); }
.short .play::after { content: ""; position: absolute; left: 10px; top: 7px; border: 6px solid transparent; border-left: 9px solid var(--viewer-ink); border-right: 0; }
.short b { display: block; font-weight: 700; }
.short .len { display: block; color: var(--muted); font-size: var(--small); }
.say { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 4px; }
.say h2 { font: 700 21px/1.2 var(--ui); margin: 24px 0 10px; }
[data-theme="large"] .say h2 { font-size: 25px; }

/* the steps: words, then a 104 px shot beside them (Large & clear: a 240 px shot under the words) */
.steps { list-style: none; padding: 0; margin: 26px 0 0; }
/* 1482: the try-it list also wears the class .top (the header bar's flex + padding), which shrank the step to a narrow card; it is a plain list */
.steps.top { display: block; min-height: 0; padding: 0; }
.steps > li { display: grid; grid-template-columns: var(--num) minmax(0, 1fr) 104px; gap: 4px 12px; padding: 18px 0; border-top: 1px solid var(--line); align-items: start; }
.num { width: var(--num); height: var(--num); border-radius: 50%; background: var(--ink); color: var(--bg); font: 700 var(--small)/var(--num) var(--ui); text-align: center; }
.steps .body { grid-column: 2; }
.steps > li:not(:has(.shot)) > .body { grid-column: 2 / -1; }
.act-line { overflow-wrap: break-word; }
.act-line b { font-weight: 700; }
.see { color: var(--muted); margin-top: 4px !important; }
.taps { display: block; font: 600 var(--small)/1.3 var(--ui); color: var(--muted); margin-top: 6px; }
.shot { grid-column: 3; grid-row: 1 / span 3; position: relative; display: block; width: 104px; border-radius: 10px; cursor: zoom-in; touch-action: manipulation; }
.shot img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); filter: brightness(var(--shot-dim)); }
.shot:active { transform: scale(.98); }
.steps .shot + .shot, [data-theme="large"] .steps .shot + .shot { grid-row: auto; margin-top: 8px; }   /* 636: a step's second picture sits under its first */
[data-theme="large"] .steps > li { grid-template-columns: var(--num) minmax(0, 1fr); }
[data-theme="large"] .shot { grid-column: 2; grid-row: auto; width: 240px; margin-top: 10px; }
[data-theme="large"] .shot img { border-radius: 16px; }
/* the ring: where to tap, drawn over the shot at the spot the walk recorded */
.ring { position: absolute; height: 6.4%; transform: translate(-50%, -50%); border: 3px solid var(--accent); border-radius: 999px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); pointer-events: none; }
.shot .ring { border-width: 2px; }
[data-theme="large"] .shot .ring { border-width: 3px; }

/* Try it: the one large button, last; the date the steps were checked */
.try { margin-top: 30px; }
.act { display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--btn); padding: 12px 22px; border-radius: 12px; background: var(--accent); color: var(--accent-ink);
  font: 600 max(18px, var(--body))/1.2 var(--ui); text-decoration: none; text-align: center; touch-action: manipulation; user-select: none; }
.act:active { transform: scale(.98); }
.walked { color: var(--muted); font-size: var(--small); margin-top: 28px !important; }

/* the index: one column of cards, newest first; each card is one tap target with the whole result screen beside it */
.intro { color: var(--muted); }
.cards { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px 14px 16px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; touch-action: manipulation; }
.card:active { transform: scale(.99); }
.card .pad { grid-column: 1; grid-row: 2; }
.card picture { grid-column: 1; grid-row: 1; display: block; }
.card .thumb { display: block; width: 100%; height: auto; aspect-ratio: 9 / 5; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); filter: brightness(var(--shot-dim)); }
.card h2 { font: 700 calc(var(--body) + 3px)/1.25 var(--ui); color: var(--accent); margin: 0 0 6px; overflow-wrap: break-word; text-wrap: pretty; }
.card .meta { color: var(--muted); font-size: var(--small); margin: 0 !important; }
.card .lng { display: inline-block; font: 600 var(--small)/1.2 var(--ui); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; margin: 0 0 6px !important; }

/* Chinese (build condition 1): break only at the <wbr> between words, never inside one (照片, 留言, 作品); titles balanced */
:lang(zh) .doc h1, :lang(zh) .card h2, :lang(zh) .who, :lang(zh) .card .meta, :lang(zh) .act-line, :lang(zh) .see, :lang(zh) .intro { word-break: keep-all; overflow-wrap: normal; line-break: strict; }
:lang(zh) .doc h1, :lang(zh) .card h2 { text-wrap: balance; letter-spacing: 0; line-height: 1.25; }
:lang(zh) .act-line b { white-space: nowrap; }

/* the footer: trade name + address, then the links */
.foot2 { border-top: 1px solid var(--line); color: var(--muted); font-size: calc(var(--small) - 1px); padding: 24px 16px max(40px, env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.foot2 p { margin: 0; }
.foot2 address { font-style: normal; margin-top: 4px; }
[dir="rtl"] .foot2 address { text-align: right; }
.foot2 nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot2 a { color: inherit; display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); }
.foot2 nav a:first-child { color: var(--ink); }

/* full size: the shot on black with its ring; Step n of N; Back / Next / Close (or tap the shot, or Escape) */
.viewer { position: fixed; inset: 0; z-index: 20; background: var(--viewer-bg); color: var(--viewer-ink); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px;
  padding: max(8px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.viewer[hidden] { display: none; }
.viewer .x { justify-self: end; min-width: var(--tap); min-height: var(--tap); padding: 0 16px; border-radius: 999px; border: 0; background: var(--viewer-x); color: var(--viewer-ink); font: 600 var(--body)/1 var(--ui); }
.viewer .stage { position: relative; min-height: 0; }
.viewer .pic { position: absolute; inset: 0; margin: auto; display: block; height: 100%; max-width: 100%; }
.viewer .pic img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 14px; }
.viewer .pic .ring { border-color: var(--viewer-ring); }
.viewer video { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; border-radius: 14px; background: var(--viewer-bg); }
.viewer p { text-align: center; margin: 0; font-size: var(--body); line-height: 1.35; }
.viewer .vsee { display: block; color: var(--viewer-muted); font-size: var(--small); margin-top: 2px; }
.viewer .nav { display: flex; gap: 10px; margin-top: 10px; }
.viewer .nav button { flex: 1; min-height: var(--tap); border-radius: 12px; border: 1.5px solid var(--viewer-line); background: var(--viewer-btn); color: var(--viewer-ink); font: 600 var(--body)/1.2 var(--ui); padding: 6px 10px; touch-action: manipulation; user-select: none; }
.viewer .nav button:disabled { opacity: .4; }
.viewer .nav button[hidden] { display: none; }

/* desktop: the shot beside the words at 240 px, readable without opening it */
@media (min-width: 900px) {
  .top { padding: 0 40px; min-height: 72px; }
  .doc { padding: 24px 0 64px; }
  .doc h1 { font-size: 44px; margin-top: 20px; }
  .doc.page { max-width: 760px; }
  .steps > li, [data-theme="large"] .steps > li { grid-template-columns: 38px minmax(0, 1fr) 240px; gap: 4px 24px; padding: 24px 0; }
  .shot, [data-theme="large"] .shot { grid-column: 3; grid-row: 1 / span 3; width: 240px; margin-top: 0; }
  .shot img { border-radius: 16px; }
  .card { grid-template-columns: minmax(0, 1fr) 120px; }
  .foot2 { grid-template-columns: 1fr auto; align-items: start; gap: 24px; padding: 28px 40px 48px; }
  .foot2 nav { justify-content: flex-end; max-width: 640px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } .short:active, .shot:active, .act:active, .card:active { transform: none; } }

/* 379 - private tutorial pages on /learn/: parts added to public/learn.css (tokens only: --ink --bg --muted --line --note --note-ink --accent --surface). */
.doc .upd { color: var(--muted); font-size: var(--small); margin: 0 0 8px; }            /* "Updated November 21, 2026 (v3)", under the title */
.doc > .priv { background: var(--note); color: var(--note-ink); border-radius: 12px; padding: 10px 14px; margin: 10px 0 0; max-width: none; }  /* same box as .status */
.doc h2.sec { font: 700 21px/1.2 var(--ui); margin: 34px 0 10px; text-wrap: balance; }
[data-theme="large"] .doc h2.sec { font-size: 25px; }
/* the checklist / template to copy: one surface, one Copy button */
.copybox { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px 16px 14px; }
.copybox ul, .copybox ol { list-style: none; padding: 0; margin: 0; counter-reset: l; }
.copybox li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); counter-increment: l; }
.copybox li:last-child { border-bottom: 0; }
.copybox ul li::before { content: ""; position: absolute; left: 0; top: 15px; width: 20px; height: 20px; border: 2px solid var(--muted); border-radius: 6px; }
.copybox ol li::before { content: counter(l) "."; position: absolute; left: 0; top: 12px; width: 26px; font-weight: 700; color: var(--muted); }
.copybox li b { font-weight: 700; }
.copy { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 18px; margin-top: 6px; border-radius: 12px; border: 1.5px solid var(--accent); background: transparent; color: var(--accent); font: 600 var(--body)/1.2 var(--ui); touch-action: manipulation; user-select: none; }
.copy:active { transform: scale(.98); }
/* before / after: two blocks, the After carries the accent edge */
.ba { display: grid; gap: 10px; }
.ba > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.ba > div:last-child { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ba h3 { font: 700 var(--small)/1.2 var(--ui); color: var(--muted); letter-spacing: .02em; text-transform: uppercase; margin: 0 0 4px; }
.ba p { margin: 0 !important; }
.ba blockquote { margin: 6px 0 0; padding-inline-start: 12px; border-inline-start: 2px solid var(--line); color: var(--ink); }
/* a step that is not on PinOnce yet: "Coming soon" where the tap count would be, and a tag on its picture; no ring, no count */
.taps.soon { display: inline-block; background: var(--note); color: var(--note-ink); border-radius: 8px; padding: 2px 10px; font-weight: 700; }
.today { color: var(--muted); margin-top: 6px !important; }
.today b { color: var(--ink); }
.shot.soon::after { content: attr(data-soon); position: absolute; left: 6px; bottom: 6px; background: var(--note); color: var(--note-ink); font: 700 12px/1 var(--ui); padding: 5px 7px; border-radius: 6px; }
[data-theme="large"] .shot.soon::after { font-size: 14px; }
.viewer .vsee.soon { color: var(--viewer-ink); font-weight: 700; }
/* questions: each is an h2 (searchable), its answer one short paragraph; related and change log last */
.qa h2 { font: 700 19px/1.25 var(--ui); margin: 22px 0 6px; }
[data-theme="large"] .qa h2 { font-size: 22px; }
.log { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 4px; }
.log h2 { font: 700 var(--body)/1.2 var(--ui); margin: 20px 0 8px; }
.log ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--muted); font-size: var(--small); }
.log li b { color: var(--ink); }
.doc .lede { margin: 14px 0 0; }
/* Feedback pill and sheet for readers (item 772) */
.fbpill { display: block; margin: 16px auto 0; min-height: var(--tap); padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 var(--small)/1 var(--ui); }
.fbsheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; gap: 10px; padding: 16px 16px max(16px, env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.18); }
.fbsheet[hidden] { display: none; }
.fbsheet textarea, .fbsheet input { width: 100%; font: 16px/1.4 var(--ui); color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.fbsheet .row { display: flex; gap: 10px; justify-content: flex-end; }
.fbsheet button { min-height: var(--btn); padding: 0 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: 600 var(--body)/1 var(--ui); }
.fbsheet .go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fbmsg { margin: 0; color: var(--muted); font-size: var(--small); }
.fbmsg:empty { display: none; }
/* 695: Try it with your photo, inside step 1 (docs/design/sketches/695.css, option A) */
.steps .try-here .body { grid-column: 2 / -1; }
.tp-wall { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 16px 16px; margin: 12px 0 0; scroll-margin-top: 60px; }
.tp-wall { --tp-black: #1b1b1d; --tp-paper: #f7f5ef; --tp-dash: #b9b4a6; --tp-dashink: #6e6a5e; --tp-hair: rgba(0,0,0,.12); --tp-shadow: rgba(0,0,0,.28); --tp-edge: var(--line); }
@media (prefers-color-scheme: dark) { .tp-wall { --tp-edge: #6a6a70; } }
/* one primary while a photo is framed: the page's own Make-a-card button steps back to an outline */
body:has(.tp-wall) .try .act { background: none; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.tp-lead { text-align: center; margin: 0 0 12px; font-weight: 600; }
.tp-wall:not([data-state=start]) .tp-lead { display: none; }
.tp-frame { position: relative; margin: 0 auto; width: min(100%, 340px); aspect-ratio: 5 / 4; border-radius: 4px; background: var(--tp-black); padding: 15px; box-shadow: 0 0 0 1.5px var(--tp-edge),  0 10px 28px var(--tp-shadow); }
.tp-wall:not([data-state=start]) .tp-frame { width: min(100%, 250px); }
.tp-wall[data-state=start] .tp-frame { width: min(100%, 220px); }                                             /* the button clears the Feedback pill at 390 px (958) */
[data-theme="large"] .tp-wall[data-state=start] .tp-lead { height: 0; margin: 0; overflow: hidden; }                     /* Large & clear: the button stays on the first screen (958) */
[data-theme="large"] .tp-wall[data-state=start] .tp-frame { width: min(100%, 180px); }
.tp-mat { width: 100%; height: 100%; background: var(--tp-paper); padding: 9%; box-shadow: inset 0 0 0 1px var(--tp-hair); }
.tp-mat img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tp-mat img[hidden] { display: none; }
.tp-empty { display: grid; place-items: center; width: 100%; height: 100%; border: 2px dashed var(--tp-dash); color: var(--tp-dashink); font: 600 15px var(--ui); text-align: center; padding: 8px; }
.tp-wall:not([data-state=start]) .tp-empty { display: none; }
.tp-chips { display: flex; gap: 8px; justify-content: center; margin: 14px 0 4px; flex-wrap: wrap; }
.tp-chip { min-height: var(--tap); min-width: var(--tap); padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 600 var(--small)/1 var(--ui); touch-action: manipulation; }
.tp-chip[aria-pressed=true] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tp-price { text-align: center; font: 700 22px/1.2 var(--ui); margin: 6px 0 0; }
.tp-price small { display: block; font: 500 var(--small)/1.3 var(--ui); color: var(--muted); margin-top: 2px; }
.tp-soft { background: var(--note); color: var(--note-ink); border-radius: 12px; padding: 10px 14px; margin: 12px 0 0; font: 600 var(--small)/1.35 var(--ui); }
.tp-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--btn); border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font: 600 max(18px, var(--body))/1.2 var(--ui); touch-action: manipulation; user-select: none; margin-top: 14px; text-decoration: none; cursor: pointer; }
.tp-btn:active { transform: scale(.98); }
.tp-link { display: flex; align-items: center; justify-content: center; min-height: var(--tap); width: 100%; background: none; color: var(--accent); font: 600 var(--small) var(--ui); margin-top: 2px; touch-action: manipulation; cursor: pointer; }
.tp-wall:not([data-state=start]) .tp-pick, .tp-wall[data-state=kept] .tp-again { display: none; }
.tp-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.tp-kept { text-align: center; margin: 14px 0 0; font-size: 22px; }
.tp-wall [hidden] { display: none !important; }

/* 877 - "Did this help?" under the last step: two big buttons; the thanks shows after a Yes (#thanks). */
.helped { margin-top: 30px; text-align: center; }
.helped .hq { font-weight: 700; margin: 0 0 10px; }
.helped .hb { display: flex; gap: 12px; }
.helped .hbtn { display: flex; align-items: center; justify-content: center; min-height: var(--btn); border-radius: 12px; background: var(--accent); color: var(--accent-ink); flex: 1; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.helped .hbtn.alt { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.helped .hthanks { display: none; margin: 10px 0 0; font-weight: 700; }
.helped .hthanks:target { display: block; }
.helped .hcount { margin: 8px 0 0; color: var(--muted); font-size: var(--small); }

/* 163: a tutorial done with Pin is ticked above Do it with me */
.did { margin: 30px 0 -18px; font-weight: 600; color: var(--ink); }

/* 1032 Do it with me: first-screen button under the title, slim bar while reading, hidden while the end button shows */
.try.top { margin-top: 18px; }
.dobar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 14; padding: 8px 14px max(8px, env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); transform: translateY(0); transition: transform .2s ease; }
.dobar[hidden] { display: block; transform: translateY(110%); pointer-events: none; visibility: hidden; }
.dobar .act { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body:has(.dobar:not([hidden])) main { padding-bottom: 80px; }

/* 927 Café wall, Do it with me (option C): one frame at a time inside .tp-wall */
.cf-in { display: block; width: 100%; min-height: var(--btn); padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 500 max(16px, var(--body))/1.2 var(--ui); margin: 6px 0 0; }
.cf-row { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 8px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); margin: 8px 0 0; }
.cf-img { width: 64px; height: 64px; object-fit: cover; border-radius: 9px; background: var(--line); }
.cf-img[hidden] { display: none; }
.cf-img.cf-big { width: 100%; height: auto; max-height: 220px; object-fit: contain; }
.cf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.cf-ph { display: grid; gap: 4px; padding: 6px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 600 var(--small)/1.25 var(--ui); text-align: start; min-height: var(--tap); touch-action: manipulation; cursor: pointer; }
.cf-ph img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.cf-frame { display: block; width: 100%; height: 560px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); margin-top: 10px; }
.cf-mini { margin: 8px auto 0; padding: 12px; width: min(100%, 280px); border: 2px dashed var(--line); border-radius: 22px; background: var(--surface); text-align: center; }
.cf-mini b { display: block; margin-top: 6px; overflow-wrap: anywhere; }
.cf-vb { display: flex; gap: 4px; justify-content: center; }
.cf-vb .tp-link, .cf-vn .tp-link { width: auto; padding: 0 14px; min-height: 56px; }
.cf-thanks { margin: 10px 0 0; font-weight: 600; }
.cf-h4 { font: 700 18px/1.2 var(--ui); margin: 14px 0 4px; }
.cf-mail { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface); margin-top: 10px; }
.cf-mail small { display: block; margin-top: 12px; color: var(--muted); font-size: var(--small); }
.cf-sub { font-weight: 700; }
.cf-q { margin: 12px 0 0; padding: 10px 14px; border: 1px solid var(--accent); background: var(--note); color: var(--note-ink); border-radius: 8px; font-style: italic; }
.try-cafe .body { grid-column: 2 / -1; }
.try-cafe button.tp-link { border: 0; }
.try-cafe .pr-hb small { display: block; font: 500 var(--small)/1.3 var(--ui); color: var(--muted); }
.st-photo { display: block; width: 100%; max-height: 240px; object-fit: cover; border-radius: 12px; margin: 0 0 12px; }
.try-site .tp-wall { scroll-margin-top: 8px; padding-bottom: 72px; }   /* the Feedback pill never sits on a button (936 live review) */

/* 1019: a store's front page */
.store-date { margin: 0 0 4px; color: var(--accent); }
.store-sizes, .store-how { margin: 8px 0 12px; padding-left: 20px; }
.store-closed .tp-order { display: none; }
.store-ex { display: flex; gap: 12px; list-style: none; padding: 0; margin: 8px 0; }
.store-ex li { flex: 1; text-align: center; font-size: .9rem; }
/* 1502: at 360 px the logo and Sign in keep their size and one line; only the store name gives way (8 px gap: "Gus · Graduation" fits whole at 360) */
.store-hero { margin: 0 0 12px; padding: 12px; border-radius: 16px; }
.store-hero img { display: block; width: auto; max-width: 100%; height: auto; max-height: 80vh; margin: 0 auto; border-radius: 12px; }   /* 1527: the whole picture at every size - a step guide is never cut */
.store-ex img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.store-ex svg { width: 100%; height: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.store-ex .st-fr { fill: var(--tp-black, var(--text)); }
.store-ex .st-ph { fill: var(--line); }
/* 1415: a subscription store's plan card (src/learn/store/plan.js) */
.store-plan { margin: 0 0 16px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.store-plan h2 { margin: 0; }
.store-plan-price { margin: 2px 0 12px; font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.store-plan-nets { margin: 0 0 6px; color: var(--muted); }
.store-nets { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.store-nets li { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; }
/* 1620: a phone turned sideways (short screen): the guide stands to the left and the first tap sits beside it, on screen */
@media (max-height: 500px) and (orientation: landscape) {
  .store .doc h1 { margin: 6px 0 8px; }
  .store-hero { float: left; max-width: 62%; margin: 0 16px 8px 0; padding: 6px; }
  .store-hero > img { max-height: 52vh; }
  .store-hero ~ .try { display: flow-root; margin-top: 6px; }   /* its own box beside the guide, so the full-width button fits there */
  .store .store-sec { clear: both; }
  .store .store-hero + #prices + .store-plan { clear: none; display: flex; flex-direction: column; }   /* 2516: a store with one thing to start: its button beside the picture, on the first screen */
  .store .store-hero + #prices + .store-plan > .try { order: 1; }
  .store .store-hero + #prices + .store-plan > .store-plan-nets { order: 2; }
  .store .doc { display: flow-root; }   /* the page holds the guide, so the footer stays below it on a store with nothing after try */
  .store-hero ~ .status { display: flow-root; }   /* the closed-store note keeps its box beside the guide, not behind it */
}

/* 2071: new parts only (ez-), on the live learn.css tokens. The sheet is learn.css .fbsheet (item 772) with a visible title + labels. */
:where(.ez-sheet, .ez-ask, .ez-link) { font-family: inherit; }
.ez-ask { display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--tap, 44px); margin-top: 10px;
  padding: 8px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: transparent; color: var(--ink);
  font: 600 var(--body, 17px)/1.25 var(--ui); cursor: pointer; }
.ez-ask b { color: var(--accent); font-weight: 700; margin-inline-start: .3em; }
.ez-link { border: 0; background: none; padding: 0; color: var(--accent); font: 600 var(--body, 17px)/1.3 var(--ui);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: var(--tap, 44px); }
.foot2 nav .ez-link { font: inherit; font-weight: 600; min-height: 0; }
.ez-scrim { position: fixed; inset: 0; z-index: 24; background: rgba(0,0,0,.32); }
.fbsheet.ez-sheet { gap: 8px; border-radius: 16px 16px 0 0; }
.ez-sheet .ez-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ez-sheet .ez-hd h2 { margin: 0; font: 700 1.2rem/1.2 var(--ui); color: var(--ink); }
.ez-sheet .ez-x { min-height: var(--tap, 44px); min-width: var(--tap, 44px); padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: 600 var(--small, 15px)/1 var(--ui); }
.ez-sheet label { font: 600 var(--small, 15px)/1.3 var(--ui); color: var(--ink); margin-top: 4px; }
.ez-sheet textarea { min-height: 96px; resize: none; }
.ez-sheet .go { width: 100%; min-height: var(--btn, 50px); border-radius: 12px; font: 700 var(--body, 17px)/1 var(--ui); }
.ez-sheet .fbmsg { font-family: var(--ui); }
.ez-sheet .fbmsg.err { color: var(--accent); font-weight: 600; }
.ez-sheet.sent textarea, .ez-sheet.sent input, .ez-sheet.sent label, .ez-sheet.sent .go { display: none; }
.ez-sheet.sent .fbmsg { margin: 6px 0 4px; font: 700 1.1rem/1.35 var(--ui); color: var(--ink); overflow-wrap: anywhere; }
.ez-sheet[hidden], .ez-scrim[hidden] { display: none; }
@media (min-width: 900px) {
  .fbsheet.ez-sheet { left: 50%; right: auto; bottom: 32px; width: 480px; transform: translateX(-50%); border-radius: 16px; border: 1px solid var(--line); }
}

/* 2111/2046: a do-it-with-me page shows each real screen under its step, full width on a phone */
.steps.big > li > .body { grid-column: 2 / -1; }
.steps.big > li > .shot, [data-theme="large"] .steps.big > li > .shot { grid-column: 2 / -1; grid-row: auto; width: 100%; max-width: 390px; margin-top: 10px; }
.steps.big .shot img { width: 100%; height: auto; }
.try.top { margin: 16px 0 8px; }

.cmp-shot { margin: 14px 0; } .cmp-shot img { display: block; max-width: 100%; height: auto; max-height: 420px; margin: 0 auto; border-radius: 14px; border: 1px solid var(--line); }
.cmp-shot figcaption { font: var(--small)/1.35 var(--ui); color: var(--muted); margin-top: 6px; }
.cmp { overflow-x: auto; } .cmp table { border-collapse: collapse; width: 100%; font: var(--small)/1.35 var(--ui); }
.cmp th, .cmp td { text-align: start; vertical-align: top; padding: 8px 8px; border-bottom: 1px solid var(--line); }
.cmp thead th { font-weight: 700; } .cmp tbody th { font-weight: 600; color: var(--muted); }
.cmp .us { background: var(--surface); box-shadow: inset 2px 0 0 var(--accent); }
/* 1916: the posting store's front (option A): hero, today/next list, one photo becoming three posts, Free beside the paid plan */
.pf { display: grid; gap: 20px; }
.pf > * { min-width: 0; }
.pf h1 { margin: 0 0 10px; overflow-wrap: anywhere; }
.pf-for { margin: 0 0 16px; color: var(--muted); max-width: 36em; }
.pf .act { display: flex; align-items: center; justify-content: center; min-height: 48px; width: 100%; border-radius: 12px; font-weight: 650; text-decoration: none; background: var(--accent); color: var(--accent-ink); box-sizing: border-box; }
.pf .act.pf-quiet { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.pf-nets h2, .pf-card h2 { margin: 0 0 8px; font-size: 1rem; font-weight: 600; color: var(--muted); }
.pf-nets ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 14px; }
.pf-nets li { padding: 6px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; }
.pf-nets li.dim { border-style: dashed; background: transparent; color: var(--muted); }
.pf-why { margin: 0; color: var(--muted); }
.pf-demo { margin: 0; padding: 14px; display: grid; gap: 10px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; }
.pf-demo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.pf-demo ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pf-demo li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); }
.pf-demo li span { overflow-wrap: anywhere; }
.pf-rep { margin: 0; padding: 6px 10px; border-inline-start: 4px solid var(--accent); background: var(--bg); border-radius: 8px; }
.pf-rep small { display: block; color: var(--muted); }
.pf-plans { display: grid; gap: 14px; }
.pf-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; }
.pf-card h2 { color: var(--ink); font-size: 1.15rem; margin: 0; }
.pf-pr { margin: 0; font-size: 1.6rem; font-weight: 700; }
.pf-card ul { margin: 0 0 8px; padding-inline-start: 1.1em; flex: 1; }
@keyframes pf-up { from { opacity: .3; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pf-demo li:nth-child(1) { animation: pf-up .5s .8s both; } .pf-demo li:nth-child(2) { animation: pf-up .5s 1.5s both; } .pf-demo li:nth-child(3) { animation: pf-up .5s 2.2s both; } .pf-rep { animation: pf-up .5s 3.2s both; }
@media (prefers-reduced-motion: reduce) { .pf-demo li, .pf-rep { animation: none; } }
@media (min-width: 900px) {
  .pf { grid-template-columns: 1fr 1fr; grid-template-areas: "h d" "n d" "p p"; grid-template-rows: auto 1fr auto; column-gap: 48px; align-items: start; }
  .pf-head { grid-area: h; } .pf-nets { grid-area: n; } .pf-demo { grid-area: d; } .pf-plans { grid-area: p; grid-template-columns: 1fr 1fr; }
  .pf .act { width: 100%; }
  .doc.page:has(.pf) { max-width: none; width: min(1168px, 100% - 80px); }   /* 1916: the page uses the store band's width (x 136 at 1440), not a 760 column */
  .pf-plans { column-gap: 48px; } .pf-head .act { width: calc(100% - 36px); }   /* hero button as wide as the plan buttons (card padding 18 each side) */
}
.addr { margin: 18px 0 4px; display: grid; gap: 8px; }
.addr label { font: 600 var(--small)/1.3 var(--ui); color: var(--ink); }
.addr input { width: 100%; font: 16px/1.4 var(--ui); color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: var(--btn); }
.addr .act { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
