/* Partner portal (orders.loomaapparels.com): a calm, phone-first customer app in the spirit of iOS —
   system font, large titles, inset grouped cards, translucent bars, 44px touch targets, instant press feedback.
   Colours come from the app's tokens (assets/style.css), so light and dark both work. */
.pt {
  --pt-radius: 14px; --pt-gap: 16px; --pt-bar-h: 56px; --pt-tab-h: 64px;
  --pt-press: scale(.97);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.45; letter-spacing: -.01em;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
.pt * { box-sizing: border-box; }
.pt-main { max-width: 760px; margin: 0 auto; padding: 8px 16px calc(var(--pt-tab-h) + 96px + env(safe-area-inset-bottom)); }
.pt:not(.pt-in) .pt-main { padding-bottom: 40px; }

/* ---- top bar: translucent material, content scrolls under it */
.pt-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: var(--pt-bar-h);
  padding: 0 max(16px, env(safe-area-inset-left)); background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid color-mix(in srgb, var(--border-strong) 60%, transparent); }
.pt-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.pt-brand img { border-radius: 8px; flex: none; }
.pt-brand span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.pt-brand b { font-size: 16px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-brand small { font-size: 12px; color: var(--muted); }
.pt-tabs { display: flex; gap: 4px; margin-left: auto; }
.pt-tabs a { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 18px; color: var(--text-2);
  text-decoration: none; font-size: 15px; font-weight: 550; transition: background .15s, transform .1s; }
.pt-tabs a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pt-tabs a.on { color: var(--accent); background: var(--accent-soft); }
.pt-tabs a:active { transform: var(--pt-press); }
.pt-me { position: relative; }
.pt-me summary { list-style: none; cursor: pointer; }
.pt-me summary::-webkit-details-marker { display: none; }
.pt-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 15px; }
.pt-menu { position: absolute; right: 0; top: 44px; width: 240px; padding: 14px; border-radius: var(--pt-radius); background: var(--surface);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 6px; transform-origin: top right; animation: pt-pop .18s ease-out; }
.pt-menu small { color: var(--muted); font-size: 13px; }
@keyframes pt-pop { from { opacity: 0; transform: scale(.96); } }

/* phones: tab bar at the bottom (thumb reach), translucent like iOS */
@media (max-width: 720px) {
  .pt-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0; justify-content: space-around; gap: 0;
    height: calc(var(--pt-tab-h) + env(safe-area-inset-bottom)); padding: 6px 8px env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--surface) 78%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-top: .5px solid color-mix(in srgb, var(--border-strong) 60%, transparent); }
  .pt-tabs a { flex: 1; flex-direction: column; justify-content: center; gap: 2px; height: 52px; padding: 0; border-radius: 12px; font-size: 11px; font-weight: 600; color: var(--muted); }
  .pt-tabs a svg { width: 24px; height: 24px; }
  .pt-tabs a.on { background: none; }
  .pt-tabs a.is-new svg { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--accent); color: #fff; stroke-width: 2.6; }
}

/* ---- type: large titles tight, body comfortable */
.pt-title { font-size: 34px; line-height: 1.1; font-weight: 750; letter-spacing: -.025em; margin: 14px 0 6px; }
.pt-h2 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 26px 4px 8px; }
.pt-sub { color: var(--muted); font-size: 15px; margin: 2px 0 0; }
.pt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pt-head .pt-title { margin-bottom: 2px; }
.pt-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-decoration: none; font-size: 17px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0; }

/* ---- buttons: instant feedback on press */
.pt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 12px;
  font: inherit; font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .1s ease-out, opacity .15s, background .15s; }
