/* Rider portal – mobile first */
body.portal { font-size: 15px; background: var(--bg); }
.portal .ic { width: 20px; height: 20px; }
.p-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: var(--surface); border-bottom: 1px solid var(--line); }
.p-top-logo { height: 20px; width: auto; flex: none; }
.p-top-tag { font-size: 11px; font-weight: 700; background: var(--slate-d); color: #fff; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.p-main { max-width: 640px; margin: 0 auto; padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
.p-hello { font-size: 20px; margin: 4px 0 14px; }
.p-title { font-size: 22px; margin: 4px 0 14px; }
.p-h { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 22px 0 8px; font-weight: 700; }
section:first-of-type .p-h { margin-top: 6px; }
.p-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.p-card[data-tab] { cursor: pointer; }
.p-empty { color: var(--muted); display: flex; gap: 8px; align-items: center; }
.p-note { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--radius); margin-bottom: 8px; border: 1px solid var(--line); background: var(--surface); border-left-width: 4px; }
.p-note p { margin: 0 0 6px; } .p-note .btn { margin: 4px 6px 0 0; }
.p-note-ic { flex: none; padding-top: 1px; }
.p-note.l-danger { border-left-color: var(--danger); } .p-note.l-danger .p-note-ic { color: var(--danger); }
.p-note.l-warn { border-left-color: var(--warn); } .p-note.l-warn .p-note-ic { color: var(--warn); }
.p-note.l-info { border-left-color: var(--info); } .p-note.l-info .p-note-ic { color: var(--info); }
.p-note.l-ok { border-left-color: var(--ok); } .p-note.l-ok .p-note-ic { color: var(--ok); }
.p-bike-h { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.p-bike-h .ic { width: 34px; height: 34px; color: var(--brand); background: var(--brand-l); border-radius: 10px; padding: 6px; }
.p-bike-h b { font-size: 17px; margin-right: 6px; } .p-bike-h small { display: block; color: var(--muted); }
.p-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0; }
.p-dl dt { font-size: 12px; color: var(--muted); } .p-dl dd { margin: 0; font-weight: 600; word-break: break-word; }
.p-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-quick button { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: inherit; font-weight: 600; text-align: left; cursor: pointer; min-height: 84px; }
.p-quick button .ic { color: var(--brand); width: 24px; height: 24px; }
.p-quick button:active { background: var(--brand-l); }
.p-pay-big { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.p-sub { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 14px; }
.p-form .field { margin-bottom: 12px; }
.p-form .field input, .p-form .field select, .p-form .field textarea, .p-login .field input { font-size: 16px; padding: 11px 12px; }
.p-row { display: flex; gap: 10px; flex-wrap: wrap; } .p-row > * { flex: 1 1 140px; }
.p-big { width: 100%; justify-content: center; padding: 13px; font-size: 16px; }
.p-item p { margin: 6px 0; }
.p-item-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.p-item-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; }
.p-list .p-item-row + .p-item-row { border-top: 1px solid var(--line); }
.p-reply { background: var(--surface-2); padding: 8px 10px; border-radius: 8px; }
.p-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-kpis small { display: block; color: var(--muted); } .p-kpis b { font-size: 20px; }
.p-kpis .l-danger b { color: var(--danger); }
.p-howto p { margin: 6px 0 10px; } .mono { font-family: ui-monospace, Menlo, monospace; }
.p-file { display: flex; align-items: center; gap: 10px; border: 2px dashed var(--line); border-radius: var(--radius); padding: 18px 14px; margin-bottom: 12px; cursor: pointer; color: var(--ink-2); position: relative; }
.p-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.p-file .ic { color: var(--brand); width: 26px; height: 26px; }
.t-ok { color: var(--ok); display: inline-flex; align-items: center; gap: 4px; }
.t-danger.p-item-row, .p-item-row .t-danger { display: inline-flex; align-items: center; gap: 4px; }
.p-contact b { display: block; } .p-contact .p-row { margin-top: 10px; } .p-contact .btn { justify-content: center; }
.p-lang { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; background: var(--surface); }
.p-lang button { border: 0; background: none; padding: 6px 11px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.p-lang button.on { background: var(--brand); color: #fff; }
.p-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.p-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px 8px; color: var(--muted); font-size: 11px; font-weight: 600; position: relative; }
.p-nav a:hover { text-decoration: none; }
.p-nav a.on { color: var(--brand); }
.p-dot { position: absolute; top: 4px; left: calc(50% + 6px); background: var(--danger); color: #fff; font-style: normal; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 99px; display: grid; place-items: center; padding: 0 4px; }
.p-login { min-height: 100vh; display: grid; place-items: center; padding: 20px 16px; }
.p-login-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px 20px; box-shadow: var(--shadow); }
.p-login-card .p-lang { float: right; }
.p-logo { height: 30px; width: auto; display: block; margin: 4px 0 18px; }
.p-login-card h1 { font-size: 22px; margin-bottom: 4px; } .p-login-card p { margin: 0 0 18px; }
.p-login-card .field { margin-bottom: 12px; }
@media (min-width: 900px) { .p-nav { max-width: 640px; margin: 0 auto; border: 1px solid var(--line); border-radius: 16px 16px 0 0; } }
.p-top .p-lang button { padding: 5px 8px; font-size: 12px; }
@media (max-width: 440px) { .p-top-tag { display: none; } .p-top-logo { height: 18px; } }
.p-loc { margin-bottom: 16px; border: 1px solid color-mix(in srgb, var(--brand, #EB4056) 30%, transparent); } .p-loc p { margin: 6px 0 12px; }
.p-alt { text-align: center; margin-top: 16px; font-size: 14px; } .p-alt a { font-weight: 700; }
.p-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.p-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; margin: 10px 0 14px; } .p-check input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; }
.p-welcome { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; border-left: 4px solid #1f9d55; }
.p-price { margin: -4px 0 10px; font-size: 14px; }
.p-empty .btn { margin-top: 10px; }
.p-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 6px; }
.p-type { position: relative; display: flex; flex-direction: column; gap: 6px; border: 2px solid var(--line, #e5e7eb); border-radius: 14px; padding: 8px; cursor: pointer; background: #fff; text-align: center; font-size: 13px; font-weight: 600; }
.p-type input { position: absolute; opacity: 0; pointer-events: none; }
.p-type-img { aspect-ratio: 4 / 3; border-radius: 10px; background: #f4f5f7; display: grid; place-items: center; overflow: hidden; color: #9aa5ad; }
.p-type-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; } .p-type-img .ic { width: 40px; height: 40px; }
.p-type-any { font-size: 28px; font-weight: 800; }
.p-type:has(input:checked) { border-color: var(--brand, #EB4056); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand, #EB4056) 18%, transparent); }

/* ===== 2026-11 redesign: same look as pedalla.bike (light grey page, white rounded cards, pills, round stat bubbles) ===== */
body.portal { --night: #1c252b; --p-bg: #eef2f3; --p-r: 22px; background: var(--p-bg); }
.portal .p-card, .portal .p-note, .portal .p-quick button, .portal .p-login-card { border: 0; border-radius: var(--p-r); box-shadow: 0 1px 2px rgba(31,42,49,.04), 0 6px 18px -10px rgba(31,42,49,.16); }
.portal .p-note { border-left: 0; position: relative; padding-left: 18px; }
.portal .p-note::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--line); }
.portal .p-note.l-danger::before { background: var(--danger); } .portal .p-note.l-warn::before { background: var(--warn); } .portal .p-note.l-info::before { background: var(--info); } .portal .p-note.l-ok::before { background: var(--ok); }
.portal .btn { border-radius: 999px; }
.portal .btn.primary { box-shadow: 0 8px 18px -8px rgba(235,64,86,.8); }
.portal .field input, .portal .field select, .portal .field textarea { border-radius: 14px; }
.p-top { background: transparent; border-bottom: 0; padding: 10px 14px 6px; padding-top: max(10px, env(safe-area-inset-top)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: rgba(238,242,243,.85); }
.p-logo-pill { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px 0 5px; border-radius: 999px; background: var(--night); flex: none; }
.p-logo-pill i { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; }
.p-logo-pill i img { width: 21px; height: auto; filter: brightness(0) invert(1); }
.p-logo-pill .p-top-logo { height: 15px; }
.p-top-tag { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.06); padding: 6px 11px; }
.p-top .p-lang, .p-login-card .p-lang { border: 0; background: #fff; padding: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.p-lang button { border-radius: 99px; } .p-lang button.on { background: var(--night); }
.p-hello { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.p-h { text-transform: none; letter-spacing: -.01em; font-size: 17px; color: var(--ink); }
.p-quick button { min-height: 92px; } .p-quick button .ic { width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: var(--brand-l); }
/* floating pill navigation */
.p-nav { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); padding: 6px; gap: 2px; background: var(--night); border: 0; border-radius: 999px; box-shadow: 0 16px 34px -14px rgba(0,0,0,.55); }
.p-nav a { color: #aebbc1; border-radius: 999px; padding: 8px 2px 7px; }
.p-nav a.on { color: #fff; background: var(--brand); }
.p-dot { border: 2px solid var(--night); }
@media (min-width: 900px) { .p-nav { max-width: 616px; margin: 0 auto; border-radius: 999px; border: 0; } }
/* stat bubbles */
.p-stats { margin: 2px 0 16px; }
.st-row { display: grid; grid-template-columns: 116px repeat(auto-fit, minmax(68px, 1fr)); align-items: center; gap: 8px; padding: 6px 0 8px; }
.st-row::-webkit-scrollbar { display: none; }
.st-bub { --p: 0; width: 100%; max-width: 96px; aspect-ratio: 1; justify-self: center; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1px;
  box-shadow: 0 1px 2px rgba(31,42,49,.04), 0 6px 18px -10px rgba(31,42,49,.2); cursor: default; position: relative; }
.st-bub[data-tab], .st-bub[data-new] { cursor: pointer; }
.st-bub i { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-l); color: var(--brand); display: grid; place-items: center; margin-bottom: 2px; }
.st-bub i .ic { width: 14px; height: 14px; }
.st-bub b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.st-bub small { font-size: 9.5px; font-weight: 600; color: var(--muted); line-height: 1.15; max-width: 90%; }
.st-bub em { font-style: normal; font-size: 9.5px; color: var(--muted); }
.st-bub.big { width: 116px; max-width: none; }
.st-bub.big b { font-size: 34px; }
.st-bub.big small { font-size: 11px; } .st-bub.big em { font-size: 10px; }
@media (max-width: 360px) { .st-bub:not(.big) em { display: none; } }
.st-bub.dark { color: #fff; isolation: isolate; background: conic-gradient(var(--brand) calc(var(--p) * 1%), #3a4750 0); }
.st-bub.dark::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: var(--night); z-index: -1; }
.st-bub.dark small, .st-bub.dark em { color: #c3ced3; }
.st-bub.dark.soon { --brand: #f5a524; } .st-bub.dark.late { --brand: #ef4444; }
.st-bub.bad b { color: var(--danger); } .st-bub.warn b { color: #b7791f; }
.st-bub.bad i { background: #fee2e2; color: var(--danger); }
/* pick-up card */
.p-pick { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; background: #fff; }
.p-pick-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--brand-l); color: var(--brand); display: grid; place-items: center; flex: none; }
.p-pick b { display: block; font-size: 15px; margin: 2px 0; }
.p-pick-addr { font-weight: 700; color: var(--brand-d); margin-bottom: 4px; }
.p-pick p { margin: 0 0 10px; font-size: 13px; }
/* login */
.p-login { background: radial-gradient(circle at 85% 0%, rgba(235,64,86,.16), transparent 40%), var(--p-bg); }
.p-login-card { padding: 28px 22px; border-radius: 28px; }

/* 2026-11-11 mobile hardening + collapsible notices */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.p-main { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
.p-nav a span { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.st-row { grid-template-columns: clamp(96px, 29vw, 116px) repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
.st-bub { min-width: 0; overflow: hidden; padding: 4px; }
.st-bub.big { width: 100%; }
.st-bub b { font-size: clamp(14px, 4.4vw, 17px); white-space: nowrap; }
.st-bub.big b { font-size: clamp(26px, 8.5vw, 34px); }
.st-bub small { font-size: clamp(8.5px, 2.5vw, 10px); overflow-wrap: anywhere; }
.st-bub.big small { font-size: clamp(9.5px, 2.8vw, 11px); }
.st-bub:not(.big) em { display: none; }
.st-bub i { width: 22px; height: 22px; flex: none; }
@media (max-width: 380px) { .st-bub:not(.big) i { display: none; } }
.p-must { margin-bottom: 4px; }
.p-notes { padding: 0; margin-bottom: 14px; overflow: hidden; }
.p-notes summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; font-weight: 700; }
.p-notes summary::-webkit-details-marker { display: none; }
.p-notes summary .ic { color: var(--muted); }
.p-notes summary .ic:last-child { transition: transform .2s; }
.p-notes[open] summary .ic:last-child { transform: rotate(180deg); }
.p-count { font-style: normal; font-size: 12px; font-weight: 800; background: var(--brand-l); color: var(--brand-d); border-radius: 99px; padding: 2px 9px; }
.p-notes .grow { flex: 1; }
.p-notes-in { padding: 0 10px 10px; display: grid; gap: 8px; }
.p-notes-in .p-note { box-shadow: none; background: var(--p-bg); margin: 0; }

/* 2026-11-12 dark theme: the redesign above used fixed light colours (page, bubbles, pills),
   while the text colours switch with the phone's dark mode -> light text on light background.
   Keep backgrounds and text in the same theme. */
body.portal { --p-glass: rgba(238,242,243,.85); --p-pill: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.portal { --p-bg: #0f1518; --p-glass: rgba(15,21,24,.85); --p-pill: var(--surface); --night: #222d33; }
}
:root[data-theme="dark"] body.portal { --p-bg: #0f1518; --p-glass: rgba(15,21,24,.85); --p-pill: var(--surface); --night: #222d33; }
body.portal, .portal .p-hello, .portal .p-title, .portal .p-h { color: var(--ink); }
.p-top { background: var(--p-glass); }
.p-top-tag { background: var(--p-pill); color: var(--ink); }
.p-top .p-lang, .p-login-card .p-lang { background: var(--p-pill); }
.p-lang button { color: var(--ink-2); } .p-lang button.on { color: #fff; }
.st-bub { background: var(--surface); color: var(--ink); }
.st-bub.dark { color: #fff; }
.p-pick { background: var(--surface); }
.p-type { background: var(--surface); color: var(--ink); }
.p-notes-in .p-note { color: var(--ink); }
.portal .field input, .portal .field select, .portal .field textarea { background: var(--surface); color: var(--ink); border-color: var(--line); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .portal .p-card, :root:not([data-theme="light"]) .portal .p-note, :root:not([data-theme="light"]) .portal .p-quick button,
  :root:not([data-theme="light"]) .portal .p-login-card, :root:not([data-theme="light"]) .st-bub:not(.dark) { box-shadow: inset 0 0 0 1px var(--line); }
  :root:not([data-theme="light"]) .p-nav { box-shadow: inset 0 0 0 1px #2f3c43, 0 16px 34px -14px rgba(0,0,0,.8); }
  :root:not([data-theme="light"]) .st-bub.bad i { background: #4a1b20; color: #ff8a95; }
  :root:not([data-theme="light"]) .st-bub.bad b { color: #ff8a95; }
  :root:not([data-theme="light"]) .st-bub.warn b { color: #f5c04a; }
  :root:not([data-theme="light"]) .p-pick-addr, :root:not([data-theme="light"]) .p-count { color: #ff8a95; }
  :root:not([data-theme="light"]) .p-login { background: radial-gradient(circle at 85% 0%, rgba(235,64,86,.22), transparent 45%), var(--p-bg); }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .p-lang button.on { background: var(--brand); } }
:root[data-theme="dark"] .p-lang button.on { background: var(--brand); }

/* ---- photo tasks (pick-up selfie, photos on request) ---- */
.p-photo { border: 2px solid var(--brand); }
.p-photo.done { border-color: var(--ok); }
.p-photo-h { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.p-photo-h > .ic { width: 38px; height: 38px; padding: 8px; border-radius: 12px; color: #fff; background: var(--brand); flex: none; }
.p-photo.done .p-photo-h > .ic { background: var(--ok); }
.p-photo-h b { display: block; font-size: 16px; } .p-photo-h small { font-size: 12.5px; }
.p-photo p { margin: 6px 0 10px; font-size: 14px; }
.p-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-shot { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.p-shot:active { background: var(--brand-l); }
.p-shot b { font-size: 14px; } .p-shot small { color: var(--muted); font-size: 12px; font-weight: 700; }
.p-shot-img { position: relative; width: 72px; height: 72px; border-radius: 16px; background: var(--brand-l); display: grid; place-items: center; overflow: visible; }
.p-shot.selfie .p-shot-img { border-radius: 50%; }
.p-shot-img img { position: absolute; inset: 0; width: 72px !important; height: 72px !important; max-width: none; object-fit: cover; border-radius: inherit; }
.p-shot-img > .ic { width: 34px; height: 34px; color: var(--brand); }
.p-shot-img i { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--surface); }
.p-shot-img i .ic { width: 15px; height: 15px; color: #fff; stroke-width: 3; }
.p-shot.ok { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
.p-shot-free { margin-top: 10px; width: 100%; }

/* ---- inbox bell, bottom sheets, fault report, extension, return date, payment plan, pay sheet ---- */
.p-bell { position: relative; border: 0; background: transparent; color: var(--ink); padding: 6px; border-radius: 10px; cursor: pointer; display: inline-flex; margin-right: 6px; }
.p-bell .ic { width: 22px; height: 22px; }
.p-bell .p-dot { position: absolute; top: 0; right: 0; }
.p-sheet-bg { position: fixed; inset: 0; background: rgba(15, 20, 25, .45); z-index: 60; display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s; }
.p-sheet-bg.show { opacity: 1; }
.p-sheet { background: var(--surface); color: var(--ink); width: 100%; max-width: 560px; max-height: 88vh; border-radius: 20px 20px 0 0; display: flex; flex-direction: column; transform: translateY(30px); transition: transform .2s; padding-bottom: env(safe-area-inset-bottom); }
.p-sheet-bg.show .p-sheet { transform: none; }
.p-sheet-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; font-size: 17px; }
.p-x { border: 0; background: var(--bg); color: var(--ink); border-radius: 99px; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; }
.p-x .ic { width: 18px; height: 18px; }
.p-sheet-b { overflow-y: auto; padding: 4px 16px 18px; }
.p-sheet-b .p-form .field { margin-bottom: 12px; }
.p-inbox { display: flex; flex-direction: column; gap: 8px; }
.p-msg { text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--info); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; }
.p-msg.new { background: var(--brand-l); } .p-msg.l-danger { border-left-color: var(--danger); } .p-msg.l-warn { border-left-color: var(--warn); } .p-msg.l-ok { border-left-color: var(--ok); }
.p-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.p-chip input, .p-seg input { position: absolute; opacity: 0; pointer-events: none; }
.p-chip span { display: inline-block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; font-weight: 600; font-size: 14px; cursor: pointer; }
.p-chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.p-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.p-seg label { flex: 1 1 0; min-width: 96px; position: relative; }
.p-seg span { display: block; text-align: center; padding: 10px 8px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; cursor: pointer; }
.p-seg input:checked + span { border-color: var(--brand); background: var(--brand-l); color: var(--brand-d); }
.p-seg label.bad input:checked + span { border-color: var(--danger); background: var(--danger); color: #fff; }
.p-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.p-thumbs img, .p-addph { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.p-addph { border: 2px dashed var(--line); background: var(--bg); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.p-addph .ic { width: 26px; height: 26px; }
.p-bike-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.p-bike-act .btn { flex: 1 1 auto; }
.p-rn { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--brand-l); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.p-rn .ic { width: 16px; height: 16px; }
.p-paybtn { margin-top: 8px; width: 100%; justify-content: center; }
.p-plan .p-item-row { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.p-plan .p-item-row:last-child { border-bottom: 0; }
.p-plan-r { display: flex; flex-direction: column; align-items: flex-end; } .p-plan-r i { font-style: normal; font-size: 12px; font-weight: 700; }
.pl-ok .p-plan-r i { color: var(--ok); } .pl-bad .p-plan-r i, .pl-bad b { color: var(--danger); } .pl-part .p-plan-r i { color: var(--info); } .pl-open .p-plan-r i { color: var(--warn); } .pl-fut { opacity: .7; } .pl-fut .p-plan-r i { color: var(--muted); }
.p-pay { text-align: center; } .p-pay .p-howto { text-align: left; margin-top: 12px; }
.p-pay .p-big { margin-top: 12px; }
.p-copy { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.p-copy:last-child { border-bottom: 0; } .p-copy b { display: block; word-break: break-all; }
.p-qr { margin: 14px auto 6px; max-width: 230px; } .p-qr svg { width: 100%; height: auto; background: #fff; border-radius: 12px; padding: 6px; }
/* signup details, e-sign, referral, SEPA, privacy */
.p-more { margin: 4px 0; border: 1px dashed var(--line); border-radius: 12px; padding: 8px 12px; }
.p-more summary { cursor: pointer; font-weight: 600; color: var(--slate-d); }
.p-more[open] summary { margin-bottom: 8px; }
.p-contract { flex: 1 1 100%; justify-content: center; }
.p-ref-teaser { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; background: linear-gradient(135deg, var(--brand-l), var(--surface)); }
.p-ref-teaser span { flex: 1; font-weight: 600; } .p-ref-teaser .ic:last-child { transform: rotate(-90deg); opacity: .5; }
.p-credit { display: flex; align-items: center; gap: 8px; font-weight: 600; background: var(--brand-l); }
.p-sepa.on { border-color: var(--ok); }
.p-ref { text-align: center; }
.p-ref-code { font-size: 26px; font-weight: 800; letter-spacing: .12em; margin: 4px 0 10px; color: var(--brand-d); font-family: ui-monospace, monospace; }
.p-col { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; } .p-col .btn { justify-content: center; }
.p-scanbtn { margin-top: 8px; }
.p-clang { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.p-seg.sm label { min-width: 52px; flex: 0 0 auto; } .p-seg.sm span { padding: 6px 12px; font-size: 13px; }
.p-doc { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; overflow-x: auto; max-height: 52vh; overflow-y: auto; }
.p-doc .doc { font-size: 12px; } .p-doc .doc-2 { grid-template-columns: 1fr; }
.p-signed { display: flex; align-items: center; gap: 6px; font-weight: 600; margin-top: 10px; }
.portal .sigpad canvas { height: 150px; }
