/* The signed-out /add tour. Values come from tokens.css, the frame from site.css. Hex appears only in the Telegram previews,
   which copy Telegram's own colours. */
.pd { font-size: 14px; line-height: 1.5; color: var(--text); overflow-x: clip; }
.pd [hidden] { display: none !important; }
.pd a { color: inherit; text-decoration: none; }
.pd h1, .pd h2, .pd h3 { font-family: inherit; color: var(--text); text-wrap: balance; margin: 0; }
.pd h1 { font-size: var(--t-title); font-weight: var(--w-title); line-height: 1.16; letter-spacing: var(--ls-title); }
.pd h2 { font-size: var(--t-section); font-weight: var(--w-title); line-height: 1.25; letter-spacing: var(--ls-section); }
.pd h3 { font-size: var(--t-card); font-weight: var(--w-strong); line-height: 1.35; letter-spacing: -.006em; }
.pd p { margin: 0; }
.pd b, .pd strong { font-weight: var(--w-strong); }
.pd :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pd-ic { flex: none; display: block; stroke-width: 1.75; }
.pd-wrap { max-width: var(--max-w); margin: 0 auto; padding-inline: var(--pad-x); }
.pd-lead { font-size: 14px; color: var(--muted); max-width: 72ch; text-wrap: pretty; }
.pd-hint { font-size: var(--t-small); color: var(--muted); text-wrap: pretty; }
.pd-sec { padding-block: 24px; }
.pd-sec-head { display: grid; gap: 4px; margin-bottom: 14px; }

