/* CLAUDE #880: the members site's pages in the TPM's design (members.php's members_site_start(); owner, 2026-11-15: "Use the same layout and
   design from TPM" for Your Profile). Was the TPM's copy of Your Profile (CLAUDE #874; owner: "The duplicate should share the content, but not
   the navigation or design"): the members site's own steps (members_profile_fields(),
   notify.php's members_notify_fields(), members_account_form()), unchanged so their scripts still work, in the TPM's design. Each step is
   a section as the TPM's are (its title the section's heading, its words under it), its rows the TPM's: a box's words at the left and its
   value at the right, a choice's box beside its words, a long text box across, Remove, Restore and Add as words. The colors are each
   platform's own (ios.css, desktop.css; android.css's Material names), and its headings and boxes as its sections' (iOS: grouped rows
   edge to edge; Android: a subheader in the primary color; desktop: rounded cards) */

.tpm-profile {
	--pf-surface: var(--foregroundColor, var(--surfaceContainer));
	--pf-rule: var(--horizontalRuleColor, var(--outlineVariant));
	--pf-text: var(--primaryTextColor, var(--onSurface));
	--pf-text2: var(--secondaryTextColor, var(--onSurfaceVariant));
	--pf-accent: var(--accentColor, var(--primary));
	--pf-danger: var(--destructiveColor, var(--error));
	--pf-row: var(--standardHeight, 3rem);
	padding-bottom: 2rem;
}

/* a step: a section, with no box of its own */
.tpm-profile fieldset {
	min-width: 0;
	margin: 2rem 0 0;
	padding: 0;
	border: 0;
}

/* CLAUDE #928: and a step that's off (disabled), as the forms' (submit.css): Hair Color's and Eye Color's Other until it's picked (profile.js) */
.tpm-profile fieldset[hidden],
.tpm-profile fieldset:disabled,
.tpm-profile button.continue {
	display: none;
}

/* its legend: the title as the section's heading, its words under it. CLAUDE #881: its words beside it, on the same line, as Agent and Good
   Show's forms' legends (owner: "Anywhere there's ALL CAPS text, followed by a period, then hint text, put them on the same line"; was a line
   of its own) */
.tpm-profile legend {
	float: left;
	width: 100%;
	box-sizing: border-box;
	padding: 0 1rem 0.5rem;
	font-size: 0.875rem;
	line-height: 1.35;
	color: var(--pf-text2);
}

.tpm-profile legend + * {
	clear: both;
}

/* CLAUDE #881: a step's title that's the page's (members_fieldset()), for screen readers only */
.tpm-profile legend.same-as-title {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
}

