:root {
  --psa-font: "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --psa-display: "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --psa-bg: #eef1f4;
  --psa-ink: #1c2430;
  --psa-muted: #5c6775;
  --psa-panel: #ffffff;
  --psa-line: #e3e7ee;
  --psa-line-strong: #cfd6e0;
  --psa-accent: #d93b2e;
  --psa-accent-ink: #ffffff;
  --psa-focus: #1c2430;
  --psa-recent: #f7f8fa;
  --psa-shadow: 0 1px 2px rgba(22, 32, 48, 0.04), 0 10px 28px rgba(22, 32, 48, 0.06);
}
.psa-app {
  color: var(--psa-ink);
  background: var(--psa-bg);
  font-family: var(--psa-font);
  margin: 0;
  line-height: 1.45;
}
.psa-app a { color: var(--psa-accent); }
.psa-app :focus-visible { outline: 3px solid var(--psa-focus); outline-offset: 2px; }
.psa-skip { position: absolute; left: -999px; }
.psa-skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 5; }
.psa-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 20px; background: #161d27; color: #fff; border-bottom: 3px solid var(--psa-accent); }
.psa-top nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.psa-top a { color: #fff; min-height: 40px; display: inline-flex; align-items: center; margin-right: 0; text-decoration: none; }
.psa-top nav a { padding: 0 12px; border-radius: 999px; font-weight: 600; }
.psa-top nav a:hover { background: rgba(255, 255, 255, 0.1); }
.psa-brand { margin: 0; display: flex; align-items: center; gap: 10px; }
.psa-brand img { height: 34px; width: auto; }
.psa-app button, body.login #wp-submit { background: var(--psa-accent); color: var(--psa-accent-ink); border: 0; padding: 8px 14px; border-radius: 10px; font-weight: 700; cursor: pointer; }
body.login { background: #1b211e; font-family: var(--psa-font); }
body.login h1 a { background-image: url("../brand/red-logo.svg"); background-size: contain; background-repeat: no-repeat; width: 180px; height: 60px; }
.psa-panel, .psa-summary, .psa-chat, .psa-script, #psa-flow { background: var(--psa-panel); padding: 16px; }
.psa-panel { margin: 20px auto; max-width: 1080px; border-radius: 16px; box-shadow: var(--psa-shadow); }
.psa-panel h1, .psa-board h1, .psa-title-row h1 { margin: 0; font-size: 1.55rem; letter-spacing: -0.03em; font-weight: 700; }
.psa-col-title { margin: 0 0 8px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--psa-muted); }
.psa-block { margin: 0 0 16px; }
.psa-block > h3 { margin: 0 0 6px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--psa-muted); }
.psa-progress { margin: 0 0 8px; font-weight: 400; line-height: 1.4; }
.psa-brief-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 6px; }
.psa-brief-head h3 { margin: 0; font-size: 0.95rem; }
#psa-refresh, #psa-refresh-script, #psa-copy-draft, #psa-refresh-draft { background: #fff; color: var(--psa-ink); border: 1px solid var(--psa-line); min-height: 36px; padding: 4px 12px; }
.psa-script-pane .psa-brief-head { margin: 0 0 8px; }
.psa-script-pane .psa-col-title { margin: 0; }
.psa-draft-actions { display: flex; gap: 8px; flex: 0 0 auto; }
#psa-email-draft { width: 100%; min-height: 14rem; resize: vertical; font-weight: 400; line-height: 1.45; white-space: pre-wrap; }
.psa-brief { margin: 0 0 12px; font-weight: 400; line-height: 1.4; }
.psa-brief.is-empty { color: var(--psa-muted); }
.psa-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.psa-title-row h1 { margin: 0; }
#psa-analyse { flex: 0 0 auto; }
#psa-analyse:disabled { opacity: 0.45; }
#psa-send.is-loading { color: transparent; position: relative; }
#psa-send.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1rem; height: 1rem; margin: -0.5rem 0 0 -0.5rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: psa-spin 0.7s linear infinite; color: #fff; }
.psa-pending .psa-dots { display: inline-flex; gap: 4px; height: 1rem; align-items: center; }
.psa-pending .psa-dots span { width: 6px; height: 6px; border-radius: 50%; background: #888; animation: psa-bounce 1s infinite ease-in-out; }
.psa-pending .psa-dots span:nth-child(2) { animation-delay: 0.15s; }
.psa-pending .psa-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes psa-spin { to { transform: rotate(360deg); } }
@keyframes psa-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-3px); opacity: 1; }
}
.psa-summary > .psa-light { margin: 0 0 8px; }
.psa-lead-meta { display: grid; gap: 2px; margin: 0 0 12px; }
.psa-lead-meta p { margin: 0; line-height: 1.35; }
.psa-lead-meta a { word-break: break-word; }
.psa-lead-meta .psa-lead-address { display: grid; gap: 4px; margin-top: 6px; font-weight: 400; }
.psa-field-label { color: var(--psa-muted); font-weight: 700; }
.psa-title-row h1 .psa-field-label { font-size: 0.95rem; }
.psa-board-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-start; }
.psa-board-count { margin: 2px 0 0; color: var(--psa-muted); font-weight: 600; }
.psa-counts { display: flex; flex-wrap: wrap; gap: 8px; }
.psa-group-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.psa-group-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--psa-line); }
.psa-group-row.is-open { background: #f6f8fb; margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
.psa-group-row div { display: flex; flex-direction: column; gap: 2px; }
.psa-group-row span, .psa-group-create { color: var(--psa-muted); font-weight: 400; }
.psa-group-row form, .psa-delete-group { display: flex; gap: 8px; align-items: center; }
.psa-count { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 12px; border-radius: 999px; background: #f3f5f8; color: var(--psa-ink); text-decoration: none; border: 1px solid transparent; font-weight: 600; }
.psa-count strong { font-variant-numeric: tabular-nums; }
.psa-count:hover { border-color: var(--psa-line-strong); }
.psa-count.is-on { background: #161d27; color: #fff; }
.psa-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 0; color: var(--psa-muted); font-size: 0.92rem; }
.psa-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 16px 0; max-width: none; padding: 12px; background: #f7f8fb; border-radius: 12px; }
.psa-filters label { min-width: 9rem; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--psa-muted); }
.psa-filter-search { flex: 1 1 16rem; }
.psa-filters .psa-filter-platform { flex: 0 1 12rem; min-width: 8rem; max-width: 12rem; }
.psa-filters .psa-filter-platform select { width: 100%; max-width: 100%; }
.psa-filters .psa-check { display: flex; flex-direction: row; align-items: center; gap: 8px; min-width: 0; min-height: 44px; align-self: end; text-transform: none; letter-spacing: 0; font-size: 0.95rem; color: var(--psa-ink); }
.psa-filters .psa-check input { width: 1.15rem; height: 1.15rem; min-height: 0; margin: 0; }
.psa-clear { align-self: center; min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }
.psa-delete-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.psa-delete-group p { margin: 0; flex: 1 1 16rem; color: var(--psa-muted); font-weight: 400; }
#psa-delete-group { background: #fff; color: var(--psa-ink); border: 1px solid var(--psa-line-strong); }
#psa-delete-group-confirm[hidden] { display: none; }
.psa-lead-list { display: grid; gap: 10px; }
.psa-lead-card { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(11rem, 0.7fr); gap: 16px; padding: 14px 16px; border: 1px solid var(--psa-line); border-left-width: 4px; border-radius: 14px; background: #fff; }
.psa-card-green { border-left-color: #1f8a4c; }
.psa-card-amber { border-left-color: #e6a817; }
.psa-card-red { border-left-color: #d93b2e; }
.psa-lead-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.psa-lead-card h2 { margin: 0; font-size: 1.15rem; }
.psa-lead-card h2 a { color: var(--psa-ink); text-decoration: none; }
.psa-lead-card h2 a:hover { color: var(--psa-accent); }
.psa-lead-who, .psa-lead-site, .psa-lead-overview { margin: 4px 0 0; font-weight: 400; }
.psa-lead-who a, .psa-lead-site a { color: var(--psa-ink); }
.psa-lead-overview { color: var(--psa-muted); }
.psa-empty { margin: 8px 0; color: var(--psa-muted); }
.psa-ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 12px; margin-top: 16px; }
.psa-ref { border: 1px solid var(--psa-line); border-radius: 14px; padding: 16px; background: #fff; box-shadow: 0 1px 2px rgba(22, 32, 48, 0.04); }
.psa-ref h2 { margin: 8px 0; font-size: 1.1rem; }
.psa-ref-actions { display: flex; gap: 8px; }
.psa-ref-actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; background: var(--psa-accent); color: #fff; text-decoration: none; }
.psa-kind-filters { display: flex; gap: 8px; overflow-x: auto; margin-top: 8px; }
.psa-library .psa-search { max-width: 28rem; }
.psa-cost-from { margin: 0 0 8px; font-weight: 600; color: var(--psa-ink); }
.psa-add { margin-top: 20px; }
.psa-light { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0; font-weight: 600; font-size: 0.92rem; }
.psa-light i { width: 0.9rem; height: 0.9rem; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.psa-light-red i { background: #d93b2e; }
.psa-light-amber i { background: #e6a817; }
.psa-light-green i { background: #1f8a4c; }
.psa-pages { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.psa-pages:empty { display: none; }
.psa-pages a, .psa-pages span { min-height: 40px; min-width: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--psa-line); border-radius: 10px; background: #fff; color: var(--psa-ink); text-decoration: none; font-weight: 700; }
.psa-pages span { background: #161d27; color: #fff; }
.psa-savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; justify-content: flex-end; gap: 8px; margin: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #161d27; box-shadow: 0 -8px 24px rgba(0,0,0,.16); }
.psa-end-call { margin: 16px 0 0; }
.psa-app:has(.psa-savebar) .psa-workspace { height: calc(100vh - 128px); min-height: 0; }
.psa-app:has(.psa-savebar) .psa-summary,
.psa-app:has(.psa-savebar) #psa-chat,
.psa-app:has(.psa-savebar) .psa-script { max-height: none; height: 100%; }
.psa-app:has(.psa-savebar) .psa-credit { bottom: 76px; }
.psa-muted { color: var(--psa-muted); }
.psa-about { margin-top: 8px; }
.psa-about summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.psa-lead-side { display: grid; gap: 8px; margin: 0; }
.psa-lead-side div { display: flex; justify-content: space-between; gap: 8px; }
.psa-lead-side dt { color: var(--psa-muted); font-size: 0.82rem; }
.psa-lead-side dd { margin: 0; text-align: right; }
@media (max-width: 820px) { .psa-lead-card { grid-template-columns: 1fr; } }
.psa-file form, .psa-panel form { max-width: 40rem; }
.psa-flag { margin: 12px 0; padding: 12px 14px; border: 1px solid #e6a817; border-radius: 10px; background: #fff8eb; }
.psa-flag ul, .psa-errors { margin: 8px 0 0; padding-left: 1.2rem; }
.psa-errors { margin: 12px 0; padding: 12px 14px 12px 2rem; border: 1px solid #e53e30; border-radius: 10px; background: #fff5f4; }
.psa-app label { display: grid; gap: 4px; font-weight: 600; }
.psa-app input, .psa-app select, .psa-app textarea, .psa-app button { font: inherit; min-height: 44px; }
.psa-app input, .psa-app select, .psa-app textarea { border: 1px solid var(--psa-line-strong); border-radius: 10px; padding: 8px 12px; background: #fff; color: var(--psa-ink); }
.psa-app input:focus, .psa-app select:focus, .psa-app textarea:focus { border-color: #161d27; outline: 2px solid rgba(22, 32, 48, 0.15); }
.psa-app button { background: var(--psa-accent); color: var(--psa-accent-ink); border: 0; padding: 8px 14px; border-radius: 10px; font-weight: 700; }
.psa-table-wrap { overflow-x: auto; }
.psa-table { width: 100%; border-collapse: collapse; }
.psa-table th, .psa-table td { border-bottom: 1px solid var(--psa-line); text-align: left; padding: 8px; vertical-align: top; }
.psa-pill::before { content: ""; display: inline-block; width: 0.6em; height: 0.6em; border-radius: 50%; background: currentColor; margin-right: 0.4em; }
.psa-node-not_started { border-left: 4px solid #667; }
.psa-node-information_missing { border-left: 4px solid #8a5a00; }
.psa-node-ready { border-left: 4px solid #0b6b3a; }
.psa-node-completed { border-left: 4px solid #16324f; }
.psa-recent { background: var(--psa-recent); }
.psa-detail-field { display: grid; gap: 8px; margin: 8px 0; }
.psa-detail-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; }
.psa-detail-open, .psa-secondary { background: #fff; color: var(--psa-ink); border: 1px solid var(--psa-line); }
.psa-detail-summary, .psa-overview textarea { min-height: 7.5rem; width: 100%; resize: vertical; }
.psa-overview { margin-top: 8px; }
.psa-detail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.psa-detail-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.psa-detail-item input { width: 100%; }
.psa-detail-remove { background: #fff; color: var(--psa-ink); border: 1px solid var(--psa-line); }
.psa-detail-field ~ .modal .modal-title, [id^="psa-"][id$="-modal"] .modal-title { font-size: 1.25rem; margin: 0; }
[id^="psa-"][id$="-modal"] .modal-footer { display: flex; gap: 8px; justify-content: flex-end; }
.psa-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#psa-composer, #psa-question, #psa-answer { width: 100%; }
#psa-qa-fields { display: grid; gap: 8px; }
#psa-note-fields[hidden], #psa-qa-fields[hidden] { display: none; }
#psa-save-state { font-weight: 700; margin: 0; align-self: center; }
#psa-intent-help { margin: 0; font-weight: 400; }
.psa-composer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.psa-intent { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 8px; align-items: stretch; min-width: 0; }
.psa-intent label { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1 1 8rem; margin: 0; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid var(--psa-line); background: #fff; }
.psa-intent label:has(input:checked) { border-color: var(--psa-accent); box-shadow: inset 0 0 0 1px var(--psa-accent); }
.psa-intent input { width: 1.1rem; height: 1.1rem; min-height: 0; margin: 0; }
#psa-send { margin-left: auto; min-width: 7rem; }
#psa-main { width: 100%; max-width: none; }
.psa-tabs { display: none; }
.psa-workspace { display: grid; width: 100%; max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); min-height: 70vh; align-items: stretch; }
.psa-workspace > .psa-summary,
.psa-workspace > #psa-chat,
.psa-workspace > .psa-script { display: flex; flex-direction: column; min-width: 0; max-width: none; min-height: 0; overflow: auto; }
.psa-summary { container-type: inline-size; }
.psa-fact-row { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 4px 0 8px; }
.psa-fact-row label { min-width: 0; }
.psa-fact-row input, .psa-fact-row select { width: 100%; min-width: 0; max-width: 100%; }
.psa-website-type { display: block; margin: 0 0 12px; max-width: 16rem; }
.psa-website-type select { width: 100%; }
.psa-draft-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.psa-email-outlook { display: block; margin-top: 8px; }
.psa-email-history ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.psa-email-history-item button { width: 100%; text-align: left; background: #fff; border: 1px solid var(--psa-line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; }
.psa-email-history-date { font-size: 0.85rem; color: var(--psa-muted, #5b6570); }
.psa-email-history-summary { font-weight: 600; }
.psa-email-history-empty { color: var(--psa-muted, #5b6570); }
.psa-email-history-body { white-space: pre-wrap; word-break: break-word; margin: 0; font: inherit; background: #f7f8f9; border-radius: 10px; padding: 12px; max-height: 50vh; overflow: auto; }
#psa-email-history-outlook { margin-right: auto; }
@container (min-width: 24rem) {
  .psa-fact-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.psa-summary, #psa-chat, .psa-script { max-height: calc(100vh - 88px); }
.psa-script { border-left: 1px solid var(--psa-line); }
.psa-case-pane { flex: 0 1 50%; max-height: 50%; min-height: 0; overflow: auto; }
.psa-script-pane { flex: 1 1 auto; min-height: 0; overflow: auto; }
#psa-case-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
#psa-case-list li { background: #fff; border: 1px solid var(--psa-line); padding: 8px 10px; }
.psa-case-empty, .psa-proposal-empty { color: var(--psa-muted); font-weight: 400; background: transparent !important; border: 0 !important; padding: 0 !important; }
#psa-proposal { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
#psa-proposal li { background: #fff; border: 1px solid var(--psa-line); padding: 0; font-weight: 400; }
#psa-proposal .psa-proposal-open { display: block; width: 100%; margin: 0; padding: 8px 10px; text-align: left; background: transparent; color: var(--psa-ink); font-weight: 400; min-height: 44px; cursor: pointer; }
#psa-proposal .psa-proposal-open:hover, #psa-proposal .psa-proposal-open:focus { background: #f6f8fb; }
.psa-drawer { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; background: rgba(27, 33, 30, 0.35); }
.psa-drawer[hidden] { display: none; }
.psa-drawer-card { width: min(28rem, 100%); height: 100%; overflow: auto; background: #fff; padding: 16px 16px 32px; box-shadow: -12px 0 32px rgba(0, 0, 0, 0.16); animation: psa-drawer-in 0.18s ease-out; }
@keyframes psa-drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
#psa-proposal-close { background: #fff; color: var(--psa-ink); border: 1px solid var(--psa-line); }
#psa-proposal-body { white-space: pre-wrap; margin: 8px 0 16px; }
#psa-proposal-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
#psa-proposal-files li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; border: 1px solid var(--psa-line); padding: 8px 10px; }
#psa-proposal-files a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; background: var(--psa-accent); color: #fff; text-decoration: none; font-weight: 700; }
#psa-proposal-files a.psa-secondary-link { background: #fff; color: var(--psa-ink); border: 1px solid var(--psa-line); }
.psa-asked { margin: 0 0 8px; font-weight: 600; }
.psa-report { position: fixed; inset: 0; z-index: 50; background: rgba(27, 33, 30, 0.45); display: grid; place-items: center; padding: 16px; }
.psa-report[hidden] { display: none; }
.psa-report-card { width: min(32rem, 100%); max-height: min(70vh, 36rem); overflow: auto; background: #fff; padding: 16px; }
#psa-analyse-log { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.psa-report-step { display: block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--psa-muted); }
#psa-script-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
#psa-script-list label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 0; }
#psa-script-list input { width: 1.15rem; height: 1.15rem; min-height: 0; margin: 0.2rem 0 0; accent-color: var(--psa-accent); flex: 0 0 auto; }
#psa-script-list li.is-said span { text-decoration: line-through; color: var(--psa-muted); }
.psa-script-empty { color: var(--psa-muted); font-weight: 400; }
#psa-map { display: flex; flex-wrap: wrap; gap: 8px; transform: scale(var(--psa-zoom)); transform-origin: top left; }
.psa-node { min-width: 12rem; max-width: 18rem; text-align: left; display: grid; background: #fff; color: var(--psa-ink); border: 1px solid var(--psa-line); }
#psa-chat { display: flex; flex-direction: column; background: #f4f6f8; border-left: 1px solid var(--psa-line); overflow: hidden; }
#psa-chat .psa-col-title { background: #f4f6f8; }
#psa-transcript { flex: 1 1 auto; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px 8px 16px; background: #e8edf2; min-height: 240px; }
.psa-bubble { max-width: 78%; padding: 8px 12px; border-radius: 16px; line-height: 1.35; }
.psa-bubble .psa-who { margin: 0 0 2px; font-size: 0.75rem; font-weight: 600; opacity: 0.7; }
.psa-bubble .psa-copy { margin: 0; white-space: pre-wrap; }
.psa-out { align-self: flex-end; background: #1b211e; color: #fff; border-bottom-right-radius: 5px; }
.psa-in { align-self: flex-start; background: #fff; color: var(--psa-ink); border-bottom-left-radius: 5px; }
.psa-credit { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 11rem; margin: 0; padding: 12px 14px; background: #fff8d6; color: #1c2430; border-radius: 14px; box-shadow: var(--psa-shadow); }
.psa-credit-eighty { background: #ffe0a3; }
.psa-credit-blocked { background: #ffd0c8; }
.psa-credit-title { margin: 0 0 4px; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.psa-credit-figure, .psa-credit-left { margin: 0; font-weight: 400; }
.psa-credit-figure strong { font-size: 1.15rem; }
.psa-credit-left { margin-top: 2px; color: #3d453f; }
.psa-credit-bar { height: 6px; margin-top: 8px; background: rgba(27, 33, 30, 0.15); }
.psa-credit-bar span { display: block; height: 100%; background: #1b211e; }
.psa-prompts-label { margin: 8px 0 0; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--psa-muted); }
#psa-prompts { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; }
.psa-chip { flex: 0 0 auto; max-width: 16rem; background: #fff; color: var(--psa-ink); border: 1px solid var(--psa-line); border-radius: 18px; text-align: left; white-space: normal; }
#psa-composer-form { position: sticky; bottom: 0; background: #fff; padding-bottom: env(safe-area-inset-bottom); }
@media (max-width: 320px) {
  .psa-top, .psa-panel { padding: 8px; }
}