/* Buttons: the panel's */
.pd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding-inline: 11px; border-radius: var(--r); border: 1px solid transparent; font: inherit; font-size: var(--t-ui); font-weight: var(--w-strong); line-height: 1.2; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, color .12s; }
.pd-btn-lg { height: 34px; padding-inline: 12px; }
.pd-btn-sm { height: 28px; padding-inline: 9px; font-size: var(--t-small); border-radius: 7px; }
.pd-btn-primary { background: var(--text); border-color: var(--text); color: var(--ink) !important; }
.pd-btn-primary:hover { background: var(--text-hover); border-color: var(--text-hover); }
.pd-btn-primary:disabled { background: var(--raise); border-color: var(--raise); color: var(--muted) !important; cursor: not-allowed; }
.pd-btn-line { background: var(--panel); border-color: var(--border-2); color: var(--text); }
.pd-btn-line:hover { background: var(--field); }
.pd-btn-line:disabled { color: var(--dim); background: var(--panel); cursor: not-allowed; }
.pd-textbtn { background: none; border: 0; padding: 0; font: inherit; font-size: var(--t-ui); font-weight: var(--w-strong); color: var(--accent-text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; transition: color .12s; }

/* Page head: a large light title, one line, the action on the right */
.pd-hero { padding-block: 28px 20px; }
.pd-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; align-items: center; }
.pd-hero h1, .pd-hero .pd-lead { grid-column: 1; }
.pd-hero-acts { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ── Telegram preview: Telegram's own colours ── */
.tg { --tg-blue: #1F6FAF; --tg-av: #1F6FAF; --tg-wall: #D7E5EE; --tg-out: #E4F7D2; --tg-card: #fff; --tg-line: #E6EBEF; --tg-ink: #151A1E; --tg-sub: #65727E; --tg-out-sub: #3F7038; --tg-chip: rgba(40, 70, 95, .72); display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; background: var(--tg-card); }
/* Telegram's own dark theme, so the picture still looks like Telegram. */
:root[data-theme="dark"] .tg { --tg-blue: #6AB3F3; --tg-wall: #0E1621; --tg-out: #2B5278; --tg-card: #17212B; --tg-line: #101921; --tg-ink: #F5F5F5; --tg-sub: #8D9DAB; --tg-out-sub: #B3D0EA; --tg-chip: rgba(255, 255, 255, .14); }
.tg-head { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--tg-card); border-bottom: 1px solid var(--tg-line); }
.tg-av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--tg-av); color: #fff; font-size: 13px; font-weight: 500; overflow: hidden; }
.tg-av img { width: 100%; height: 100%; object-fit: cover; }
.tg-who { display: grid; min-width: 0; line-height: 1.25; }
.tg-who b { font-size: 14px; color: var(--tg-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-who span { font-size: 12.5px; color: var(--tg-sub); }
.tg-chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 400px; padding: 16px 12px; background: var(--tg-wall); }
.tg-day { align-self: center; padding: 2px 10px; border-radius: 999px; background: var(--tg-chip); color: #fff; font-size: 12.5px; font-weight: 500; margin-bottom: auto; }
.tg-group { display: grid; gap: 4px; max-width: 88%; align-self: flex-start; min-width: 0; }
.tg-bubble { padding: 7px 10px 6px; border-radius: 12px 12px 12px 4px; background: var(--tg-card); color: var(--tg-ink); font-size: 14px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
.tg-bubble .tg-time { float: right; margin: 6px 0 -2px 10px; font-size: 12.5px; color: var(--tg-sub); line-height: 1.4; }
.tg-bubble strong { font-weight: 600; }
.tg-bubble code { font-family: var(--mono); font-size: 13px; color: var(--tg-blue); }
.tg-link { color: var(--tg-blue); }
.tg-empty { color: var(--tg-sub); }
.tg-out { align-self: flex-end; max-width: 80%; padding: 6px 10px; border-radius: 12px 12px 4px 12px; background: var(--tg-out); color: var(--tg-ink); font-size: 14px; line-height: 1.4; }
.tg-out .tg-time { color: var(--tg-out-sub); margin-left: 10px; font-size: 12.5px; }
.tg-kb { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 6px 10px; border-radius: 8px; background: var(--tg-chip); color: #fff; font-size: 13.5px; font-weight: 500; text-align: center; overflow-wrap: anywhere; }

/* ── Panel demo: the panel's frame in miniature ─ */
.pm { background: var(--app); border: 1px solid var(--border-2); border-radius: var(--r-card); overflow: hidden; }
.pm-note { display: flex; align-items: center; gap: 8px; padding: 8px 14px 0; font-size: var(--t-small); color: var(--muted); }
.pm-note .pd-ic { width: 15px; height: 15px; color: var(--muted); }

/* The overview: cards with a big number, the same anatomy as the panel's home */
.dpill { display: inline-flex; align-items: center; border-radius: var(--r-pill); padding: 0 7px; font-size: var(--t-micro); font-weight: 500; line-height: 19px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dpill.up { background: var(--good-soft); color: var(--good-text); }


/* The three steps of a send */
.pd-flow { display: flex; flex-wrap: wrap; gap: 2px 4px; list-style: none; margin: 0; padding: 0; }
.pd-flow button { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px 0 5px; background: none; border: 1px solid transparent; border-radius: var(--r-pill); font: inherit; font-size: var(--t-ui); font-weight: 400; color: var(--muted); cursor: pointer; transition: background .12s, border-color .12s, color .12s; }
.pd-flow button:hover { background: var(--field); color: var(--text); }
.pd-flow button i { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--panel); font-style: normal; font-size: var(--t-micro); font-weight: 400; color: var(--muted); transition: background .12s, border-color .12s, color .12s; }
.pd-flow button[aria-current="step"] { color: var(--text); font-weight: var(--w-strong); background: var(--accent-soft); }
.pd-flow button[aria-current="step"] i { background: var(--accent-text); border-color: var(--accent-text); color: var(--ink); }

/* Fields */
.pm-field { display: grid; gap: 6px; min-width: 0; }
.pm-label { font-size: var(--t-small); font-weight: var(--w-strong); }
.pm-input { display: block; width: 100%; min-height: 34px; padding: 6px 10px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); font: inherit; font-size: 14px; line-height: 1.45; color: var(--text); outline: 0; resize: vertical; transition: border-color .12s; }
.pm-input:hover { border-color: var(--border-2); }
.pm-input:focus { border-color: var(--accent); }
.pm-input::placeholder { color: var(--dim); }
.pd input[type="checkbox"] { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.pm-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }



/* Sending */

/* Small numbers in a row: .stat-mini */

/* Database and links */
.pm-filter { display: inline-flex; flex-wrap: wrap; gap: 2px; max-width: 100%; padding: 2px; background: var(--field); border: 1px solid var(--border); border-radius: var(--r); justify-self: start; }
.pm-filter button { height: 26px; padding-inline: 9px; background: none; border: 1px solid transparent; border-radius: 6px; font: inherit; font-size: var(--t-small); font-weight: 500; color: var(--muted); cursor: pointer; transition: background .12s, border-color .12s, color .12s; }
.pm-filter button:hover { color: var(--text); }
.pm-filter button[aria-pressed="true"] { background: var(--panel); border-color: var(--border); color: var(--text); }
/* A group card around a white table */
#dbRows b { overflow-wrap: normal; }

/* ── What you can do ────────────────────────── */
.pd-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pd-feat { display: grid; gap: 4px; align-content: start; padding: 14px 16px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-card); min-width: 0; }
.pd-feat p { font-size: var(--t-ui); color: var(--muted); text-wrap: pretty; }
.pd-feat .pd-ic { width: 18px; height: 18px; margin-bottom: 6px; color: var(--accent-text); }

/* ── Three steps ────────────────────────────── */
.pd-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.pd-steps li { display: grid; gap: 4px; align-content: start; min-width: 0; padding: 14px 16px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-card); }
.pd-steps i { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-bottom: 6px; border-radius: 50%; background: var(--field); border: 1px solid var(--border-2); font-style: normal; font-size: var(--t-micro); font-weight: 400; color: var(--muted); }
.pd-steps p { font-size: var(--t-ui); color: var(--muted); text-wrap: pretty; }
.pd-steps code { font: inherit; font-weight: var(--w-strong); color: var(--text); }
.pd .pd-safe { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 8px 10px; background: transparent; border: 1px solid var(--border); border-radius: var(--r); font-size: var(--t-small); color: var(--muted); }
.pd-safe .pd-ic { width: 15px; height: 15px; margin-top: 1px; }

/* ── Questions: rows in one white card ──────── */
.pd-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 16px 32px; align-items: start; }
.pd-faq-grid > div { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; }
.pd-q + .pd-q { border-top: 1px solid var(--border); }
.pd-q summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; padding: 9px 16px; font-size: var(--t-card); font-weight: var(--w-strong); cursor: pointer; list-style: none; }
.pd-q summary::-webkit-details-marker { display: none; }
.pd-q summary .pd-ic { width: 16px; height: 16px; color: var(--muted); }
.pd-q[open] summary .pd-ic { transform: rotate(180deg); }
.pd-q p { padding: 0 40px 14px 16px; font-size: var(--t-ui); color: var(--muted); text-wrap: pretty; }