.tpm-profile legend strong {
	display: inline;
	font-size: 0.8125rem;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

/* the step's boxes: a group of rows */
.tpm-profile fieldset > div,
.tpm-profile fieldset > table {
	background: var(--pf-surface);
	border-top: 0.5px solid var(--pf-rule);
	border-bottom: 0.5px solid var(--pf-rule);
}

.tpm-profile fieldset > div > div.group + div.group,
.tpm-profile fieldset > div > label + div.group, /* CLAUDE #928: Accents' Add Another rows, after the list's choices, in the same box */
.tpm-profile fieldset > div + div {
	border-top: 0.5px solid var(--pf-rule);
}

/* a box and its words: a row, the words at the left and the box at the right */
.tpm-profile .group > label:not(.uploader, .headshot-size),
.tpm-profile fieldset > div > label:has(> input[type="file"]) {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: var(--pf-row);
	margin-left: 1rem;
	padding: 0.4rem 1rem 0.4rem 0;
	box-sizing: border-box;
	color: var(--pf-text);
}

.tpm-profile .group > label + label {
	border-top: 0.5px solid var(--pf-rule);
}

.tpm-profile .group > label > input:not([type="checkbox"], [type="radio"], [type="file"]),
.tpm-profile .group > label > select {
	min-width: 0;
	margin: 0;
	padding: 0.3rem 0;
	border: 0;
	background: transparent;
	font: inherit;
	color: var(--pf-text);
	text-align: right;
	outline: none;
}

/* CLAUDE #928: a box takes the rest of its row, and a menu sits at the right at its own width (owner, PR #937: the menu "instead of `flex: 1`,
   use `margin-left: auto`"; both were flex: 1, in the rule above) */
.tpm-profile .group > label > input:not([type="checkbox"], [type="radio"], [type="file"]) {
	flex: 1;
}

.tpm-profile .group > label > select {
	margin-left: auto;
}

.tpm-profile .group > label > input[type="time"],
.tpm-profile .group > label > input[type="date"] {
	flex: none;
	margin-left: auto;
}

/* a box on its own (Notifications' Area and E-mail Address), its words for screen readers only, and a long text box across */
.tpm-profile .u-font-size-0 {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.tpm-profile fieldset > div > input:not([type="hidden"]),
.tpm-profile fieldset > div > textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	min-height: var(--pf-row);
	margin: 0;
	padding: 0.6rem 1rem;
	border: 0;
	background: transparent;
	font: inherit;
	color: var(--pf-text);
	outline: none;
}

.tpm-profile fieldset > div > textarea {
	min-height: 7rem;
	resize: vertical;
}

/* choices: a row each, its box beside its words */
.tpm-profile fieldset.selection > div > label,
.tpm-profile span.days > label {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: var(--pf-row);
	margin-left: 1rem;
	padding: 0.4rem 1rem 0.4rem 0;
	box-sizing: border-box;
	color: var(--pf-text);
	cursor: pointer;
}

.tpm-profile fieldset.selection > div > label + label {
	border-top: 0.5px solid var(--pf-rule);
}

.tpm-profile input[type="checkbox"],
.tpm-profile input[type="radio"] {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	accent-color: var(--pf-accent);
}

/* Skills' topics: a heading over each topic's choices */
.tpm-profile fieldset.selection > p {
	clear: both;
	margin: 1.25rem 0 0.4rem;
	padding: 0 1rem;
	font-size: 0.8125rem;
	color: var(--pf-text2);
}

.tpm-profile fieldset.selection > p strong {
	font-weight: 600;
}

/* a step's note: under its box, as a section's footer */
.tpm-profile p.notes,
.tpm-profile p.note {
	margin: 0;
	padding: 0.5rem 1rem 0;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--pf-text2);
}

/* When You're Not Free's rows: the days as choices in a line, the times, Remove and Restore */
.tpm-profile span.days {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 0.75rem;
	padding: 0.5rem 1rem;
	color: var(--pf-text); /* CLAUDE #880: as Start Time's (owner, 2026-11-15: "Days" color should match "Start Time"; was the secondary color) */
}

/* CLAUDE #880: the days at the right, Days at the left (owner: "the options should be right-aligned") */
.tpm-profile span.days > label:first-of-type {
	margin-left: auto;
}

.tpm-profile span.days > label {
	min-height: 0;
	margin: 0;
	padding: 0.25rem 0;
	gap: 0.35rem;
}

/* CLAUDE #928: a row's options (the forms' span.options: Representation's Agent and Manager, and Exceptions' Free, Not Free and All Day, which
   had no rules here), a row of their own as a box's: the choices in a line, each box beside its words, as the days' */
.tpm-profile .group > span.options {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 1.25rem;
	min-height: var(--pf-row);
	margin-left: 1rem;
	padding: 0.4rem 1rem 0.4rem 0;
	box-sizing: border-box;
	color: var(--pf-text);
}

.tpm-profile .group > label + span.options {
	border-top: 0.5px solid var(--pf-rule);
}

.tpm-profile .group > span.options > label {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	cursor: pointer;
}

/* the rows' buttons (Remove, Restore, See It), Add, and a removed row (rows.js: data-state="marked"), as the forms show them */
.tpm-profile .group .buttons {
	display: flex;
	justify-content: flex-end;
	gap: 1.25rem;
	padding: 0.5rem 1rem;
}

.tpm-profile .group .buttons button,
.tpm-profile .group .buttons a,
.tpm-profile button.add {
	width: auto;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: var(--pf-accent);
	text-decoration: none;
	cursor: pointer;
}

.tpm-profile .group .buttons .mark {
	color: var(--pf-danger);
}

.tpm-profile div.group:not([data-state="marked"]) .buttons .restore,
.tpm-profile div.group[data-state="marked"] .buttons .mark {
	display: none;
}

.tpm-profile div.group[data-state="marked"] > :not(.buttons) {
	opacity: 0.45;
	text-decoration: line-through;
}

.tpm-profile button.add {
	display: block;
	width: calc(100% - 1rem);
	min-height: var(--pf-row);
	margin-left: 1rem;
	padding: 0 1rem 0 0;
	text-align: left;
}

