/* Opt-in: add .ui-word-safe to the SAME element as .ui-kit-pilot,
 * with .ui-practice-screens or .ui-calendar when using those layers.
 * Human copy breaks at spaces, not inside words. Opaque URLs/IDs have explicit opt-in.
 */
.ui-kit-pilot.ui-word-safe,
.ui-kit-pilot.ui-word-safe :is(h1,h2,h3,h4,p,span,label,button,a,summary,dt,dd,small,strong,li,legend,input,select,textarea) {
 overflow-wrap:normal;word-break:normal;hyphens:manual;
}
.ui-kit-pilot.ui-word-safe :is(.ui-actions,.cal-actions,.cal-owner-actions,.p3-actions,.v4-actions) {
 display:flex;flex-wrap:wrap;gap:8px;align-items:stretch;
}
.ui-kit-pilot.ui-word-safe :is(.ui-actions,.cal-actions,.cal-owner-actions,.p3-actions,.v4-actions)>* {
 flex:1 0 auto;width:max-content;min-width:0;max-width:100%;
}
.ui-kit-pilot.ui-word-safe :is(.ui-btn,:is(.p3,.ui-practice-screens) button,:is(.cal-ui,.ui-calendar) button) {white-space:normal;height:auto;min-height:44px;}
.ui-kit-pilot.ui-word-safe :is(.cal-event-status,.p3-badge,.v4-status) {
 flex-shrink:0;min-width:0;max-width:100%;width:max-content;white-space:normal;
}
.ui-kit-pilot.ui-word-safe :is(.cal-event-status,.p3-badge,.v4-status)>svg {flex:0 0 16px;}
.ui-kit-pilot.ui-word-safe :is(.cal-event-body,.p3-stack) {min-width:0;grid-template-columns:minmax(0,1fr);}
.ui-kit-pilot.ui-word-safe :is(.cal-event-status,.p3-badge,.v4-status)>span {min-width:0;}
.ui-kit-pilot.ui-word-safe .p3-row:has(>.p3-badge) {flex-wrap:wrap;}
.ui-kit-pilot.ui-word-safe .p3-row:has(>.p3-badge)>.p3-grow {flex:1 1 14rem;}
.ui-kit-pilot.ui-word-safe :is(.cal-event-top,.p3-card-title,.v4-cardhead){display:flex;flex-wrap:wrap;gap:8px;}
/* Opaque email addresses, URLs and codes may need arbitrary breaks. */
.ui-kit-pilot.ui-word-safe .u-break-anywhere,
.ui-kit-pilot.ui-word-safe .u-break-anywhere * {overflow-wrap:anywhere;word-break:normal;}
/* width:max-content keeps short chips intact; max-width:100% caps long chips.
 * The generic badges retain min-width:0 to allow long multiword text to wrap.
 * The calendar status below uses max-content, as required by its layout.
 */
/* The production calendar uses these existing rows in place of the sample rows. */
.ui-kit-pilot.ui-word-safe .calendar-controls,
.ui-kit-pilot.ui-word-safe .cal-layout-switch {display:flex;flex-wrap:wrap;gap:8px}
.ui-kit-pilot.ui-word-safe .calendar-controls > button,
.ui-kit-pilot.ui-word-safe .cal-layout-switch > button {flex:1 0 max-content;max-width:100%;width:auto}
.ui-kit-pilot.ui-word-safe .cal-event-status {box-sizing:border-box;min-width:max-content}