/* ── Close ──────────────────────────────────── */
.pd-close { padding-block: 24px 48px; }
.pd-close-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 32px; align-items: center; padding: 20px; background: var(--group); border: 1px solid var(--border); border-radius: var(--r-card); }
.pd-close-card > div { display: grid; gap: 3px; }
.pd-close-card p { max-width: 64ch; color: var(--muted); text-wrap: pretty; }

/* ── Submit tour: a group card, the setup strip, one white body ── */
.st-sec { padding-bottom: 24px; }
.st { padding: 6px; background: var(--group); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; scroll-margin-top: 76px; }
.st > .pm-note { padding: 4px 8px 8px; }
.st-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 0 0 6px; padding: 0; }
.st-steps li { min-width: 0; }
.st-steps li + li { border-left: 1px solid var(--border-2); }
.st-step { display: flex; align-items: center; gap: 8px; width: 100%; height: 100%; min-height: 40px; padding: 4px 10px; background: none; border: 0; font: inherit; font-size: var(--t-ui); font-weight: 400; line-height: 1.25; color: var(--muted); text-align: left; cursor: pointer; transition: color .12s; }
.st-step:hover { color: var(--text); }
.st-step i { flex: none; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--panel); font-style: normal; font-size: var(--t-micro); font-weight: 400; transition: background .12s, border-color .12s, color .12s; }
.st-step .pd-ic { display: none; }
.st-step.is-done i { background: var(--good-soft); border-color: var(--good-soft); color: var(--good-text); }
.st-step.is-done .st-num { display: none; }
.st-step.is-done .pd-ic { display: block; }
.st-step[aria-current="step"] { color: var(--text); font-weight: var(--w-strong); }
.st-step[aria-current="step"] i { background: var(--accent-text); border-color: var(--accent-text); color: var(--ink); }
.st-body { padding: 20px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-inner); }
.st-panel { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 28px; align-items: start; }
.st-panel-wide { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.st-say { display: grid; gap: 6px; min-width: 0; }
.st-say h2 { outline: 0; }
.st-say p { font-size: var(--t-ui); color: var(--muted); text-wrap: pretty; }
.st-panel-wide .st-say { max-width: 680px; }
.st-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 8px 6px; }
.st-foot .pd-hint { flex: 1; text-align: center; min-width: 0; }
.st-mock { display: grid; gap: 14px; min-width: 0; padding: 14px; background: var(--group); border: 1px solid var(--border); border-radius: var(--r-inner); }
.st-h { font-size: 16px; font-weight: var(--w-strong); letter-spacing: -.01em; line-height: 1.3; }