.tpm-profile fieldset > div > template + button.add,
.tpm-profile fieldset > div > div.group + template + button.add {
	border-top: 0.5px solid var(--pf-rule);
}

/* Headshot: the forms' picker shaped as the headshot (4:5), with the photo editor's frame, size and Replace (headshot.js, #825), as
   form-pages.css has them */
.tpm-profile .headshot-editor {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem;
}

.tpm-profile label.uploader.headshot {
	position: relative;
	display: block;
	width: min(100%, 14rem);
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 0.5rem;
	background: var(--pf-rule) center / cover no-repeat;
	cursor: pointer;
}

.tpm-profile label.uploader.headshot input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.tpm-profile label.uploader.headshot.editing {
	cursor: grab;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
}

.tpm-profile label.uploader.headshot.dragging {
	cursor: grabbing;
}

.tpm-profile label.uploader.headshot.editing input[type="file"] {
	display: none;
}

.tpm-profile label.uploader.headshot img {
	max-width: none;
	max-height: none;
	pointer-events: none;
}

/* CLAUDE #880: the photo the editor places and sizes, seen while editing, as form-pages.css shows it (owner, 2026-11-15: the Size slider "doesn't
   work": it sized this photo, which stayed hidden, its style's opacity 0, over the frame's unchanging picture) */
.tpm-profile label.uploader.headshot.editing img {
	opacity: 1 !important;
}

.tpm-profile label.uploader.headshot.editing::after {
	content: "Drag to position";
	position: absolute;
	left: 0.6rem;
	bottom: 0.5rem;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.55);
	color: #ffffff;
	font-size: 0.75rem;
	pointer-events: none;
}

/* CLAUDE #880: Size, a vertical slider beside the photo, its top the largest (owner, 2026-11-15: "Make the Size slider for headshots vertical"):
   the frame and the slider side by side, the help and Replace under them */
.tpm-profile .headshot-editor .headshot-size {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	align-self: stretch;
	order: 1;
	font-size: 0.8125rem;
	color: var(--pf-text2);
}

.tpm-profile .headshot-editor .buttons {
	order: 3;
	flex-basis: 100%;
	justify-content: flex-start;
	padding: 0;
}

.tpm-profile .headshot-editor .headshot-size[hidden],
.tpm-profile .headshot-editor .headshot-help[hidden],
.tpm-profile .headshot-editor button[hidden] {
	display: none;
}

.tpm-profile .headshot-editor .headshot-size input[type="range"] {
	flex: 1;
	min-height: 8rem;
	margin: 0;
	writing-mode: vertical-lr;
	direction: rtl;
	accent-color: var(--pf-accent);
	touch-action: none;
}

.tpm-profile .headshot-editor .headshot-help {
	order: 2;
	flex-basis: 100%;
	padding: 0;
}

.tpm-profile .headshot-editor button {
	width: auto;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: var(--pf-accent);
	cursor: pointer;
}

/* Résumés' Add: the file picker in its row */
.tpm-profile fieldset > div > label:has(> input[type="file"]) {
	flex-wrap: wrap;
	gap: 0.25rem 0.75rem;
}

.tpm-profile fieldset > div > label > input[type="file"] {
	flex: 1;
	min-width: 12rem;
	font: inherit;
	font-size: 0.875rem;
	color: var(--pf-text2);
}

.tpm-profile .note {
	color: var(--pf-text2);
}

/* Account: the sign-in accounts (the forms' table) as rows, and its buttons as the TPM's: a row of the accent color, Sign Out's in red */
.tpm-profile table.records {
	width: 100%;
	border-collapse: collapse;
}

.tpm-profile table.records thead {
	display: none;
}

.tpm-profile table.records td {
	padding: 0.7rem 1rem;
	color: var(--pf-text);
}

.tpm-profile table.records td + td {
	text-align: right;
	color: var(--pf-text2);
}

.tpm-profile table.records tr + tr td {
	border-top: 0.5px solid var(--pf-rule);
}

.tpm-profile fieldset > button {
	display: block;
	width: 100%;
	min-height: var(--pf-row);
	margin: 0;
	padding: 0 1rem;
	border: 0;
	border-bottom: 0.5px solid var(--pf-rule);
	background: var(--pf-surface);
	font: inherit;
	color: var(--pf-accent);
	text-align: left;
	cursor: pointer;
}

