/**
 * This CSS is just to get you started.
 * Feel free to modify any of it for your own app.
 */

@import "lucide/lucide.css";

:root {
	/* ------------------------------------------------------------------
	 * BRAND. Everything a new community rebrands lives in this one block
	 * (issue #26); every token below it is derived rather than restated,
	 * so a rebrand is an edit here and not a hunt through 2700 lines.
	 *
	 * create-app.sh --primary-color rewrites --brand-primary here and the
	 * two places outside CSS that must agree with it: config/manifest.json
	 * "theme_color" and the <meta name="theme-color"> in the mobile and
	 * tablet layouts. Its companions below are NOT derived from it --
	 * CSS has no colour arithmetic -- so a real rebrand still passes over
	 * them by hand. docs/branding-runbook.md is that pass, step by step.
	 *
	 * --brand-font-* names a family; it does not LOAD one. The @import of
	 * the families is in handlers/<Module>/before/Q_responseExtras.php,
	 * and the two must be changed together or the page silently renders
	 * in the fallback stack.
	 *
	 * The scattered literals that survive this block are deliberate: a
	 * `var(--token, #hex)` fallback is the safety net for a token nobody
	 * defined, and restating it as another var() would remove the net.
	 * ------------------------------------------------------------------ */
	--brand-primary: #F2A922;
	--brand-primary-dark: #D9921E;   /* gradient end-stop, active/pressed */
	--brand-primary-deep: #E8850C;   /* mid-stop of the welcome gradients */
	--brand-primary-tint: #FFF3D6;   /* quiet fills: selected rows, chips */
	--brand-primary-edge: #C4A265;   /* borders drawn over a tinted fill */
	--brand-on-primary: #3D2800;     /* text/ink on top of a primary fill */
	--brand-secondary: #5B8C5A;      /* headings, interests, current tab */
	--brand-page-bg: #FAFAF5;        /* must match manifest background_color */
	--brand-surface-bg: #FFF8EC;     /* column ground */
	--brand-link: #2E7D32;
	--brand-link-visited: #6D8B74;
	--brand-font-display: 'Fredoka', sans-serif;
	--brand-font-body: 'Open Sans', sans-serif;

	--html-bg-color: var(--brand-page-bg);
	--content-bg-color: #FFFFFF;

	--column-bg-color: var(--brand-surface-bg);
	--column-title-bg-color: #FFFFFF;
	--column-title-color: var(--brand-secondary);

	--dashboard-main-bg-color: var(--brand-primary);
	--dashboard-main-bg-color-to: var(--brand-primary-dark);
	--dashboard-main-font-color: #FFFFFF;
	--dashboard-main-color: rgba(255, 255, 255, 0.85);
	--dashboard-current-bg-color: #FFFFFF;
	--dashboard-current-font-color: var(--brand-secondary);
	--dashboard-contextual-border: var(--brand-primary-edge);
	--dashboard-contextual-selected-bg: var(--brand-primary-tint);
	--dashboard-contextual-selected-text: var(--brand-secondary);

	--dashboard-mobile-bg-color: var(--brand-primary);
	--dashboard-mobile-bg-color-to: var(--brand-primary-dark);
	--dashboard-mobile-color: rgba(255, 255, 255, 0.85);
	--dashboard-mobile-current-color: #FFFFFF;
	--dashboard-current-icon-bg: none;
	--dashboard-mobile-current-icon-bg: none;

	--button-bg-color: var(--brand-primary);
	--button-bg-color-secondary: #fff;
	--button-bg-color-to: var(--brand-primary-dark);
	--button-bg-color-active: var(--brand-primary-dark);
	--button-border-color: var(--brand-primary);
	--button-shadow-color: var(--brand-primary);
	--button-text-color: white;
	--button-text-color-secondary: #030303;

	--dialog-title-bg-color: var(--brand-primary);
	--dialog-title-text-color: var(--brand-on-primary);

	--chat-bg-color: var(--brand-primary);
	--chat-text-color: var(--brand-on-primary);

	--h1-font-color: var(--brand-secondary);

	/* A class price, not an error -- see the ro#80 section near the end. */
	--price-color: var(--brand-on-primary);

	--Q-aspect-where-text-color: #000;
	--Q-aspect-where-border-color: #000;

	--Q-aspect-what-text-color: #000;
	--Q-aspect-what-border-color: #000;

	--Q-aspect-people-text-color: #000;
	--Q-aspect-people-border-color: #000;

	--Q-aspect-when-text-color: #000;
	--Q-aspect-when-border-color: #000;

	--Q-aspect-deals-text-color: #000;
	--Q-aspect-deals-border-color: #000;

	--interests-bg-main: var(--brand-secondary);
	--interests-text-color: #fff;
	--interests-text-secondary-color: #000;
	--interests-text-selected-color: #000;
	--interests-bg-selected: var(--brand-primary-tint);

	/* Rows inside the interests pane. Kept as translucent white rather than a
	   fixed colour so they track --interests-bg-main, exactly as the interests
	   dialog's rows do (Q.css gives .Q_expandable_title rgba(255,255,255,.2)).
	   This replaces --expandable-bg-expanded, which was a misspelling: the
	   platform reads --expandable-expanded-background (Communities.css:92),
	   so nothing ever consumed the old name. */
	--interests-bg-row: rgba(255, 255, 255, 0.2);
	--interests-bg-row-expanded: rgba(255, 255, 255, 0.35);
}

#dashboard, #notices, #content { margin: auto; text-align: left; }

.Q_mobile #notices_slot { width: 100%; position: fixed; left: 0; }
.Q_mobile .Q_overlay { width: 90%; }

/**
 * This CSS is just to get you started.
 * Feel free to modify any of it for your own app.
 */
* { font-family: var(--brand-font-display); -webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-tap-highlight-color: transparent; }
a { text-decoration: none; color: var(--brand-link); }
a:visited { color: var(--brand-link-visited); }
body { height: 100%; overflow: auto; touch-action: none; }
h1 { margin: 0; font-size: 32px; text-align: center; font-family: var(--brand-font-display); }
h2, .Communities_tab { margin: 0; font-family: var(--brand-font-display); font-weight: 700; }
/* Ensure inactive me-column tabs are readable. Communities.css sets them to
   var(--html-color) (#fff) via `.Communities_tabs[data-style="icons"] .Communities_tab`,
   which we match in specificity here so the labels show on the cream background. */
.Communities_me_column .Communities_tabs[data-style="icons"] .Communities_tab,
.Communities_me_column .Communities_tabs[data-style="icons"] .Communities_tab::before {
	color: #333;
}
*, *:before, *:after { box-sizing: inherit; }

#dashboard .Q_tabs_tab.Q_current,
#dashboard .Q_tabs_tab.Q_current * {
	font-weight: 500;
}
.Q_button {
	font-weight: 500;
}
.Calendars_event_preview_foreground,
.Calendars_event_preview_tool .Calendars_event_title {
	font-weight: 500;
}

/* The various slot containers */
#content_slot {
	position: relative;
	padding: 10px;
	overflow-x: auto;
	background: #fff;
	box-shadow: #aaa 0 0 4px;
	-webkit-box-shadow: #aaa 0 0 4px;
	-moz-box-shadow: #aaa 0 0 4px;
}
.Q_notMobile.Q_layout_sidebar #dashboard_slot {
	border-top-left-radius: 10px;
	border-bottom-left-radius: 10px;
}
#dashboard_slot h1 {
	line-height: 30px;
	margin-top: 10px;
}
#dashboard_slot input,
#dashboard_slot textarea { color: black; }
#page {
	position: absolute; left: 0%; width: 100%; top:50px; bottom: 0;
}
/*
 * Communities replaced JS-driven adjustHeight with CSS Flexbox in
 * Apr 2026 (Communities ddf3149). #content_slot uses `flex: 1` to fill
 * available height — which only works if #page is a flex container.
 *
 * Communities/dashboard.css has higher-specificity #page rules
 * (.Q_notMobile.Q_layout_widebar #page) that don't set display, so
 * the plain `#page { display: flex }` would lose. We match the same
 * specificity selectors here so Yoga.css (which loads last) wins.
 */
.Q_notMobile.Q_layout_widebar #page,
.Q_notMobile.Q_layout_sidebar #page,
.Q_mobile #page {
	display: flex;
	flex-direction: column;
}
.Q_mobile #page { overflow: auto; -webkit-overflow-scrolling: touch; z-index: 0; }
#dashboard_slot .Q_inplace_tool .Q_hover .Q_inplace_tool_static,
#dashboard_slot .Q_inplace_tool .Q_hover .Q_inplace_tool_blockstatic {
	background: white;
	color: #333;
}

#content { position: relative; }

/* Notices contents */
#notices_slot { text-align: center; margin: auto; padding: 0; z-index: 5000; }
#notices { margin: auto; }
#notices_slot div.container { overflow: hidden; overflow-y: auto; }
#notices_slot ul { list-style-type: none; padding: 0; margin: auto; width: 700px; max-width: 100%; border: solid 1px #555; border-top: solid 1px #aaa; box-shadow: 0 0 5px #222; -moz-box-shadow: 0 0 5px #222; -webkit-box-shadow: 0 0 5px #222; cursor: pointer; }
#notices_slot li { list-style-type: none; padding: 0; margin: 0; text-align: center; background: #ffd4aa; border: 0; border-bottom: solid 1px #aaa; line-height: 30px; min-height: 30px; }
#notices_slot ul.Q_errors * { background-color: #ebb; color: #500; }
#notices_slot ul.Q_errors li { text-align: left; padding: 0 10px 0 10px; }
#notices_slot .Q_field_name { float: right; font-size: 12px; padding-right: 10px; font-family: var(--brand-font-display); }

/*
 * The notice close button: the "error-page red X" from #87's inventory.
 *
 * It was never its own image -- Q.css:872 gives
 * `#notices_slot ul li .Q_close` a 26x26 window onto the legacy sprite sheet
 * `Q/img/icons/basic16.png` at `5px -477px`, which lands on an orange-red
 * starburst X. That sprite is the last raster icon system this app draws from,
 * and it reads as red-on-pink over the `#ebb` error notice background.
 *
 * The element is a `<span>` the notices code builds by hand (Q.js:18118), so
 * `span.Q_close` here is (1,1,3) against the platform rule's (1,1,2) and wins
 * on specificity rather than on which stylesheet loaded last -- the same
 * lesson as the apply-dialog close further down this file.
 *
 * `background: none` (shorthand) rather than `background-image: none`: the
 * platform rule is itself a shorthand, so it also sets background-position and
 * repeat, and leaving those behind would offset the glyph.
 */
#notices_slot ul li span.Q_close {
	background: none;
	line-height: 26px;
	text-align: center;
	color: inherit;
}
#notices_slot ul li span.Q_close::before {
	content: "\e1b2"; /* lucide-x — face from the shared icon rule */
	font-size: 15px;
}

#notices_slot button
{
	display: inline-block;
	vertical-align: top;
	margin-left: 5px;
	padding: 2px 10px;
	color: #69552e;
	background: #F1E2C6;
	box-shadow: 1px 1px 1px 0 #CCC;
	border: none;
}
.Q_notTouchscreen #notices_slot button:active {
	background: #f0d298;
	margin-left: 6px;
	box-shadow: none;
}
#notices_slot ul li .Q_field_name {
	font-size: 12px;
	line-height: 26px;
	font-family: var(--brand-font-display);
}

body .Q_tabs_contextual .Q_listing li { text-align: left; }
html .Q_listing img { height: 30px; }

/* inputs */

