/* Keep profile controls, histories and chats usable with long names and touch. */
#aranity-app .profile-history{margin-block:32px}
#aranity-app .history-group{border-top:1px solid #314156;padding:16px 0}
#aranity-app .history-group>summary{display:grid;grid-template-columns:48px minmax(100px,1fr) minmax(120px,2fr);align-items:center;gap:14px;cursor:pointer;min-height:48px}
#aranity-app .history-group>summary small{display:block;margin-top:5px;color:#a8b8cc}
#aranity-app .history-avatar{display:grid;place-items:center;width:48px;height:48px;background:#15253a;border-radius:12px;overflow:hidden}
#aranity-app .history-avatar img{width:100%;height:100%;object-fit:contain;object-position:center}
#aranity-app .history-metrics{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:.88rem;color:#bac8d8}
#aranity-app .history-metrics strong{color:#f5f8fc;font-variant-numeric:tabular-nums}
#aranity-app .history-competition{display:grid;grid-template-columns:minmax(110px,1fr) minmax(150px,2fr);gap:16px;margin:16px 0 0 62px;padding-top:12px;border-top:1px solid #25364b}
#aranity-app .history-group a,#aranity-app .owned-profiles summary{overflow-wrap:anywhere}
#aranity-app .owned-profiles>details{padding:16px 0;border-top:1px solid #314156}
#aranity-app .owned-profiles summary,#aranity-app .account-deletion>summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:700}
#aranity-app .owned-profiles form,#aranity-app .account-deletion form{margin-top:20px}
#aranity-app .registration-profile-search fieldset{border:1px solid #3c4d63;padding:18px;border-radius:12px;margin-top:18px;min-width:0}
#aranity-app .registration-profile-search [data-results]{display:flex;flex-wrap:wrap;gap:8px;margin-block:12px}
#aranity-app .registration-profile-search [data-results] button{white-space:normal;overflow-wrap:anywhere;text-align:left;min-height:44px}
#aranity-app .activation-success{border:1px solid #42d3c8;background:#102c31;padding:24px;border-radius:16px;line-height:1.65}
#aranity-app .activation-success h2{margin-top:0}
#aranity-app .chat-moderation-note{border-left:3px solid #42d3c8;padding:10px 14px;background:#142436;line-height:1.5;font-size:.9rem}
#aranity-app .unread-badge{display:inline-block;padding:3px 8px;border-radius:999px;background:#63e3d2;color:#092923;font-size:.85rem;white-space:nowrap}
#aranity-app .chat-message p{overflow-wrap:anywhere;white-space:pre-wrap}
#aranity-app .chat-message .actions{flex-wrap:wrap}
#aranity-app .whole-card{cursor:pointer}
#aranity-app .whole-card:focus-within{outline:2px solid #63e3d2;outline-offset:3px}
#aranity-app .whole-card a,#aranity-app .whole-card button{position:relative}
#aranity-app .podium-profile{display:flex;gap:14px;align-items:center;min-height:56px;margin-block:12px}
#aranity-app .profile-message-button{margin-block:18px 6px;min-height:44px}
#aranity-app .pitch-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
#aranity-app .pitch-name{max-width:100%;overflow-wrap:anywhere;line-height:1.15}
@media(max-width:680px){
 #aranity-app .history-group>summary{grid-template-columns:42px minmax(0,1fr)}
 #aranity-app .history-avatar{width:42px;height:42px}
 #aranity-app .history-group>summary>.history-metrics{grid-column:1/-1}
 #aranity-app .history-competition{display:block;margin-left:0}
 #aranity-app .history-competition>.history-metrics{margin-top:10px}
 #aranity-app .pitch-comparison{grid-template-columns:minmax(0,1fr)}
 #aranity-app .registration-profile-search fieldset{padding:12px}
 #aranity-app .chat-room-list{gap:10px}
 #aranity-app .chat-room-list button{min-height:44px;white-space:normal;overflow-wrap:anywhere}
}
