/* Caminho.DEV — the clickable client portal in the /client-portals hero
   (assets/js/portal-demo.js). Builds on dash-demo.css, which styles the shared window
   pieces (screens, lists, buttons, switches, toast). Applies only once the script has
   taken over (.is-live), so without it the drawn scene in pages.css is untouched. */

/* Dashboard: feed lines and tiles are links to their screens. */
.mp-dash--portal.is-live .mp-portal-feed li[role="button"] { border-radius: 8px; transition: background .12s; }
.mp-dash--portal.is-live .mp-portal-feed li[role="button"]:hover { background: #f7f9fe; }

/* Statuses. */
.mp-pt-pill { font-style: normal; font-size: .6rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.mp-pt-pill--new, .mp-pt-pill--invited { color: #3a47b8; background: #e9ecff; }
.mp-pt-pill--progress, .mp-pt-pill--due { color: #9a5b00; background: #fff3dc; }
.mp-pt-pill--done, .mp-pt-pill--paid, .mp-pt-pill--active { color: #0f7a3a; background: #e6f7ec; }

/* Rows: icon, text, status, action. */
.mp-pt-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; transition: background .12s; }
.mp-pt-row + .mp-pt-row { border-top: 1px solid var(--mp-line-2); }
.mp-pt-row[role="button"]:hover { background: #f7f9fe; }
.mp-pt-row .mp-dash-name { flex: 1; }
.mp-pt-row .mp-dash-btn { padding: 5px 10px; }
.mp-pt-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--mp-muted); border: 1px solid var(--mp-line-2); }
.mp-pt-icon:hover { color: var(--mp-accent); border-color: #cfdcfb; }
.mp-pt-icon svg { width: 13px; height: 13px; }
.mp-pt-big { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--mp-ink); margin: 14px 0 8px; }

/* Forms: a request or a message. */
.mp-pt-form { display: flex; gap: 6px; margin-top: 10px; }
.mp-pt-form input { flex: 1; min-width: 0; font: inherit; font-size: .68rem; padding: 7px 10px; border: 1px solid var(--mp-line-2);
  border-radius: 8px; outline: 0; color: var(--mp-ink); background: #fff; }
.mp-pt-form input:focus { border-color: var(--mp-accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.mp-pt-form button { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: .64rem; font-weight: 700; color: #fff;
  background: var(--mp-accent); border: 0; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.mp-pt-form button svg { width: 12px; height: 12px; }

/* Messages. */
.mp-pt-thread { display: flex; flex-direction: column; gap: 7px; max-height: 190px; overflow: auto; padding: 2px; scrollbar-width: thin; }
.mp-pt-msg { margin: 0; max-width: 80%; padding: 7px 10px; border-radius: 10px; font-size: .68rem; line-height: 1.4; color: var(--mp-ink);
  background: #f1f4fb; border-bottom-left-radius: 3px; animation: mpDashIn .22s ease; }
.mp-pt-msg small { display: block; font-size: .56rem; color: var(--mp-muted); margin-bottom: 2px; }
.mp-pt-msg--you { align-self: flex-end; background: var(--mp-accent); color: #fff; border-bottom-left-radius: 10px; border-bottom-right-radius: 3px; }
.mp-pt-msg--you small { color: rgba(255, 255, 255, .75); }

/* ── The phone ── */
.mp-portal-phone.is-live li[role="button"] { cursor: pointer; transition: border-color .15s, background .15s; }
.mp-portal-phone.is-live li[role="button"]:hover { border-color: #cfdcfb; background: #f7f9ff; }
.mp-portal-phone.is-live [role="button"]:focus-visible { outline: 2px solid var(--mp-accent); outline-offset: 1px; }
.mp-portal-phone .mp-phone-screen { display: flex; flex-direction: column; }
.mp-pt-pback { display: none; font-size: 1rem; line-height: 1; font-weight: 700; color: var(--mp-accent); padding: 0 6px 0 0; cursor: pointer; }
.mp-portal-phone.is-open .mp-pt-pback { display: block; }
.mp-portal-phone.is-open .mp-portal-phone-top b { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.mp-portal-phone.is-open ul { display: none; }
.mp-pt-pbody { display: none; flex: 1; min-height: 0; overflow: auto; padding: 8px 7px 0; scrollbar-width: none; }
.mp-pt-pbody::-webkit-scrollbar { display: none; }
.mp-portal-phone.is-open .mp-pt-pbody { display: block; animation: mpDashIn .2s ease; }
.mp-pt-pcard { display: block; padding: 7px 8px; margin-bottom: 5px; border: 1px solid var(--mp-line-2); border-radius: 9px; background: #fff; }
.mp-pt-pcard b { display: block; font-size: .58rem; line-height: 1.3; color: var(--mp-ink); margin-bottom: 4px; }
.mp-pt-pcard small { display: block; font-size: .5rem; color: var(--mp-muted); margin-bottom: 3px; }
.mp-pt-pcard .mp-pt-pill { font-size: .5rem; padding: 2px 6px; }
.mp-pt-pcard .mp-dash-bar { height: 4px; }
.mp-pt-pcard[role="button"]:hover { border-color: #cfdcfb; }
.mp-pt-pline { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.mp-pt-pline .mp-dash-btn { font-size: .5rem; padding: 3px 7px; border-radius: 6px; }
.mp-pt-pbody .mp-pt-thread { max-height: none; }
.mp-pt-pbody .mp-pt-msg { font-size: .52rem; padding: 5px 7px; max-width: 90%; }
.mp-pt-pbody .mp-pt-msg small { font-size: .46rem; }
.mp-pt-pbody .mp-pt-form { margin: 6px 0 4px; gap: 4px; }
.mp-pt-pbody .mp-pt-form input { font-size: .52rem; padding: 5px 6px; border-radius: 6px; }
.mp-pt-pbody .mp-pt-form button { padding: 4px 6px; border-radius: 6px; }
.mp-pt-pbody .mp-pt-form button span { display: none; }

@media (max-width: 640px) {
  .mp-pt-row { padding: 8px 10px; gap: 8px; }
  .mp-pt-row .mp-dash-dot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mp-pt-msg, .mp-portal-phone.is-open .mp-pt-pbody { animation: none; }
}