input[type=text],
input[type=email],
input[type=tel],
input[type=password],
input[type=number],
input.text,
input.email,
input.tel,
input.password,
input.number,
textarea { border: 1px solid #ccc; border-bottom: 1px solid #aaa; background-color: #fefefe; cursor: text; font-family: var(--brand-font-body); }
input[type=text]:focus,
input[type=email]:focus,
input[type=tel]:focus,
input[type=password]:focus,
input[type=number]:focus,
input.text:focus,
input.email:focus,
input.tell:focus,
input.password:focus,
input.number:focus,
textarea:focus { background: white; box-shadow: 0 1px 10px rgba(0,0,0,.15); -webkit-box-shadow: 0 1px 4px rgba(0,0,100,.15); -moz-box-shadow: 0 1px 4px rgba(0,0,100,.15); }
input.placeholder,
textarea.placeholder { color: #aaa; font-style: italic; }
select:focus { outline: dotted 1px #779; }
/* select { margin-top: 0.75em; } */
input[type=text],
input[type=password],
input[type=tel],
input[type=number],
input.text,
input.email,
input.tel,
input.password,
input.number,
textarea { border-radius: 3px; -moz-border-radius:3px; -webkit-border-radius:3px; padding: 0 4px 0 4px; }
input[type=checkbox],
input[type=radio] { margin-right: 5px; }
html .Q_inplace_tool_fieldinput { padding: 0; }

.Q_overlay {
	border: none;
	background: #fff;
	box-shadow: 0 2px 5px rgba(0,0,0,.2), 0 5px 40px -5px rgba(0,0,0,.5);
}

/* The following lines are for cordova on iOS */


/* The following lines are for a flatter look */
html .Q_listing li { font-size: 18px; padding: 0 10px; line-height: 40px; text-align: left; border-top: solid 1px white; border-bottom: solid 1px #CCC; background: var(--brand-page-bg); -webkit-touch-callout: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; white-space: nowrap; overflow: hidden;
}

html.Yoga_notFound #content,
html.Yoga_errors #content { padding: 30px; text-align: center; overflow: hidden; text-overflow: ellipsis; }
html.Yoga_notFound .url,
html.Yoga_errors .url { font-weight: bold; text-decoration: underline; }

span.c3 { font-weight: bold; }

#Q_columns-Communities_tool .Q_column_event .Q_title_slot,
.Calendars_event_tool .Calendars_event_title,
.Calendars_event_tool .Calendars_event_title *,
.Calendars_event_tool .Calendars_event_description,
.Calendars_event_tool .Calendars_event_description * {
	font-family: inherit;
}

.Q_button,
.Q_big_prompt .Q_button,
.Q_notTouchscreen .Q_big_prompt .Q_button,
.Q_notTouchscreen .Q_big_prompt .Q_button:active {
	font-weight: 500;
	background: var(--button-bg-color);
	color: var(--button-text-color);
}
.Q_big_prompt .Q_button,
.Q_notTouchscreen .Q_big_prompt .Q_button,
.Q_notTouchscreen .Q_big_prompt .Q_button:active {
	line-height: 40px;
	padding: 0 10px;
}

.Q_button.Q_aspect_when,
.Q_button.Q_aspect_when:before {
	background: #88C906;
	background-image: linear-gradient(to right, #A9BD08, #88C906);
	border: 1px solid #A9BD08;
	border-radius: 5px;
	box-shadow: 0 7px 20px -5px #A9BD08;
}

.Q_button.Streams_aspect_chats,
.Q_button.Streams_aspect_chats:before {
	background: #009dbc;
	background-image: linear-gradient(to right, #00b3c2, #009dbc);
	border: 1px solid #00adbc;
	border-radius: 5px;
	box-shadow: 0 7px 20px -5px #00b3c2;
}

.Q_button.Q_aspect_info,
.Q_button.Q_aspect_where,
.Q_button.Q_aspect_info:before,
.Q_button.Q_aspect_where:before {
	background: #868d93;
	background-image: linear-gradient(to right, #868d93, #808791);
	border: 1px solid #808791;
	border-radius: 5px;
	box-shadow: 0 7px 20px -5px #808791;
}

.Q_button.Streams_aspect_interests,
.Q_button.Streams_aspect_interests:before {
	background: #E07A5F;
	background-image: linear-gradient(to right, #E07A5F, #C96A4F);
	border: 1px solid #C96A4F;
	border-radius: 5px;
	box-shadow: 0 7px 20px -5px #C96A4F;
}

.Communities_buttons { margin: 15px 0; }
.Calendars_event_preview_tool { margin: 20px 0; }

.Calendars_event_preview_background {
	box-shadow: 0 7px 20px -5px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.3);
	filter: none !important;
}

.Calendars_event_foreground,
.Calendars_event_preview_foreground {
	font-size: 24px;
	text-shadow: 0 0 10px #000, 0 2px 3px #000;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 50%, transparent 100%) !important;
}

.Streams_participants_tool .Streams_participants_summary {
	width: 46px;
	border-radius: 0 0 5px 5px;
	font-size: 13px;
	font-family: var(--brand-font-display);
	background: var(--brand-secondary);
	color: white;
	margin-top: 10px;
	text-align: center;
	overflow: hidden;
	margin-right: 10px;
	font-weight: 400;
	text-shadow: none;
}

.Streams_participants_tool .Users_avatar_icon {
	box-shadow: 0 1px 3px rgba(0,0,0,.2), 0 5px 20px -5px rgba(0,0,0,.3);
	border: 2px solid #fff;
}

/* Customize dashboard */
.Q_mobile #dashboard[data-style=icons] .Q_tabs_tabs .Q_tab_me .Users_status_tool {
	display: none;
}
.Q_mobile #dashboard[data-style=classic] .Q_tabs_tool {
	max-width: none;
}
/*
 * The "black square" behind the dashboard avatar is a drop-shadow, and it is
 * square because the icon is a square opaque PNG. Users.css gives every sized
 * avatar class its own hard shadow -- `.Users_avatar_icon_50` 1px 1px 3px,
 * `_80` 2px 2px 5px, `_200`/`_400`/`_1000` larger still, all
 * rgba(0, 0, 0, 0.8). The logged-in dashboard avatar renders as `_80`, so on
 * the gold bar it reads as a dark smudge on all four sides rather than as a
 * shadow. `filter` is not `box-shadow`, so a no-shadow rule never catches it,
 * and the per-size selectors are (0,2,0) -- an id beats them without
 * !important. Scoped to the dashboard: avatars elsewhere keep the platform
 * look.
 */
#dashboard_slot .Users_avatar_icon,
#dashboard .Users_avatar_icon {
	filter: none;
}
/*----------------------*/

.Communities_me_column_tabContent .Communities_buttons .Communities_people_link,
.streamName_streams_user_height,
.streamName_streams_user_affiliation,
.streamName_streams_user_dating {
	display: none;
}

.Q_tab_me img,
.Users_avatar_tool img,
.Streams_participants_invite img {
	border-radius: 2px;
}

.Q_columns_title,
.Q_columns_column .Q_columns_title {
	border: none;
	background: #FFFFFF;
	box-shadow: 0 1px 3px rgba(0,0,0,.08);
	position: relative;
	z-index: 100;
}

.Q_columns_column.Q_column_profile .Q_columns_title {
	box-shadow: none !important;
	background: transparent;
}

.Communities .Q_columns_title .Q_title_slot {
	font-weight: bold;
	font-size: 25px;
	font-family: var(--brand-font-display);
}

.Calendars_event_preview_tool .Calendars_event_title {
	padding: 5px;
}

.Communities_me_column_tabContent {
	border-radius: 5px;
	border: 1px solid #d4d4d4;
}

/* Hide the Social expandable when its content is empty (no supported socials configured
   or XIDs not loaded). :has() is supported in all modern evergreen browsers. */
.Q_expandable_tool:has(> .Q_expandable_content > .Communities_profile[data-val=social]:empty) {
	display: none;
}

/* #87: drop the `basic16` sprite from every inplace editor button.
 *
 * `Q/inplace.js` builds Edit, Save and Cancel as `<button class="... basic16
 * basic16_edit">Edit</button>`, so all three draw a 16px window onto the shared
 * `Q/img/icons/basic16.png` sprite sheet -- the last surface in this app still
 * using it, and the same sheet as the notice close X (see docs/qbix-gotchas.md).
 * The block below only ever reached the Save/Cancel pair inside
 * `.Communities_me_column`; the Edit button and every inplace editor elsewhere
 * kept the sprite.
 *
 * These buttons carry their own text labels, so the consolidation here is
 * removal rather than substitution -- there is no Lucide glyph to put back, and
 * adding one would be a new icon this app does not otherwise draw on a labelled
 * button.
 *
 * Two deliberate choices:
 *   - `background-image`, not the `background` shorthand. The notice X needed
 *     the shorthand because its position offset would have displaced the glyph
 *     drawn in its place; here nothing is drawn, and `button.basic16` also
 *     carries a `background-color: #EEE` that is the plain button look outside
 *     the me column. Clearing the image alone leaves the sprite's inert
 *     `background-position` behind and changes nothing else.
 *   - `padding-left` reclaims the 17px/20px gutter the sprite occupied --
 *     otherwise removing the image leaves a phantom indent, which is the same
 *     "shadow that survives removal" trap the gotchas doc warns about.
 *
 * Specificity is (0,2,1) on purpose. It ties `Q/inplace.css`'s
 * `.Q_inplace_tool .Q_inplace_tool_buttons button { padding: ... !important }`
 * and wins on order, since Yoga.css is inlined after every platform sheet. It
 * also ties the `.Communities_me_column` block below, which therefore keeps its
 * own padding by being later in this file -- do not move this rule after it. */
.Q_inplace_tool button.Q_inplace_tool_edit,
.Q_inplace_tool button.Q_inplace_tool_save,
.Q_inplace_tool button.Q_inplace_tool_cancel {
	background-image: none;
	padding-left: 6px !important;
}

/* Style the inplace editor's Save/Cancel as real app buttons.
 *
 * They arrive wearing Qbix's `basic16` sprite look -- 20px tall, bold 12px
 * black text on #EEE, with a chunk of the shared basic16.png showing through
 * as the icon -- which matches nothing else on the page. Match `.Q_button`
 * instead: flat --button-bg-color, --button-border-radius, weight 500, no
 * shadow (Yoga.css strips button shadows globally further down).
 *
 * Nearly every declaration needs !important, and each one earns it against a
 * specific upstream rule rather than as a blanket:
 *   - color        Q/inplace.css `.Q_inplace_tool_buttons button { color: black !important }`
 *                  (this is why the previous version of this block set
 *                  `color: #fff` and still rendered dark text)
 *   - padding      same rule, `padding: 0 3px 0 20px !important`
 *   - font-size    Q.css `.basic16 { font-size: 12px !important }`
 *   - box-shadow   Q/inplace.css puts a 15px drop shadow on these buttons
 * `height: auto` matters too: Q.css pins `button.basic16` to 20px with
 * border-box, so padding alone was being swallowed and the button stayed 20px.
 * Setting the `background` shorthand is what drops the sprite here; the rule
 * above now drops it for every inplace button, including the Edit one. */
.Communities_me_column .Q_inplace_tool_buttons button {
	height: auto;
	line-height: 1;
	padding: 8px 14px !important;
	margin: 0 6px 0 0 !important;
	font-size: 14px !important;
	font-weight: 500;
	border: 1px solid transparent;
	border-radius: var(--button-border-radius, 10px);
	box-shadow: none !important;
	cursor: pointer;
}
.Communities_me_column .Q_inplace_tool_buttons .Q_inplace_tool_save {
	background: var(--button-bg-color);
	border-color: var(--button-border-color);
	color: var(--button-text-color) !important;
}
.Q_notTouchscreen .Communities_me_column .Q_inplace_tool_buttons .Q_inplace_tool_save:active {
	background: var(--button-bg-color-active);
}
/* Secondary: the app's secondary tokens carry no border of their own and the
   global no-shadow rule removes the shadow Communities.css would lean on, so
   a hairline is what keeps a white button visible on the cream column. */
.Communities_me_column .Q_inplace_tool_buttons .Q_inplace_tool_cancel {
	background: var(--button-bg-color-secondary);
	border-color: rgba(0, 0, 0, 0.15);
	color: var(--button-text-color-secondary) !important;
}
.Q_notTouchscreen .Communities_me_column .Q_inplace_tool_buttons .Q_inplace_tool_cancel:active {
	background: #f0f0f0;
}

/* Relabel floating user ID in bottom-right so it reads as a deliberate element, not debug noise.
   Also move it up out of the way of the feedback chat bubble. */
.Communities_profile_userId {
	bottom: 60px;
	padding: 4px 8px;
	font-family: monospace;
	font-size: 11px;
	color: #888;
	background: rgba(255,255,255,0.8);
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	opacity: 0.6;
	transition: opacity 0.15s;
}
.Communities_profile_userId:hover {
	opacity: 1;
}
/* The label is user-facing copy, so it comes from text/Yoga/content/en.json
   (cssLabels.UserId) via a custom property that Yoga_before_Q_responseExtras
   emits into an inline <style>. The literal here is only the fallback for a
   response that skipped that handler. See #90. */
.Communities_profile_userId::before {
	content: var(--Yoga-label-userId, "User ID: ");
	color: #555;
}

.Communities_tab.Q_current {
	border: 1px solid #d4d4d4;
	border-bottom: solid 1px transparent;
	border-radius: 5px 5px 0 0;
	font-weight: 500;
}
.Communities_schedule_column_tabContent {
	border-top: 1px solid #d4d4d4;
}
.Users_list_tool .Users_avatar_tool {
	margin: 0px;
	box-shadow: 0 0 0px silver;
	width: auto;
}

.Users_list_tool .Users_avatar_icon {
	border-radius: 10px;
}

.Users_list_tool .Users_avatar_name {
	font-size: 15px;
	margin-top: 5px;
}

.Q_big_prompt { padding: 20px 10px; }

.Calendars_going {
	display: inline-flex;
	box-shadow: 0 10px 40px -15px rgba(0,0,0,.5), 0 1px 4px rgba(0,0,0,.2);
	border-radius: 5px;
	margin-left: 10px;
}

.Calendars_going span {
	display: inline-block;
	padding: 10px;
	cursor: pointer;
	border-left: solid 1px #e3e3e3 !important;
	color: #8f8f8f;
	background: #fff;
	min-width: 60px;
}

.Calendars_going span.Calendars_yes { padding: 10px; }

.Calendars_yes.Q_selected {
	color: #fff;
	background: #88C906;
	background-image: linear-gradient(to bottom, #A9BD08, #88C906);
	border: 1px solid #A9BD08;
	box-shadow: 0 2px 25px -2px #A9BD08, 0 0 10px 2px #fff;
	z-index: 1;
	position: relative;
}

.Calendars_maybe.Q_selected {
	color: #fff;
	background: #4953d0;
	background-image: linear-gradient(to bottom, #5a64e0, #4953d0);
	border-color: #4953d0;
	box-shadow: 0 2px 25px -2px #4953d0, 0 0 10px 2px #fff;
	z-index: 1;
	position: relative;
}

.Calendars_no.Q_selected {
	color: #fff;
	background: #777;
	background-image: linear-gradient(to bottom, #8a8a8a, #777);
	border-color: #777;
	box-shadow: 0 0 10px 2px #fff;
	z-index: 1;
	position: relative;
}

.Q_contextual {
	box-shadow: 0 10px 40px -10px rgba(10,30,130, .7), 0 3px 5px rgba(0,0,0,.2);
}

.Q_contextual .Q_listing li.Q_selected *,
.Q_contextual .Q_listing li,
.Q_contextual .Q_listing li * {
	background: transparent;
	border-color: transparent;
}

.Q_contextual .Q_listing li.Q_selected {
	border-color: transparent;
	background: var(--brand-primary-dark);
	box-shadow: 0 0 20px -5px var(--brand-primary);
	position: relative;
	z-index: 5;
}

.Q_contextual .Q_contextual_top_arrow {
	border-style: solid;
	border-width: 0 20px 16px 20px;
	border-color: transparent transparent var(--dashboard-contextual-border) transparent;
	background: none;
}

div#Calendars_event_composer_tool {
	padding: 20px 0;
}

.Communities_conversation_author .Users_avatar_name { margin-left: 10px; }

.Communities_conversation_content {
	border-radius: 10px;
	margin: 10px 0 20px 0;
}

.Q_columns_column.Communities_column_chat {
	overflow-y: auto !important;
	overscroll-behavior: contain;
}

.Streams_chat_bubble { font-size: 14px; }

.Streams_chat_messages .Streams_chat_from_me .Streams_chat_bubble {
	border-radius: 6px;
	background-color: var(--chat-bg-color);
	color: var(--chat-text-color);
	box-shadow: 0 5px 15px -5px var(--chat-bg-color);
	border: none;
}
.Streams_chat_from_me .Streams_chat_tick {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 6.5px 0 6.5px 9px;
	border-color: transparent transparent transparent var(--chat-bg-color);
	background: none;
}

.Streams_chat_to_me .Streams_chat_bubble {
	border-radius: 6px;
	background-color: #d2d3d5;
	box-shadow: 0 5px 15px -8px #afb9c8;
	border: none;
	background-image: linear-gradient(to right, #d2d3d5, #e5e5e5);
	color: #222;
}
.Streams_chat_to_me .Streams_chat_tick {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 6.5px 9px 6.5px 0;
	border-color: transparent #d2d3d5 transparent transparent;
	background: none;
}

.Streams_chat_bubble.Streams_chat_overflowed:after {
	content: '';
	position: absolute;
	bottom: 5px;
	width: 100%;
	height: 28px;
	left: 0;
	background: inherit;
	-webkit-mask-image: -webkit-gradient( linear, left bottom, left top, color-stop(0, rgba(0,0,0,1)), color-stop(0.4, rgba(0,0,0,1)), color-stop(1.00, rgba(0,0,0,0)));
}

.Streams_chat_overflowed_indicator { display: none; }

.Streams_chat_tool .Streams_chat_bubble .Users_avatar_name { opacity: .8; }

.Streams_chat_timestamp {
	margin-right: 20px;
	margin-top: 5px;
	color: #777777;
	font-size: 11px;
	font-family: var(--brand-font-display);
}

.Streams_chat_vote_container img { filter: hue-rotate(40deg); }

.Q_placeholders_container {
	min-height: 40px;
	vertical-align: middle;
}
.Q_placeholders_container .Q_placeholder {
	display: flex;
	align-items: center;
	top: 0 !important;
}

.Q_buttons input,
.Q_placeholders_container input {
	padding: 5px;
	min-height: 40px;
}

.Streams_chat_more {
	cursor: pointer;
	background-color: #dfdfdf;
	color: #555;
	text-align: center;
	padding: 5px 0;
	font-size: 11pt;
	font-family: var(--brand-font-display);
	margin: 20px 0;
	/*background-image: linear-gradient(to bottom, #f3f3f3, #eaeaea);*/
	/*border: 1px solid #d7d7d7;*/
}

.Streams_preview_container.Streams_preview_view {
	display: flex;
	align-items: center;
}

.Users_avatar_tool img,
.Streams_participants_invite img,
.Streams_preview_tool .Streams_preview_icon,
.Streams_preview_tool .Streams_preview_add {
	border: 2px solid #fff;
	border-radius: 5px;
}

.Q_columns_title_container .Streams_preview_tool .Streams_preview_icon {
	border: none;
}

.Streams_preview_tool .Streams_preview_icon,
.Streams_preview_tool .Streams_preview_add {
	margin-right: 10px;
}


.Streams_dialog_interests, .Communities_filter_location {
	border: 1px solid var(--button-bg-color);
	box-shadow: 0 7px 10px -5px var(--button-bg-color);
	background: var(--interests-bg-main);
	color: var(--button-text-color);
	border-radius: 12px;
}

/* Kept apart from the .Q_overlay rule near the top of this file on purpose:
   this one must come AFTER the .Streams_dialog_interests /
   .Communities_filter_location rule above (equal specificity, 12px radius),
   and that one must come after the top rule's border/background/box-shadow.
   Merging either way would change those two dialogs (#978). */
/* stylelint-disable-next-line no-duplicate-selectors */
.Q_overlay {
	border-radius: 10px;
}

/*
 * The `.Q_overlay_apply` variants are listed explicitly, and dropping them
 * puts a grey checkmark back behind the X (#87).
 *
 * Q.css:387 styles `.Q_overlay.Q_overlay_apply .Q_close` with
 * `background-image: url(../img/apply.png)`. That selector carries three
 * classes to this rule's two, so on an "apply"-flavoured dialog — the
 * Reminders one is the case in the wild — the platform's PNG outranks a
 * plain `.Q_overlay .Q_close { background-image: none }` no matter which
 * stylesheet loads later. The Lucide glyph still drew on ::before, so the
 * button rendered as an X sitting on top of a checkmark.
 *
 * Measured, not inferred: with these selectors absent, a synthetic
 * `.Q_overlay.Q_overlay_apply > .Q_close` computes
 * `background-image: url(.../apply.png)` while `::before` computes
 * `content: "\e1b2"`, font-family lucide. With them present it computes
 * `none`.
 *
 * Only the icon is corrected here. The platform also gives this variant its
 * own offset, size and attention-seeking wiggle animation; those are
 * deliberate emphasis, not an icon system, so they stay.
 */
.Q_overlay .Q_close,
.Q_fullscreen_dialog .Q_close,
.Q_overlay.Q_overlay_apply .Q_close,
.Q_fullscreen_dialog.Q_overlay_apply .Q_close {
	background-image: none;
	background-color: #e8f0e8;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: var(--column-title-color);
	text-decoration: none;
}
.Q_overlay .Q_close::before,
.Q_fullscreen_dialog .Q_close::before {
	content: "\e1b2"; /* lucide-x — face from the shared icon rule */
}

.Q_dialog_title {
	background: var(--dialog-title-bg-color);
	border-bottom: 1px solid var(--dialog-title-bg-color);
	color: var(--dialog-title-text-color);
	border-radius: 10px 10px 0 0;
	font-size: 18px;
	font-family: var(--brand-font-display);
}

.Q_button.Q_aspect_who,
.Q_button.Users_aspect_communities,
.Q_button.Users_aspect_account {
	background: var(--button-bg-color);
	background: -webkit-gradient(linear, left top, right top, from(var(--button-bg-color)), to(var(--button-bg-color-to)));
	background: -moz-linear-gradient(left, var(--button-bg-color), var(--button-bg-color-to));
	background-image: linear-gradient(to right, var(--button-bg-color), var(--button-bg-color-to));
	box-shadow: 0 5px 20px -5px var(--button-bg-color);
	border: none;
}


/* The Me column's Interests pane.
 *
 * Communities/css/columns/me.css:73-76 paints this pane #822 and then tunes
 * everything inside it to that maroon: collapsed rows rgba(0,0,0,.1) (me.css:
 * 81-86), expanded rows var(--expandable-expanded-background), which
 * Communities.css:92-93 defaults to rgba(0,0,0,.5), and the filter input
 * white-on-rgba(0,0,0,.3) with a white PNG magnifier (Communities.css:882-900).
 *
 * Repainting only the pane leaves all of that still tuned to a colour that is
 * no longer underneath it. Over the button gradient this rule used to apply,
 * the collapsed rows measured ~1.1:1 against their own background — they were
 * not missing, they were amber on amber — and the expanded one went muddy
 * brown.
 *
 * So use the treatment the interests dialog already has (:698 above) instead of
 * the button palette: it is the same picker doing the same job, and it should
 * not be green in a dialog and amber here. On a saturated --interests-bg-main
 * the platform's own row and input rules are back on the kind of background
 * they were written for, which is why only the two row colours need restating.
 */
.Communities_me_column_tabContent[data-val="interests"],
.Communities_me_column_tabContent[data-val="interests"] .Streams_interests_anything {
	background: var(--interests-bg-main);
	color: var(--interests-text-color);
}
.Communities_me_column_tabContent[data-val="interests"] .Q_expandable_tool h2.Q_expandable_title {
	background: var(--interests-bg-row);
	color: var(--interests-text-color);
	border-radius: 10px;
}
.Communities_me_column_tabContent[data-val="interests"] .Q_expandable_tool h2.Q_expandable_title.Q_expanded {
	background: var(--interests-bg-row-expanded);
	color: var(--interests-text-color);
}

.Communities_me_column_tabContent[data-val="credits"] {
	text-align: center;
}

.Communities_me_column_tabContent[data-val="interests"] .Streams_interests_choseAnything .Streams_interests_anything,
.Communities_me_column_tabContent[data-val="interests"] .Q_expandable_count,
.Communities_me_column_tabContent[data-val="interests"] .Q_expandable_tool .Q_selected,
.Communities_me_column_tabContent[data-val="interests"] .Streams_interests_tool .Q_selected {
	background: rgba(255, 230, 180, 0.9);
	color: #220;
	text-shadow: none;
}

#page .Calendars_info .Q_button i {
	color: inherit !important;
}

.Q_selected,
.Places_location_tool .Places_location_preview_tool.Q_selected {
	background: var(--brand-primary-tint);
	border: 1px solid var(--brand-primary-dark);
	margin: -1px;
	box-shadow: 0 0 6px 1px rgba(242, 169, 34, 0.5), inset 0 0 3px var(--brand-primary-edge);
}

.Q_expandable_count {
	background-color: rgba(255, 34, 34, 0.9);
	color: #fff;
}

.Communities_filter_location .Q_dialog_content { padding: 10px; }

.Communities_me_column .Communities_me_icon:before {
	color: #919191;
	font-size: 24px;
}
.Q_tool.Streams_chat_tool .Streams_chat_composer .Streams_chat_subscription {
	width: 40px;
	height: 40px;
}
.Q_tool.Streams_chat_tool .Streams_chat_composer .Streams_chat_submit,
.Q_tool.Streams_chat_tool .Streams_chat_composer .Streams_chat_call {
	top: 2px;
	right: 3px;
	width: 35px;
	height: 35px;
	filter: contrast(150%) hue-rotate(40deg) brightness(90%);
}

.Q_tool.Streams_chat_tool .Streams_chat_composer input { padding-right: 40px; margin-left: 45px; width: calc(100% - 45px); height: 40px; }
.Q_tool.Streams_chat_tool .Streams_chat_composer ~ hr { display: none; }

.Communities_tabs[data-style=icons] .Communities_tab:before { color: var(--brand-primary-dark); }

.Calendars_event_composer_tool .Calendars_event_composer > div:before { color: #9e9e9e !important; }

.Communities_filter_location .Places_location_tool div[data-location=current],
.Communities_filter_location .Places_location_preview_tool,
.Communities_filter_location .Communities_filter_location_all,
.Communities_filter_location .Places_location_tool .Places_location_preview_tool,
.Communities_filter_location .Places_location_tool div[data-location=address],
.Communities_filter_location .Places_location_tool .Places_areas_tool {
	background-color: rgba(255, 255, 255, 0.2);
}

.Yoga_counts {
	padding: 10px;
	text-align: center;
}

.Yoga_getStarted {
	font-size: 30px;
	font-weight: bold;
}

.Yoga_answer .Q_dialog_content {
	padding: 10px;
}
.Yoga_answer .Q_dialog_content h2 {
	margin-bottom: 20px;
}
.Yoga_answer .Q_dialog_content tr {
	display: block;
}
.Yoga_answer .Q_dialog_content tr:not(:last-child) {
	margin-bottom: 10px;
}
.Yoga_answer .Q_dialog_content input[type=checkbox] {
	width: 30px;
	height: 30px;
}

.Yoga_welcome #content_slot {
	overflow: auto !important;
}

.Yoga_welcome #content {
	height: auto !important;
}

/* Dashboard tab icons — Lucide glyphs; face from the shared icon rule */
#dashboard .Q_tabs_tab::before,
.Q_listing_wrapper .Q_tabs_tab::before {
	margin-right: 4px;
}
#dashboard .Q_tab_events::before, .Q_listing_wrapper .Q_tab_events::before,
#dashboard .Q_tab_classes::before, .Q_listing_wrapper .Q_tab_classes::before {
	content: "\e063" !important; /* calendar */
}
#dashboard .Q_tab_conversations::before, .Q_listing_wrapper .Q_tab_conversations::before {
	content: "\e116" !important; /* message-circle */
}
#dashboard .Q_tab_people::before, .Q_listing_wrapper .Q_tab_people::before {
	content: "\e46e" !important; /* users-round */
}
#dashboard .Q_tab_community::before, .Q_listing_wrapper .Q_tab_community::before {
	content: "\e1a4" !important; /* users */
}
#dashboard .Q_tab_sharing::before, .Q_listing_wrapper .Q_tab_sharing::before {
	content: "\e5c0" !important; /* handshake — the Sharing plugin's tab (ro#474) */
}
#dashboard .Q_tab_me::before, .Q_listing_wrapper .Q_tab_me::before,
#dashboard .Q_tab_login::before, .Q_listing_wrapper .Q_tab_login::before {
	content: "\e461" !important; /* circle-user */
}
#dashboard .Q_tab_watch::before, .Q_listing_wrapper .Q_tab_watch::before,
.Q_listing_wrapper .Communities_aspect_watch::before {
	content: "\e0ba" !important; /* eye */
}
#dashboard .Q_tab_welcome::before, .Q_listing_wrapper .Q_tab_welcome::before {
	content: "\e0f5" !important; /* home */
}
/*
 * The block that used to live here replicated Communities' pure-CSS height
 * chain for html.Yoga_teachers, because /teachers was routed to
 * {"module": "Yoga"} while its handler rendered Communities' columns view --
 * and every rule of that chain is scoped to `.Communities`, the html class Q
 * derives from the page's module. Without it the chain resolved to 0 and
 * columns.js baked `height: 0px` into the column on desktop: the list was
 * present but the page was blank.
 *
 * /people (and its /teachers alias) route to {"module": "Communities"} now, so
 * the page's html class is Communities_people and the platform's own rules
 * apply -- including `.Communities #content_slot { padding: 0 }`, which the
 * removed block also had to restate.
 *
 * The gotcha itself is unchanged and still applies to any *other* Yoga-module
 * page that renders Communities/content/columns.php; see docs/qbix-gotchas.md
 * § "Desktop column pages blank when the page's module isn't Communities".
 */

