/* CLAUDE #171: the dialogs' styles, shared with the listing pages (must stay first in this file) */
@import "dialog.css";
@import "css/utilities.css"; /* CLAUDE #96: the inline style attributes, as classes */
@import "css/calendar.css"; /* CLAUDE #310: the details pages' calendar (calendar.php), for the sign-up pages' conflicts */

input::-webkit-datetime-edit-ampm-field:focus,
input::-webkit-datetime-edit-day-field:focus,
input::-webkit-datetime-edit-hour-field:focus,
input::-webkit-datetime-edit-millisecond-field:focus,
input::-webkit-datetime-edit-minute-field:focus,
input::-webkit-datetime-edit-month-field:focus,
input::-webkit-datetime-edit-second-field:focus,
input::-webkit-datetime-edit-week-field:focus,
input::-webkit-datetime-edit-year-field:focus {
	color: var(--backgroundColor);
	background: var(--primaryTextColor);
}

form:not([data-active]) {
	display: none;
}

html, body, main, form, section {
	width: 100%;
}

section:not([data-active]) {
	opacity: 0;
}

fieldset {
	margin-top: 2rem;
	border: 0;
	padding: 1rem;
	padding-bottom: 0;
	position: relative;
	/* transition: opacity 0.4s; */
}

/* CLAUDE #655: a step that's off (disabled: not asked) doesn't hold up the steps after it. Submit a Listing's Genres and Target Audience,
   asked only for Submit for Review Instead, held up Listing Contact after the AI's route: it was faded and couldn't be clicked (owner,
   2026-11-10: "It sometimes acts like it will, but then doesn't"). (A disabled step's fields are never :invalid, so the next rule already skips it) */
fieldset.selection.required:not(:disabled):not(:has(:checked)) ~ fieldset,
fieldset:has(:invalid) ~ fieldset,
form fieldset:not([data-visited]) {
	opacity: 0.25;
	pointer-events: none;
}

fieldset:disabled,
fieldset[inert] {
	/* position: absolute; */
	/* pointer-events: none; */
	/* opacity: 0 !important; */
	display: none;
}

form fieldset:not([data-visited])::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
}

form fieldset:not([data-visited]) input {
	pointer-events: none;
}

button {
	width: 100%;
	border: 1px solid;
	box-sizing: border-box;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	font: inherit;
	font-weight: 600; /* CLAUDE #216: was 500 (owner) */
	border-width: 2px;
}

button.secondary {
	background-color: #333;
	backdrop-filter: blur(5px);
	border: 1px solid gray;
	border-radius: 4px;
	color: var(--primaryTextColor);
}

button[type=submit] {
	background: var(--accentColor);
	border-color: var(--accentColor);
	color: white;
	font-weight: bold;
	/* margin: 0 1rem; */
	/* width: calc(100% - 2rem); */
}

legend ~ * {
	grid-column: 2;
}

form fieldset:not([data-visited]) > button.continue,
form fieldset[data-visited]:has(+ fieldset[data-visited]):not(:has(:invalid)) button[class=continue] {
	display: none;
}

form:has(section > fieldset[data-visited]:last-of-type):has(> fieldset[data-visited]) section fieldset:last-of-type[data-visited]:not(:has(:invalid)) button.continue {
	display: none;
}

fieldset.selection.required:not(:has(:checked)) .continue,
div.settings:has(:invalid) + button.generate,
fieldset:has(:invalid) > button.continue {
	color: gray;
	border-color: gray;
	pointer-events: none;
}

fieldset.selection {
	/* gap: 1rem; */
}

fieldset legend {
	font-size: 1.25rem;
	padding: 0;
	padding-top: 1rem;
}

