/* Practice Profile + Builder tool page */
.pt-page { max-width: 980px; margin: 0 auto; font-family: var(--font-body); }
.pt-hero { background: var(--teal-dark); color: var(--cream); border-radius: var(--radius-lg); padding: 30px 32px 28px; margin-bottom: 20px; position: relative; overflow: hidden; }
.pt-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(201,154,105,0.35); pointer-events: none; }
.pt-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; margin: 6px 0 8px; line-height: 1.15; }
.pt-sub { color: rgba(239,237,232,0.82); max-width: 62ch; line-height: 1.6; margin: 0; }
.pt-card { padding: 26px 28px; }
.pt-card-title { font-family: var(--font-display); color: var(--teal-dark); margin: 4px 0 6px; }
.pt-kicker { font-size: 0.72rem; letter-spacing: normal; text-transform: none; color: var(--purple); font-weight: 700; }
.pt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.pt-grid .pt-wide { grid-column: 1 / -1; }
.pt-grid textarea { resize: vertical; min-height: 84px; }
.pt-req { color: var(--purple); }
.pt-invalid input, .pt-invalid textarea, .pt-invalid select { border-color: var(--purple) !important; box-shadow: 0 0 0 3px rgba(125,45,108,0.12); }
.pt-form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--gray-mid); flex-wrap: wrap; }
.pt-status { flex: 1; font-size: 0.85rem; color: var(--gray-text); min-height: 1.2em; }
.pt-status.is-ok, .pt-save-state.is-ok { color: var(--teal-dark); font-weight: 600; }
.pt-status.is-error, .pt-save-state.is-error { color: var(--purple); font-weight: 600; }
.pt-context { font-size: 0.85rem; color: var(--gray-text); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px dashed var(--gray-mid); }
.pt-context strong { color: var(--teal-dark); }
.pt-context a { color: var(--purple); font-weight: 600; }
.pt-tool-layout { display: grid; gap: 20px; }
.pt-output-card { padding: 24px 28px; border-top: 3px solid var(--gold); animation: ptRise .35s ease both; }
.pt-output-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.pt-save-state { font-size: 0.8rem; color: var(--gray-text); }
.pt-output { white-space: pre-wrap; word-wrap: break-word; line-height: 1.72; color: var(--teal-dark); font-size: 0.98rem; min-height: 3em; }
.pt-output.is-streaming::after { content: ""; display: inline-block; width: 8px; height: 1.05em; margin-left: 2px; vertical-align: text-bottom; background: var(--gold); animation: ptBlink 1s steps(2) infinite; }
.pt-gpt-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; margin-bottom: 20px; border-left: 4px solid var(--gold); flex-wrap: wrap; }
.pt-gpt-card p { margin: 4px 0 0; color: var(--gray-text); }
.pt-admin-banner { background: rgba(125,45,108,0.08); color: var(--purple); border: 1px solid rgba(125,45,108,0.25); border-radius: var(--radius); padding: 10px 14px; font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; }
.pt-state { text-align: center; padding: 52px 28px; }
.pt-state--inline { padding: 30px 24px; margin-bottom: 20px; }
.pt-state h3 { font-family: var(--font-display); color: var(--teal-dark); margin-bottom: 8px; }
.pt-state-mark { width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 50%; border: 2px solid var(--gold); position: relative; }
.pt-state-mark::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--purple); opacity: .85; }
.pt-state-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.user-menu-btn { background: transparent; border: 1px solid transparent; border-radius: 999px; padding: 4px 10px 4px 4px; cursor: pointer; font: inherit; transition: border-color .2s, background .2s; }
.user-menu-btn:hover, .user-menu-btn:focus-visible { border-color: rgba(201,154,105,0.6); background: rgba(255,255,255,0.06); outline: none; }
#global-profile { cursor: pointer; }
@keyframes ptRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ptBlink { 50% { opacity: 0; } }
@media (max-width: 767px) {
  .pt-grid { grid-template-columns: 1fr; }
  .pt-hero, .pt-card, .pt-output-card { padding: 22px 18px; }
  .pt-form-foot .btn { width: 100%; }
}