.Yoga .Q_column_0 .Q_columns_title {
	display: none;
}

/*
 * Neutralise leaked Q/columns click-blockers.
 *
 * Q's columns.js drops a transparent `position:absolute; inset:0;
 * z-index:9999` .Q_columns_mask over a column while it opens, to swallow
 * clicks for delay.duration (300ms) — and removes it from exactly one place,
 * a five-way Q.pipe() with no timeout (Q/js/tools/columns.js:577-586). Any
 * unfilled gate — most reachably a $div.stop() from a second open() on a
 * reused column element (:695) cancelling the first animation's jQuery
 * complete callback — leaves the mask behind forever. It is invisible, logs
 * nothing, and eats every click on the column underneath (#79).
 *
 * columns.js adds and removes Q_columns_loading in lockstep with the mask
 * (:690/:705 and :578-579), so "mask present on a column that is not
 * loading" is a sound orphan test. Enforce it in CSS as well as in JS
 * (Yoga.js `_reapStaleColumnMasks`): CSS wins even before the reaper runs,
 * and it cannot itself be defeated by a timing race.
 */
.Q_columns_column:not(.Q_columns_loading) > .Q_columns_mask {
	display: none;
	pointer-events: none;
}

/*
 * Communities ddf3149 added `display: none` to .Q_columns_title on
 * hideTitle columns. This kills the absolutely-positioned close X
 * inside the title (which Q's columns.css intentionally keeps visible
 * via `.Q_columns_hideTitle .Q_close { opacity: 1 }`).
 *
 * Restore the close X by overlaying just the title element in the
 * top-right corner with pointer-events:none, so it's invisible but
 * lets the X (pointer-events:auto) remain clickable.
 *
 * TODO: file upstream PR — Andrey's display:none is too aggressive.
 */