/* CLAUDE #196: the From Template tag beside a section's title, on a new listing (markFromTemplate(), shared/submit.js) */
/* CLAUDE #335: in the yellow accent, not the links' blue (owner); the forms' css.css has it */
legend .from_template {
	display: inline-block;
	padding: 0 0.5em;
	border: 1px solid var(--accent-color);
	border-radius: 1em;
	color: var(--accent-color);
	font-size: 0.7em;
	line-height: 1.5;
	white-space: nowrap;
	vertical-align: 0.15em;
}

fieldset label.button,
fieldset.selection label {
	/* position: relative;
	border: 1px gray solid;
	border-radius: 4px;
	padding: 1rem;
	text-align: center;
	box-sizing: border-box;
	font-size: 1rem;
	align-content: center;
	justify-content: center;
	flex-wrap: wrap;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	display: block;
	user-select: none; */
}

fieldset label.button,
fieldset.selection label,
.notes {
	background-color: #333;
	backdrop-filter: blur(5px);
}

.notes {
	/* margin-top: revert; */
	border-radius: 8px;
	padding: 0.5rem 1rem 0.7rem;
	/* width: 100%; */
	/* box-sizing: border-box; */
	/* grid-column: 2; */
	margin-bottom: 0;
}

.notes strong {
	color: var(--alertColor);
}

/* CLAUDE #926: Production Team's Current Team: what a row the save splits was split from, with Keep as Typed (fieldset-crew-2.js), a note
   under its lines */
#crew_fs .current li.split {
	list-style: none;
	margin: 0.25rem 0 0.5rem;
}

#crew_fs .current li.split label {
	white-space: nowrap;
}

#crew_fs .current li.split input {
	margin: 0 0.25rem 0 0.5rem;
}

div.note {
	margin-top: 1rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
}

div.note p {
	margin: 0;
	background-color: #333;
	backdrop-filter: blur(5px);
	padding: 0.5rem 1rem;
	border-radius: 8px;
	text-align: center;
}

fieldset.selection.listing_type label {
	width: 100%;
}

fieldset.selection label:has(input:checked) {
	/* border: 2px var(--accentColor) solid; */
	/* padding: calc(1rem - 1px) calc(0.5rem - 1px); */
}



fieldset.selection label {
	background-color: #333;
}

fieldset label.button, fieldset.selection label {
	position: relative;
	border: 1px gray solid;
	border-radius: 4px;
	padding: 1rem;
	text-align: center;
	box-sizing: border-box;
	font-size: 1rem;
	align-content: center;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	display: block;
	user-select: none;
	border-style: outset;
	/* background: linear-gradient(167deg, #333, #222); */
}

fieldset.selection label:has(input:checked) {
	padding: calc(1rem + -2px) calc(1rem + 2px) calc(1rem + 2px) calc(1rem + -2px);
	border-style: inset;
	/* background-color: #191919; */
	background-color: #222;
	color: #aaa;
	/* 	background: linear-gradient(-13deg, #333, #222); */
}






fieldset label.button input[type=checkbox],
fieldset.selection label input[type=checkbox],
fieldset.selection label input[type=radio] {
	position: absolute;
	opacity: 0;
}

fieldset > div:not(.group) {
	/* width: 100%;
	column-gap: 0.5rem;
	justify-content: space-around;
	display: flex;
	gap: 0;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center; */
}

fieldset.selection > div {
	width: 100%;
	column-gap: 0.5rem;
	justify-content: space-around;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
}

@media (max-width: 767px) {
	fieldset.selection > div {
		grid-template-columns: 1fr;
	}

	legend ~ * {
		margin: 1rem 0 0;
	}
}

