/* Intercultural 360 - app-like phone layout for the short pages: pricing, specialists, profile,
   onboarding, partner registration. Layout only (order, collapsing, sticky buttons); the pages keep
   their content and logic. Plain CSS, no Tailwind classes. Brand #0F6E56.
   Behaviour: /assets/plan-cards.js (plan cards), /assets/app-steps.js (step footers),
   /assets/profile-app.js (profile settings), /assets/specialists-page.js (directory). */

/* ── plan cards (pricing + partner registration) ── */
.pc-toggle { display: none; }
.pc-sticky[hidden] { display: none !important; }
.pc-sticky { display: none; }
@media (max-width: 767.98px) {
  .pc-toggle { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: 0; padding: 0; background: none; border: 0; font: inherit; font-size: 13px; font-weight: 700; color: #0F6E56; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .pc-toggle svg { transition: transform .2s ease; }
  .pc-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .pc-toggle:focus-visible { outline: 3px solid #5eead4; outline-offset: 2px; border-radius: 8px; }
  .pc-card .pc-more { display: none; }
  .pc-card.pc-open .pc-more { display: block; padding: 2px 0 6px; }

  .pc-sticky { display: block; position: fixed; left: 0; right: 0; bottom: calc(var(--ic360-tab-h, 64px) + env(safe-area-inset-bottom)); z-index: 44;
    background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-top: 1px solid #e2e8f0; box-shadow: 0 -8px 20px -16px rgba(15,23,42,.4); }
  .pc-sticky-in { display: flex; align-items: center; gap: 12px; padding: 8px 14px; max-width: 640px; margin: 0 auto; }
  .pc-sticky-txt { flex: 1; min-width: 0; line-height: 1.25; }
  .pc-sticky-txt strong { display: block; font-size: 14px; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pc-sticky-txt span { display: block; font-size: 12px; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pc-sticky-btn { flex-shrink: 0; max-width: 60%; min-height: 48px; padding: 0 18px; border: 0; border-radius: 12px; background: #0F6E56; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; touch-action: manipulation; }
  .pc-sticky-btn:disabled { background: #e2e8f0; color: #64748b; cursor: not-allowed; }
  .pc-sticky-btn[hidden] { display: none; }
  .pc-sticky-btn:focus-visible { outline: 3px solid #5eead4; outline-offset: 2px; }
  html.ic360-kb .pc-sticky { display: none !important; }
  html.pc-has-sticky.ic360-shell body { padding-bottom: calc(var(--ic360-tab-h, 64px) + 66px + env(safe-area-inset-bottom)) !important; }
}

/* ── pricing.html ── */
/* colour contrast (4.5:1): inactive tab, inactive billing label, "/month" and "or €x/year" */
.pr-hero .toggle-btn:not(.active) { color: #475569; }
#billing-toggle .text-slate-400:not([style]), #billing-toggle span[style*="148, 163, 184"] { color: #64748b !important; }
.pr-plans .plan-card .text-slate-400 { color: #64748b; }
@media (max-width: 767.98px) {
  .pr-hero { padding: 10px 0 10px !important; }
  .pr-hero > div { padding: 0 16px; text-align: left !important; }
  .pr-kicker { display: none !important; }
  .pr-hero h1 { font-size: 1.15rem !important; line-height: 1.3 !important; margin-bottom: 2px !important; }
  .pr-sub { font-size: 13px !important; line-height: 1.45 !important; margin-bottom: 10px !important; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px !important; }
  .pr-hero [role="tablist"] { display: flex !important; width: 100%; margin-bottom: 6px !important; }
  .pr-hero [role="tablist"] .toggle-btn { flex: 1 1 0; min-height: 44px; padding: 6px 4px !important; font-size: 13px !important; }
  .pr-hero #billing-toggle { display: flex !important; justify-content: flex-start !important; gap: 6px !important; flex-wrap: nowrap !important; }
  .pr-hero #billing-toggle > span { font-size: 13px !important; }
  /* the 48x24 switch gets a 44px tall tap area */
  #billing-btn { box-sizing: content-box; border: 10px solid transparent !important; background-clip: padding-box !important; margin: 0 -6px; }
  .pr-plans { padding: 12px 0 8px !important; }
  .pr-plans > div { padding: 0 12px !important; }
  .pr-plans .grid { gap: 10px !important; }
  .pr-plans .plan-card, .pr-plans .plan-card.pc-card { padding: 10px 14px 0; border-radius: 16px; }
  /* the compact card from the first paint (before plan-cards.js adds the toggle): no layout shift */
  .pr-plans .plan-card > div:first-child { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 44px; column-gap: 12px; align-items: start; }
  .pr-plans .plan-card > div:first-child > :nth-child(1) { grid-column: 1; grid-row: 1; font-size: 1rem !important; margin: 2px 0 0 !important; }
  .pr-plans .plan-card:not(.pc-open) > div:first-child > :nth-child(2) { display: none; }
  .pr-plans .plan-card > div:first-child > :nth-child(3) { grid-column: 2; grid-row: 1 / span 2; margin: 0 !important; text-align: right; max-width: 11.5rem; }
  .pr-plans .plan-card > div:first-child > :nth-child(3) .text-4xl { font-size: 1.35rem !important; }
  .pr-plans .plan-card > div:first-child > :nth-child(3) p { font-size: 11px !important; margin-top: 0 !important; line-height: 1.3; }
  .pr-plans .plan-card > div:first-child > :nth-child(n+4):not(.pc-toggle):not(.pc-more) { display: none; }
  .pr-plans .plan-card > :nth-child(2) { display: none !important; }
  .pr-plans .plan-card.pc-open > div:first-child { grid-template-rows: auto 44px auto auto; }
  .pr-plans .plan-card:hover { transform: none; box-shadow: none; }
  .pr-plans .plan-card[data-label]::before { left: 14px; transform: none; top: -9px; font-size: 10px; padding: 1px 10px; }
  .pc-card > div:first-child { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: start; }
  .pc-card > div:first-child > :nth-child(1) { grid-column: 1; grid-row: 1; font-size: 1rem !important; margin: 2px 0 0 !important; }
  .pc-card .pc-price { grid-column: 2; grid-row: 1 / span 2; margin: 0 !important; text-align: right; max-width: 11.5rem; }
  .pc-card .pc-tagline { display: none; grid-column: 1 / -1; grid-row: 3; font-size: 13px !important; margin: 0 0 6px !important; }
  .pc-card.pc-open .pc-tagline { display: block; }
  .pc-card .pc-price .text-4xl { font-size: 1.35rem !important; }
  .pc-card .pc-price p { font-size: 11px !important; margin-top: 0 !important; line-height: 1.3; }
  .pc-card .pc-price .savings-badge { margin-left: 4px !important; }
  .pc-card > div:first-child > .pc-toggle { grid-column: 1; grid-row: 2; justify-self: start; }
  .pc-card > div:first-child > .pc-more { grid-column: 1 / -1; grid-row: 4; }
  .pc-card .pc-cta { display: none !important; }
  .plan-card.pc-selected { border-color: #0F6E56; box-shadow: 0 0 0 3px #ccebe2; }
  .plan-card.founding.pc-selected { border-color: #b45309; box-shadow: 0 0 0 3px #fde7c7; }
  .pr-plans > div > p.text-center { margin-top: 10px !important; }
  #partners > div { display: flex; flex-direction: column; }
  #partners .partner-banner { order: 2; margin: 12px 0 0 !important; padding: 12px 14px !important; text-align: left; }
  #partners .partner-banner > div:first-child { display: none; }
  #partners .partner-banner h2 { font-size: 14px !important; }
  #partners .partner-banner p { font-size: 12.5px !important; }
  #partners > div > .grid { order: 1; }
  #partners > div > p.text-center { order: 3; }
  .pr-faq { padding: 20px 0 16px !important; }
  .pr-faq h2 { font-size: 1.15rem !important; margin-bottom: 4px !important; text-align: left !important; }
  .pr-faq .faq-item { padding: 0 !important; }
  .pr-faq .faq-item > button { min-height: 52px; font-size: 14px; }
  .pr-faq .faq-answer p { padding-bottom: 10px; }
}

/* ── specialists directory (/specialists/) ── */
.sp-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sp-head-count { flex-shrink: 0; font-size: 12px; font-weight: 700; color: #0F6E56; background: #e6f4ef; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.sp-head-count[hidden] { display: none; }
.sp-toolbar { flex-direction: column; gap: 8px; min-width: 0; }
.sp-search { position: relative; }
.sp-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: #64748b; pointer-events: none; }
.sp-search input { width: 100%; box-sizing: border-box; height: 44px; padding: 0 14px 0 42px; border: 1.5px solid #cbd5e1; border-radius: 999px; background: #fff; font: inherit; font-size: 16px; color: #0f172a; }
.sp-search input:focus { outline: none; border-color: #0F6E56; box-shadow: 0 0 0 3px rgba(15,110,86,.15); }
.sp-quickbar { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sp-quickbar::-webkit-scrollbar { display: none; }
.sp-quickbar .sp-chip, .sp-quickbar .sp-filter-open { flex-shrink: 0; min-height: 44px; white-space: nowrap; }
.sp-quickbar .sp-filter-open { padding: 8px 14px; }
.sp-quick-disc { display: contents; }
.sp-loc-chip span { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; }
.sp-name-btn { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.sp-name-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.sp-back { display: none; }
/* desktop: the sidebar has every filter; the search sits above the results */
@media (min-width: 1024px) {
  .sp-toolbar { display: block; grid-column: 2; grid-row: 1; }
  .sp-layout { grid-template-rows: auto 1fr; }
  .sp-filters { grid-column: 1; grid-row: 1 / span 2; }
  .sp-results { grid-column: 2; }
  .sp-quickbar { display: none; }
}
@media (max-width: 1023.98px) {
  .sp-hero { padding: 12px 0 12px; }
  .sp-hero-logo { display: none; }
  .sp-hero h1 { font-size: 1.15rem; margin: 0; }
  .sp-sub { font-size: 13px; line-height: 1.45; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .sp-layout { padding-top: 10px; gap: 10px; }
  .sp-personal, .sp-notice { margin-top: 10px; }
  .sp-join { margin-top: 16px; }
}
@media (max-width: 767.98px) {
  /* compact cards: photo, name, field, place, badges; tap opens the profile */
  .sp-grid { gap: 8px; }
  .sp-card { position: relative; padding: 12px; gap: 6px; border-radius: 16px; }
  .sp-card .sp-av { width: 52px; height: 52px; font-size: 18px; }
  .sp-card .sp-text, .sp-card .sp-actions { display: none; }
  .sp-card .sp-langs { display: none; }
  .sp-card .sp-badges { padding-left: 64px; }
  .sp-card .sp-disc, .sp-card .sp-place { font-size: 13px; margin-top: 1px; }
  .sp-card .sp-badges { gap: 4px; margin-top: -2px; }
  .sp-card .sp-name { font-size: 1rem; line-height: 1.3; }
  .sp-card .sp-name-btn::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
  .sp-card .sp-name-btn:focus-visible { outline: none; }
  .sp-card .sp-name-btn:focus-visible::after { outline: 3px solid #0F6E56; outline-offset: -3px; }
  .sp-card::after { content: ""; position: absolute; right: 14px; top: 26px; width: 9px; height: 9px; border-right: 2px solid #94a3b8; border-top: 2px solid #94a3b8; transform: rotate(45deg); pointer-events: none; }
  .sp-card-id { padding-right: 16px; }
  /* profile: full-screen sheet with a back arrow */
  .sp-drawer { width: 100%; box-shadow: none; }
  .sp-drawer-head { justify-content: space-between; align-items: center; padding: 6px 8px 6px 4px; border-bottom: 1px solid #e2e8f0; }
  .sp-drawer-head .sp-x { display: none; }
  .sp-back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 12px 0 6px; background: none; border: 0; font: inherit; font-size: 15px; font-weight: 700; color: #0F6E56; cursor: pointer; border-radius: 12px; }
  .sp-drawer-body { padding-top: 14px; }
  .sp-d-cta { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* ── the long dark footer (specialists, partner registration): two columns on phones ── */
@media (max-width: 767.98px) {
  body.sp-body > footer, body.pj-body > footer { padding-top: 28px !important; padding-bottom: 24px !important; margin-top: 24px !important; }
  body.sp-body > footer > .grid, body.pj-body > footer > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; margin-bottom: 20px; }
  body.sp-body > footer > .grid > div:first-child, body.pj-body > footer > .grid > div:first-child { grid-column: 1 / -1; }
  body.sp-body > footer > .grid > div:first-child p, body.pj-body > footer > .grid > div:first-child p { display: none; }
  body.sp-body > footer .mb-6, body.pj-body > footer .mb-6 { margin-bottom: 10px; }
  body.sp-body > footer .grid.grid-cols-2 { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  body.sp-body > footer ul > * + *, body.pj-body > footer ul > * + * { margin-top: 0 !important; }
  body.sp-body > footer li a, body.pj-body > footer li a { display: inline-flex; align-items: center; min-height: 32px; }
  body.sp-body > footer > div:nth-child(2), body.pj-body > footer > div:nth-child(2) { padding-top: 14px; gap: 10px; }
  body.sp-body > footer > p:last-child, body.pj-body > footer > p:last-child { margin-top: 12px; }
}

/* ── profile.html: settings screen on phones (html.pf-app, set by /assets/profile-app.js) ── */
.pf-rows, .pf-bar, .pf-route { display: none; }
html.pf-app .pf-route:not([hidden]) { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0 0; padding: 4px 10px; border-radius: 999px; background: #e6f4ef; color: #0f172a; font-size: 12.5px; font-weight: 700; max-width: 100%; justify-self: start; }
.pf-route > span { display: inline-flex; align-items: center; gap: 5px; }
.pf-flag { width: 18px !important; height: 13px !important; border-radius: 2px; box-shadow: 0 0 0 1px #e2e8f0; vertical-align: 0 !important; }
.pf-arrow { color: #0F6E56; }
@media (max-width: 767.98px) {
  /* the page's own header: one compact line (Home is in the bottom bar) */
  html.pf-app body > nav { padding: 10px 16px !important; }
  html.pf-app body > nav a[href="/index.html"]:first-child svg { width: 24px; height: 24px; }
  html.pf-app body > nav a[href="/index.html"]:first-child span { font-size: 16px !important; white-space: nowrap; }
  html.pf-app body > nav > div > div > a { display: none !important; }
  html.pf-app body > nav button { min-height: 44px; padding: 0 4px; }
  html.pf-app div[style*="padding-top:80px"] { padding-top: 64px !important; }
  html.pf-app div[style*="padding-top:80px"] > div { padding: 12px 12px 24px !important; }
  html.pf-app div[style*="padding-top:80px"] > div > div:first-child { margin-bottom: 10px !important; }
  html.pf-app div[style*="padding-top:80px"] > div > div:first-child h1 { font-size: 20px !important; }
  html.pf-app div[style*="padding-top:80px"] > div > div:first-child p { display: none; }
  html.pf-app .profile-grid, html.pf-app .profile-grid > div { gap: 10px !important; }
  html.pf-app .pf-preview { display: none !important; }
  html.pf-app .pf-card:not(.pf-show) { display: none !important; }
  html.pf-app.pf-open .pf-head, html.pf-app.pf-open .pf-rows, html.pf-app.pf-open div[style*="padding-top:80px"] > div > div:first-child { display: none !important; }
  /* header card: avatar left, name, email, route */
  html.pf-app .pf-head { display: grid !important; grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; align-items: center; text-align: left !important; padding: 14px !important; }
  html.pf-app .pf-head .avatar-ring { grid-row: 1 / span 4; width: 64px; height: 64px; margin: 0 !important; }
  html.pf-app .pf-head #profile-display-name { margin: 0 !important; font-size: 17px !important; }
  html.pf-app .pf-head #profile-display-email { margin: 0 !important; }
  html.pf-app .pf-head > button { grid-column: 2; justify-self: start; width: auto !important; min-height: 44px; margin-top: 6px; padding: 6px 14px !important; }
  html.pf-app .pf-head > p { display: none; }
  html.pf-app .pf-head #avatar-uploading { grid-column: 2; }
  /* rows */
  html.pf-app .pf-rows { display: block; background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; overflow: hidden; }
  .pf-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px; margin: 0; background: #fff; border: 0; border-top: 1px solid #f1f5f9; font: inherit; text-align: left; color: #0f172a; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .pf-row:first-child { border-top: 0; }
  .pf-row:active { background: #f8fafc; }
  .pf-row:focus-visible { outline: 3px solid #5eead4; outline-offset: -3px; }
  .pf-row-ico { width: 36px; height: 36px; border-radius: 12px; background: #e6f4ef; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
  .pf-row-txt { flex: 1; min-width: 0; line-height: 1.3; }
  .pf-row-txt strong { display: block; font-size: 15px; }
  .pf-row-txt span { display: block; font-size: 12.5px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pf-row > svg { color: #94a3b8; flex-shrink: 0; }
  .pf-row[data-pf="account"] .pf-row-ico { background: #fef2f2; }
  /* back bar */
  html.pf-app .pf-bar:not([hidden]) { display: flex; align-items: center; gap: 4px; margin: -4px 0 10px; }
  .pf-back { width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1px solid #e2e8f0; border-radius: 50%; background: #fff; color: #0F6E56; cursor: pointer; }
  .pf-bar-title { margin: 0 0 0 8px; font-size: 19px; font-weight: 800; color: #0f172a; }
  .pf-bar-title:focus { outline: none; }
  /* forms: one column, big tap targets, 16px text (no zoom on focus) */
  html.pf-app .pf-card { padding: 16px !important; }
  html.pf-app .pf-card [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: minmax(0, 1fr) !important; }
  html.pf-app .pf-card input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), html.pf-app .pf-card select, html.pf-app .pf-card textarea { min-height: 44px; font-size: 16px !important; max-width: none !important; }
  html.pf-app .pf-card .pill-opt, html.pf-app .pf-card .lang-tag { min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; }
  html.pf-app .pf-card .pill-group { gap: 8px; }
  html.pf-app .pf-card label[style*="border:1.5px"] { min-height: 56px; }
  html.pf-app .pf-card .btn-primary, html.pf-app .pf-card .btn-secondary, html.pf-app .pf-card button[onclick] { min-height: 44px; }
  html.pf-app .pf-card a[href="/onboarding.html"], html.pf-app .pf-card a[href="/kuendigen.html"] { display: inline-flex; align-items: center; min-height: 44px; }
  html.pf-app .pf-card #lang-tags { max-height: 300px !important; }
  html.pf-app #completion-list li { min-height: 44px; }
  html.pf-app #pets-list button { min-width: 44px; min-height: 44px; }
  html.pf-app .ic-switch { width: 52px; height: 44px; }
  html.pf-app .ic-switch-track { top: 7px; bottom: 7px; }
  html.pf-app .ic-switch-track::after { width: 24px; height: 24px; }
  html.pf-app .ic-switch input:checked + .ic-switch-track::after { transform: translateX(22px); }
  /* the pet form's buttons stay at the bottom of the screen while it is open */
  html.pf-app #add-pet-form > div:last-child { position: sticky; bottom: calc(var(--ic360-tab-h, 64px) + env(safe-area-inset-bottom)); background: #f8fafc; padding: 10px 0; z-index: 5; }
  html.pf-app.ic360-kb #add-pet-form > div:last-child { bottom: 0; }
  html.pf-app #add-pet-form > div:last-child button { flex: 1; min-height: 48px; }
  /* "Save all changes": above the bottom bar, only for the groups it saves */
  html.pf-app:not(.pf-save) #save-all-bar { display: none !important; }
  html.pf-app.pf-save #save-all-bar { bottom: calc(var(--ic360-tab-h, 64px) + env(safe-area-inset-bottom)) !important; padding: 8px 12px !important; z-index: 44 !important; }
  html.pf-app.pf-save.ic360-kb #save-all-bar { bottom: 0 !important; }
  html.pf-app #save-all-bar > span { display: none; }
  html.pf-app #save-all-bar > button { flex: 1; min-height: 48px; }
  html.pf-app.pf-save.ic360-shell body { padding-bottom: calc(var(--ic360-tab-h, 64px) + 72px + env(safe-area-inset-bottom)) !important; }
  html.pf-app.pf-save.ic360-kb.ic360-shell body { padding-bottom: 72px !important; }
  html.pf-app .toast { left: 12px; right: 12px; bottom: calc(var(--ic360-tab-h, 64px) + 80px) !important; text-align: center; }
}

/* ── step footer (onboarding, partner registration): fixed to the bottom, above the keyboard ── */
@media (max-width: 767.98px) {
  .ap-foot { position: fixed !important; left: 0; right: 0; bottom: var(--ap-kb, 0px); z-index: 46; margin: 0 !important; display: flex; align-items: center; gap: 8px;
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom)) !important; background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
    border-top: 1px solid #e2e8f0 !important; box-shadow: 0 -8px 20px -16px rgba(15,23,42,.4); }
  html.ap-kb-open .ap-foot { padding-bottom: 8px !important; }
  .ap-foot button { min-height: 48px; }
  .ap-foot [hidden] { display: none !important; }
}

/* ── onboarding.html ── */
@media (max-width: 767.98px) {
  .ob-body > div > header { padding: 8px 16px !important; }
  .ob-body > div > header .btn-skip { min-height: 44px; padding: 0 4px; }
  .ob-body #progress-label { margin-bottom: 10px !important; }
  .ob-body main { padding-left: 16px !important; padding-right: 16px !important; padding-bottom: 96px !important; }
  .ob-body .step h1 { font-size: 1.35rem !important; line-height: 1.3; margin-bottom: 4px !important; }
  .ob-body .step h1 + p { font-size: 14px; line-height: 1.45; margin-bottom: 14px !important; }
  /* UX19: all 4 stage cards fit on a 390 px phone above the sticky footer */
  .ob-body #step-1 h1 + p { font-size: 13px; line-height: 1.4; margin-bottom: 10px !important; }
  .ob-body #step-1 .grid.gap-3 { gap: 7px; }
  .ob-body #step-1 .phase-card { padding: 9px 12px; gap: 10px; border-radius: 14px; align-items: center; }
  .ob-body #step-1 .phase-emoji { width: 34px; height: 34px; font-size: 19px; border-radius: 10px; }
  .ob-body #step-1 .phase-card .text-sm { font-size: 12.5px; line-height: 1.35; margin-top: 1px; }
  .ob-body #step-5 > div { margin-bottom: 8px !important; }
  .ob-body .phase-card { padding: 12px; gap: 12px; }
  .ob-body .phase-card:hover { transform: none; }
  .ob-body .phase-emoji { width: 40px; height: 40px; font-size: 22px; }
  .ob-body .grid.gap-3 { gap: 8px; }
  /* big choice tiles for single and multiple choice */
  .ob-body #timing-exploring > .flex, .ob-body #timing-settled > .flex, .ob-body #concerns-wrap, .ob-body #step-5 .flex.flex-wrap { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px !important; }
  .ob-body #timing-exploring .pill, .ob-body #timing-settled .pill, .ob-body #concerns-wrap .pill, .ob-body #step-5 .pill { justify-content: center; text-align: center; min-height: 48px; padding: 6px 8px; border-radius: 14px; font-size: 14px; font-weight: 600; line-height: 1.25; }
  .ob-body #step-5 .field-label { font-size: 15px; color: #0f172a; margin-bottom: 10px; }
  .ob-body #concerns-count, .ob-body #lang-count { margin-top: 10px !important; }
  .ob-body #lang-wrap .pill { min-height: 44px; }
  .ob-body #lang-wrap { max-height: 300px !important; }
  .ob-body .field-input { min-height: 48px; font-size: 16px; }
  .ob-body #undecided-wrap { min-height: 44px; }
  .ob-body #wizard-nav .btn-back { padding: 0 8px; }
  .ob-body #wizard-nav > div { margin-left: auto; }
  .ob-body #wizard-nav .btn-next { padding: 0 22px; }
  .ob-body #step-2 .grid { gap: 10px !important; margin-bottom: 10px !important; }
}

/* ── partners-register.html ── */
@media (max-width: 767.98px) {
  /* a full-screen flow: no bottom bar while the form is open (it is back on the confirmation) */
  html.pj-flow #ic360-tabbar { display: none !important; }
  html.pj-flow.ic360-shell body { padding-bottom: 0 !important; }
  .pj-body .pj-top-inner { padding: 6px 14px; }
  .pj-body .pj-logo img { width: 30px; height: 30px; }
  .pj-body .pj-top-link { display: inline-flex; align-items: center; min-height: 44px; }
  .pj-body .pj-main { padding: 10px 12px 96px; }
  .pj-body .pj-progress { margin-bottom: 8px; }
  .pj-body .pj-progress-text { margin-bottom: 4px; font-size: 0.8rem; }
  .pj-body .pj-card { padding: 14px 14px 16px; border-radius: 18px; }
  .pj-body .pj-kicker { display: none; }
  .pj-body .pj-h { font-size: 1.25rem; margin-bottom: 4px; }
  .pj-body .pj-lead { font-size: 0.875rem; line-height: 1.4; margin-bottom: 10px; }
  .pj-body .pj-step[data-step="1"] .pj-lead { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pj-body #pj-form > .pj-nav { border-radius: 0; }
  .pj-body .pj-nav .pj-btn { min-height: 48px; }
  .pj-body .pj-field { margin-bottom: 14px; }
  /* step 1: discipline tiles, two columns */
  .pj-body .pj-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
  .pj-body .pj-scard { padding: 6px 8px; min-height: 48px; gap: 8px; border-radius: 12px; }
  .pj-body .pj-scard:has(input:checked) { padding: 5.5px 7.5px; }
  .pj-body .pj-scard-icon { width: 28px; height: 28px; border-radius: 9px; }
  .pj-body .pj-scard-icon svg { width: 17px; height: 17px; }
  .pj-body .pj-scard-label { font-size: 0.78rem; line-height: 1.2; }
  .pj-body .pj-scard-hint { display: none; }
  .pj-body .pj-scard-tick { display: none; }
  /* step 5: the public preview stays one tap away */
  .pj-body .pj-preview-wrap { order: -1; }
  .pj-body .pj-profile-grid { gap: 12px; }
  .pj-body #pj-bio { min-height: 120px; }
  /* step 7: the same compact cards as on Pricing */
  .pj-body .pj-plans { gap: 6px; }
  .pj-body .pj-plan-main { padding: 10px 14px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: start; }
  .pj-body .pj-plan-check { position: static; grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .pj-body .pj-plan-name { grid-column: 1; padding-right: 0; font-size: 1rem; }
  .pj-body .pj-plan-price { grid-column: 1; font-size: 0.95rem; }
  .pj-body .pj-plan .pc-more { grid-column: 1 / -1; }
  .pj-body .pj-plan .pc-toggle { margin: 0 14px; }
  .pj-body .pj-plan.pc-open .pc-more { padding: 0 14px 4px; }
  .pj-body .pj-billing { padding: 0 14px 10px; }
  .pj-body .pj-step[data-step="7"] > .pj-help { margin-top: 0; font-size: 0.8rem; }
  .pj-body .pj-billing label { min-height: 44px; }
  /* step 8: consent right above the submit button */
  .pj-body .pj-step[data-step="8"]:not([hidden]) { display: flex; flex-direction: column; }
  .pj-body .pj-step[data-step="8"] .pj-note { order: 1; font-size: 0.85rem; margin-top: 12px; }
  .pj-body .pj-step[data-step="8"] .pj-consents { order: 2; position: sticky; bottom: calc(68px + var(--ap-kb, 0px) + env(safe-area-inset-bottom)); z-index: 5; margin: 12px -14px -16px; padding: 8px 14px;
    background: #fff; border-top: 1px solid #e2e8f0; border-radius: 0 0 18px 18px; }
  .pj-body .pj-step[data-step="8"] .pj-consents .pj-check { margin: 0; min-height: 44px; align-items: center; font-size: 0.9rem; }
  .pj-body .pj-summary { gap: 6px; }
  .pj-body .pj-sum { padding: 4px 12px 8px; }
  .pj-body .pj-sum-head { margin-bottom: 0; }
  .pj-body .pj-sum dl { grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr); gap: 2px 10px; font-size: 0.85rem; }
  .pj-body .pj-sum dd { margin-bottom: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .pj-body .pj-sum-head .pj-link { min-height: 44px; padding: 0 4px; }
  .pj-body .pj-chip, .pj-body .pj-switch { min-height: 44px; }
  .pj-body .pj-check input { width: 22px; height: 22px; }
}
@media (max-width: 767.98px) {
  /* profile: community settings form and the plan card get the same 44px targets */
  html.pf-app #community-settings .icc-check { min-height: 44px; align-items: center; }
  html.pf-app #community-settings .icc-check input { width: 20px; height: 20px; margin-top: 0; flex-shrink: 0; }
  html.pf-app #community-settings .icc-btn { min-height: 44px; }
  html.pf-app #ic360-plan-card a, html.pf-app #ic360-plan-card button { min-height: 44px; display: inline-flex !important; align-items: center; justify-content: center; }
  /* partner registration: compact header and progress, 44px links */
  .pj-body .pj-top-inner { padding: 4px 12px; }
  .pj-body .pj-logo small { display: none; }
  .pj-body .pj-main { padding-top: 6px; }
  .pj-body .pj-link { display: inline-flex; align-items: center; min-height: 44px; }
  .pj-body .pj-help .pj-link, .pj-body .pj-photo .pj-link { min-height: 0; display: inline; }
  /* UX19: country and language chips wrap onto new lines (no hidden sideways scroll) */
  .pj-body #pj-origin-chips .pj-chip, .pj-body #pj-lang-chips .pj-chip { max-width: 100%; overflow-wrap: anywhere; }
  .pj-body .pj-sublabel { margin-top: 10px; }
  .pj-body .pj-step[data-step="7"] > .pj-help { font-size: 0.75rem; line-height: 1.35; }
  .pj-body .pj-plan-main { padding-top: 8px; }
  .pj-body .pj-step[data-step="7"] .pj-plans { gap: 4px; margin-bottom: 6px; }
  .pj-body .pj-step[data-step="7"] .pj-h { margin-bottom: 6px; }
}
