/* CLAUDE #156: the TPM's pages (tpm_app), what the three platforms' stylesheets share: the pages' structure only, never their look. Each
   platform has its own look in its own stylesheet (owner, 2026-11-14: "Have separate CSS for desktop vs iOS vs Android"): ios.css,
   android.css or desktop.css, which tpm_app/lib.php's tpm_platform() picks and loads after this one. The class names are the old app's
   (breaklegs' static_com/app/css.css), so its pages keep their markup as they're ported. */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
}

h1,
h3,
p,
ul,
form {
	margin: 0;
}

ul {
	padding: 0;
	list-style: none;
}

a {
	text-decoration: none;
}

button {
	font: inherit;
	cursor: pointer;
}

/* icons, from the site's icon kit (static_app/shared/fontawesome) */
.bar .back::before,
.tabs a::before,
section .view::after,
section .image.none::before {
	font-family: "Font Awesome";
	font-weight: 900;
	font-style: normal;
	line-height: 1;
}

/* the bar: Back, the title, an action. CLAUDE #881: the page's header, as Agent and Good Show's boards' (owner, 2026-11-15: "Now that TPM is
   treated the same as Agent and Good Show, its pages' layout and header design should match. Leave the content as-is"; shared.css's
   main > header), on every platform: in the page, under Break Legs' bar (app-nav.css), as much space above the title as below it; Back small
   above it; the title in Barlow with its place's icon in the yellow accent; the action (a link, or a form's Save) their header's blue button
   on the right. Was each platform's own (ios.css, android.css, desktop.css): fixed to the top on a phone, the title in the system's type */
.bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 1rem;
	padding: 1rem 0;
}

html.mobile .bar {
	padding-inline: 1rem;
}

html:not(.app-nav) .bar { /* a page without Break Legs' bar (tpm_com's): below the phone's status bar */
	padding-top: calc(1rem + env(safe-area-inset-top));
}