fieldset label.uploader {
	background-repeat: no-repeat;
	background-position: center center;
	outline: 1px solid var(--accentColor);
	aspect-ratio: 16 / 9;
	align-self: start;
	background-image: url(https://static.breaklegs.app/app/images/set_image.png);
	margin: 0;
	width: 100%;
	display: block;
	background-size: contain;
}

input[type="file"] {
	opacity: 0;
}

fieldset label.uploader ~ div > span {
	aspect-ratio: 16 / 9;
	display: block;
	height: 100px;
	outline: solid 1px;
	background-position: center;
	background-repeat: no-repeat;
	display: none;
}

fieldset label.uploader ~ div > span:not([style]) {
	background-image: url(https://static.breaklegs.app/app/images/icon-256.png), linear-gradient(#fbcb00, #203e90);
	background-size: contain;
}

.color::after {
	/* font-family: 'Barlow';
	text-align: center;
	font-weight: 400;
	display: block;
	background: var(--backgroundColor);
	padding-top: 0.5rem;
	line-height: 0.5; */
}

/* CLAUDE #171: phone numbers too (Audition Contacts) */
input[type=text],
input[type=url],
input[type=email],
input[type=tel],
input[type=date],
input[type=datetime-local],
input[type=time],
input[type=number],
textarea,
select {
	font: inherit;
	width: 100%;
	padding: 0.5rem 0 0.5rem 0.5rem;
	box-sizing: border-box;
	color: var(--primaryTextColor);
	background: none;
	border: 0;
}

label + input[type=text],
label + input[type=url],
label + input[type=email],
label + input[type=tel],
label + input[type=date],
label + input[type=datetime-local],
label + input[type=time],
label + input[type=number] {
	border-bottom: 0.5px solid lightgray;
}

/* CLAUDE #413: every single-line text box has the rows' bottom border, as standard on every form (owner, 2026-11-06), not only one after a
   label: one inside a label has its label's (.group > label) */
:is(input[type=text], input[type=url], input[type=email], input[type=tel], input[type=number], input[type=search], input[type=password]):not(label *) {
	border-bottom: 0.5px solid lightgray;
}

fieldset > div:not(.group) > :is(input[type=text], input[type=url], textarea, select) {
	/* background-color: #333; */
	/* backdrop-filter: blur(5px); */
}

select {
	font-weight: 500;
}

/* input:user-invalid {
	border: 1px solid red;
	background: pink;
} */

section[data-index]::before {
	content: 'Production ' attr(data-index);
	position: sticky;
	top: 0;
	font: inherit;
	padding: 0.5rem 1rem;
	z-index: 1;
	background: var(--backgroundColor);
	width: 100%;
	display: block;
	box-sizing: border-box;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: bold;
	border-bottom: 1px solid gray;
}

section + section[data-title]::before {
	content: 'Production: ' attr(data-title);
}

section + section[data-index] fieldset[data-visited] {
	margin-top: 0;
	padding-top: 3rem;
}

section[data-index] fieldset[data-visited] legend {
	transform: translateY(2rem);
}

.settings:not([disabled]) ~ .existings,
.results:not([disabled]) ~ .existings {
	display: none;
}

fieldset:has(.settings) > div > div > button,
fieldset:not(:has(.settings)) > div > button,
fieldset div.buttons button {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	/* color: inherit; */
	width: revert;
	padding: var(--standardPadding);
	position: relative;
	box-sizing: border-box;
	/* min-height: var(--standardHeight); */
	border: 0;
}

/* TODO: figure out what this was supposed to apply to, which was more complicated */
/* fieldset div.group:only-of-type .mark, */
fieldset div.buttons button.remove,
fieldset div.group:only-of-type .remove {
	display: none;
}

fieldset div.buttons button::before,
fieldset > div > button::before {
	font-size: 1.2rem;
	font-weight: 300;
	display: flex;
	justify-content: center;
	padding: 0.4em;
}

.duplicate {
	color: var(--constructiveColor);
}

.duplicate::before {
	content: "\e74c";
	color: var(--constructiveColor);
}

.add {
	color: var(--constructiveColor);
}

.add::before {
	content: "\f067";
}

.remove {
	color: var(--destructiveColor);
}

.remove::before {
	content: "\f068";
	content: "\f1f8";
}

.mark {
	color: orange;
	color: var(--destructiveColor);
}

.mark::before {
	content: "\f1f8";
}

.restore {
	color: var(--constructiveColor);
	color: yellow;
}

.restore::before {
	content: "\f895";
}

::-webkit-calendar-picker-indicator {
	color: var(--accentColor);
	filter: invert(1);
}

input[type=datetime-local],
input[type=date],
input[type=time],
input[type=number],
select {
	color: var(--accentColor);
	width: revert;
}

input[type="date"] {
	padding-right: 0;
}

textarea:focus,
input:focus {
	outline: none;
}

/* CLAUDE #409: a box grows and shrinks with what's in it (owner, 2026-11-06: "Have paste boxes auto-size when content is added/removed"), from
   five lines up to the long-text editor's 40rem, then scrolls; a browser without field-sizing has actions.js's fallback (was commented out) */
textarea {
	background: #222;
	resize: vertical;
	min-height: calc(5rlh + 0.5rem);
	max-height: 40rem;
	border: 1px inset lightgray;
	field-sizing: content;
}

fieldset div.group select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--accentColor) 50%), linear-gradient(135deg, var(--accentColor) 50%, transparent 50%);
	background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px), 100% 0;
	background-size: 5px 5px, 5px 5px, 2.5em 2.5em;
	background-repeat: no-repeat;
	padding-right: 2rem;
}