.pt-btn:active { transform: var(--pt-press); }
.pt-btn.filled { background: var(--accent); color: #fff; }
.pt-btn.filled:hover { background: var(--brand-2); }
.pt-btn.tinted { background: var(--accent-soft); color: var(--accent); }
.pt-btn.plain { background: none; color: var(--accent); padding: 0 8px; }
.pt-btn.danger { color: var(--err); }
.pt-btn.wide { width: 100%; }
.pt-btn:disabled { opacity: .55; cursor: default; }
.pt-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.pt-actions form { margin: 0; }

/* ---- grouped cards and rows */
.pt-card { background: var(--surface); border-radius: var(--pt-radius); box-shadow: 0 .5px 0 rgba(0,0,0,.04); }
.pt-list { overflow: hidden; }
.pt-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; color: var(--text); text-decoration: none; position: relative; }
.pt-row + .pt-row::before { content: ""; position: absolute; top: 0; left: 78px; right: 0; border-top: .5px solid var(--border); }
a.pt-row:active { background: var(--surface-2); }
.pt-thumb { width: 52px; height: 52px; flex: none; border-radius: 10px; object-fit: cover; background: var(--surface-3); display: grid; place-items: center; font-size: 22px; }
.pt-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pt-row-main b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-row-main small { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-row-main .pt-detail { color: var(--text-2); }
.pt-row-main .pt-detail.err { color: var(--err); white-space: normal; }
.pt-row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; font-size: 15px; }
.pt-row-end small { color: var(--muted); font-size: 13px; }
.pt-urg { font-size: 14px; }
.pt-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.pt-pill.s-new { background: var(--warn-bg); color: var(--warn); }
.pt-pill.s-accepted, .pt-pill.s-printing, .pt-pill.s-printed { background: var(--st-printed-bg); color: var(--st-printed); }
.pt-pill.s-packed { background: var(--st-packed-bg); color: var(--st-packed); }
.pt-pill.s-shipped { background: var(--st-shipped-bg); color: var(--st-shipped); }
.pt-pill.s-rejected, .pt-pill.s-cancelled { background: var(--err-bg); color: var(--err); }
.pt-kv > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 16px; }
.pt-kv > div + div { border-top: .5px solid var(--border); }
.pt-kv small { color: var(--muted); font-size: 15px; }

/* ---- notes, empty states */
.pt-note { padding: 12px 16px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); margin: 12px 0; font-size: 15px; animation: pt-in .25s ease-out; }
.pt-note.err { background: var(--err-bg); color: var(--err); }
@keyframes pt-in { from { opacity: 0; transform: translateY(-4px); } }
.pt-empty { text-align: center; padding: 48px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pt-empty p { color: var(--muted); max-width: 340px; margin: 0 0 12px; }
.pt-empty-ico { font-size: 44px; line-height: 1; margin-bottom: 6px; }
.pt-hint { color: var(--muted); font-size: 14px; margin: 6px 16px; }
#ptKnown { color: var(--accent); }

/* ---- search + filter chips */
.pt-search input { width: 100%; height: 40px; border: 0; border-radius: 10px; padding: 0 14px 0 36px; font: inherit; font-size: 17px; color: var(--text);
  background: var(--surface-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23868b96' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 11px 50%/17px no-repeat; }
.pt-search { margin: 8px 0 10px; }
.pt-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; scrollbar-width: none; }
.pt-chips::-webkit-scrollbar { display: none; }
.pt-chips a { flex: none; height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 17px; background: var(--surface);
  color: var(--text); text-decoration: none; font-size: 15px; font-weight: 550; transition: transform .1s; }
.pt-chips a b { font-weight: 600; color: var(--muted); }
.pt-chips a.on { background: var(--text); color: var(--bg); }
.pt-chips a.on b { color: inherit; opacity: .7; }
.pt-chips a:active { transform: var(--pt-press); }
.pt-pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; color: var(--muted); }

/* ---- order progress */
.pt-steps { list-style: none; display: flex; margin: 18px 0 6px; padding: 0; counter-reset: s; }
.pt-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); position: relative; text-align: center; }
.pt-steps li span { width: 14px; height: 14px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--surface-3); position: relative; z-index: 1; }
.pt-steps li::before { content: ""; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: var(--surface-3); }
.pt-steps li:first-child::before { display: none; }
.pt-steps li.done { color: var(--text); font-weight: 600; }
.pt-steps li.done span { background: var(--st-shipped); border-color: var(--st-shipped); }
.pt-steps li.done::before { background: var(--st-shipped); }
.pt-track { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin-top: 14px; flex-wrap: wrap; }
.pt-track div { display: flex; flex-direction: column; }
.pt-track small { color: var(--muted); font-size: 14px; }
.pt-track b { font-size: 20px; }