.Communities .Q_columns_column.Q_columns_hideTitle .Q_columns_title {
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	width: 50px;
	height: 50px;
	z-index: 200;
	pointer-events: none;
	background: none;
	box-shadow: none;
}
/*
 * The X itself is an icon-font glyph, not the <img> inside .Q_close —
 * Communities.css hides that img for every column and draws \e91c from
 * qplatform-communities instead, so the img legitimately stays at Q's
 * lazy-load placeholder (transparent.gif, naturalWidth 1). That is not a
 * broken lazy-load; don't "fix" it.
 *
 * We draw Lucide's x (\e1b2) rather than reusing the platform's \e91c (#87):
 * it is the same glyph the dialog close buttons already use, so every X in
 * the app now comes from one face, and the app stops depending on
 * qplatform-communities being loaded on the page for a control to be
 * visible at all. White + a shadow because this X sits over the column's
 * photo header rather than a title bar.
 */
.Communities .Q_columns_column.Q_columns_hideTitle .Q_close::before {
	content: '\e1b2'; /* lucide-x — face from the shared icon rule */
	font-size: 26px; /* sized for the chip in #93 (2) below */
	color: #fff;
	text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
	line-height: 1;
	display: block;
}

/* Customise event/preview */
.Calendars_event_preview_info {
	font-size: 14px;
	bottom: 0;
	position: absolute;
	padding: 5px;
}
.Calendars_event_preview_time {
	float: none;
	position: static;
}
.Calendars_event_preview_time:before,
.Calendars_event_preview_venue:before {
	line-height: normal;
}
/*---------------------------*/
/* Customise event/preview */
#content .Calendars_event_tool h1 {
	text-align: center;
	margin: 10px 0;
}
#content .Calendars_event_tool > .Users_avatar_tool {
	display: block;
	text-align: left;
	padding-left: 20px;
}
/*---------------------------*/

html.Communities .Q_controls_trigger,
html.Communities.Q_notTouchscreen .Q_controls_trigger:hover {
	background: transparent;
	color: white;
	border: none;
	box-shadow: none;
}

#page .Q_columns_column.Q_columns_hideTitle .Q_controls_slot {
	top: -50px;
}
.Calendars_event_preview_venue {
	width: 100%;
}

/* Communities event column */
.Communities_event_reservation .Q_dialog_content {
	padding: 10px;
}
.Communities_event_reservation .Q_dialog_content h1 {
	text-align: center;
	font-size: 20px;
	margin: 10px 0;
}
.Communities_event_reservation .Q_dialog_content .Communities_event_reservation_desc {
	margin-bottom: 20px;
}
.Communities_event_reservation .Q_dialog_content .Communities_event_reservation_date,
.Communities_event_reservation .Q_dialog_content .Communities_event_reservation_time {
	text-align: center;
	font-weight: bold;
}
.Communities_event_reservation .Q_dialog_content .Communities_event_reservation_time {
	margin-bottom: 20px;
}
.Communities_event_reservation .Q_dialog_content button {
	display: block;
	margin: 0 auto 20px;
}
.Communities_event_reservation .Q_dialog_content .Communities_event_reservation_footer {
	border-top: 1px solid silver;
	font-size: 14px;
}
.Communities_event_reservation .Q_dialog_content .Communities_event_reservation_price {
	text-align: center;
	margin-bottom: 10px;
	font-size: 30px;
	font-weight: bold;
}
.Communities_event_reservation .Q_dialog_content .Communities_event_reservation_credits {
	/* NOT text-transform: lowercase (ro#80). This line used to read
	   "(Your credits: 25)", where lowercasing only softened an English word.
	   Since the balance is quoted in the class's own currency it ends in a
	   currency CODE, and the transform rendered it "(your balance: 30.55 usd)"
	   directly under a price reading "20 USD" -- one unit spelled two ways in
	   one dialog, which is the bug this issue is about in miniature. Verified
	   live on the yoga stack, 2026-08-27. */
	text-align: center;
	margin-bottom: 20px;
}
.Communities_event_reservation .Q_dialog_content .Communities_event_reservation_title {
	text-align: center;
	font-size: 20px;
	margin-bottom: 10px;
}
.Communities_event_reservation .Q_dialog_content button[name=invite] {
	margin: 10px auto 0;
}
.Communities_event_reservation .Q_dialog_content .Communities_event_reservation_price:empty {
	display: none;
}
.Communities_event_reservation .Q_dialog_content .Communities_event_reservation_back {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	opacity: 0.2;
	z-index: -1;
}
#dashboard .Q_tab_login::before, .Q_mobile #dashboard[data-style=icons] .Q_tab_login::before, .Q_listing_wrapper .Q_tab_login::before {
	/* glyph comes from the circle-user rule above (content \e461 !important);
	   face from the shared icon rule */
	font-size: 30px;
	width: 45px;
}
body .Streams_chat_tool .Streams_chat_addons {
	width: 40px;
	height: 40px;
	line-height: 40px;
}

.Q_notMobile .Streams_invite_dialog .Streams_invite_social_buttons .Streams_invite_button_email,
.Q_notMobile .Streams_invite_dialog .Streams_invite_social_buttons .Streams_invite_button_text {
	display: none;
}
body .Q_dialog_content .Q_expandable_tool h2 {
	padding: 5px 10px;
}

.Calendars_event_preview_tool[data-mode=services] .Streams_participants_tool .Users_avatar_tool,
.Calendars_event_tool[data-mode=services] .Streams_participants_tool .Users_avatar_tool {
	display: none;
}
.Calendars_event_preview_tool[data-mode=services] .Streams_participants_tool .Users_avatar_tool[data-staff=true],
.Calendars_event_tool[data-mode=services] .Streams_participants_tool .Users_avatar_tool[data-staff=true] {
	display: inline-block;
}

#feedback-button-container {
	display: flex;
	justify-content: center; /* Centers children horizontally in the container */
	width: 100%; /* Full width of the container */
	align-items: center; /* Centers children vertically in the container */
}

#feedback-button-container a {
	font-size: 1.2rem;
	padding: 10px 20px;
}

/* Kept to a single compact line: links and copyright sit on one baseline row,
   with just enough padding to breathe. */
#footer {
    background-color: var(--brand-page-bg);
    padding: 6px 12px;
    text-align: center;
}

#footer_content {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 12px;
}

#footer_links a {
    color: #333;
    text-decoration: none;
    font-size: 0.8rem;
}

#footer_links a:hover {
    text-decoration: underline;
}

#footer_copyright {
    font-size: 0.75rem;
    color: #666;
}

/* Override dark mode — Yoga uses a light theme */
/* stylelint-disable-next-line no-duplicate-selectors -- kept beside the comment that explains it; no other :root here sets these properties, so the split is order-safe (#978) */
:root {
	color-scheme: light only;
}
@media (prefers-color-scheme: dark) {
	:root {
		color-scheme: light only;
	}
	#content_slot, #content, .Q_columns_column, .Q_big_prompt {
		color: #333;
	}
	.Q_overlay:not(.Streams_dialog_interests):not(.Communities_filter_location),
	.Q_fullscreen_dialog {
		background: #fff;
		color: #333;
	}
	/* Q.css's dark block also sets `.Q_overlay a { color: white }` (0,1,1),
	   which beats the global `a` rule above; without this the sign-up dialog's
	   "Terms of Service" link is white on white (#1227). Same :not() list as the
	   background, so the overlays that stay dark keep white links. The :where()
	   holds specificity at exactly Q.css's (0,1,1): any higher and it repaints
	   class-styled anchors too -- the dialog's white "➔" Q_button turned green
	   on orange, and the Q_close icon changed shade. */
	.Q_overlay:where(:not(.Streams_dialog_interests):not(.Communities_filter_location)) a,
	.Q_fullscreen_dialog a {
		color: var(--brand-link);
	}
	.Q_overlay:where(:not(.Streams_dialog_interests):not(.Communities_filter_location)) a:where(:visited),
	.Q_fullscreen_dialog a:where(:visited) {
		color: var(--brand-link-visited);
	}
	.Q_overlay select,
	.Q_overlay input,
	.Q_overlay textarea,
	.Q_fullscreen_dialog select,
	.Q_fullscreen_dialog input,
	.Q_fullscreen_dialog textarea {
		color: #333;
		background-color: #fefefe;
		border: 1px solid #ccc;
	}
	.Q_overlay input::placeholder,
	.Q_fullscreen_dialog input::placeholder,
	.Q_overlay textarea::placeholder,
	.Q_fullscreen_dialog textarea::placeholder {
		color: #aaa;
	}
}

/* Hide broken images gracefully */
.Yoga_img_broken { display: none !important; }

/* Gradient fallback for event detail pages with broken images */
.Calendars_event_curtain {
	background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-deep) 50%, var(--brand-secondary) 100%);
	min-height: 200px;
}
.Calendars_event_curtain .Streams_preview_container {
	background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-deep) 50%, var(--brand-secondary) 100%);
	min-height: 200px;
}
/* Hide broken image icons in event curtain so gradient fallback shows */
.Calendars_event_curtain img.Yoga_img_broken {
	display: none !important;
}

/* Overlay the event title on the curtain gradient.
   The title lives inside the Streams image preview tool (not as a plain h1).
   It's hidden by default; unhide and position it over the gradient. */
.Calendars_event_curtain .Streams_image_preview_title {
	display: flex !important;
	position: absolute;
	inset: 0;
	padding: 20px 24px;
	z-index: 2;
	align-items: center;
	justify-content: center;
	text-align: center;
	pointer-events: auto;
}
.Calendars_event_curtain .Streams_preview_title,
.Calendars_event_curtain .Streams_preview_title * {
	color: #fff !important;
	font-size: 28px;
	font-weight: 500;
	line-height: 1.25;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65), 0 0 18px rgba(0, 0, 0, 0.45);
	margin: 0;
	background: transparent !important;
}