.bar h1 {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	color: #ffffff;
	font-family: "Barlow", sans-serif;
	font-size: calc(1.6 * clamp(1rem, 1.75vw, 1.2rem));
	font-weight: 500;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.bar h1::before {
	margin-right: 0.5em;
	color: #facf05;
	font-family: "Font Awesome";
	font-weight: 300;
}

/* its place's icon, the sidebar's (app-nav.css; app_nav.php marks the page html.app-at-<icon>): the TPM's Lobby, a room (its pages too) and
   Upcoming, Profile's places */
html.app-at-lobby .bar h1::before { content: "\f819"; }
html.app-at-room .bar h1::before { content: "\f630"; }
html.app-at-inventory .bar h1::before { content: "\f468"; }
html.app-at-bio .bar h1::before { content: "\f4ff"; }
html.app-at-organizer .bar h1::before { content: "\e201"; }
html.app-at-theatre .bar h1::before { content: "\f19c"; }
html.app-at-calendar .bar h1::before { content: "\f133"; }
html.app-at-you .bar h1::before { content: "\f2c2"; }
html.app-at-casting .bar h1::before { content: "\f507"; }
html.app-at-skills .bar h1::before { content: "\f0ae"; }
html.app-at-training .bar h1::before { content: "\f19d"; } /* CLAUDE #928: Training's graduation cap */
html.app-at-headshot .bar h1::before { content: "\f3e0"; }
html.app-at-availability .bar h1::before { content: "\f017"; }
html.app-at-notifications .bar h1::before { content: "\f0f3"; }
html.app-at-account .bar h1::before { content: "\f4fe"; }
html.app-at-adfree .bar h1::before { content: "\f641"; }
html.app-at-children .bar h1::before { content: "\e4e1"; }
html.app-at-venues .bar h1::before { content: "\f1ad"; }

/* CLAUDE #881: a room section's pages, the members' and the Organizer's, the Organizer's icon for it (owner: "Use the same icons for Room
   sections' pages that are used by Organizer"; its items', below), and the Organizer a notebook (owner: "Use notebook for the Organizer icon");
   tpm_lib.php's TPM_PAGE_ICONS names each page's */
html .bar h1.ic-organizer::before { content: "\e201"; }
html .bar h1.ic-general::before { content: "\f15c"; }
html .bar h1.ic-announcements::before { content: "\f0a1"; }
html .bar h1.ic-chats::before { content: "\f075"; }
html .bar h1.ic-venues::before { content: "\f1ad"; }
html .bar h1.ic-events::before { content: "\f073"; }
html .bar h1.ic-files::before { content: "\f07c"; }
html .bar h1.ic-membership::before { content: "\f2b9"; }
html .bar h1.ic-auditions::before { content: "\f0c0"; }
html .bar h1.ic-listings::before { content: "\f022"; } /* CLAUDE #884: the Theatre Console's pages (agent_app/console/index.php in the app frame), their sidebar places' icons */
html .bar h1.ic-templates::before { content: "\f0ca"; }
html .bar h1.ic-seasons::before { content: "\f145"; }
html .bar h1.ic-posts::before { content: "\f1e0"; }
html .bar h1.ic-embeds::before { content: "\f121"; }

/* CLAUDE #881: a room's buttons (Update Bio, Inventory, Open Organizer) on a phone only: where the sidebar shows, they're its places under the
   room (owner: "Keep them on the page for phones, for now") */
@media (min-width: 768px) {
	html.app-apple section.buttons.room-tools {
		display: none;
	}
}

/* CLAUDE #881: T-Pane mode on a list (owner: "Add T-Pane mode to TPM, where applicable"; as the boards' T-Pane, shared.css): where the
   window's wide enough for both, the list on the left, scrolling on its own, and the chosen row's page in the pane on the right, its edge in
   the yellow accent, the chosen row marked (app_frame.php's app_tpane_on(), tpm/tpane.js); narrower, its rows open their pages as always. Its
   switch is the top bar's (app_nav.php) */
iframe.tpane-details {
	display: none;
}

@media (min-width: 1080px) {
	html.tpane body {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
	}

	html.tpane main {
		flex: 1 1 0;
		min-width: 0;
		max-width: none;
		height: calc(100vh - var(--app-bar-h, 0px));
		min-height: 0;
		overflow: auto;
	}

	html.tpane iframe.tpane-details {
		position: sticky;
		top: var(--app-bar-h, 0px);
		display: block;
		flex: 1 1 0;
		min-width: 0;
		height: calc(100vh - var(--app-bar-h, 0px));
		border: 0;
		border-left: 2px solid #facf05;
	}

	html.tpane main li.chosen {
		box-shadow: inset 3px 0 #facf05;
	}
}

.bar .back {
	display: flex;
	flex-basis: 100%;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 0.35rem;
	color: #58a3ff;
	font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
}

.bar .back::before {
	content: "\f054";
	display: inline-block;
	transform: rotate(180deg);
	font-size: 0.75rem;
}

/* CLAUDE #881: Back only in the web app opened from the home screen, which has no browser's Back (owner: "Hide the added "back" button for
   non-stand-alone browsers"); a header left with nothing in it (a room's) isn't shown */
@media not all and (display-mode: standalone) {
	.bar .back {
		display: none;
	}

	.bar:not(:has(> h1, > .action)) {
		display: none;
	}
}

.bar .action,
.bar button.action {
	margin-left: auto;
	padding: 0.5rem 0.75rem;
	border: 0;
	border-radius: 0.5rem;
	background: #58a3ff;
	color: #000000;
	font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.bar .action:hover {
	filter: brightness(1.1);
	text-decoration: none;
}

@media (max-width: 728px) { /* as the boards' on a phone: the title in Barlow Condensed, the button smaller */
	.bar h1 {
		font-family: "Barlow Condensed", "Barlow", sans-serif;
	}

	.bar .action,
	.bar button.action {
		padding: 0.15rem 0.5rem 0.25rem;
	}
}

/* a section's rows: an image, the words, and a link that's the whole row */
section li {
	position: relative;
	display: flex;
	align-items: center;
}

section .view {
	position: absolute;
	inset: 0;
	z-index: 1;
	font-size: 0;
	color: transparent;
}

section .image {
	flex: none;
	position: relative;
	background: center / cover no-repeat;
}

section .image.none::before {
	content: "\f630";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

section .contents {
	flex: 1;
	min-width: 0;
}

section .contents p {
	overflow-wrap: anywhere;
}

.details_header {
	display: flex;
	align-items: center;
}

.details_header .text {
	min-width: 0;
}

/* the tab bar */
.tabs ul {
	display: flex;
}

.tabs a {
	display: block;
}

.tabs .lobby a::before {
	content: "\f819"; /* CLAUDE #817: popcorn (owner, 2026-11-14), as the old app's Lobby; was door-open */
}

.tabs .profile a::before {
	content: "\f2bd";
}

/* CLAUDE #880: the Profile product's tabs (the members site, app_frame.php): Your Profile (id-card), Notifications (bell), Account (user-gear),
   and Sign In (right-to-bracket) for someone not signed in, as the members site's chrome had them (#868); on desktop, the Profile product is its
   icon, its name for screen readers (owner, 2026-11-15: "Icon only") */
.tabs .your_profile a::before {
	content: "\f2c2";
}

.tabs .notifications a::before {
	content: "\f0f3";
}

.tabs .account a::before {
	content: "\f4fe";
}

.tabs .signin a::before {
	content: "\f2f6";
}

.tabs li.product.profile .words {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* the members site's bar while an admin views as a member or a parent manages a child (members.php's members_view_as_bar()) */
.view-as-bar {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 10;
	display: flex;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	padding: 0.6rem 1rem;
	background: #2b2b30;
	color: #fff;
	font-size: 0.9rem;
}

.view-as-bar a {
	color: #fff;
	text-decoration: underline;
	white-space: nowrap;
}

/* CLAUDE #156: forms (a member's editor, a bio, join): a labeled field, a switch, a checkbox, and the page's buttons */
label.field {
	display: block;
}

label.field > span {
	display: block;
}

label.field input,
label.field textarea {
	display: block;
	width: 100%;
	font: inherit;
	color: inherit;
}

label.field textarea {
	resize: vertical;
	min-height: 8rem;
}

/* CLAUDE #858: a field's note under it (the chat's supported formats) */
label.field > small {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.8rem;
	color: var(--secondaryTextColor);
}

label.switch {
	display: flex;
	align-items: center;
	gap: 1rem;
	cursor: pointer;
}

label.switch > span {
	flex: 1;
	min-width: 0;
}

label.switch small {
	display: block;
}

label.switch input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	flex: none;
	position: relative;
	margin: 0;
	cursor: pointer;
}

label.switch input[type="checkbox"]::after {
	content: "";
	position: absolute;
	border-radius: 50%;
}

/* CLAUDE #848: the Member editor's Permissions, as production's: Show Entire Calendar only for a member who isn't an administrator, Show
   Attendance only with it, and the notes under them only while Administrator is off; the notes' paragraphs a little apart */
.switches:has(> label.admin input:checked) > label.calendar,
.switches:has(> label.admin input:checked) > label.attendance,
.switches:not(:has(> label.calendar input:checked)) > label.attendance,
section:has(> .switches > label.admin input:checked) > footer {
	display: none;
}

section > footer p + p {
	margin-top: 0.4rem;
}

label.check {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	cursor: pointer;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* a member without a photo: their initials */
section .image.initials {
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	letter-spacing: 0.02em;
}

section .about {
	margin-top: 0.35rem;
}

/* CLAUDE #156: the calendar: the Calendar tab, Mine or Everything (a segmented control), a canceled call, an answer's badge (in gray when
   it's from the member's busy hours), the Yes, Maybe, No and Late choices, and the conflicts grid */
.tabs .calendar a::before {
	content: "\f073";
}

nav.segments {
	display: flex;
}

nav.segments a {
	flex: 1;
	text-align: center;
}

li.canceled .text,
th.canceled {
	text-decoration: line-through;
}

section li .answer {
	flex: none;
	margin-left: 0.75rem;
	padding: 0.15rem 0.6rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	white-space: nowrap;
}

.answer-0 {
	background: rgba(52, 199, 89, 0.16);
	color: #1d7f35;
}

.answer-1 {
	background: rgba(255, 149, 0, 0.18);
	color: #a35a00;
}

.answer-2 {
	background: rgba(255, 59, 48, 0.16);
	color: #c2271b;
}

.answer-3 {
	background: rgba(88, 86, 214, 0.16);
	color: #4442b5;
}

/* CLAUDE #881: their colors for a dark page on every platform, as every page is now (were for the dark setting only) */
.answer-0 { color: #5fd47d; }
.answer-1 { color: #ffb340; }
.answer-2 { color: #ff6b61; }
.answer-3 { color: #9a98ff; }

.answer.prefilled,
td.prefilled {
	opacity: 0.6;
	font-style: italic;
}

.answer.not-called {
	background: transparent;
	color: inherit;
	opacity: 0.5;
	font-weight: 400;
}

li.answering {
	flex-wrap: wrap;
}

fieldset.choices {
	display: flex;
	flex: none;
	margin: 0 0 0 0.75rem;
	padding: 0;
	border: 0;
}

fieldset.choices legend {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

fieldset.choices label {
	position: relative;
	cursor: pointer;
}

fieldset.choices input {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

fieldset.choices span {
	display: block;
	padding: 0.35rem 0.6rem;
	font-size: 0.8rem;
	font-weight: 600;
}

fieldset.choices.prefilled input:checked + span {
	font-style: italic;
	background: #636366; /* CLAUDE #897: gray, as the page says ("Answers in gray are from ... busy hours"); was the given answers' accent color, italic only */
	color: #f2f2f7;
}

@media (max-width: 620px) {
	li.answering .contents {
		flex-basis: 100%; /* its own line, above the choices (they shared one, which left it no width) */
	}

	li.answering fieldset.choices {
		width: 100%;
		margin: 0.5rem 0 0;
	}

	li.answering fieldset.choices label {
		flex: 1;
		text-align: center;
	}
}

label.field select {
	display: block;
	width: 100%;
	font: inherit;
	color: inherit;
}

.grid-scroll {
	overflow-x: auto;
}

table.conflicts {
	border-collapse: collapse;
	font-size: 0.8rem;
}

table.conflicts th,
table.conflicts td {
	padding: 0.4rem 0.55rem;
	text-align: center;
	white-space: nowrap;
}

table.conflicts thead th span {
	font-weight: 400;
}

table.conflicts tbody th,
table.conflicts tfoot th {
	position: sticky;
	left: 0;
	z-index: 1; /* CLAUDE #910: above the answers scrolled under it (owner, 2026-11-16: "the person's name should have a higher z-index"): a
	               prefilled or not-called answer is partly see-through (opacity), which drew it over the name */
	text-align: left;
}

/* CLAUDE #910: and their heading, Member (owner: "'Member' should also be static, same as the names below it"), in their background (each
   platform's stylesheet) */
table.conflicts thead th:first-child {
	position: sticky;
	left: 0;
	z-index: 1;
}

table.conflicts td {
	font-weight: 700;
	background: transparent;
}

table.conflicts td.not-called {
	opacity: 0.35;
}

/* CLAUDE #156: a chat: each post a bubble (the member's own on the right), with who posted it above and its time below; a day's line;
   pictures in their bubbles, files as links; and the compose box */
section.posts {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

section.posts > p {
	border: 0;
	background: none;
}

.post {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	max-width: 80%;
}

.post.mine {
	align-self: flex-end;
	align-items: flex-end;
}

.post .bubble {
	padding: 0.5rem 0.8rem;
	overflow-wrap: anywhere;
}

.post .bubble p {
	margin: 0;
}

.post .bubble img {
	display: block;
	max-width: 100%;
	max-height: 18rem;
	border-radius: inherit;
}

.post .bubble:has(img) {
	padding: 0;
	overflow: hidden;
}

.post-name,
.post-time {
	margin: 0.1rem 0.6rem;
	font-size: 0.75rem;
}

p.post-day {
	align-self: center;
	margin: 0.75rem 0 0.25rem;
	font-size: 0.75rem;
	font-weight: 600;
}

label.field input[type="file"] {
	padding: 0.4rem 0;
	border: 0;
	background: none;
}

form.compose p.problem {
	margin: 0 0 0.5rem;
}

/* CLAUDE #881: the message box, as production's (owner: "Style the chat message box and attachment as it is in the current app"; its
   form#send): one bar in the rows' color at the window's bottom, under the posts: the paperclip, the message and Send's paper plane, the
   icons in the accent color, their words for screen readers */
form.compose {
	position: sticky;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin-top: 1rem;
	padding: 0.25rem 0 calc(0.25rem + env(safe-area-inset-bottom));
	border-top: 1px solid var(--horizontalRuleColor, var(--outlineVariant));
	background: var(--foregroundColor, var(--surfaceContainer));
}

form.compose p.problem {
	flex-basis: 100%;
	margin: 0.25rem 1rem;
}

/* CLAUDE #890: a wide page across the window (app_frame.php's "wide": the Console's Listings; owner, 2026-11-16: "full-width, not restricted to
   1024px"); the others stay at the platforms' widths (desktop.css, ios.css, android.css) */
html.wide main {
	max-width: none;
}

main:has(> form.compose) { /* the bar at the window's bottom when scrolled to the end, as production's */
	padding-bottom: 0;
}

form.compose input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

form.compose label.attach,
form.compose button.send {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	min-height: 2.75rem;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--accentColor, var(--primary));
	font-size: 0;
	cursor: pointer;
}

form.compose label.attach span,
form.compose button.send span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

form.compose label.attach::before,
form.compose button.send::before {
	font-family: "Font Awesome";
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
}

form.compose label.attach::before {
	content: "\f0c6";
}

form.compose button.send::before {
	content: "\f1d8";
}

form.compose textarea {
	flex: 1;
	min-width: 0;
	height: 4em; /* production's: two and a half lines */
	margin: 0;
	padding: 0.57rem 0.25rem;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	resize: none;
	outline: none;
}

/* CLAUDE #881: a room's rows as production's (owner: "Format the Room items as they are in production, with the date and times on the
   right"; its css.css): the name, its date (an event: its day) on the right; under it the detail, an event's time on the right */
section.summary li .contents {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 0.75rem;
}

section.summary li .contents::before { /* the line between them */
	content: "";
	flex-basis: 100%;
	order: 4;
}

section.summary li .contents > .text {
	flex: 1;
	min-width: 0;
	order: 1;
}

section.summary li .contents > .secondary-text {
	order: 3;
	margin-left: auto;
	white-space: nowrap;
}

section.summary li .contents > .detail-text {
	flex: 1;
	min-width: 0;
	order: 5;
}

section.summary li .contents > .secondary-detail-text {
	order: 7;
	margin-left: auto;
	white-space: nowrap;
}

/* CLAUDE #156: the inventory: Find and Filter (a disclosure over the list's form, its chevron turned down when open), and an item's photo
   (on its page, and its editor's thumbnail) */
details.filters > summary {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	cursor: pointer;
	list-style: none;
}

details.filters > summary::-webkit-details-marker {
	display: none;
}

details.filters > summary::after {
	content: "\f054";
	font-family: "Font Awesome";
	font-weight: 900;
	font-size: 0.75em;
	transition: transform 0.15s;
}

details.filters[open] > summary::after {
	transform: rotate(90deg);
}

section.inventory-photo img,
p.inventory-photo img {
	display: block;
	max-width: 100%;
	height: auto;
}

section.inventory-photo img {
	max-height: 24rem;
	margin: 0 auto;
}

p.inventory-photo img {
	max-height: 8rem;
	border-radius: 0.5rem;
}

/* CLAUDE #850: General's image (the room's square one, as the room's header shows it), above its picker */
p.room-image img {
	display: block;
	width: 8rem;
	height: 8rem;
	object-fit: cover;
	border-radius: 0.5rem;
}

/* CLAUDE #813: the room's page as the old app's: a room's tab (its Green Room or Board Room), a section's See All link in its heading, a
   summary's words cut at two lines, the Membership cards in a row that scrolls sideways (each photo the shape of a headshot, as the old
   app's), and the buttons at the end */
.tabs .room.production a::before {
	content: "\f4cc"; /* CLAUDE #817: a Green Room's loveseat, a Board Room's office chair (owner, 2026-11-14); was the theatre masks */
}

.tabs .room.theatre a::before {
	content: "\f6c1";
}

section > header a {
	margin-left: auto;
	padding-left: 1rem;
	white-space: nowrap;
	text-transform: none;
	letter-spacing: normal;
}

section .clamp {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

section ul.cards {
	display: flex;
	gap: 0.75rem;
	overflow-x: auto;
	padding: 0.75rem 1rem;
	scroll-snap-type: x proximity;
	scroll-padding-inline: 1rem; /* snapping lines the first card up with the padding, not the edge */
}

section ul.cards li {
	flex: none;
	flex-direction: column;
	align-items: center;
	width: 5.5rem;
	min-height: 0;
	padding: 0;
	gap: 0; /* Android's rows space their parts apart */
	border: 0;
	text-align: center;
	scroll-snap-align: start;
}

section ul.cards .image {
	width: 5rem;
	height: 7.5rem;
	margin: 0 0 0.4rem;
	border-radius: 0.5rem;
}

section ul.cards .text,
section ul.cards .detail-text {
	width: 100%;
	white-space: normal; /* the rows' words stay on one line */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 0.75rem;
	line-height: 1.25;
}

section.buttons {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

section.buttons a,
section.buttons button { /* CLAUDE #880: and a posted one (Your Profile's Sign Out), as the links */
	display: block;
	width: 100%;
	text-align: center;
	font: inherit;
	cursor: pointer;
}

section.buttons button {
	-webkit-appearance: none;
	appearance: none;
	border: 0;
	border-radius: 0; /* a row edge to edge on iOS, as the links; Android's and desktop's give theirs their own */
}

/* CLAUDE #880: Sign Out in the destructive color (owner, 2026-11-15) */
section.buttons .destructive {
	color: var(--destructiveColor, var(--error));
}

/* CLAUDE #817: the room's calendar subscription buttons, as the old app's: a row each, centered, with its calendar's logo; and a chat's
   time beside its name, as the old app's Latest Chat */
section ul.subscribe {
	padding-left: 0;
}

section ul.subscribe li {
	justify-content: center;
	min-height: 0;
	padding: 0;
}

section ul.subscribe a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	width: 100%;
	padding: 0.7rem 1rem;
}

section ul.subscribe .logo {
	flex: none;
	width: 21px;
	height: 21px;
	background: center / contain no-repeat;
}

section .text.with-time {
	display: flex;
	gap: 0.75rem;
}

section .text.with-time span {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

section .text.with-time time {
	flex: none;
	font-size: 0.8em;
}

/* CLAUDE #817: the Organizer's items, as the old Planner's (static_com/app/css.css .nav): each icon white on its own color, the same on
   every platform (owner, 2026-11-14: "Let's try the same background colors for the icons") */
section.manage li::before {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.9rem;
	height: 1.9rem;
	margin-right: 0.9rem;
	border-radius: 0.45rem;
	color: #ffffff;
	font-family: "Font Awesome";
	font-size: 1rem;
	font-weight: 900;
}

section.manage .general::before { content: "\f15c"; background: #ff9502; }
section.manage .announcements::before { content: "\f0a1"; background: #baba07; }
section.manage .chats::before { content: "\f075"; background: #008000; }
section.manage .venues::before { content: "\f1ad"; background: #b5651d; } /* CLAUDE #881: Agent's Venues' building (owner; was location-dot) */
section.manage .events::before { content: "\f073"; background: #fe3b39; }
section.manage .files::before { content: "\f07c"; background: #4169e1; }
section.manage .membership::before { content: "\f2b9"; background: #8c32c7; }
section.manage .templates::before { content: "\f0ca"; background: #219d9c; }
section.manage .seasons::before { content: "\f145"; background: #c73262; font-weight: 400; }
section.manage .script::before { content: "\f70e"; background: #21b7a3; }
section.manage .auditions::before { content: "\f0c0"; background: #269f25; }
section.manage .close::before { content: "\f52a"; background: #636366; } /* CLAUDE #924: Close Production, door-closed */

/* CLAUDE #817: Membership's groups, folded until opened, as the old Planner's (Current, Unassigned and Former Members) */
details.group > summary {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	list-style: none;
}

details.group > summary::-webkit-details-marker {
	display: none;
}

details.group > summary::before {
	content: "\f054";
	font-family: "Font Awesome";
	font-weight: 900;
	font-size: 0.7em;
	transition: transform 0.15s;
}

details.group[open] > summary::before {
	transform: rotate(90deg);
}

/* CLAUDE #822: the Organizer's Events list and event editor, as the old Planner's (tpm_app/manage-events.php, manage-event.php) --------- */

/* the bar's Save, a form's button (tpm_page_start()). CLAUDE #881: Agent's header button, as the bar's links (above) */

.event-editor [hidden] {
	display: none !important;
}

/* an event's row: on the right, its date and how many call times it has; then Copy (the old Duplicate Event), above the row's link */
section li .secondary {
	flex: none;
	margin-left: 0.75rem;
	text-align: right;
}

section li .copy {
	position: relative;
	z-index: 2;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	margin-left: 0.5rem;
	font-size: 0;
}

section li .copy::before {
	content: "\e74c";
	font-family: "Font Awesome";
	font-weight: 900;
	font-size: 1rem;
}

/* a call's row: Delete on its left (shown by the script), its time and who's called, Public, and the whole row opening its sheet */
li.call-row .remove {
	position: relative;
	z-index: 2;
	flex: none;
	margin: 0 0.75rem 0 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: 0;
	line-height: 1;
}

li.call-row .remove::before {
	content: "\f056";
	font-family: "Font Awesome";
	font-weight: 900;
	font-size: 1.35rem;
}

li.call-row .public {
	flex: none;
	margin-left: 0.5rem;
	font-size: 0.8em;
	font-weight: 600;
}

section button.view {
	border: 0;
	background: none;
	padding: 0;
	cursor: pointer;
}

/* the calls' sheets (Edit Call): in the page, under the rows, without the script; with it, each opens over the page, one at a time */
.sheet-bar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.sheet-bar h3 {
	flex: 1;
	min-width: 0;
}

.sheet-bar button {
	border: 0;
	background: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
}

form.scripted .sheet {
	display: none;
}

form.scripted .sheet.open {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 30;
	overflow-y: auto;
	overscroll-behavior: contain;
}

form.scripted .sheet .which,
form.scripted .unscripted {
	display: none;
}

form.scripted .sheet .sheet-bar {
	position: sticky;
	top: 0;
	z-index: 1;
}

html.sheet-open {
	overflow: hidden;
}

/* Create new venue...: its name, address and Save Venue, only while it's picked */
section.venue .new-venue {
	display: none;
}

section.venue:has(option[value="new"]:checked) .new-venue {
	display: block;
}

/* CLAUDE #833: a call's Delete (event-editor.js). On iOS, the old app's .deletable and iOS's lists: the row slides over (its minus, words
   and Public) to show its Delete, which waits past the row's end; elsewhere the trash can at the row's end asks first */
li.call-row {
	overflow: hidden;
}

li.call-row > .remove,
li.call-row > .contents,
li.call-row > .public {
	transition: transform 0.3s ease;
}

li.call-row .confirm-delete {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	width: 5.5rem;
	padding: 0;
	border: 0;
	transform: translateX(100%);
	transition: transform 0.3s ease;
}

li.call-row.deleting > .remove,
li.call-row.deleting > .contents,
li.call-row.deleting > .public {
	transform: translateX(-5.5rem);
}

li.call-row.deleting .confirm-delete {
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	li.call-row > .remove,
	li.call-row > .contents,
	li.call-row > .public,
	li.call-row .confirm-delete {
		transition: none;
	}
}

/* CLAUDE #833: the calls' placeholder (owner, 2026-11-14: "When there are no calls, a placeholder message should say so"; "Just 'No calls'
   is enough"), in place of the empty list: on a new event, and once every call is deleted (event-editor.js takes rows out, so it shows then
   too). iOS hides it: its Add Call row is in the list's place (ios.css) */
section.calls ul.calls:not(:has(li)) {
	display: none;
}

section.calls ul.calls:has(li) + p.no-calls {
	display: none;
}

/* CLAUDE #843: the Organizer's Auditions screens. Available Characters: each row's order number, before its name and above the row's
   link (which covers the row); its words are for screen readers */
section li label.order {
	position: relative;
	z-index: 2;
	flex: none;
	margin-inline-end: 0.75rem;
}

section li label.order input {
	width: 3.5rem;
	text-align: center;
}

section li label.order span,
section.resume input.resume-size {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

/* Auditioner Details: the headshot over the name and time */
section.auditioner {
	text-align: center;
}

section.auditioner .headshot {
	display: block;
	width: 8rem;
	aspect-ratio: 4 / 5;
	margin: 0 auto 0.75rem;
	border-radius: 0.5rem;
	object-fit: cover;
}

/* the résumé on the page, which Enlarge makes taller and Shrink puts back (a switch, no script: the old Planner's two buttons) */
section.resume label.resume-size {
	display: inline-block;
	margin-block-end: 0.5rem;
	cursor: pointer;
}

section.resume label.resume-size .shrink,
section.resume input.resume-size:checked + label .enlarge {
	display: none;
}

section.resume input.resume-size:checked + label .shrink {
	display: inline;
}

section.resume .resume {
	display: block;
	width: 100%;
	height: 24rem;
	border: 0;
	border-radius: 0.5rem;
	background: #ffffff;
}

section.resume img.resume {
	height: auto;
	max-height: 24rem;
	object-fit: contain;
}

section.resume input.resume-size:checked ~ .resume {
	height: 80vh;
	max-height: none;
}

section.resume input.resume-size:checked ~ img.resume {
	height: auto;
}

section.resume input.resume-size:focus-visible + label {
	outline: 2px solid;
	outline-offset: 2px;
}

/* CLAUDE #843: the bar's + (New Character, as the old Planner's +): on phones only the +, its words for screen readers (a long title
   left no room for them); on desktop the + before them */
.bar .action.add::before {
	content: "+";
	font-weight: 400;
}

html.mobile .bar .action.add::before {
	font-size: 1.5rem; /* CLAUDE #881: in Agent's header button (was 2rem, alone in the bar) */
	line-height: 1;
}

html.mobile .bar .action.add span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

html:not(.mobile) .bar .action.add::before {
	margin-inline-end: 0.25rem;
}