/* ---- forms: iOS-style grouped fields (label left, value right) */
.pt-fields { overflow: hidden; }
.pt-fields > label, .pt-login .pt-fields label { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 4px 16px; position: relative; }
.pt-fields > label + label::before, .pt-fields > label + .pt-hint + label::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: .5px solid var(--border); }
.pt-fields > label > span { flex: none; width: 96px; font-size: 17px; color: var(--text); }
.pt-fields input, .pt-fields textarea, .pt-pick select { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 17px; color: var(--text); padding: 10px 0; outline: none; }
.pt-fields textarea { resize: vertical; line-height: 1.4; }
.pt-fields > label.tall { align-items: flex-start; }
.pt-fields > label.tall > span { padding-top: 10px; }
.pt-fields input::placeholder, .pt-fields textarea::placeholder { color: var(--muted); opacity: .8; }
.pt-fields > label:focus-within { background: var(--surface-2); }
.pt-fields > label.pt-bad > span { color: var(--err); }
.pt-fields > label.pt-bad { box-shadow: inset 3px 0 0 var(--err); }
.pt-filled { animation: pt-fill 1.2s ease-out; }
@keyframes pt-fill { from { background: var(--accent-soft); } }
.pt-card + .pt-card, .pt-card + details, details + .pt-card, .pt-seg + .pt-card { margin-top: 10px; }
.pt-login { max-width: 380px; margin: 9vh auto 0; text-align: center; }
.pt-login img { border-radius: 18px; box-shadow: var(--shadow); }
.pt-login h1 { font-size: 28px; letter-spacing: -.02em; margin: 14px 0 2px; }
.pt-login > p { color: var(--muted); margin: 0 0 22px; }
.pt-login .pt-fields { text-align: left; }
.pt-login .pt-fields > span { width: 90px; }
.pt-login form.pt-card .pt-btn { border-radius: 0; margin-top: 0; }
/* switch */
.pt-switch { cursor: pointer; }
.pt-switch > span { flex: 1 !important; width: auto !important; }
.pt-switch input { position: absolute; opacity: 0; pointer-events: none; }
.pt-switch i { width: 51px; height: 31px; border-radius: 16px; background: var(--surface-3); position: relative; flex: none; transition: background .2s; }
.pt-switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .25s cubic-bezier(.3,.7,.4,1); }
.pt-switch input:checked + i { background: #34c759; }
.pt-switch input:checked + i::after { transform: translateX(20px); }
.pt-switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
/* segmented control */
.pt-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 10px; background: var(--surface-3); }
.pt-seg label { position: relative; cursor: pointer; }
.pt-seg input { position: absolute; opacity: 0; }
.pt-seg span { display: flex; align-items: center; justify-content: center; min-height: 38px; border-radius: 8px; font-size: 15px; font-weight: 550; color: var(--text-2); transition: background .2s, box-shadow .2s; }
.pt-seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.08), 0 0 0 .5px rgba(0,0,0,.04); }
.pt-seg input:focus-visible + span { outline: 2px solid var(--accent); }
/* disclosure */
.pt-more > summary, .pt-paste > summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 16px; padding: 0 4px; }
.pt-more > summary::-webkit-details-marker, .pt-paste > summary::-webkit-details-marker { display: none; }
.pt-more > summary::after { content: "›"; transition: transform .2s; font-size: 20px; }
.pt-more[open] > summary::after { transform: rotate(90deg); }
.pt-paste { background: var(--surface); border-radius: var(--pt-radius); padding: 2px 12px; margin-bottom: 10px; }
.pt-paste[open] { padding-bottom: 12px; }
.pt-paste summary small { color: var(--muted); font-size: 14px; }
.pt-paste textarea { width: 100%; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; padding: 10px 12px; margin-bottom: 8px; resize: vertical; }