/* fieldset div:not(.group) select { */
fieldset div:not(.group) > label > select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--accentColor) 50%), linear-gradient(135deg, var(--accentColor) 50%, transparent 50%);
	background-position: calc(100% - 15px) calc(1.5em + 2px), calc(100% - 10px) calc(1.5em + 2px), 100% 0;
	background-size: 5px 5px, 5px 5px, 2.5em 2.5em;
	background-repeat: no-repeat;
	border: 1px solid;
	border-radius: 4px;
	padding: 1rem 2rem 1rem 1rem;
}

::placeholder {
	color: darkgray;
}

div.group {
	width: 100%;
}

fieldset.optional .group:first-child + .group ~ .group,
fieldset:not(.optional) .group ~ .group {
	margin-top: 1rem;
}

.group[inert] {
	opacity: 0.5;
	filter: blur(1px);
}

.group label {
	padding: 0 0.5rem;
	box-sizing: border-box;
}

.group > label {
	width: 100%;
	display: flex;
	align-items: center;
	white-space: nowrap;
}

.group > label,
label + input {
	border-bottom: 0.5px solid lightgray;
}

.group label:has(select),
.group label:has(input[type=number]) {
	padding-right: 0;
}

.group span label {
	padding: 0;
}

.group label:has(input[type=time]) {
	padding-right: 0.5rem;
}

/* TODO: what is this for? */
fieldset div.group > span:not(.days):has(label:first-child input:checked) + label + label,
fieldset div.group > span:not(.days):has(label + label input:checked) + label {
	display: none !important;
}

fieldset label.uploader.contain {
	background-size: contain;
	background-position: center !important;
}

@media (min-width: 768px) {
	fieldset {
		display: grid;
		align-items: flex-start;
		grid-template-columns: calc(40% - 0.5rem) calc(60% - 0.5rem);
		gap: 1rem;
	}

	fieldset legend {
		display: contents;
	}

	section + section fieldset[data-visited] {
		/* padding-top: 4rem; */
	}

	.notes + .notes {
		margin: 0;
	}
}

/* CLAUDE #58: the long-text editor (editor.php's editor_box(), submit/editor.js), in place of the paste box ([contenteditable], with a paste
   icon): the AI paste's rich-text box, whose rules these were (forms/agent-app-auditions-paste.css), drawn as the forms' textarea it
   replaces (its background, border and five lines' height, above). Its toolbar follows it, so the walk-through's focus lands in the box
   (walkthrough.js's advance(), the step's first field), and shows above it */
