/* Tutorial Prompt Builder: the public page. Colors and fonts come from Prompt Tutorials → Branding. */

@font-face { font-family: "TPB Figtree"; src: url("fonts/figtree-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "TPB Figtree"; src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "TPB Righteous"; src: url("fonts/righteous-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: "TPB Righteous"; src: url("fonts/righteous-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "TPB Playball"; src: url("fonts/playball-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

body.tpb-page { margin: 0; padding: 0; background: var(--tpb-paper, #FDFBFF); }

.tpb {
  --ink: var(--tpb-ink, #000000);
  --soft: var(--tpb-soft, #585858);
  --paper: var(--tpb-paper, #FDFBFF);
  --card: var(--tpb-card, #F6F6F6);
  --dark: var(--tpb-dark, #000000);
  --dark-text: var(--tpb-dark-text, #FDFBFF);
  --accent: var(--tpb-accent, #4917FF);
  --accent-text: var(--tpb-accent-text, #FFFFFF);
  --glow: var(--tpb-glow, #4379FF);
  --glow-text: var(--tpb-glow-text, #FFFFFF);
  --mark: var(--tpb-mark, #4917FF);
  --mark-text: var(--tpb-mark-text, #FFFFFF);
  --button: var(--tpb-button, #4917FF);
  --button-text: var(--tpb-button-text, #FDFBFF);
  --button-2: color-mix(in srgb, var(--button) 85%, #000);
  --button-glow: color-mix(in srgb, var(--button) 45%, #fff);
  --card-line: color-mix(in srgb, var(--ink) 16%, var(--card));
  --field-line: color-mix(in srgb, var(--ink) 48%, #fff);
  --soft-bg: color-mix(in srgb, var(--accent) 12%, #fff);
  --ok: #1F9D63;
  --head: var(--tpb-head, "TPB Righteous", "TPB Figtree", system-ui, sans-serif);
  --body: var(--tpb-body, "TPB Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  --script: "TPB Playball", var(--head);
  --r: var(--tpb-radius, 12px);
  --head-h: 84px;
  color: var(--ink);
  font: 500 18px/1.55 var(--body);
  letter-spacing: -.02em;
  text-align: start;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
.tpb *, .tpb *::before, .tpb *::after { box-sizing: border-box; }
.tpb [hidden] { display: none !important; }
.tpb button, .tpb input, .tpb textarea, .tpb select { font-family: inherit; letter-spacing: inherit; text-transform: none; }
.tpb p, .tpb h1, .tpb h2, .tpb h3, .tpb ul { margin: 0; padding: 0; }
.tpb :focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.tpb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tpb-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tpb-wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.tpb-full { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.tpb-full .tpb-main { flex: 1; }
.tpb-hl { padding: 0 .12em; background: var(--glow); color: var(--glow-text); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tpb .tpb-title em, .tpb h2 em { font-family: var(--script); font-style: normal; letter-spacing: 0; }

/* buttons */
.tpb .tpb-button { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; margin: 0; padding: 10px 24px; border: 0; border-radius: var(--r); background: linear-gradient(var(--button), var(--button-2)); color: var(--button-text); box-shadow: inset 0 1px 7px 2px var(--button-glow); font: 600 18px/1.3 var(--body); letter-spacing: -.02em; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; }
.tpb .tpb-button:hover { box-shadow: inset 0 1px 7px 2px var(--button-glow), 0 10px 26px -8px color-mix(in srgb, var(--button) 80%, transparent); }
.tpb .tpb-button:active { transform: translateY(1px); }
.tpb .tpb-button.is-done { background: linear-gradient(#22B06F, #1A8F59); color: #fff; box-shadow: none; }
.tpb-button .tpb-icon-check, .tpb-button.is-done .tpb-icon { display: none; }
.tpb-button.is-done .tpb-icon-check { display: block; stroke-width: 2.4; }
.tpb .tpb-ghost { background: transparent; color: var(--dark-text); border: 1px solid color-mix(in srgb, var(--dark-text) 80%, transparent); box-shadow: none; }
.tpb .tpb-ghost:hover { background: rgba(255, 255, 255, .1); box-shadow: none; }
.tpb .tpb-text { appearance: none; min-height: 44px; margin: 0; padding: 0 4px; border: 0; background: none; color: var(--soft); font: 600 18px/1.3 var(--body); cursor: pointer; }
.tpb .tpb-text:hover { color: var(--ink); }
.tpb .tpb-danger { width: auto; min-height: 44px; padding: 8px 18px; background: #D4344A; color: #fff; box-shadow: none; font-size: 16px; }
.tpb .tpb-danger:hover { box-shadow: none; filter: brightness(1.08); }
.tpb .tpb-link { appearance: none; display: inline; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 3px; background: none; color: var(--accent); font: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* header with the steps */
.tpb-header { color: var(--dark-text); }
.tpb-full .tpb-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 30; background: var(--dark); box-shadow: 0 1px 0 var(--dark); }
.tpb-header-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-height: var(--head-h); }
.tpb-brand { justify-self: start; display: flex; align-items: center; gap: 12px; color: var(--dark-text); font: 400 24px/1.05 var(--head); letter-spacing: 0; text-decoration: none; white-space: nowrap; }
.tpb .tpb-brand { color: var(--dark-text); text-decoration: none; }
.tpb-brand b { font-weight: 400; color: var(--glow); }
.tpb-brand img { display: block; height: 40px; width: auto; max-width: 220px; object-fit: contain; }
.tpb-tabs { grid-column: 2; display: flex; gap: 4px; padding: 5px; border: 1px solid color-mix(in srgb, var(--dark-text) 18%, var(--dark)); border-radius: calc(var(--r) + 5px); background: color-mix(in srgb, var(--dark-text) 10%, var(--dark)); }
.tpb .tpb-tab { appearance: none; display: inline-flex; align-items: center; gap: 10px; height: 46px; margin: 0; padding: 0 20px; border: 0; border-radius: var(--r); background: none; color: color-mix(in srgb, var(--dark-text) 78%, var(--dark)); font: 600 18px/1 var(--body); letter-spacing: -.02em; white-space: nowrap; cursor: pointer; box-shadow: none; transition: color .2s, background .2s; }
.tpb .tpb-tab:hover { color: var(--dark-text); background: rgba(255, 255, 255, .06); }
.tpb .tpb-tab[aria-selected="true"] { color: var(--button-text); background: linear-gradient(var(--button), var(--button-2)); box-shadow: inset 0 1px 7px 2px var(--button-glow); }
.tpb-tab-n { font: 400 17px/1 var(--head); letter-spacing: 0; }
.tpb-tab-short { display: none; }
.tpb .tpb-tick { display: none; width: 16px; height: 16px; color: #5EE0A0; stroke-width: 2.4; }
.tpb-tab.is-done .tpb-tick { display: block; }
.tpb-tab[aria-selected="true"] .tpb-tick { color: #fff; }
.tpb .tpb-cta { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border: 1px solid color-mix(in srgb, var(--dark-text) 80%, transparent); border-radius: var(--r); color: var(--dark-text); font: 600 17px/1 var(--body); text-decoration: none; white-space: nowrap; transition: background .2s; }
.tpb .tpb-cta:hover { background: rgba(255, 255, 255, .1); }

/* hero: dark, with the purple light, centred */
.tpb-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--dark); color: var(--dark-text); text-align: center; }
.tpb-hero::before { content: ""; position: absolute; z-index: -1; top: -40%; left: 50%; width: 260px; height: 190%; transform: translateX(-50%) rotate(14deg); background: linear-gradient(180deg, transparent, color-mix(in srgb, #8A2CF5 75%, transparent) 45%, color-mix(in srgb, var(--button) 55%, transparent) 70%, transparent); filter: blur(70px); opacity: .75; }
.tpb-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(38% 130% at 66% 60%, color-mix(in srgb, var(--button) 34%, transparent), transparent 72%), radial-gradient(30% 100% at 22% 100%, color-mix(in srgb, #8A2CF5 25%, transparent), transparent 72%); }
.tpb-grid { position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(60% 80% at 50% 50%, transparent 30%, #000 100%); mask-image: radial-gradient(60% 80% at 50% 50%, transparent 30%, #000 100%); }
.tpb-hero.has-video::before, .tpb-hero.has-video::after { display: none; }
.tpb-video { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.tpb-hero-in { display: flex; flex-direction: column; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.tpb .tpb-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; background: rgba(255, 255, 255, .06); color: color-mix(in srgb, var(--dark-text) 85%, transparent); font-size: 15px; line-height: 1.4; }
.tpb-eyebrow em, .tpb-eyebrow strong { font-style: normal; font-weight: 600; color: #fff; }
.tpb-eyebrow .tpb-icon { width: 16px; height: 16px; }
.tpb .tpb-title { max-width: 808px; margin: 0 auto; color: inherit; font: 400 clamp(40px, 5vw, 72px)/1.11 var(--head); letter-spacing: -.03em; text-wrap: balance; }
.tpb .tpb-lede { max-width: 536px; margin: 0 auto 26px; color: var(--dark-text); font-size: 18px; line-height: 28px; text-wrap: balance; }
.tpb .tpb-eyebrow { margin-bottom: 22px; }
.tpb .tpb-quiet { display: flex; align-items: flex-start; justify-content: center; gap: 8px; max-width: 60ch; margin: 16px auto 0; color: color-mix(in srgb, var(--dark-text) 66%, transparent); font-size: 15px; line-height: 1.5; text-align: start; }
.tpb-quiet .tpb-icon { width: 16px; height: 16px; margin-top: 3px; }
.tpb .tpb-phone { display: none; }
@media (max-width: 700px) { .tpb .tpb-phone:not([hidden]) { display: flex; } }

/* layout: the form, and a side panel that stays in view */
.tpb-main > .tpb-wrap { padding-top: 48px; padding-bottom: 88px; }
.tpb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.tpb-layout.is-single { grid-template-columns: minmax(0, 880px); justify-content: center; }
.tpb-col, .tpb-side { display: grid; gap: 24px; min-width: 0; }
.tpb-side { position: sticky; top: calc(var(--head-h) + var(--wp-admin--admin-bar--height, 0px) + 24px); gap: 20px; }
.tpb-embed .tpb-side { top: 24px; }

/* cards */
.tpb-card { position: relative; padding: 32px; background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r); }
.tpb-card-head { display: flex; align-items: center; gap: 16px; }
.tpb-badge { flex: none; display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 6px; background: var(--dark); color: var(--dark-text); font: 400 24px/1 var(--head); letter-spacing: 0; }
.tpb-badge-done { background: var(--accent); color: var(--accent-text); }
.tpb-badge .tpb-icon { width: 22px; height: 22px; stroke-width: 2.2; }
.tpb .tpb-card h2, .tpb .tpb-card h3 { margin: 0; color: var(--ink); font: 400 32px/1.25 var(--head); letter-spacing: -.01em; text-transform: none; }
.tpb .tpb-card h3 { font-size: 26px; }
.tpb .tpb-card-line { margin: 12px 0 0; color: var(--soft); }
.tpb ul.tpb-checklist { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.tpb .tpb-checklist li { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 0; list-style: none; }
.tpb-checklist .tpb-icon { margin-top: 4px; color: var(--accent); stroke-width: 2.2; }
.tpb .tpb-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--r); background: var(--soft-bg); color: var(--ink); font-size: 17px; }
.tpb-note .tpb-icon { margin-top: 4px; color: var(--accent); }

/* fields */
.tpb-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; margin-top: 26px; }
.tpb-field { grid-column: 1 / -1; display: grid; gap: 8px; align-content: start; min-width: 0; }
.tpb-half { grid-column: auto; }
.tpb-indent { margin-inline-start: 34px; }
.tpb .tpb-label { display: block; margin: 0; padding: 0; color: var(--ink); font: 600 18px/26px var(--body); letter-spacing: -.02em; }
.tpb-optional { font-weight: 500; color: var(--soft); }
.tpb .tpb-hint { margin: -4px 0 0; color: var(--soft); font-size: 16px; line-height: 24px; }
.tpb .tpb-box { display: block; width: 100%; max-width: none; height: 56px; margin: 0; padding: 0 18px; border: 1px solid var(--field-line); border-radius: var(--r); background: #fff; color: #000; font: 500 18px/1.45 var(--body); box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.tpb .tpb-box::placeholder { color: #8F8F8F; opacity: 1; }
.tpb .tpb-box:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); outline: 0; }
.tpb .tpb-box:disabled { background: #EFEFEF; color: #9A9A9A; border-color: #C4C4C4; cursor: not-allowed; }
.tpb .tpb-area { height: auto; min-height: 120px; max-height: 24rem; padding: 14px 18px; resize: vertical; line-height: 1.45; field-sizing: content; }
.tpb select.tpb-box { appearance: none; padding-inline-end: 46px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 18px center; }
.tpb-color { display: flex; gap: 10px; }
.tpb .tpb-swatch { flex: none; width: 56px; height: 56px; margin: 0; padding: 6px; border: 1px solid var(--field-line); border-radius: var(--r); background: #fff; cursor: pointer; }
.tpb .tpb-filled { display: inline-flex; align-items: center; gap: 7px; width: max-content; max-width: 100%; padding: 4px 12px 4px 10px; border-radius: 5px; background: var(--soft-bg); color: var(--accent); font-size: 16px; font-weight: 600; line-height: 22px; }
.tpb-filled .tpb-icon { width: 15px; height: 15px; stroke-width: 2.2; }
.tpb .tpb-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.tpb-group > legend { padding: 0; margin-bottom: 12px; }
.tpb-group > .tpb-hint { margin: -6px 0 12px; }
.tpb-rows { display: grid; gap: 12px; }
.tpb .tpb-row { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 0; font-weight: 500; cursor: pointer; }
.tpb .tpb-row input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.tpb-row-text { display: flex; flex-direction: column; min-width: 0; }
.tpb-type-checkbox .tpb-row-label, .tpb-type-checks .tpb-row-label { font-weight: 600; line-height: 26px; }
.tpb-row-sub { color: var(--soft); font-size: 16px; line-height: 24px; font-weight: 500; }
.tpb-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tpb .tpb-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin: 0; padding: 8px 18px 8px 14px; border: 1px solid var(--field-line); border-radius: var(--r); background: #fff; color: #000; font: 600 18px/1.3 var(--body); cursor: pointer; user-select: none; transition: background .15s, border-color .15s, color .15s; }
.tpb .tpb-chip input { position: absolute; opacity: 0; pointer-events: none; }
.tpb-chip-box { display: grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid var(--field-line); border-radius: 5px; }
.tpb-chip-box .tpb-icon { width: 14px; height: 14px; stroke-width: 2.4; opacity: 0; }
.tpb .tpb-chip:hover { border-color: var(--accent); }
.tpb .tpb-chip:has(input:checked) { color: var(--button-text); border-color: var(--button); background: linear-gradient(var(--button), var(--button-2)); box-shadow: inset 0 1px 7px 2px var(--button-glow); }
.tpb-chip:has(input:checked) .tpb-chip-box { border-color: #fff; background: #fff; color: var(--button); }
.tpb-chip:has(input:checked) .tpb-chip-box .tpb-icon { opacity: 1; }
.tpb-chip:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }

/* side panel: progress */
.tpb-side .tpb-card { padding: 26px; }
.tpb-bar { height: 8px; margin: 16px 0 8px; border-radius: 99px; background: #E3E3E3; overflow: hidden; }
.tpb-bar i { display: block; width: 0; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #8A2CF5); transition: width .35s; }
.tpb .tpb-progress-meta { color: var(--soft); font-size: 16px; }
.tpb ul.tpb-sections { display: grid; gap: 2px; margin: 14px 0 0; padding: 0; list-style: none; }
.tpb-sections li { margin: 0; padding: 0; list-style: none; }
.tpb .tpb-sections button { appearance: none; display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 600 17px/1.35 var(--body); text-align: start; cursor: pointer; }
.tpb .tpb-sections button:hover { background: #ECECEC; }
.tpb-dot { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid #B5B5B5; border-radius: 50%; background: #fff; color: #fff; }
.tpb-dot .tpb-icon { width: 13px; height: 13px; stroke-width: 2.6; }
.tpb-sections .is-done .tpb-dot { background: var(--accent); border-color: var(--accent); }

/* side panel: the save card */
.tpb .tpb-save { overflow: hidden; isolation: isolate; border: 2px solid var(--glow); border-radius: 0; background: var(--dark); color: var(--dark-text); }
.tpb-save::before { content: ""; position: absolute; z-index: -1; right: -60px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: color-mix(in srgb, var(--button) 50%, transparent); filter: blur(50px); }
.tpb .tpb-save h3 { color: var(--dark-text); }
.tpb .tpb-save .tpb-card-line { color: color-mix(in srgb, var(--dark-text) 75%, transparent); font-size: 17px; }
.tpb-buttons { display: grid; gap: 10px; margin-top: 20px; }
.tpb-buttons .tpb-button { min-height: 54px; }
.tpb .tpb-status { display: block; margin: 12px 0 0; font-size: 16px; }
.tpb .tpb-status:empty { display: none; }
.tpb-status .tpb-icon, .tpb-ok .tpb-icon { display: inline-block; width: 16px; height: 16px; margin-inline-end: 8px; vertical-align: -3px; color: var(--ok); }
.tpb .tpb-save .tpb-status { color: color-mix(in srgb, var(--dark-text) 88%, transparent); }
.tpb-save .tpb-status .tpb-icon { color: #5EE0A0; }
.tpb .tpb-save .tpb-after { color: color-mix(in srgb, var(--dark-text) 70%, transparent); }

/* the prompt */
.tpb-out-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; }
.tpb-live { color: var(--soft); font-size: 15px; }
.tpb-prompt { margin-top: 18px; padding: 22px 24px; background: var(--dark); color: var(--dark-text); border: 2px solid var(--glow); font-size: 17px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.is-side .tpb-prompt { max-height: min(56vh, 520px); overflow: auto; }
.is-single .tpb-prompt { padding: 26px 28px; font-size: 18px; }
.tpb .tpb-prompt mark { padding: 2px 5px; background: var(--mark); color: var(--mark-text); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tpb-blank { padding: 1px 5px; border: 1px dashed color-mix(in srgb, var(--dark-text) 60%, var(--dark)); color: color-mix(in srgb, var(--dark-text) 78%, var(--dark)); cursor: pointer; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tpb-blank:hover { border-color: var(--dark-text); color: var(--dark-text); }
.tpb .tpb-fill { margin: 16px 0 0; font-size: 17px; }
.tpb-fill strong { font-weight: 700; }
.tpb-ok { display: inline-flex; align-items: center; color: var(--ok); font-weight: 600; }
.tpb-prompt-card .tpb-button { margin-top: 18px; }
.tpb .tpb-after { margin: 16px 0 0; color: var(--soft); font-size: 16px; }
.tpb-prompt-card .tpb-area { margin-top: 12px; min-height: 140px; font-size: 15px; }

/* next and clear */
.tpb-actions { display: grid; gap: 14px; }
.tpb-actions > .tpb-text { justify-self: center; }
.tpb .tpb-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid #F2C9CF; border-radius: var(--r); background: #FFF5F6; font-size: 16px; }
.tpb .tpb-cleared { text-align: center; }

/* footer */
.tpb-footer { background: var(--dark); color: color-mix(in srgb, var(--dark-text) 70%, transparent); font-size: 15px; }
.tpb-footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-top: 32px; padding-bottom: 32px; }
.tpb-footer .tpb-brand { font-size: 20px; }
.tpb-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.tpb .tpb-footer nav a { color: inherit; text-decoration: none; }
.tpb .tpb-footer nav a:hover { color: var(--dark-text); }
.tpb .tpb-footer p a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* inside a theme page or the shortcode */
.tpb-embed .tpb-header-in { display: flex; justify-content: center; min-height: 0; padding: 0 0 20px; }
.tpb-embed .tpb-tabs { margin: 0 auto; }
.tpb-embed .tpb-hero { border-radius: var(--r); }
.tpb-embed .tpb-hero-in { padding-top: 48px; padding-bottom: 52px; }
.tpb-embed .tpb-title { font-size: clamp(32px, 4vw, 48px); }
.tpb-embed .tpb-wrap { padding: 0; }
.tpb-embed .tpb-main > .tpb-wrap { padding-top: 28px; padding-bottom: 28px; }

@media (max-width: 1100px) { .tpb-brand { font-size: 21px; } .tpb .tpb-tab { padding: 0 14px; font-size: 16px; } .tpb .tpb-cta { padding: 0 16px; } }
@media (max-width: 1000px) { .tpb-layout { grid-template-columns: minmax(0, 1fr); } .tpb-side { position: static; } }
@media (max-width: 900px) {
  .tpb { --head-h: 64px; }
  .tpb-full .tpb-header-in { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; padding-bottom: 12px; }
  .tpb-full .tpb-header-in > .tpb-brand, .tpb-full .tpb-header-in > .tpb-cta { margin-top: 12px; }
  .tpb .tpb-cta { grid-column: 2; min-height: 40px; padding: 0 14px; font-size: 15px; }
  .tpb-full .tpb-tabs { grid-column: 1 / -1; grid-row: 2; min-width: 0; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
  .tpb-tabs::-webkit-scrollbar { display: none; }
  .tpb .tpb-tab { flex: 1 0 auto; justify-content: center; gap: 8px; height: 42px; padding: 0 12px; font-size: 15px; }
}
@media (max-width: 640px) { .tpb-fields { grid-template-columns: 1fr; } .tpb-half { grid-column: 1 / -1; } .tpb .tpb-card h2 { font-size: 26px; } .tpb-indent { margin-inline-start: 18px; } }
@media (max-width: 600px) {
  .tpb-wrap { padding: 0 16px; }
  .tpb-card { padding: 22px; }
  .tpb-hero-in { padding-top: 48px; padding-bottom: 56px; }
  .tpb-main > .tpb-wrap { padding-top: 28px; }
  .tpb { font-size: 17px; }
}
@media (max-width: 520px) {
  .tpb-brand { font-size: 19px; }
  .tpb-tab-full, .tpb .tpb-tick { display: none !important; }
  .tpb-tab-short { display: inline; }
  .tpb .tpb-tab { padding: 0 8px; }
  .tpb-tab-n { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .tpb * { transition: none !important; } }