.st-type { display: flex; gap: 2px; padding: 2px; background: var(--field); border: 1px solid var(--border); border-radius: var(--r); }
.st-type input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.st-type label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 28px; padding-inline: 8px; white-space: nowrap; border: 1px solid transparent; border-radius: 6px; background: none; font-size: var(--t-small); font-weight: 500; color: var(--muted); cursor: pointer; transition: background .12s, border-color .12s, color .12s; }
.st-type label:hover { color: var(--text); }
.st-type input:checked + label { background: var(--panel); border-color: var(--border); color: var(--text); }
.st-type input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.st-token { display: flex; gap: 8px; }
.st-token .pm-input { flex: 1; min-width: 0; background: var(--panel); font-family: var(--mono); font-size: var(--t-small); }
.st-token .pd-btn { height: 34px; }
.st-status { min-height: 21px; font-size: var(--t-small); color: var(--muted); }
.st-status.is-ok { display: flex; align-items: center; gap: 6px; color: var(--good-text); font-weight: var(--w-strong); }
.st-filled { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; padding-top: 14px; border-top: 1px solid var(--border); }
.st-pic { width: 64px; height: 64px; border-radius: var(--r-card); display: flex; align-items: center; justify-content: center; background: var(--field); border: 1px solid var(--border); color: var(--muted); font-size: 18px; font-weight: var(--w-strong); transition: background .12s, border-color .12s, color .12s; }
.st-pic.is-on { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-text); }
.st-fields { display: grid; gap: 10px; min-width: 0; }
.st-fake { display: flex; align-items: center; min-height: 34px; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--r); background: var(--panel); font-size: 14px; color: var(--dim); overflow-wrap: anywhere; transition: background .12s, color .12s; }
.st-fake.is-on { color: var(--text); }

.st-block { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 8px 12px 10px; min-width: 0; }
.st-block > span { display: block; font-size: var(--t-small); font-weight: var(--w-strong); color: var(--muted); margin-bottom: 2px; }
.st-block b { display: block; font-size: 16px; font-weight: var(--w-strong); letter-spacing: -.01em; }
.st-block b.st-q { font-size: 14px; letter-spacing: 0; }
.st-block p, .st-block li { font-size: 14px; overflow-wrap: anywhere; }
.st-block ul, .st-block ol { margin: 0; padding-left: 20px; }
.st-block ul { list-style: disc; }
.st-block ol { list-style: decimal; }
.st-block li { display: list-item; }
.st-stack { display: grid; gap: 8px; min-width: 0; }
.st-add { display: flex; flex-wrap: wrap; gap: 6px; }
.st-add .pd-ic { color: var(--muted); }
.st-add button { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding-inline: 10px; background: var(--panel); border: 1px solid var(--border-2); border-radius: var(--r); font: inherit; font-size: var(--t-small); font-weight: var(--w-strong); color: var(--text); cursor: pointer; transition: background .12s, color .12s; }
.st-add button:hover { background: var(--field); }
.st-add button:disabled { color: var(--muted); background: none; cursor: default; }
.st-shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.st-shot { aspect-ratio: 9 / 16; display: flex; flex-direction: column; gap: 6px; padding: 8%; border: 1px solid var(--border); border-radius: var(--r); background: var(--panel); overflow: hidden; min-width: 0; }
.st-shot i { display: block; height: 7px; border-radius: 3px; background: var(--heat-0); }
.st-shot i.w { width: 60%; }
.st-shot u { display: block; flex: 1; border-radius: 5px; background: var(--heat-1); text-decoration: none; }
.st-shot s { display: block; height: 16px; border-radius: 4px; background: var(--text); text-decoration: none; }
.st-shot-add { align-items: center; justify-content: center; border-style: dashed; border-color: var(--border-2); color: var(--muted); font-size: var(--t-small); text-align: center; }

