/* Retain each card's semantic colour, with a wider edge and soft outer falloff. */
body :is(.player-day-group,.center-activity-group,.player-day-card,.center-published-item,.flow-activity-preview,.activity-source-criteria,.chat-category-card,.dashboard-chat-item,.notice-disclosure,.player-preferences-package,.availability-package,.home-player-data,#player-document-preferences,.home-habitual-tile){
 border-width:1px;
 box-shadow:none;
}
body .home-focus .home-habitual-snapshot>.home-habitual-tile{border-width:1px;box-shadow:none}
/* The court sits inside the message log and never covers controls or intercepts taps. */
body .live-chat-thread::before{display:none}
body .live-chat-thread.message-bubble-thread .chat-messages,body .friend-messages{
 position:relative;isolation:isolate;background:var(--chat-surface,#edf8f7)!important;
}
body .live-chat-thread.message-bubble-thread .chat-messages::before,body .friend-messages::before{
 content:"";display:block;position:absolute;inset:0;z-index:-1;pointer-events:none;
 background:var(--chat-accent,#087f83);opacity:.2;
 mask:url('chat-court-lines.svg') center/auto 94% no-repeat;
 -webkit-mask:url('chat-court-lines.svg') center/auto 94% no-repeat;
}
body .friend-messages{--chat-accent:#087f83;--chat-surface:#e9f6f4}
body .live-chat-thread[data-chat-category=centers]{--chat-accent:#1265ab;--chat-soft:#dceafa;--chat-surface:#edf5fc}
body .chat-message:not(.own),body .friend-message:not(.is-mine){background:#fffffff5!important}
/* Separate bubbles clearly from the court, with solid surfaces and crisp edges. */
body .event-chat-thread.live-chat-thread.message-bubble-thread .chat-message,
body .friend-messages .friend-message{
 border:1px solid #8fa6b6!important;
 box-shadow:none;
}
body .event-chat-thread.live-chat-thread.message-bubble-thread .chat-message:not(.own),
body .friend-messages .friend-message:not(.is-mine){background:#fff!important;color:#203443!important}
body .event-chat-thread.live-chat-thread.message-bubble-thread .chat-message.own,
body .friend-messages .friend-message.is-mine{
 background:#17637d!important;
 background:color-mix(in srgb,var(--chat-accent,#087f83) 65%,#153344)!important;
 border-color:color-mix(in srgb,var(--chat-accent,#087f83) 55%,#153344)!important;
 color:#fff!important;
}
body .event-chat-thread.live-chat-thread.message-bubble-thread .chat-message.own :is(strong,p,small,time),
body .friend-messages .friend-message.is-mine :is(strong,p,small,time){color:#fff!important}
/* Stronger separation from the canvas, with a soft, wider frame falloff. */
:root{--ui-canvas:#fff}
html,body,body .workspace,body main,body #main{background:#fff!important}
body :is(.player-day-group,.center-activity-group,.player-day-card,.center-published-item,.flow-activity-preview,.activity-source-criteria,.chat-category-card,.dashboard-chat-item,.notice-disclosure,.player-preferences-package,.availability-package,.home-player-data,#player-document-preferences,.home-habitual-tile,.workflow-calendar,.workflow-history,.player-activity-archive,.center-office-package){
 border-width:1px;
 box-shadow:none;
}
body .home-focus :is(.home-player-data,#player-document-preferences){border-width:1px;border-color:#8da8bd;box-shadow:none}
body .home-focus .home-habitual-snapshot>.home-habitual-tile{border-width:1px;border-color:#659cc1;box-shadow:none}