/* ============================================================== */
/* Lucide is this app's one icon system                           */
/* ============================================================== */
/*
 * #87 consolidated five coexisting icon systems onto Lucide with a single
 * usage pattern: **every glyph this app draws is a Lucide codepoint on a
 * ::before/::after, and the font face is declared exactly once — in the rule
 * directly below.** Individual rules set only `content` (plus size/colour
 * where they need it) and never repeat the face; that repetition was the
 * twelve near-identical `font-family: 'lucide' !important` preambles this
 * replaced.
 *
 * Two consequences worth knowing before editing:
 *
 *  - **Adding an icon means adding its selector to the list below**, not
 *    copying a preamble. A `content` codepoint with no matching entry renders
 *    in the inherited body font, which for a private-use codepoint means a
 *    blank box — silent, and easy to misread as "the glyph is missing from
 *    Lucide".
 *  - **`!important` on the face is load-bearing** and stays. Most of these
 *    selectors target elements the platform already styles with its own icon
 *    font (`qp-communities-*` from Communities, `Calendars_event_preview_*`
 *    from eventPreview.css), so the declaration has to outrank theirs. It is
 *    scoped to `font-family` alone.
 *
 * Codepoints are the private-use values from `lucide/lucide.css`; each site
 * comments the Lucide name so the number is greppable back to a real icon.
 *
 * ONE surface is Lucide but not a codepoint, and no CSS in this file can reach
 * it: the role tiles in `Communities/roles`. That tool sets an *inline*
 * `background-image` from a config URL onto a span with no per-role class, so
 * the tile is a raster image by construction. Those PNGs are rendered from this
 * app's own `lucide.ttf` by `infra/scripts/render-lucide-label-icons.mjs`;
 * the glyph map is `web/img/labels/lucide-labels.json`. Same font, different
 * delivery -- if you are hunting a role icon, it is not in this file.
 */
.Q_overlay .Q_close::before,
.Q_fullscreen_dialog .Q_close::before,
#notices_slot ul li span.Q_close::before,
#dashboard .Q_tabs_tab::before,
.Q_listing_wrapper .Q_tabs_tab::before,
#dashboard .Q_tab_login::before,
.Q_mobile #dashboard[data-style=icons] .Q_tab_login::before,
.Q_listing_wrapper .Q_tab_login::before,
.Calendars_event_preview_time:before,
.Calendars_event_preview_venue:before,
.qp-communities-people::before,
.qp-communities-interests::before,
.qp-communities-location::before,
.qp-communities-search::before,
.qp-communities-close::before,
.Communities_dialog_labels .Users_labels_label::before,
.Communities_dialog_labels .Users_labels_action::before,
.Communities .Q_columns_column.Q_columns_hideTitle .Q_close::before,
#page .Calendars_event_tool .Calendars_aspect_close .Calendars_info_icon::before,
#page .Calendars_event_tool .Calendars_info > .Q_button[data-invoke]:not(.Streams_aspect_interests)::after,
.Communities .Q_column_events .Q_title_slot::before,
.Communities .Q_column_availabilities .Q_title_slot::before,
.Communities .Q_column_inbox .Q_title_slot::before,
.Communities .Q_column_people .Q_title_slot::before,
.Communities .Q_column_schedule .Q_title_slot::before,
.Communities_conversations .Q_column_interests .Q_title_slot::before {
	font-family: 'lucide' !important;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Override event preview icons (set by platform's eventPreview.css) */
.Calendars_event_preview_time:before {
	content: "\e087" !important; /* clock */
}
.Calendars_event_preview_venue:before {
	content: "\e111" !important; /* map-pin */
}

/* Override Communities filter bar icons */
.qp-communities-people::before {
	content: "\e19f" !important; /* user */
}
.qp-communities-interests::before {
	content: "\e0f2" !important; /* heart */
}
.qp-communities-location::before {
	content: "\e111" !important; /* map-pin */
}
.qp-communities-search::before {
	content: "\e151" !important; /* search */
	-webkit-text-stroke: 0.5px;
}
.qp-communities-close::before {
	content: "\e1b2" !important; /* x */
}

/* #87: `qplatform-users`, a *seventh* icon font, and the only rule in this app
 * that draws from it.
 *
 * `Communities/web/css/dashboard.css:891` gives the mobile dashboard's account
 * button `font-family: 'qplatform-users'; content: "\e909"`. It is dormant for
 * the same structural reason as the column titles rather than by intent: the
 * element measures 0x0 in this app's dashboard, so the ::before never paints,
 * and it is invisible to a screenshot.
 *
 * It was found only by sweeping at the mobile viewport -- every earlier pass
 * on this issue, including the desktop sweep in the commit before this one,
 * measured a layout in which this element does not exist. Icon inventories
 * have to be taken at both widths.
 *
 * `circle-user` is the same glyph `.Q_tab_login::before` uses above, which is
 * the same concept (sign in / your account) on the same dashboard.
 */
.Q_mobile #dashboard .Users_status_login::before {
	font-family: 'lucide' !important;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	content: "\e461" !important; /* circle-user -- matches .Q_tab_login above */
}

/* #87: the Communities tab strip -- the one place the plugin icon font was
 * still *rendering*, not merely dormant.
 *
 * `Communities.css:494-537` gives every `[data-val]` tab its own
 * `qplatform-communities` glyph. On `/community` two of them (people, events)
 * draw at ~32px in plain sight; the rest appear on logged-in and admin
 * surfaces. Three earlier passes on this issue reported "zero non-Lucide
 * glyphs rendering" because they swept `/` and `/teachers`, where this strip
 * does not appear -- the sixth icon system was visible the whole time, one
 * page over.
 *
 * All fourteen are mapped, not just the two that happen to be seeded here:
 * converting only the visible pair would leave the font loaded and the system
 * standing next to its replacement, which is the failure mode this issue
 * exists to end.
 *
 * Glyph choices reuse the mapping this file already established for the same
 * concept, so a concept has one glyph app-wide -- `people` is `user` here
 * because `.qp-communities-people` above is already `user`, and `interests`
 * and `location` likewise. The platform's per-tab colours (including the green
 * on importUsers) are left alone: this is an icon-system swap, not a restyle.
 */
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=inbox]::before,
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=schedule]::before,
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=profile]::before,
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=interests]::before,
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=location]::before,
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=myqr]::before,
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=credits]::before,
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=account]::before,
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=people]::before,
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=info]::before,
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=locations]::before,
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=events]::before,
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=importUsers]::before,
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=importEvents]::before,
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=labels]::before,
.qp-communities-locations::before,
.qp-communities-plus::before {
	font-family: 'lucide' !important;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.Communities_tabs[data-style="icons"] .Communities_tab[data-val=inbox]::before {
	content: "\e0f7" !important; /* inbox */
}
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=schedule]::before {
	content: "\e304" !important; /* calendar-clock */
}
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=profile]::before {
	content: "\e461" !important; /* circle-user */
}
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=interests]::before {
	content: "\e0f2" !important; /* heart */
}
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=location]::before {
	content: "\e111" !important; /* map-pin */
}
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=myqr]::before {
	content: "\e1df" !important; /* qr-code */
}
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=credits]::before {
	content: "\e097" !important; /* coins */
}
/* ro#562: the app's own "account" tab (data export) */
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=account]::before {
	content: "\e342" !important; /* user-cog */
}
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=people]::before {
	content: "\e19f" !important; /* user */
}
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=info]::before {
	content: "\e0f9" !important; /* info */
}
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=locations]::before {
	content: "\e53d" !important; /* map-pinned */
}
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=events]::before {
	content: "\e2b9" !important; /* calendar-days */
}
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=importUsers]::before,
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=importEvents]::before {
	content: "\e22f" !important; /* import */
}
.Communities_tabs[data-style="icons"] .Communities_tab[data-val=labels]::before {
	content: "\e35c" !important; /* tags */
}

/* Siblings of the filter-bar icons already mapped above; the Communities column
 * JS injects these two the same way it injects `people` and `search`. */
.qp-communities-locations::before {
	content: "\e53d" !important; /* map-pinned */
}
.qp-communities-plus::before {
	content: "\e13d" !important; /* plus */
}

/* #87: the last `qplatform-communities` glyphs this app could ever draw --
 * the column title icons.
 *
 * Every Communities column sets its own title glyph from the plugin's icon
 * font, one rule per column in `Communities/web/css/columns/<name>.css`:
 *
 *     events.css:8         \e908  qp-communities-events         green
 *     availabilities.css:1 \e908  qp-communities-events         green
 *     inbox.css:8          \e90b  qp-communities-inbox          blue
 *     people.css:1         \e913  qp-communities-people         indigo
 *     schedule.css:8       \e915  qp-communities-schedule       green
 *     conversations.css:3  \e904  qp-communities-conversations  --
 *
 * That is the sixth icon system, and the only reason nobody has seen it is
 * that this app renders columns in Facebook style, and `Communities.css:836`
 * hides *every* title-slot ::before under `.Communities_column_facebook`. The
 * rules are dormant, not absent: turn that column style off and six coloured
 * plugin-font glyphs appear beside twenty Lucide icons.
 *
 * Three earlier passes on this issue failed to pin this down, and the traps
 * are worth recording because they are what made it look like a single stray
 * glyph rather than a system:
 *
 *   - **There is no `content` on the selector anyone greps for.** Searching
 *     `Q_title_slot` in `Communities.css` finds a font-family (:1350) and a
 *     font-size (:831) and no glyph, because the glyphs live in *other* files
 *     keyed on the column, not on the title.
 *   - **`getComputedStyle` reports the content as `""`**, not `"\e908"` --
 *     a private-use codepoint serialises as the literal character, which
 *     prints as an empty-looking string and reads as "no icon here". Read the
 *     codePointAt values, not the string.
 *   - **The codepoint changes with the page**, because it is per column: the
 *     home column measures \e908 and `/teachers` measures \e913. Sampling one
 *     page finds one glyph and suggests the problem is one rule.
 *
 * Mapping rather than deleting: `content: none` would remove a real icon on
 * any surface that un-hides the title slot, and this app has no such surface
 * *today* only. Pointing them at Lucide keeps the "every glyph is Lucide"
 * invariant true under that change instead of depending on it never
 * happening. Nothing renders differently now.
 *
 * `availabilities` deliberately gets the same calendar as `events`, because
 * the plugin reuses \e908 for both -- this is an icon-system swap, not a
 * redesign, so the platform's own pairing is preserved. The colours are the
 * platform's too and are left alone for the same reason.
 */
.Communities .Q_column_events .Q_title_slot::before,
.Communities .Q_column_availabilities .Q_title_slot::before {
	content: "\e2b9" !important; /* calendar-days */
}
.Communities .Q_column_inbox .Q_title_slot::before {
	content: "\e0f7" !important; /* inbox */
}
.Communities .Q_column_people .Q_title_slot::before {
	content: "\e19f" !important; /* user -- same glyph as .qp-communities-people above */
}
.Communities .Q_column_schedule .Q_title_slot::before {
	content: "\e304" !important; /* calendar-clock */
}
.Communities_conversations .Q_column_interests .Q_title_slot::before {
	content: "\e40d" !important; /* messages-square */
}
.qp-communities-people,
.qp-communities-interests,
.qp-communities-location,
.qp-communities-search,
.qp-communities-close {
	font-style: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	filter: none !important;
	color: var(--column-title-color) !important;
	background: #e8f0e8 !important;
}

/* Override Filter by Relationship popup icons with Lucide */
.Communities_dialog_labels .Users_labels_icon {
	display: none !important;
}
.Communities_dialog_labels .Users_labels_label::before,
.Communities_dialog_labels .Users_labels_action::before {
	font-size: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: #e8f0e8;
	color: var(--column-title-color);
	margin: 0 auto 5px;
	content: "\e19f"; /* default: user icon */
}
.Communities_dialog_labels li[data-label="*"]::before {
	content: "\e151"; /* search */
}
.Communities_dialog_labels li[data-label="Users/friends"]::before {
	content: "\e1a4"; /* users */
}
.Communities_dialog_labels li[data-label="Users/invited"]::before {
	content: "\e1a2"; /* user-plus */
}
.Communities_dialog_labels li[data-label="Users/invitedMe"]::before {
	content: "\e1a0"; /* user-check */
}
.Communities_dialog_labels .Users_labels_add::before {
	content: "\e081"; /* circle-plus */
}

input[name=query].Communities_eventChooser_input,
input[name=query].Communities_eventChooser_input:focus {
	border-color: var(--column-title-color);
}

/* Remove drop shadows on buttons and nav bar.
 *
 * The Me column's sub-tabs (Inbox / Schedule / Profile / Interests / ...) are
 * `div.Communities_tab`, not `button` or `.Q_button`, which is why the
 * `0 -3px 5px rgba(100,100,100,.25)` that Communities.css hangs on
 * `.Communities_tab.Q_current` outlived every earlier pass here. Same for
 * `.Communities_tabs[data-style=icons] .Communities_tab.Q_current`, which
 * repeats the rule at higher specificity. */
.Q_button,
.Q_button:before,
button,
button:before,
input[type="submit"],
input[type="submit"]:before,
#feedback_button,
.Calendars_event_tool .Q_button,
#dashboard_slot,
.Q_mobile #dashboard_slot,
.Q_mobile #dashboard,
.Q_mobile #dashboard .Q_tabs_tabs,
.Q_mobile #dashboard .Q_tabs_tab,
#dashboard_community_contextual,
.Communities_tab,
.Communities_tab.Q_current,
.Communities_tabs[data-style="icons"] .Communities_tab.Q_current {
	box-shadow: none !important;
	-webkit-box-shadow: none !important;
	-moz-box-shadow: none !important;
}

/* ============================================ */
/* Event detail panel refinements               */
/* ============================================ */