div:has(> .editor) {
	display: flex;
	flex-direction: column;
}

.editor {
	min-height: calc(5rlh + 0.5rem);
	max-height: 40rem;
	overflow: auto;
	overflow-wrap: anywhere; /* CLAUDE #637: a word too long for the line (a long link) breaks where it must, and counts so: with break-word
	                            (inherited), its question (a fieldset, never narrower than its longest word) widened a phone's page */
	padding: 0.5rem;
	border: 1px inset lightgray;
	background: #222;
}

.editor:empty::before {
	content: attr(data-placeholder);
	color: #999;
	font: inherit; /* not the icons' font, which the forms give ::before */
}

.editor img {
	max-width: 100%;
	height: auto;
}

.editor * {
	max-width: 100%;
}

/* CLAUDE #669: no space above the box's first block or below its last, as shared.css does for dl.selections dd (owner: "The first
   element in a rich text input field should have no top margin and the last should have no bottom margin") */
.editor > :first-child {
	margin-top: 0;
}

.editor > :last-child {
	margin-bottom: 0;
}

.editor + .toolbar {
	order: -1;
}

.toolbar:not([hidden]) {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.toolbar button {
	display: inline-block;
	width: auto;
	padding: 0.25rem 0.6rem;
	border: 1px solid #888;
	border-radius: 4px;
	background: var(--secondaryBackgroundColor);
	color: inherit;
	font-weight: normal;
}

/* TODO: see if this can be done in php */
section[data-index] label:has([value=replacement]),
section[data-index] div:has([value=replacement]) + .notes {
	display: none;
}

fieldset.schedule label[inert] {
	display: none !important;
}

fieldset [data-state="marked"] > :not(.buttons) {
	opacity: 0.5;
	pointer-events: none;
	filter: blur(1px);
}

/* CLAUDE #91: the first date of a required (not optional) schedule can't be removed */
/* CLAUDE #695: and the Performances Schedule's, after its Grid View and List View choice: its first in List View, and in Grid View its first
   day's first (the calendar starts at the first date; schedules.js's performancesGridView()) */
fieldset.schedule:not(.optional) > div:first-of-type > div.group:first-of-type .buttons .mark,
fieldset.schedule:not(.optional) .results > div.group:first-child .buttons .mark,
fieldset.schedule:not(.optional) .results:not(.cal) > label ~ div.group:first-of-type .buttons .mark,
fieldset.schedule:not(.optional) .results.cal > section > div:first-of-type > div.group:first-of-type .buttons .mark,
fieldset.schedule:not(.optional) .existings > div:first-of-type > div.group:first-of-type .buttons .mark,
fieldset.schedule:not(.optional) .add,
fieldset.optional div.group:not(:only-of-type) + .add,
fieldset:not(.optional) div.group + .add,
fieldset.optional div.group:only-of-type + .add  ~ .notes,
fieldset div.group:not([data-state="marked"]) .buttons .restore,
fieldset div.group[data-state="marked"] .buttons .duplicate,
fieldset div.group[data-state="marked"] .buttons .mark {
	display: none !important;
}

/* CLAUDE #171: every group's rows, not only the schedules' (was fieldset.schedule .group > label) */
.group > label {
	display: flex;
	gap: 1rem;
	align-items: center;
	white-space: nowrap;
	width: -webkit-fill-available;
	width: -moz-available;
	width: stretch;
}

div.group > .link_type {
	width: 100%;
	display: flex;
	align-items: center;
	padding: 0.5rem;
	box-sizing: border-box;
	border-bottom: 0.5px solid lightgray;
}

div.group > .link_type > span {
	margin-left: auto;
	gap: 1rem;
	display: flex;
}

div.group > .creatable:has(option:nth-of-type(3)) ~ label{
/* div.group > .creatable ~ label { */
	padding: 0 1rem;
	background: var(--alternateBackgroundColor);
	border-bottom-color: var(--horizontalRuleColor);
}

div.group > .creatable ~ label:last-of-type {
	border-bottom-color: lightgray;
}

fieldset.schedule .group > label > :first-child {
	margin-left: auto;
}

fieldset.schedule .group > label > input[type=date],
fieldset.schedule .group > label > input[type=time] {
	width: revert;
}

/* CLAUDE #171: every group's rows, not only the schedules' (was fieldset.schedule .group > label > select / input[type=text]) */
.group > label > select,
.group > label > input:is([type=text], [type=email], [type=tel], [type=url]) {
	width: 100%;
	text-align: end;
	text-align-last: end;
}

/* CLAUDE #171: every group's inputs, not only the schedules' */
.schedule input:where(:not([type=checkbox]):not([type=radio]):not([type=color])),
.group input:where(:not([type=checkbox]):not([type=radio]):not([type=color])) {
	font: inherit;
	width: 100%;
	padding: 0.5rem 0;
	box-sizing: border-box;
	background: none;
	border: 0;
}

.schedule .group label:has(input[type=datetime-local]),
.schedule .group label:has(input[type=time]),
.schedule .group label:has(input[type=date]) {
	padding-right: 0.5rem;
}

.schedule > div > button {
	/* margin: 0.5rem 0 0; */
	/* padding-block: 0; */
}

fieldset.optional > div > div.group:first-of-type,
fieldset.optional > div > div.group:first-of-type:not(:only-of-type) + .buttons > buttom,
fieldset.optional > div > div.group:first-of-type:not(:only-of-type) + .buttons > buttom,
fieldset.optional > div > div.group:first-of-type:not(:only-of-type) + .buttons > p {
	display: none;
}

fieldset .buttons {
	display: flex;
	background: var(--backgroundColor);
	justify-content: space-between;
}

fieldset div.buttons button {
	padding: 0.5em 0;
}

input:user-invalid {
	/* color: red !important; */
	outline: 1px solid red !important;
}

select:user-invalid {
	outline: 1px solid red !important;
}

fieldset div[disabled] {
	display: none !important;
}

/* CLAUDE #248: a schedule with No dates yet checked (the guided flow's Good Show form) shows only that choice */
fieldset.schedule:has(> div > label.no_dates input:checked) > div > :not(label.no_dates) {
	display: none !important;
}

fieldset.schedule label.no_dates {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	white-space: normal;
}

fieldset > div[disabled] {
	/* display: none !important; */
}

span[inert],
label[inert] {
	display: none !important;
}

fieldset:has(.existings) .settings:not([disabled]) ~ .manual,
.settings[disabled] + button,
.settings[disabled] + button + button,
.settings[disabled] + button + button + button,
.preview[disabled] + button, .preview[disabled] + button + button,
.settings:not(:has(~ .existings)) ~ .nevermind,
.results[disabled] + button, .results[disabled] ~ button.continue,
fieldset:not(#theatre_fs):has(:invalid):has(~ fieldset[data-visited]) button.continue,
fieldset:not([data-current]) button.continue,
fieldset:not(#theatre_fs)[data-visited]:has(+ fieldset[data-visited]):not(:has(:invalid)) button[class=continue],
form:has(section > fieldset[data-visited]:last-of-type):has(> fieldset[data-visited]) section fieldset:last-of-type[data-visited]:not(:has(:invalid)) button.continue {
	display: none;
}

form fieldset:not([data-visited]):not([data-current]) {
	/* opacity: 0.25; */
}

/* form fieldset:not([data-visited]):not([data-current])::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
} */

form fieldset:not([data-visited]):not([data-current]) input {
	pointer-events: none;
}

button.selection {
	display: flex;
	justify-content: center;
	padding-inline: 0;
}

button.selection:nth-child(odd) {
	grid-column: 1/3;
}

#listing_type_fs .notes::before,
#listing_type_fs label:has(input[value=musical])::before,
#listing_type_fs label:has(input[value=play])::before,
#listing_type_fs label:has(input[value=radio_play])::before,
#listing_type_fs label:has(input[value=staged_reading])::before {
	margin-right: 0.25rem;
	/* content: "\e533"; */
}

@media (min-width: 768px) {
	label[class^=none] {
		grid-column: 1 / 3;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	/* CLAUDE #304: removed label.none_show_types: no answer has that class */
	label.mlda {
		grid-column: 1 / 3;
	}
}

	[data-state=inactive] {
	/* display: none; */
}

.results .group {
	width: 100%;
}

span.days {
	display: flex;
	align-items: center;
	padding: 0.5rem;
	justify-content: space-between;
	border-bottom: 0.1px solid;
	gap: 0 1rem;
}

span.days label,
span.options label {
	padding: 0;
}

span.days > label:first-of-type {
	margin-left: auto;
}

/* CLAUDE #173: on phones, the text beside a schedule's date or time may wrap and the days sit closer, so the rows fit a 375px screen (a fieldset grows to its widest row, which made the whole page scroll sideways) */
@media (max-width: 767px) {
	fieldset.schedule .group > label:has(input[type=date], input[type=time]) {
		white-space: normal;
	}

	span.days {
		gap: 0 0.5rem;
	}
}

span.options {
	display: flex;
	align-items: center;
	padding: 0.5rem 0.25rem;
	border-bottom: 0.1px solid;
	gap: 0.25rem 0.5rem;
	flex-wrap: wrap;
}

span.options label:has(+ button.help) {
	margin-right: -1rem;
}

/* CLAUDE #171: a question mark that opens a help dialog, as on breaklegs (Audition Contacts); its text is for screen readers */
button.help {
	display: inline-flex;
	align-items: center;
	width: auto;
	padding: 0;
	margin: 0 0 0 0.75rem; /* span.options pulls it 1rem toward its label */
	border: 0;
	background: none;
	color: var(--accentColor);
	font-size: 0;
}

button.help::before {
	content: "\f059";
	font-size: 1.2rem;
}

fieldset :has(.settings[disabled]) .start_over {
	display: revert;
	margin-bottom: 1rem;
}

/* CLAUDE #424: a Collaborators row's Remove only once its menu has a choice (owner, 2026-11-07: "There shouldn't be a 'Remove' button where
   nothing has been selected, yet"; fieldset/partners.php) */
#partners_fs .group:has(select[name^=partnertheatre] > option[value=""]:checked) .buttons .mark {
	display: none;
}

/* CLAUDE #496: the Update Text suggested after a save (submit/saving.js's suggestUpdateText()): the forms' own question (a fieldset with its
   legend and a box) and buttons (Add Update Note the main one's look), in a dialog over the page */
dialog.update_suggestion {
	width: min(36rem, calc(100% - 2rem));
	padding: 0;
	border: 1px solid var(--horizontalRuleColor, #888);
	border-radius: 8px;
	background-color: var(--backgroundColor, #111);
	color: inherit;
}

dialog.update_suggestion::backdrop {
	background-color: rgba(0, 0, 0, 0.6);
}

dialog.update_suggestion fieldset {
	display: block;
	margin: 0;
	padding: 1rem;
}

dialog.update_suggestion legend {
	float: left; /* in the box, above the rest, as a heading */
	width: 100%;
	margin-bottom: 0.75rem;
	padding: 0;
	line-height: 1.4;
}

dialog.update_suggestion label {
	display: block;
	clear: both;
}

dialog.update_suggestion textarea {
	box-sizing: border-box;
	width: 100%;
	margin: 0.5rem 0 1rem;
}

dialog.update_suggestion > div {
	display: flex;
	gap: 0.5rem;
	padding: 0 1rem 1rem;
}

dialog.update_suggestion > div > button {
	width: auto;
}
