/* Crowdster Agents portal (public, mobile first). Builds on tokens.css + app.css. */
body.pt { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.pt-top { background: var(--surface); border-bottom: var(--bw) solid var(--border); }
.pt-top__in { max-width: 640px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pt-logo { height: 34px; width: auto; display: block; }
.pt-main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 20px 16px 32px; display: flex; flex-direction: column; gap: 16px; }
.pt-card { background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sticker); padding: 22px 20px; }
.pt-card h1 { font-size: 24px; margin-bottom: 6px; }
.pt-card h2 { font-size: 18px; }
.pt-card > .hint { margin: 0 0 4px; }
.pt-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: var(--shadow-sticker-yellow); }
.pt-hero p { margin: 0; }
.pt-hero__img { width: 104px; height: auto; }
.pt-steps { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 8px; text-align: left; width: 100%; max-width: 360px; }
.pt-steps li { display: flex; gap: 10px; align-items: center; font-size: var(--fs-small); }
.pt-steps b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--highlight); border: 2px solid var(--border); font-size: 13px; }
.pt-login { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.pt-linebtn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 12px 16px; border: var(--bw) solid var(--border); border-radius: var(--r-pill);
  background: #06C755; color: #fff; text-decoration: none; font-weight: var(--fw-bold); box-shadow: var(--shadow-sticker); transition: transform var(--dur-fast), box-shadow var(--dur-fast); }
.pt-linebtn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--cs-ink); }
.pt-linebtn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--cs-ink); }
.pt-linebtn__mark { background: #fff; color: #06C755; border-radius: 6px; padding: 1px 6px; font-size: 12px; font-weight: 800; letter-spacing: .5px; }
.pt-sec { margin: 22px 0 10px; padding-bottom: 4px; border-bottom: 1.5px dashed var(--cs-gray-100); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 14px; }
.pt-grid .pt-wide { grid-column: 1 / -1; }
.pt-card .field .input { width: 100%; padding: 11px 12px; font-size: 16px; } /* 16px stops iOS zooming into inputs */
.pt-card .field label, .pt-checks legend { display: block; font-size: var(--fs-small); font-weight: var(--fw-bold); margin-bottom: 4px; }
.pt-card .field .hint { display: block; margin-top: 4px; }
.pt-req { color: var(--danger); }
.pt-checks { border: 0; padding: 0; margin: 14px 0 0; display: grid; gap: 2px; }
.pt-checks legend { padding: 0; }
.pt-checks--row { display: flex; flex-wrap: wrap; gap: 0 18px; }
.pt-checks--row legend { width: 100%; }
.pt-checks .check { font-size: 15px; margin-top: 6px; align-items: flex-start; }
.pt-checks .check input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.check--sub small { display: block; color: var(--text-muted); font-size: var(--fs-caption); }
.pt-consent { margin-top: 20px; padding: 12px; background: var(--cs-cream); border-radius: var(--r-md); font-size: var(--fs-small); align-items: flex-start; }
.pt-consent input { margin-top: 3px; flex: none; }
.pt-consent .link { padding: 0 3px; }
.pt-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.pt-actions .btn:not(.btn--sm) { min-width: 160px; }
#formErr { margin-top: 14px; }
.pt-status { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-md); border: 2px solid var(--border); }
.pt-status p { margin: 4px 0 0; font-size: var(--fs-small); }
.pt-status--wait { background: var(--highlight); }
.pt-status--ok { background: var(--cs-sky); }
.pt-cardhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pt-card p { margin: 8px 0 0; }
.pt-empty { margin-top: 10px; padding: 18px; border: 2px dashed var(--cs-gray-100); border-radius: var(--r-md); text-align: center; }
.pt-empty p { margin: 0; }
.pt-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 10px 0 0; font-size: var(--fs-small); }
.pt-facts dt { color: var(--text-muted); }
.pt-facts dd { margin: 0; overflow-wrap: anywhere; }
.pt-foot { max-width: 640px; width: 100%; margin: 0 auto; padding: 8px 16px 24px; display: flex; justify-content: space-between; gap: 10px; font-size: var(--fs-caption); color: var(--text-muted); }
.pt-foot .link { font-size: var(--fs-caption); padding: 0; }
.pt-dialog { max-width: 560px; width: calc(100% - 32px); border: var(--bw) solid var(--border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sticker); }
.pt-dialog::backdrop { background: rgba(22, 20, 15, .45); }
.pt-dialog h2 { font-size: 20px; }
.pt-dialog h3 { font-size: 15px; margin-top: 14px; }
.pt-dialog__body { font-size: var(--fs-small); max-height: 60vh; overflow: auto; margin: 10px 0 14px; }
.pt-dialog__body ul { padding-left: 20px; margin: 6px 0; }
.pt-dialog form { text-align: right; }
body.busy .pt-actions .btn { opacity: .6; pointer-events: none; }
@media (max-width: 480px) {
  .pt-grid { grid-template-columns: 1fr; }
  .pt-card { padding: 18px 16px; }
  .pt-actions .btn { flex: 1; }
}
