.psych-page{max-width:1200px;margin:0 auto;padding-bottom:30px;min-width:0}.psych-page .page-heading{gap:18px;align-items:flex-start}.psych-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.psych-actions .btn{white-space:normal}.psych-banner{padding:26px;border:1px solid #ebdce3;border-radius:20px;background:linear-gradient(130deg,#fff6f8,#f8f5f1);margin-bottom:22px}.psych-banner p,.psych-card p,.psych-note{line-height:1.8;overflow-wrap:anywhere}.psych-banner h2{margin:0 0 10px}.psych-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}.psych-card{padding:22px;min-width:0;margin-bottom:18px}.psych-card h2,.psych-card h3{margin-top:0}.psych-card img.psych-portrait{width:72px;height:82px;border-radius:12px;object-fit:cover}.psych-title-row{display:flex;gap:16px;align-items:center;margin-bottom:16px}.psych-status{display:inline-flex;padding:5px 11px;border-radius:20px;background:#f4eaf0;color:#853752;font-size:12px;max-width:100%;overflow-wrap:anywhere}.psych-steps{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0}.psych-steps li{padding:8px 12px;background:#f7f4f5;border-radius:10px;font-size:13px}.psych-steps .done{color:#357657;background:#edf7f0}.psych-form{max-width:840px}.psych-form label.field{display:flex;flex-direction:column;gap:8px;margin:14px 0}.psych-form input,.psych-form textarea,.psych-form select{width:100%;max-width:100%;box-sizing:border-box}.psych-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.psych-fields .wide{grid-column:1/-1}.psych-note{padding:14px 18px;border-radius:12px;background:#f8f4f1;margin:16px 0;color:#6f5b60}.psych-note.warning{background:#fff3e5}.psych-pre{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.psych-empty{padding:32px 22px;text-align:center}.psych-filter{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-bottom:20px}.psych-filter label{min-width:120px;flex:1}.psych-filter .btn{flex:0 0 auto}.psych-table{overflow:auto;max-width:100%}.psych-table table{width:100%;min-width:650px;border-collapse:collapse}.psych-table th,.psych-table td{padding:13px;text-align:left;border-bottom:1px solid #eee}.psych-chat{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}.psych-message-list{max-height:55vh;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:12px 0}.psych-message{max-width:88%;padding:12px 16px;background:#f6f1f3;border-radius:12px;white-space:pre-wrap;overflow-wrap:anywhere}.psych-message.own{align-self:flex-end;background:#fae8ee}.psych-message small{display:block;color:#806e74;margin-top:7px}.psych-message img{max-width:100%;max-height:300px;object-fit:contain}.psych-evidence{display:flex;flex-wrap:wrap;gap:14px}.psych-evidence a{display:flex;flex-direction:column;gap:5px;max-width:170px}.psych-evidence img{width:160px;height:150px;object-fit:contain;border:1px solid #e8dbe1;border-radius:8px}.psych-cover{width:100%;max-height:300px;object-fit:cover;border-radius:16px;margin-bottom:18px}.psych-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.psych-summary>div{padding:18px;background:#fbf7f8;border-radius:12px}.psych-summary strong{display:block;font-size:22px;margin-top:8px}.psych-inline-error{color:#a72f4e;line-height:1.7}.psych-break{word-break:break-all}.psych-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 22px}.psych-check{display:flex;align-items:flex-start;gap:10px;line-height:1.7;margin:18px 0}.psych-check input{width:18px;height:18px;flex:none;margin-top:4px}.psych-section{margin-top:24px}.psych-kind{font-size:13px;color:#8d3659}.psych-link-box input{font-size:13px}.psych-modal-wide{max-width:100%}
@media(max-width:700px){.psych-page{padding:4px 0 24px}.psych-page .page-heading{display:block}.psych-page .page-heading .psych-actions{margin-top:16px}.psych-banner,.psych-card{padding:20px 16px;border-radius:16px}.psych-fields{grid-template-columns:minmax(0,1fr);gap:0}.psych-grid{grid-template-columns:minmax(0,1fr)}.psych-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.psych-summary>div{padding:12px}.psych-summary strong{font-size:18px}.psych-actions .btn{min-height:42px}.psych-filter label{flex:1 1 calc(50% - 12px);min-width:0}.psych-page h1{font-size:25px}.psych-banner h2{font-size:23px}.psych-page h2{line-height:1.45}.psych-form{width:100%}.psych-message{max-width:94%}}

.psych-qr{display:block;width:220px;height:220px;max-width:100%;object-fit:contain;margin:20px 0;background:#fff}.psych-share .field{display:flex;flex-direction:column;gap:8px}.psych-share input{width:100%;box-sizing:border-box}.psych-poster{display:block;max-width:340px;width:100%;height:auto;margin:20px 0}.psych-member-summary{padding:18px;border:1px solid #ebdce3;border-radius:14px;margin-bottom:16px}.psych-member-summary h3{font-size:19px}.psych-tabs button[aria-pressed=true]{background:#8b3c58;color:white}

.psych-assessment-progress{font-variant-numeric:tabular-nums;color:var(--muted,#6f5b60)}
.psych-assessment-question{min-width:0;margin:18px 0;padding:12px;border:1px solid var(--line,#ebdce3);border-radius:12px}
.psych-assessment-question legend{padding:0 5px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
.psych-assessment-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.psych-assessment-option{display:flex;align-items:center;gap:8px;min-height:44px;padding:6px 9px;border-radius:8px;line-height:1.45;cursor:pointer}
.psych-assessment-option:hover,.psych-assessment-option:has(input:checked){background:var(--panel-soft,#f8f0f4)}
.psych-assessment-option input[type=radio]{width:17px;height:17px;margin:0;flex:none;accent-color:var(--accent,#8b3c58)}
.psych-assessment-option span{min-width:0;overflow-wrap:anywhere}
@media(max-width:640px){.psych-assessment-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.psych-assessment-question{padding:8px}}
.psych-assessment-editor-fields{border:0;margin:0;padding:0;min-width:0}
.psych-assessment-editor-group{border-top:1px solid var(--line,#ebdce3);padding:10px 0}
.psych-assessment-editor-group summary{cursor:pointer;padding:10px 0;font-weight:600}
.psych-assessment-editor input,.psych-assessment-editor select,.psych-assessment-editor button{min-height:44px}
.psych-assessment-editor textarea{resize:vertical}

.psych-role-shell{min-height:100vh;min-width:0}
.psych-role-header{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px max(16px,4vw);border-bottom:1px solid var(--line,#ebdce3);background:var(--panel,#fff)}
.psych-role-content{padding:clamp(16px,4vw,40px);min-width:0}
.psych-switch-role select{min-height:42px;max-width:100%;padding:6px 10px}
.psych-brand-logo{display:block;width:68px;height:68px;border-radius:12px;object-fit:contain;flex:none;background:var(--panel,#fff)}
.psych-affiliation{padding:12px;border:1px solid var(--line,#ebdce3);border-radius:12px}
.psych-affiliation p{margin:3px 0 0}
.psych-invite-slot{margin-bottom:24px}
.psych-invite-slot>div{padding:0 12px}
@media(max-width:640px){.psych-role-header{align-items:flex-start;flex-wrap:wrap}.psych-role-header .psych-actions{width:100%;gap:8px}.psych-role-header .btn{min-height:40px}.psych-brand-logo{width:54px;height:54px}}