/* ---- the T-shirt line: design pictures, T-shirt, colour swatches, size steppers */
.pt-line { padding: 14px 14px 16px; margin-bottom: 10px; transition: box-shadow .2s; }
.pt-line.pt-bad { box-shadow: 0 0 0 2px var(--err); }
.pt-line-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pt-line-top b, .pt-sub2 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pt-sub2 { margin: 16px 0 8px; }
.pt-x { border: 0; background: none; color: var(--err); font: inherit; font-size: 15px; min-height: 32px; cursor: pointer; }
.pt-tiles { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.pt-tile { flex: none; width: 96px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; scroll-snap-align: start; color: var(--text); text-decoration: none; position: relative; }
.pt-tile input { position: absolute; opacity: 0; }
.pt-tile img, .pt-tile-ph { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: var(--surface-3); display: grid; place-items: center; font-size: 28px;
  box-shadow: 0 0 0 1px var(--border); transition: box-shadow .15s, transform .1s; }
.pt-tile span:last-child { font-size: 13px; line-height: 1.25; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pt-tile input:checked ~ img, .pt-tile input:checked ~ .pt-tile-ph { box-shadow: 0 0 0 3px var(--accent); }
.pt-tile input:checked ~ span:last-child { color: var(--accent); font-weight: 600; }
.pt-tile input:checked ~ img + span::before { content: none; }
.pt-tile:active img, .pt-tile:active .pt-tile-ph { transform: var(--pt-press); }
.pt-tile input:focus-visible ~ img { outline: 2px solid var(--accent); outline-offset: 3px; }
.pt-tile.add .pt-tile-ph { color: var(--accent); background: var(--accent-soft); box-shadow: none; }
.pt-pick { display: flex; align-items: center; gap: 12px; min-height: 48px; margin-top: 8px; padding: 0 12px; border-radius: 10px; background: var(--surface-2); }
.pt-pick > span { color: var(--muted); font-size: 15px; width: 64px; flex: none; }
.pt-pick select { appearance: none; -webkit-appearance: none; cursor: pointer; font-weight: 550;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23868b96' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") right 0 center/18px no-repeat; padding-right: 24px; }
.pt-sws { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-sw { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 6px; border-radius: 20px; background: var(--surface-2); cursor: pointer; font-size: 15px; transition: transform .1s; }
.pt-sw input { position: absolute; opacity: 0; }
.pt-sw i { width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.pt-sw:has(input:checked) { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent); font-weight: 600; }
.pt-sw:active { transform: var(--pt-press); }
.pt-sw input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.pt-steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 8px; }
.pt-step { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--surface-2); transition: background .15s, box-shadow .15s; }
.pt-step > b { font-size: 16px; }
.pt-step > div { display: flex; align-items: center; }
.pt-step button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface); color: var(--accent); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.08); transition: transform .08s; }
.pt-step button:active { transform: scale(.88); }
.pt-step input { width: 36px; border: 0; background: none; text-align: center; font: inherit; font-size: 17px; font-weight: 600; color: var(--muted); outline: none; }
.pt-step.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.pt-step.on input { color: var(--accent); }

/* ---- sticky send bar (above the tab bar on phones) */
.pt-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, calc((100vw - 760px) / 2 + 16px)) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: .5px solid color-mix(in srgb, var(--border-strong) 60%, transparent); }
.pt-dock span { font-weight: 600; color: var(--text-2); }
.pt-dock .pt-btn { min-width: 160px; }
@media (max-width: 720px) { .pt-dock { bottom: calc(var(--pt-tab-h) + env(safe-area-inset-bottom)); padding-bottom: 10px; } }

/* ---- designs */
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 14px; }
.pt-dcard { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--pt-radius); overflow: hidden; color: var(--text); text-decoration: none; transition: transform .1s; position: relative; }
.pt-dcard:active { transform: var(--pt-press); }
.pt-dcard img, .pt-dcard .pt-tile-ph { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface-3); border-radius: 0; box-shadow: none; }
.pt-dcard > span:not(.pt-dcard-go):not(.pt-tile-ph) { display: flex; flex-direction: column; padding: 10px 12px 12px; }
.pt-dcard small { color: var(--muted); font-size: 13px; }
.pt-dcard-go { position: absolute; top: 8px; right: 8px; padding: 4px 10px; border-radius: 14px; font-size: 13px; font-weight: 600;
  background: color-mix(in srgb, var(--surface) 80%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--accent); }