/* The listing mock borrows the real classes from p-directory.css. */
.st-browser { border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; background: var(--bg); min-width: 0; }
.st-url { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--field); border-bottom: 1px solid var(--border); font-size: var(--t-small); color: var(--muted); overflow-wrap: anywhere; }
.st-url .pd-tag { margin-left: auto; }
.pd-tag { flex: none; display: inline-block; padding: 0 8px; border: 1px solid var(--border-2); border-radius: var(--r-pill); background: var(--panel); font-size: var(--t-micro); font-weight: 400; color: var(--muted); white-space: nowrap; }
.st-page { padding: 20px; display: grid; gap: 20px; min-width: 0; }
.st-page .dir-app-grid { gap: 28px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.st-page .dir-app-logo { background: var(--accent-soft); color: var(--accent-text); }
.st-page .dir-app-logo.dir-mono { color: var(--accent-text); }
.st-title { font-size: var(--t-title); line-height: 1.16; font-weight: var(--w-title); letter-spacing: var(--ls-title); color: var(--text); margin-bottom: -4px; }
.st-page .dir-btn { pointer-events: none; }
.st-page-body { display: grid; gap: 6px; padding-top: 18px; border-top: 1px solid var(--border); max-width: 720px; }
.st-page-body b { font-size: var(--t-section); font-weight: var(--w-title); letter-spacing: var(--ls-section); }
.st-page-body p { color: var(--muted); }
.st-tag-cat { font-weight: var(--w-strong); color: var(--text); }
.pd a.st-link { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

.st-chat .tg-chat { min-height: 240px; }
.st-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 16px; align-items: start; min-width: 0; }
.st-review { display: grid; gap: 14px; min-width: 0; }
.st-outcome { display: inline-flex; width: fit-content; }

.st-account { display: grid; gap: 8px; min-width: 0; }
.st-account-h { font-size: var(--t-card); font-weight: var(--w-strong); letter-spacing: -.006em; }
.st-account .ac-btn, .st-account .ac-more { pointer-events: none; }
.st-account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.st-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px 10px; align-items: center; padding: 12px 14px; }
.st-row .ac-logo { width: 40px; height: 40px; }
.st-row-id { display: grid; min-width: 0; line-height: 1.3; }
.st-row-id b { font-size: var(--t-card); font-weight: var(--w-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-row-id span { font-size: var(--t-small); color: var(--muted); }
.st-row-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding-top: 10px; border-top: 1px solid var(--border); font-size: var(--t-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.st-row-foot b { color: var(--text); font-weight: var(--w-strong); }

.pd-need { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.pd-need li { display: grid; gap: 4px; align-content: start; padding: 14px 16px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-card); min-width: 0; }
.pd-need p { font-size: var(--t-ui); color: var(--muted); text-wrap: pretty; }

/* ── Smaller screens ────────────────────────── */
@media (max-width: 1100px) {
  .pd-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .st-panel { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .st-step { flex-direction: column; align-items: flex-start; gap: 5px; }
  .pd-faq-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .tg-chat { min-height: 210px; }
  .pd-steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .st-page .dir-app-grid, .st-two, .st-account-grid { grid-template-columns: minmax(0, 1fr); }
  .pd-need { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 640px) {
  .pd-hero { padding-block: 20px 14px; }
  .pd-hero-in { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pd-hero-acts { grid-column: 1; grid-row: auto; margin-top: 10px; }
  .pd-hero-acts, .pd-hero-acts .pd-btn { width: 100%; }
  .pd-sec { padding-block: 20px; }
 .st-sec { padding-bottom: 20px; }
  .pm { border-radius: var(--r-card); }
  .pm-note { padding: 8px 10px 0; align-items: flex-start; }
  .pm-note .pd-ic { margin-top: 2px; }
 .pd-feats { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pm-acts .pd-btn { flex: 1; }
  .pm-filter button { padding-inline: 8px; }
  .pd-close { padding-bottom: 32px; }
  .pd-close-card { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .pd-close-card .pd-btn { width: 100%; }

  .st-steps li + li { border-left: 0; }
  .st-steps { padding: 2px 6px 4px; }
  .st-step { justify-content: center; align-items: center; padding: 0; min-height: 40px; }
  .st-step span:not(.st-num) { display: none; }
  .st-steps li { position: relative; }
  .st-body { padding: 14px 12px; }
  .st-mock { padding: 12px; }
  .st-foot { padding: 10px 6px 4px; }
  .st-foot .pd-hint { display: none; }
  .st-foot .pd-btn { flex: 1; }
  .st-type label { padding-inline: 4px; }
  .st-token { flex-direction: column; }
  .st-page { padding: 14px; }
  .st-url .pd-tag { display: none; }
  .st-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-shots .st-shot:nth-child(n+3):not(.st-shot-add) { display: none; }
  .st-page .dir-app-actions { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); }
  .st-account .ac-app { padding: 12px; }
}