/* Consistent row padding + subtle dividers instead of loose margin */
#page .Calendars_event_tool .Calendars_info > .Q_button {
	padding: 14px 12px;
	margin-bottom: 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 0;
	background: transparent;
	color: inherit;
	transition: background-color 0.15s ease;
	position: relative;
	min-height: unset;
}
#page .Calendars_event_tool .Calendars_info > .Q_button + .Q_button.Streams_aspect_interests,
#page .Calendars_event_tool .Calendars_info > .Q_button:last-of-type {
	border-bottom: none;
}

/* Make clickable rows feel clickable — hover state + right chevron.
   Exclude interests (hidden) */
.Q_notTouchscreen #page .Calendars_event_tool .Calendars_info > .Q_button[data-invoke]:not(.Streams_aspect_interests):hover {
	background: rgba(91, 140, 90, 0.06);
	cursor: pointer;
}
/* Lucide chevron-right rather than a literal "›" (#87): the literal rendered
   in whatever body font the page had loaded, so this one affordance changed
   shape and weight with the typography around it. */
#page .Calendars_event_tool .Calendars_info > .Q_button[data-invoke]:not(.Streams_aspect_interests)::after {
	content: "\e06f"; /* lucide-chevron-right — face from the shared icon rule */
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 22px;
	color: rgba(0, 0, 0, 0.3);
	line-height: 1;
}

/* Icons — consistent size, muted color so they support the label rather than scream */
#page .Calendars_event_tool .Calendars_info_icon {
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-right: 14px;
	color: var(--column-title-color);
	font-size: 20px;
	flex-shrink: 0;
}
#page .Calendars_event_tool .Calendars_info_icon i {
	color: inherit !important;
}

/* Content typography */
#page .Calendars_event_tool .Calendars_info_content {
	font-size: 15px;
	line-height: 1.4;
	padding-right: 24px;
}

/* Hide the interests/roles/topics row */
#page .Calendars_event_tool .Calendars_info > .Streams_aspect_interests {
	display: none;
}

/* Hide the admin-editable title block — h1 at top already shows the title */
.Calendars_event_tool .Calendars_event_title {
	display: none;
}

/* Reorder: description first, then time, then location, then other actions */
#page .Calendars_event_tool .Calendars_info {
	display: flex;
	flex-direction: column;
}
#page .Calendars_event_tool .Calendars_info > .Calendars_event_description {
	order: -3;
}
#page .Calendars_event_tool .Calendars_info > .Q_aspect_when {
	order: -2;
}
#page .Calendars_event_tool .Calendars_info > .Q_aspect_where {
	order: -1;
}

/* Wrap the description as a card with a heading */
.Calendars_event_tool .Calendars_event_description {
	background: #FFFFFF;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	padding: 14px 16px 16px;
	margin-top: 8px;
	margin-bottom: 16px;
	position: relative;
}
/* Same as .Communities_profile_userId::before above: the heading is copy, so
   it lives in text/Yoga/content/en.json (cssLabels.AboutThisEvent) and arrives
   as a custom property. The fallback below is deliberately the app's wording
   ("class"), not the platform's ("event"). */
.Calendars_event_tool .Calendars_event_description::before {
	content: var(--Yoga-label-aboutThisEvent, "About this class");
	display: block;
	font-weight: 500;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--column-title-color);
	margin-bottom: 10px;
}

/* Floating feedback / help button — opens the user's mail app. */
#feedback_button {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--button-bg-color);
	color: var(--button-text-color);
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	font-size: 22px;
	z-index: 1000;
	transition: transform 0.15s ease;
}
#feedback_button:hover,
#feedback_button:focus {
	transform: scale(1.05);
}
#feedback_button:active {
	transform: scale(0.97);
}
/* On mobile the dashboard tab bar is pinned to the bottom of the viewport,
   so lift the button above it. */
.Q_mobile #feedback_button {
	bottom: calc(72px + env(safe-area-inset-bottom, 0px));
	right: 12px;
	width: 42px;
	height: 42px;
	font-size: 20px;
}

/* ==========================================================================
   Event composer: gated steps (issue #74)

   Calendars/event/composer's prepareSteps() gates a step by writing inline
   `opacity: 0.5; pointer-events: none` on it. That also kills the cursor
   change and swallows the click, so a gated step — including the Share
   button, gated on the location-OR-livestream step — is indistinguishable
   from a broken control.

   Give the step container its pointer events back (so it can be clicked and
   can show a not-allowed cursor) while keeping every control inside it
   inert. Yoga.js mirrors the platform's inline style into
   .Yoga_composer_locked and handles the click; note that !important here
   does not change element.style, so that mirroring stays reliable.
   ========================================================================== */
.Calendars_event_composer_tool .Calendars_step.Yoga_composer_locked {
	pointer-events: auto !important;
	cursor: not-allowed;
	position: relative;
	filter: grayscale(0.7);
}
.Calendars_event_composer_tool .Calendars_step.Yoga_composer_locked * {
	pointer-events: none !important;
}

/* The step the user actually has to fill in, called out on a blocked click. */
.Calendars_event_composer_tool .Calendars_step.Yoga_composer_blocking {
	outline: 2px solid var(--button-bg-color);
	outline-offset: 4px;
	border-radius: 6px;
}
@keyframes Yoga_composer_flash {
	0%, 100% { box-shadow: 0 0 0 0 rgba(242, 169, 34, 0); }
	35% { box-shadow: 0 0 0 6px rgba(242, 169, 34, 0.35); }
}
.Calendars_event_composer_tool .Calendars_step.Yoga_composer_flash {
	animation: Yoga_composer_flash 0.9s ease-in-out 2;
}
.Calendars_event_composer_tool .Yoga_composer_hint {
	display: block;
	margin: 8px 0 2px;
	padding: 6px 10px;
	background: var(--dashboard-contextual-selected-bg, #FFF3D6);
	border-left: 3px solid var(--button-bg-color);
	border-radius: 4px;
	color: var(--brand-on-primary);
	font-size: 0.9em;
	line-height: 1.35;
	cursor: default;
}
@media (prefers-reduced-motion: reduce) {
	.Calendars_event_composer_tool .Calendars_step.Yoga_composer_flash {
		animation: none;
	}
}

/* ===========================================================================
   Issue #81 — Invite dialog: the three method icons were white-on-white
   ---------------------------------------------------------------------------
   Mechanism (same family as the "Dark mode causes white-on-white" gotcha):
   Q.css's `@media (prefers-color-scheme: dark)` block (Q.css:1186-1222) sets
   BOTH `color: white` and `fill: white` on `.Q_overlay` / `.Q_fullscreen_dialog`.
   The Yoga dark-mode override earlier in this file re-lights `background` and
   `color` for those dialogs but never re-lights `fill` — so with OS dark mode
   on, the dialog body is forced back to #fff while inherited `fill: white`
   survives. The captions stayed readable (they follow `color`) and only the
   icons vanished, which is exactly what #81 reports.

   The three icons are inline <svg> in
   Streams/views/Streams/templates/invite/modernDialog.handlebars, and none of
   their <path> elements carry a fill attribute — so `fill` inherits from the
   wrapper and one declaration colors all three.

   Declared unconditionally (not inside a prefers-color-scheme query) so the
   icons are correct in both schemes; specificity 0,2,x beats Q.css's 0,1,0.
   =========================================================================== */
.Streams_invite_modern_dialog .Streams_invite_option_icon,
.Streams_invite_modern_dialog .Streams_invite_option_icon svg,
.Streams_invite_modern_dialog .Streams_invite_option_icon svg path {
	fill: #333;
}

/* ===========================================================================
   Issue #82 — Footer (Terms of Use + copyright) on mobile and tablet
   ---------------------------------------------------------------------------
   `#footer_slot` is now emitted by all three layouts, not just desktop.php.
   `#page` is a flex column on every form factor (Q_initialExtras.php always
   adds Q_layout_sidebar or Q_layout_widebar, and .Q_mobile #page is flexed
   above), and `.Communities #content_slot` is `flex: 1` — so the footer must
   declare itself non-flexible or the column will squash it to nothing on the
   short viewports where it was missing in the first place.
   =========================================================================== */
#footer_slot {
	flex: 0 0 auto;
}

/* On mobile the footer bar is gone entirely — on a fixed-height shell even one
   line is too expensive. The Terms link is surfaced elsewhere on mobile
   instead (the /terms route itself is unaffected). */
.Q_mobile #footer {
	display: none;
}

/* The mobile replacement: a small legal line (Terms + ©) rendered server-side
   at the bottom of the welcome page and injected by Yoga.js into the /me
   column. Hidden everywhere the footer bar already covers it. */
.Yoga_legal {
	display: none;
}
.Q_mobile .Yoga_legal {
	display: flex;
	justify-content: center;
	align-items: baseline;
	gap: 12px;
	padding: 14px 10px;
}
.Q_mobile .Yoga_legal a {
	color: #333;
	font-size: 0.8rem;
	text-decoration: underline;
}
.Q_mobile .Yoga_legal span {
	color: #666;
	font-size: 0.75rem;
}
/* ---------------------------------------------------------------------------
   /me profile header (issue #85)

   Communities/column/me.php wraps the avatar in .Communities_avatar_section,
   a flex row. Two things then go wrong on this page, and neither is visible
   from the markup alone:

   1. Communities/css/columns/me.css still styles the avatar through
      `.Communities_me_column > .Users_avatar_tool > .Users_avatar_name` — a
      *direct child* chain that the .Communities_avatar_section wrapper broke,
      so the 10px gap it intends between icon and name is silently dropped.
      The only rules from that file still landing on the header are
      `#Users_avatar-Communities_me_tool .Streams_username / .Streams_firstName
      / .Streams_lastName { display: block }`, which is precisely why the
      header reads as three bare stacked lines of equal weight.

   2. Yoga.js flags any <img> that fails to load with .Yoga_img_broken and the
      rule above hides it with `display: none !important`. That is right for
      event curtains and list rows, but for the single 80px avatar this page is
      built around it turns "broken icon" into "no icon at all" and collapses
      the row onto the text.

   Fixed in the app rather than the plugin: give the section a real row layout,
   keep a broken avatar as a neutral placeholder box instead of removing it,
   and give the three name lines a hierarchy so the block reads as a profile
   header. Scoped to the /me column, so nothing else inherits it.
--------------------------------------------------------------------------- */
.Communities_me_column .Communities_avatar_section .Users_avatar_tool {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-height: 80px;
}
.Communities_me_column .Communities_avatar_section .Users_avatar_icon {
	flex: 0 0 80px;
	width: 80px;
	height: 80px;
	border-radius: 8px;
	object-fit: cover;
}
/* Keep the avatar's box when its src 404s: the element stays laid out as an
   empty tile so the header doesn't collapse. `display` needs !important to
   beat `.Yoga_img_broken`; `color: transparent` suppresses the alt text. */