.tpm-profile fieldset > table + input + button,
.tpm-profile fieldset > legend + button {
	border-top: 0.5px solid var(--pf-rule);
}

.tpm-profile #signout_fs > button {
	color: var(--pf-danger);
}

/* Android: a subheader in the primary color, and its rows on the page's surface with a little more height */
html.android .tpm-profile legend strong {
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.006rem;
	text-transform: none;
	color: var(--primary);
}

html.android .tpm-profile fieldset {
	margin-top: 1rem;
}

html.android .tpm-profile fieldset > div,
html.android .tpm-profile fieldset > table {
	border: 0;
	background: transparent;
}

html.android .tpm-profile {
	--pf-row: 3.5rem;
}

/* desktop: each step's boxes a rounded card, as its sections' */
html.desktop .tpm-profile fieldset {
	margin-top: 1.75rem;
}

html.desktop .tpm-profile legend {
	padding: 0 0.25rem 0.5rem;
}

html.desktop .tpm-profile legend strong {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

html.desktop .tpm-profile fieldset > div,
html.desktop .tpm-profile fieldset > table {
	border: 1px solid var(--pf-rule);
	border-radius: 10px;
	overflow: hidden;
}

html.desktop .tpm-profile fieldset > button {
	border: 1px solid var(--pf-rule);
	border-radius: 10px;
	margin-top: 0.75rem;
	text-align: center;
	font-weight: 600;
}

html.desktop .tpm-profile p.notes,
html.desktop .tpm-profile p.note {
	padding-left: 0.25rem;
	padding-right: 0.25rem;
}

/* CLAUDE #880: choices as iOS's lists show them (owner, 2026-11-15: "For radios and checkboxes, use checkmarks for iOS and, if applicable,
   Android, whatever its standard design calls for"): no box, a checkmark in the accent color at the row's end when it's chosen; a day's after
   its name. Android keeps Material's checkboxes and radio buttons, which its standard calls for, in its primary color */
html.ios .tpm-profile input[type="checkbox"],
html.ios .tpm-profile input[type="radio"] {
	-webkit-appearance: none;
	appearance: none;
	order: 2;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0 0 0 auto;
	border: 0;
	background: none;
}

html.ios .tpm-profile span.days input[type="checkbox"] {
	width: 0.9rem;
	margin: 0;
}

html.ios .tpm-profile input:is([type="checkbox"], [type="radio"]):checked::after {
	content: "";
	display: block;
	width: 0.4rem;
	height: 0.8rem;
	margin: 0.05rem auto 0;
	border: solid var(--pf-accent);
	border-width: 0 0.15rem 0.15rem 0;
	transform: rotate(45deg);
}

html.ios .tpm-profile span.days input:checked::after {
	width: 0.3rem;
	height: 0.6rem;
}

/* CLAUDE #880: the Skills page, one list of skills (owner, 2026-11-15: "The "Skills." under the Skills heading is unnecessary. Everything on
   that page is a skill, so "VOICE TYPE" and others can match the style of "Services""): no Skills heading, and Voice Type, Dancing and Other
   Skills headed as its topics are (fieldset.selection > p). CLAUDE #928: and Vocal Range and Accents */
.tpm-profile form[data-section="skills"] #skills_fs > legend {
	display: none;
}

.tpm-profile form[data-section="skills"] :is(#voice_types_fs, #vocal_range_fs, #dancing_fs, #accents_fs, #other_skills_fs) {
	margin-top: 1.25rem;
}

.tpm-profile form[data-section="skills"] :is(#voice_types_fs, #vocal_range_fs, #dancing_fs, #accents_fs, #other_skills_fs) > legend {
	padding-bottom: 0.4rem;
	font-size: 0.8125rem;
}

.tpm-profile form[data-section="skills"] :is(#voice_types_fs, #vocal_range_fs, #dancing_fs, #accents_fs, #other_skills_fs) > legend strong {
	display: inline;
	font-size: inherit;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--pf-text2);
}

/* CLAUDE #880: the members site's messages: Saved in green, what's wrong in the destructive color */
.tpm-profile .saved {
	color: #30a46c;
}

.tpm-profile .errors {
	margin: 0;
	padding: 0 1rem;
	list-style: none;
	color: var(--pf-danger);
}

/* CLAUDE #898: a hidden row stays hidden (the rows are flex boxes, which outrank the hidden attribute): the stand-in sign-in's generated fakes until Find */
.tpm-profile li[hidden] {
	display: none;
}