.pt-newdesign { margin-top: 10px; }
.pt-drop { display: block; position: relative; border-radius: var(--pt-radius); background: var(--surface); border: 2px dashed var(--border-strong); cursor: pointer; margin-bottom: 10px; transition: border-color .15s, background .15s; }
.pt-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.pt-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pt-drop-empty { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 30px 16px; text-align: center; }
.pt-drop-empty small { color: var(--muted); }
.pt-drop-prev { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.pt-drop-prev img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; flex: none; }

/* phones: the blur on the top bar would trap the fixed tab bar inside it, so the bar is near-solid there */
@media (max-width: 720px) {
  .pt-bar { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--bg) 96%, transparent); }
  .pt-btn.pt-only-wide { display: none; }
  .pt-me { margin-left: auto; }
}
.pt-paste > summary { flex-wrap: wrap; row-gap: 0; padding-top: 8px; padding-bottom: 8px; }
.pt-paste > summary small { flex-basis: 100%; }

/* ---- accessibility */
@media (prefers-reduced-motion: reduce) {
  .pt *, .pt *::before, .pt *::after { animation: none !important; transition: opacity .15s !important; }
  .pt-btn:active, .pt-tile:active img, .pt-sw:active, .pt-dcard:active, .pt-step button:active, .pt-chips a:active, .pt-tabs a:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .pt-bar, .pt-tabs, .pt-dock { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .pt-card, .pt-step, .pt-sw, .pt-pick { box-shadow: 0 0 0 1px var(--border-strong); }
}
/* ---- money */
.pt-balance { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 4px; }
.pt-balance > small { color: var(--muted); font-size: 15px; }
.pt-balance > b { font-size: 40px; line-height: 1.1; letter-spacing: -.02em; color: var(--st-shipped); }
.pt-balance.neg > b { color: var(--err); }
.pt-balance .pt-note { margin: 8px 0 0; }
.pt-led .pt-row-end b { font-variant-numeric: tabular-nums; }
.pt-led .pt-in { color: var(--st-shipped); }
.pt-led.pending { opacity: .6; }
.pt-row-main + .pt-row-end b.pt-in { color: var(--st-shipped); }
.pt-fields input[type=file] { font-size: 15px; padding: 12px 0; }
.pt-cost .pt-row { min-height: 44px; }
.pt-cost .pt-row-end { flex-direction: row; gap: 6px; }
.pt-cost .tot { font-weight: 700; }
/* ---- which T-shirt (new / returns / own) and what is left */
.pt-src { margin-bottom: 12px; }
.pt-step > b small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.pt-step > b { line-height: 1.1; }
.pt-small { min-height: 32px; padding: 0 12px; font-size: 14px; }
.pt-row-end .pt-small { margin-top: 2px; }
.pt-low { color: var(--err); }
.pt-h2 small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.pt-export { margin-top: 4px; }
@media (max-width: 720px) { .pt-tabs a span { font-size: 10.5px; } }
.pt-dwrap { display: flex; flex-direction: column; gap: 4px; }
.pt-dlink > summary { list-style: none; cursor: pointer; color: var(--accent); font-size: 14px; padding: 4px 4px; }
.pt-dlink > summary::-webkit-details-marker { display: none; }
.pt-dlink-f { display: flex; gap: 6px; }
.pt-dlink-f input { flex: 1; min-width: 0; border: 0; border-radius: 10px; background: var(--surface); padding: 8px 10px; font: inherit; font-size: 14px; color: var(--text); }
/* ---- sign up */
.pt-register { max-width: 460px; text-align: left; margin-top: 4vh; }
.pt-register > img, .pt-register > h1, .pt-register > p { display: block; text-align: center; margin-left: auto; margin-right: auto; }
.pt-register .pt-fields > label > span { width: 84px; }
.pt-reg-btn { margin-top: 18px; }
.pt-reg-link { margin-top: 14px; }
.pt-register .pt-sub { text-align: center; margin-top: 14px; }
.pt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