.Communities_me_column .Communities_avatar_section img.Yoga_img_broken {
	display: block !important;
	color: transparent;
	background: var(--column-bg-color, #FFF8EC);
	border: 1px solid rgba(0, 0, 0, 0.08);
}
.Communities_me_column .Communities_avatar_section .Users_avatar_name {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	min-width: 0;
}
.Communities_me_column .Communities_avatar_section .Streams_firstName,
.Communities_me_column .Communities_avatar_section .Streams_lastName {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
}
/* DOM order is username, firstName, lastName (the tool is rendered with
   show => 'u f l'), so reorder the username to read as the subtitle. */
.Communities_me_column .Communities_avatar_section .Streams_username {
	font-size: 14px;
	opacity: 0.7;
	order: 1;
}

/* Editing a name line in that header: Save/Cancel were invisible and the header
   jumped. Three independent causes, all outside this file:

   1. Users.css:277 gives `.Users_avatar_name` `overflow: hidden`. Q/inplace
      renders `.Q_inplace_tool_buttons` absolutely at `top: <input height>`, i.e.
      *below* the input and therefore past the name box's bottom edge — so the
      buttons were laid out and painted, then clipped away to a 1-2px sliver.
      Q/inplace already puts `Q_editing` on every ancestor while a field is open
      (inplace.js `_beganEditing`), which is exactly the hook for un-clipping,
      so the resting ellipsis behaviour is untouched.

   2. The buttons row is sized by JS to the *input's* width
      (inplace.js: `width: container_span.outerWidth()`), ~95px here, which is
      narrower than Cancel + Save; and inplace.css sets `line-height: 1px` on it,
      collapsing the row so the two buttons overlap when they wrap. Undo both —
      `width` needs !important because JS writes it inline.

   3. `align-items: center` on the avatar row re-centres everything when the
      name box grows (80px -> 96px) as the static span is swapped for the taller
      input: the icon slid down 8px and the name lines up 10px on every click.
      At rest the icon and the name block are both 80px, so flex-start renders
      identically and only removes the jump.

   Note Save staying hidden until you actually type is deliberate, not a bug
   (inplace.js `_updateSaveButton`). Cancel should be visible the whole time. */
.Communities_me_column .Communities_avatar_section .Users_avatar_name.Q_editing {
	overflow: visible;
}
.Communities_me_column .Communities_avatar_section .Q_inplace_tool_buttons {
	width: auto !important;
	min-width: 0;
	line-height: normal;
	white-space: nowrap;
	margin-top: 2px;
}

/* ---------------------------------------------------------------------------
   #91 (2): the sender's name inside a received chat bubble is near-invisible.

   Two independent causes stack:

   1. chat.css declares its bubble text colors as :root variables and flips
      them in an @media (prefers-color-scheme: dark) block:
        --chat-to-me-text-color: black    (light scheme)
        --chat-to-me-text-color: white    (dark scheme)
      then paints every descendant with
        .Streams_chat_messages .Streams_chat_to_me * { color: var(...) }
      That selector is 0,2,1. This app's dark-mode antidote higher up in this
      file is `#content_slot, #content, .Q_columns_column { color: #333 }` at
      0,1,0, so it loses — and the app's own
      `.Streams_chat_to_me .Streams_chat_bubble { color: #222 }` is 0,2,0,
      which loses too and in any case only colors the bubble, not the
      descendants the * rule reaches. With the OS in dark mode the received
      bubble therefore paints white text on this app's light grey
      (#d2d3d5 - #e5e5e5) bubble. Yoga is a light-only app; that whole
      flip is unwanted here.

   2. `.Streams_chat_tool .Streams_chat_bubble .Users_avatar_name { opacity: .8 }`
      further up in this file fades the name, and nothing distinguishes it
      from the message text otherwise, so even at full contrast it does not
      read as a name.

   Fixed by pinning the variables for both schemes (app CSS loads after the
   plugin's, and a media query adds no specificity, so a later :root wins in
   both) and then re-stating the name explicitly at 0,4,0 — high enough to
   beat the platform's * rule no matter what order the tool's stylesheet
   happens to load in.
--------------------------------------------------------------------------- */
/* stylelint-disable-next-line no-duplicate-selectors -- kept beside the comment that explains it; no other :root here sets these properties, so the split is order-safe (#978) */
:root {
	--chat-to-me-text-color: #222;
	--chat-from-me-text-color: var(--chat-text-color, #3D2800);
}

.Streams_chat_messages .Streams_chat_item .Streams_chat_bubble .Users_avatar_name,
.Streams_chat_messages .Streams_chat_item .Streams_chat_bubble .Users_avatar_name * {
	opacity: 1;
	font-weight: 600;
}
.Streams_chat_messages .Streams_chat_to_me .Streams_chat_bubble .Users_avatar_name,
.Streams_chat_messages .Streams_chat_to_me .Streams_chat_bubble .Users_avatar_name * {
	color: #1c2a3a;
}
.Streams_chat_messages .Streams_chat_from_me .Streams_chat_bubble .Users_avatar_name,
.Streams_chat_messages .Streams_chat_from_me .Streams_chat_bubble .Users_avatar_name * {
	color: var(--chat-text-color, #3D2800);
}

/* #91 (3): the timestamp now carries a title with the absolute date and time,
   so give it the affordance that says so. */
.Streams_chat_item .Streams_chat_timestamp[title] {
	cursor: help;
}

/* ---------------------------------------------------------------------------
 * Accessibility (#92)
 *
 * Tap targets that are divs with pointer handlers, not buttons. Without
 * user-select:none a slightly draggy tap on a class card starts a text
 * selection on the date instead of activating the card, and iOS pops its
 * callout menu on a long press. Scoped to the card/control chrome only —
 * never to inputs, chat messages or event descriptions, where selecting text
 * is the point.
 * ------------------------------------------------------------------------ */
.Calendars_event_preview_tool,
.Calendars_event_preview_tool .Calendars_event_preview_container,
.Calendars_event_preview_tool .Calendars_event_title,
.Calendars_event_preview_tool .Calendars_event_info,
#dashboard .Q_tabs_tab,
#dashboard .Q_tabs_tab .Q_tabs_title,
#dashboard_user .Users_status_avatar,
.Users_status_login,
#feedback_button {
	-webkit-touch-callout: none;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

/*
 * These elements only became focusable in Yoga.js's a11y shim (role=button +
 * tabindex), so nothing had ever given them a focus ring. :focus-visible keeps
 * it off for pointer users, who already get the platform's press effects.
 *
 * The `html` prefix is load-bearing: Communities.css has
 * `html.Communities :focus { outline: 0 }` (specificity 0,2,1), which beat a
 * bare `[data-Yoga-a11y]:focus-visible` (0,2,0) -- so until #869 every shim
 * element except the dashboard tabs (whose #dashboard selector outranks it)
 * got no ring at all. Equal specificity, later stylesheet: this wins.
 */
#dashboard .Q_tabs_tab > a:focus-visible,
html [data-Yoga-a11y]:focus-visible {
	outline: 3px solid var(--dashboard-main-bg-color, #F2A922);
	outline-offset: 2px;
	border-radius: 4px;
}

/*
 * aria-disabled is the only signal a screen reader gets for a gated composer
 * step (the platform communicates it with opacity alone). Give it a cursor
 * that agrees, so the state is not opacity-only for sighted users either. The
 * step keeps its click handler — Yoga/composer uses it to explain what is
 * blocking — so pointer-events stays untouched here.
 */
.Calendars_step [aria-disabled="true"],
.Calendars_step[aria-disabled="true"] .Q_button {
	cursor: not-allowed;
}

/*
 * Read-only Streams/inplace: no placeholder (#90).
 *
 * A viewer cannot edit the event title or description, but Streams/inplace
 * still substitutes placeholder markup for an empty value on every field
 * change — and with no child Q/inplace tool to read the text from, it
 * interpolates null and prints the word "null"
 * (Streams/web/js/tools/inplace.js:87-92). Yoga.js marks those tools
 * .Yoga_inplace_readonly; the rule has to live in CSS rather than in that
 * shim because the markup is rebuilt from scratch each time.
 */
.Yoga_inplace_readonly .Q_placeholder {
	display: none;
}

/*
 * Placeholder contrast (#670).
 *
 * Q.css:559 paints every .Q_placeholder #999 and .Q_focus .Q_placeholder #aaa.
 * Against this app's light content background those are ~2.8:1 and ~2.3:1 —
 * both short of WCAG AA's 4.5:1 for body text. #666 is ~5.7:1 on white, which
 * keeps the "this is a hint, not a value" greyness while clearing it.
 *
 * There are TWO unrelated things called .Q_placeholder, and they need different
 * treatment, which is why this is two rules rather than one selector list.
 *
 * 1. The Q/inplace tool's placeholder is a plain <span class="Q_placeholder">
 *    written into the static span by inplace.js (lines 69 and 426) with no
 *    inline style at all. An ordinary rule reaches it. The selectors below
 *    restate the platform's own at equal-or-greater specificity rather than
 *    relying on load order, because inplace.css is a TOOL stylesheet added by
 *    Q.addStylesheet at activation time — "app CSS loads last" is not
 *    guaranteed for that family (see the chat.css note in
 *    docs/qbix-gotchas.md).
 */
.Q_placeholder,
.Q_inplace_tool .Q_inplace_tool_static > .Q_placeholder,
.Q_inplace_tool .Q_inplace_tool_blockstatic > .Q_placeholder {
	color: #666;
}

/*
 * 2. The input placeholders that jQuery.fn.placeholders builds (the login
 *    dialog's, among others) are a different animal: placeholders.js:121-145
 *    creates the div with `color` copied from the input's own computed colour
 *    and `opacity: 0.5`, BOTH INLINE. Inline styles outrank every stylesheet
 *    rule, so Q.css's own .Q_placeholder colour is dead code for these and the
 *    rule above cannot reach them either — which is exactly how a first pass at
 *    #670 darkened the event column and left the login dialog failing.
 *
 *    So both properties need !important, and the opacity is not optional: at
 *    0.5 the effective contrast is roughly halved whatever colour wins, so
 *    setting only the colour still fails. Nothing animates that opacity
 *    (placeholders.js names it once, at line 143), and visibility is toggled
 *    with .hide()/.show() rather than through it, so pinning it to 1 changes
 *    nothing but the contrast.
 */
.Q_placeholders_container > .Q_placeholder,
.Q_focus > .Q_placeholder,
.Q_focus .Q_placeholder {
	color: #666 !important;
	opacity: 1 !important;
}

/* ---------------------------------------------------------------------------
   #93 -- Event detail column polish

   Four independent defects on the Calendars/event column, grouped here
   because they all show up on the same screen. The 100-empty-avatar-slots
   half of #93 is NOT here: it is a config override in
   apps/yoga/Yoga/config/app.json (Calendars/events/defaults/participants),
   because the count is a tool option, not a style.
--------------------------------------------------------------------------- */

/* (1) The participants strip escapes its container.

   Streams/participants lays its avatars out as inline-blocks inside
   .Streams_participants_container (Streams.css:190-201). Inline-block wraps,
   so the strip grows downward as attendees are added, and because
   .Users_avatar_tool boxes have unequal heights -- a blank avatar contributes
   a "&nbsp;" name (Users/avatar.js:216) while a real one contributes a name
   that may wrap to two lines -- rows of a wrapped strip sit at different
   baselines, which is the "names above/below their icons" symptom.

   Make the strip one non-wrapping row that scrolls horizontally, and give
   every item the same fixed-width column box so the icon is always above its
   name. Then the strip's height is constant no matter how many attendees
   there are, and it cannot push past its container. */
#page .Calendars_event_tool .Calendars_event_participants .Streams_participants_container {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 4px;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	padding-bottom: 4px;
	max-width: 100%;
}
#page .Calendars_event_tool .Calendars_event_participants .Streams_participants_avatars,
#page .Calendars_event_tool .Calendars_event_participants .Streams_participants_blanks {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 4px;
}
#page .Calendars_event_tool .Calendars_event_participants .Users_avatar_tool,
#page .Calendars_event_tool .Calendars_event_participants .Streams_participants_invite {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	flex: 0 0 auto;
	width: 56px;
	max-width: 56px;
	padding: 3px;
	box-sizing: border-box;
}
/* The invite BUTTON (a separate element from .Streams_participants_invite --
   participants.js builds both) carries a text label, so it keeps its natural
   width and only opts out of shrinking. */
#page .Calendars_event_tool .Calendars_event_participants .Streams_participants_invite_button {
	flex: 0 0 auto;
	align-self: flex-start;
}
#page .Calendars_event_tool .Calendars_event_participants .Streams_invite_icon {
	width: 40px;
	height: 40px;
	flex: 0 0 auto;
}
#page .Calendars_event_tool .Calendars_event_participants .Users_avatar_icon {
	width: 40px;
	height: 40px;
	object-fit: cover;
	flex: 0 0 auto;
}
#page .Calendars_event_tool .Calendars_event_participants .Users_avatar_name {
	width: 100%;
	line-height: 1.2;
	max-height: 2.4em;
	overflow: hidden;
	text-align: center;
}
/* The tool's own "See All" control animates the tool's HEIGHT
   (participants.js:407-427) to reveal a wrapped strip. A strip that scrolls
   sideways has nothing to reveal, so the control would only ever collapse the
   row to zero. It also ships with no stylesheet anywhere in the platform --
   it renders as a bare expand.png next to the words "See All". Drop it here;
   horizontal scrolling is the affordance now. */
#page .Calendars_event_tool .Calendars_event_participants .Streams_participants_controls {
	display: none;
}

/* (2) The close X floats over the column's content.

   The event column is opened with Q_columns_hideTitle (app.json,
   Q/columns/classes/event), and the block further up this file restores its
   close X by turning .Q_columns_title into a 50x50 corner overlay. That
   overlay is absolutely positioned against the COLUMN, while the content
   scrolls inside .Q_column_slot (columns.css:120-127, overflow-y: auto). So
   the X is pinned at the top-right while the About card and everything else
   slides underneath it -- and the X is white-on-white the moment the photo
   header has scrolled away.

   Fixing the overlap by reserving space would mean reserving it on every
   element that can ever scroll past, so instead make the X legible against
   anything: a small translucent chip that reads on the photo header and on
   white content alike. */
.Communities .Q_columns_column.Q_columns_hideTitle .Q_columns_title .Q_close {
	width: 36px;
	height: 36px;
	min-width: 36px;
	margin: 7px;
	padding: 0;
	top: 0;
	right: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.4);
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	pointer-events: auto; /* the title bar above is pointer-events: none */
}

/* (2b) The mobile half of the same item: "long titles collide with the X".

   Q does reserve a gutter for the close X, but only on the container and only
   away from index 0:

     .Q_columns_column:not([data-index='0']) .Q_columns_title_container
         { width: calc(100% - 50px) }        -- columns.css:109

   while the X itself is `position: absolute; right: 5px; width: auto;
   height: 100%` (columns.css:66-85). Its width is therefore whatever glyph
   the app happens to draw into it, and the 50px above is an assumption about
   that glyph rather than a guarantee about it. Measured live in this app at a
   390px viewport: .Q_title_slot ellipsizes at x=330 and the X starts at
   x=345, so the invariant currently holds with 15px to spare -- but nothing
   enforces it. Widen the glyph (or put a title on an index-0 column) and the
   title text runs straight under the X, because .Q_title_slot's
   overflow:hidden clips against its container, not against the X.

   Two rules make it hold by construction instead of by coincidence, without
   changing anything that renders correctly today: cap the X at the gutter it
   is allowed to occupy (50px reservation less its own 5px right offset), and
   apply the reservation to the container unconditionally as a max-width, so
   it survives a column whose index the platform rule skips. Both are no-ops
   on the current glyph -- they only bound the failure mode. */
.Communities .Q_columns_column:not(.Q_columns_hideTitle) .Q_columns_title > .Q_close {
	max-width: 45px;
	box-sizing: border-box;
}
.Communities .Q_columns_column:not(.Q_columns_hideTitle) .Q_columns_title .Q_columns_title_container {
	max-width: calc(100% - 50px);
}

/* (3) Host/admin rows carry an unfinished red debug outline.

   Calendars/web/css/event.css:439 puts `border: 1px solid red` on every
   .Calendars_aspect_admin row, and :450 puts a second `border: solid 1px
   #bf1118` on the Cancel Class row. The event-detail refinements above set
   only `border-bottom`, so the plugin's top/left/right red edges survive and
   the rows read as half-styled. Neutralise both, then give Cancel Class a
   deliberate destructive treatment (red label and icon) rather than a red
   box, so the signal stays without the debug look. */
#page .Calendars_event_tool .Calendars_info > .Q_button.Calendars_aspect_admin,
#page .Calendars_event_tool .Calendars_info > .Q_button.Calendars_aspect_checkin,
#page .Calendars_event_tool .Calendars_info > .Q_button.Calendars_aspect_close {
	border: none;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	background: transparent;
	color: inherit;
}
#page .Calendars_event_tool .Calendars_info > .Q_button.Calendars_aspect_close,
#page .Calendars_event_tool .Calendars_info > .Q_button.Calendars_aspect_close .Calendars_info_content,
#page .Calendars_event_tool .Calendars_info > .Q_button.Calendars_aspect_close .Calendars_info_icon {
	color: #bf1118;
}

/* (4) Cancel Class renders a giant washed-out X behind its label.

   Every other row's icon is an icon-font glyph, but the closeEvent row is
   `<img src="Calendars/img/white/close.png">` (Calendars event.js template).
   That file is 128x128 and its artwork is WHITE. The .Calendars_info_icon box
   is 32x32 inline-flex with no sizing on the img and no overflow clip, so the
   image renders at its natural 128px, spills across the row behind the text,
   and is near-invisible on the light background.

   Hide the img and draw Lucide's x instead -- the same glyph the column
   close X and the dialog close buttons use, so every X in the app comes from
   one face (#87). This previously drew \e91c from qplatform-communities,
   which worked only because Communities happens to load that face on every
   page. The max-width guard below stops any other oversized <img> icon doing
   the same thing. */
#page .Calendars_event_tool .Calendars_info_icon img {
	max-width: 100%;
	max-height: 100%;
}
#page .Calendars_event_tool .Calendars_aspect_close .Calendars_info_icon img {
	display: none;
}
#page .Calendars_event_tool .Calendars_aspect_close .Calendars_info_icon::before {
	content: "\e1b2"; /* lucide-x — face from the shared icon rule */
	font-size: 24px;
	line-height: 1;
	color: inherit;
}

/* ---------------------------------------------------------------------------
   #94 -- Community page polish

   Four defects on the /community column. The overlapping role tiles are fixed
   in apps/yoga/Yoga/web/js/Yoga.js (Q.Tool.define.options for
   Communities/roles) because the overlap is produced by a running JS timer,
   not by a style; the sizing for the mode it switches into is here.
--------------------------------------------------------------------------- */

/* (1) The member-search placeholder is invisible.

   `Streams/userChooser`'s input takes `color: var(--content-fg-color)`
   (Communities/css/Communities.css:288-295, and the same for the /people
   column at Communities/css/columns/people.css:22). Q.css declares that
   variable as `black` at :root (Q.css:14) and re-declares it as **white**
   inside `@media (prefers-color-scheme: dark)` (Q.css:1186-1188).

   The dark-mode block further up this file re-lights `color` on a fixed list
   of containers, but a custom property is not `color` -- it is a third
   inherited thing to re-light, alongside `color` and `fill` (see #81). So with
   OS dark mode on, this input's text and placeholder computed to white on the
   cream column.

   Declare it unconditionally: Yoga.css loads after Q.css, and a plain :root
   rule beats an earlier one inside a media query at equal specificity. */
/* stylelint-disable-next-line no-duplicate-selectors -- kept beside the comment that explains it; no other :root here sets these properties, so the split is order-safe (#978) */
:root {
	--content-fg-color: #333;
}
/* And make the placeholder read as a placeholder rather than as faint body
   text -- the input has no border box of its own, so this is the only thing
   telling the user it is a field. */
input[name=query].Streams_userChooser_input::placeholder,
input[name=query].Communities_conversationChooser_input::placeholder,
input[name=query].Communities_eventChooser_input::placeholder {
	color: #8A8A8A;
	opacity: 1;
}

/* (2) The bottom filter bar mixes two unrelated palettes.

   "Everyone" is `.Q_aspect_who`, which Q.css:450 hard-codes to #394ad5 --
   note it does NOT read --Q-aspect-people-text-color, so the app palette
   value for that aspect is a no-op here. "All Interests" is
   `.Streams_aspect_interests`, which Communities.css:245-248 sets from
   --Q-aspect-interests-text-color and then immediately overrides at :253-257
   with --Q-aspect-what-text-color (#000 in this app). Their two `<i>` icons
   pick up a third and fourth colour from Communities/css/icons.css.

   Give the whole bar one treatment, scoped to the community column's controls
   so no other column's triggers change. */
.Q_controls_slot .Communities_community_controls .Q_controls_trigger,
.Q_controls_slot .Communities_community_controls .Communities_filter_value,
.Q_controls_slot .Communities_community_controls .Communities_filter_value.Q_aspect_who,
.Q_controls_slot .Communities_community_controls .Communities_filter_value.Streams_aspect_interests,
.Q_controls_slot .Communities_community_controls .Q_controls_trigger > i {
	color: var(--column-title-color);
	border-color: transparent;
}
.Q_controls_slot .Communities_community_controls .Q_controls_trigger {
	font-size: 15px;
}
.Q_controls_slot .Communities_community_controls .Q_controls_trigger > i {
	margin-right: 4px;
}

/* (3) The member grid does not reflow.

   `#Communities_community_column` is `white-space: nowrap`
   (Communities/css/columns/community.css:79-84). The rescue for the avatar
   list is `html #Users_list_tool { white-space: normal }`
   (Communities/css/columns/people.css:43-49) -- keyed to the element **id**,
   which only exists when the tool is rendered without one. The /people column
   does exactly that, but the /community column renders
   `Q::tool('Users/list', ..., "communityProfile")`, so its element is
   `#Users_list-communityProfile_tool` and the rescue misses it. The avatars
   are inline-blocks (Streams.css:190) inside a nowrap ancestor, in a column
   slot that is `overflow: hidden` (community.css:64-66).

   Lay the list out as a real wrapping grid instead of relying on inline-block
   flow: equal-width tiles, top-aligned so a two-line name cannot drag its
   whole row down, and white-space reset so the inherited nowrap stops
   mattering whatever the tool's id happens to be. */
.Q_column_community #Communities_profile_people .Users_list_tool {
	white-space: normal;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	align-content: flex-start;
	gap: 12px 10px;
	padding: 10px;
	overflow-y: auto;
	/* community.css:143-146 already gives this `flex: 1` inside the section's
	   column flexbox; min-height: 0 is what lets it actually scroll rather
	   than stretch its parent. */
	min-height: 0;
}
.Q_column_community #Communities_profile_people .Users_list_tool .Users_avatar_tool {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 0 0 auto;
	width: 88px;
	max-width: 88px;
	margin: 0;
}
.Q_column_community #Communities_profile_people .Users_list_tool .Users_avatar_icon {
	width: 80px;
	height: 80px;
	object-fit: cover;
	flex: 0 0 auto;
}
.Q_column_community #Communities_profile_people .Users_list_tool .Users_avatar_name {
	width: 100%;
	text-align: center;
	line-height: 1.2;
	max-height: 2.4em;
	overflow: hidden;
	word-break: normal;
	overflow-wrap: anywhere; /* = the deprecated word-break: break-word */
}

/* (4) Role tiles -- sizing for the all-at-once mode Yoga.js switches on.

   With `transition: false` the tool keeps its own wrapping flex row
   (Communities/css/tools/roles.css:1-9) and drops the fixed 80x80 box, so the
   tiles no longer overlap. The remaining problem is the label width: this
   community's role titles are "Calendars Admins" and "Calendars Staff", and
   the shipped `max-width: 70px` with `overflow: hidden` cuts them. Widen and
   let them wrap under their icon. */
.Q_column_community .Communities_roles_tool {
	justify-content: flex-start;
	margin-bottom: 6px;
}
.Q_column_community .Communities_roles_tool .Communities_roles_label {
	min-width: 56px;
	max-width: 92px;
	overflow: visible;
	white-space: normal;
	word-break: normal;
	overflow-wrap: anywhere; /* = the deprecated word-break: break-word */
}

/* ==========================================================================
   iOS 26: body computes to height 0, clipping the whole app  (ro#298)
   ==========================================================================
   Q.css sets height four times on `html, body` -- 100%, -moz-fill-available,
   -webkit-fill-available, fill-available -- so the last *supported* one wins
   and in WebKit body's height comes from -webkit-fill-available. On iOS 26
   Safari that resolves to 0 for body while html still gets the viewport
   height. Measured on the reporting device: htmlH 664px, bodyH 0px, both
   safe-area insets 0.

   body carries Q's lazyload tool, so it is position:relative and therefore
   #page's containing block. #page is absolute and sized
   `calc(100% - insets - dashboard)`, which against a zero-height body clamps
   to 0; #content_slot and #content (height:100%) collapse with it, and
   #content_slot's overflow:auto then clips every column. The contents keep
   correct geometry the whole time -- the column still measures 375x500 with
   all 15 previews populated -- which is why this reads as "the app renders
   chrome around a blank rectangle" and why getBoundingClientRect probes all
   insist the content is on screen: they report layout, not clipping.

   dvh is defined against the viewport, so it is immune to the
   -webkit-fill-available quirk, and @supports keeps older browsers on their
   existing (working) cascade. Confirmed by the reporter on the affected
   device; no change in WebKit mobile or Chromium desktop, which never
   reproduced the bug.

   NOT min-height: that raises an element's *used* height, while a
   descendant's percentage resolves against its *computed* height, which
   stays 0. Attempted in f782725, reverted in bac1f2b -- don't retry it.

   Belongs upstream in Q.css; kept app-side so it ships without the
   vendored-Platform harness gate. See ro#298.
   ========================================================================== */
@supports (height: 100dvh) {
  body {
    height: 100dvh;
  }
}

/* ==========================================================================
   A class price is not an error  (ro#80)
   ==========================================================================
   Calendars styles the event page's price line
   (.Calendars_participants_info.Calendars_payment, Calendars/css/event.css:36)
   as bold red on the same element it uses for the muted grey participants
   line. Red plus bold is the app's error idiom everywhere else, so
   "Price to Attend: 25 USD" reads as something having gone wrong rather than
   as what the class costs -- reported alongside the currency mismatch in #80.

   Keep the emphasis (it is the one number a member is looking for), drop the
   alarm. Scoped to that exact pair of classes so the grey participants line
   next to it is untouched.
   ========================================================================== */
.Calendars_participants_info.Calendars_payment {
	color: var(--price-color, #3D2800);
}

/* ==========================================================================
   Expanded event card: grey reservation buttons and the scroller  (ro#869)
   ==========================================================================
   (1) Communities/css/columns/event.css paints Cancel / Update Reservation
   white on `background: grey` (#808080), 3.9:1 -- under WCAG AA's 4.5:1 for
   16px text. Only the shade changes: #666 is 5.7:1 and still reads as the
   muted secondary action next to the green Reserve button. Same selector
   specificity as the platform rule; app CSS loads later, so it wins. The app
   is light-only (color-scheme: light only, above), so there is no dark
   variant to keep in step.

   (2) Yoga.js (a11y shim, section 5) makes the event column's .Q_column_slot
   a focusable region so the keyboard can scroll it. The shared
   [data-Yoga-a11y]:focus-visible ring sits 2px OUTSIDE its element, which
   the column's overflow:hidden would clip on a full-height scroller, so draw
   this one inside the edge instead. :focus-visible keeps it off for mouse
   clicks inside the column.
   ========================================================================== */
#page .Communities_column_event button[name=cancelReservation],
#page .Communities_column_event button[name=updateReservation] {
	background: #666;
}
.Communities_column_event > .Q_column_slot[data-Yoga-a11y="region"]:focus-visible {
	outline-offset: -3px;
	border-radius: 0;
}

/* Sign-up agreements and the waiver page (ro#959). The checkbox sits beside
   its label rather than flush against the first word, and the waiver keeps
   its own visibly separate section on the sign-up form. */
.Yoga_legal_check {
	display: flex;
	align-items: flex-start;
	gap: 0.5em;
	margin: 0.5em 0;
	text-align: left;
}
.Yoga_legal_check input[type="checkbox"] {
	flex: none;
	margin-top: 0.25em;
}
.Yoga_signup_legal {
	margin: 0.75em 0;
	text-align: left;
}
.Yoga_signup_waiver {
	margin-top: 0.75em;
	padding-top: 0.5em;
	border-top: 1px solid rgba(0, 0, 0, 0.15);
}
.Yoga_signup_waiver h4 {
	margin: 0.25em 0;
}
.Yoga_legal_signature label {
	display: block;
	margin-bottom: 0.25em;
}
.Yoga_legal_signature input[type="text"] {
	width: 100%;
	box-sizing: border-box;
}
.Yoga_signup_waiver_recorded {
	font-size: 0.85em;
	opacity: 0.8;
}
.Yoga_waiver,
.Yoga_accept {
	max-width: 46em;
	margin: 0 auto;
	padding: 1em;
}
.Yoga_account_agreements li {
	margin: 0.35em 0;
}
/* No repeat days in a class series (ro#1088): the member's "repeat" control
   on a recurring event. The server refuses the save anyway (Yoga_Renewals);
   this keeps members from meeting that refusal. The admin's series-schedule
   control is .Calendars_aspect_recurring and stays. */
.Calendars_event_tool .Calendars_recurring_setting {
	display: none;
}
