/* CLAUDE #156: the TPM on a desktop browser (anything that isn't iOS or Android; tpm_app/lib.php's tpm_platform(); base.css first). Agent
   and Good Show's colors (CLAUDE #811; were the old app's, breaklegs' static_com/app/css.css), laid out for a wide window and a mouse
   (owner, 2026-11-14: separate CSS for desktop, iOS and Android): the tabs across the top, the page's title under them, and each section's
   rows on a card, which lights up under the pointer. */

/* CLAUDE #811: Agent and Good Show's colors (owner, 2026-11-14: "match Agent/Good Show, with the blue links and yellow accent";
   static_app/shared/shared.css): the dark navy page (--body-background) and cards (--content-background), white words, blue links and
   controls (--link-color), the yellow accent (--accent-color) for what's picked (the tab, a segment), their border color, and the darker
   navy band of their tabs. Always dark, as theirs are; was the old app's light colors with a dark version. --onAccentColor: words on a
   blue fill (white was too faint on this blue).
   CLAUDE #830: and their layout (owner, 2026-11-14: "The main element in TPM looks like it's floating, since it doesn't have its own
   background color. The nav width also needs to be constrained"; "main should also have the DEV/PROD watermark", tpm_lib.php's
   watermark("forms") on desktop): the page's title and main are one column in their main's navy
   (--contentColor: --content-background), 1024 px wide as theirs, on the page's navy, top to bottom; the cards and fields in it take the
   darker navy their boxes in main have (--foregroundColor: --content-background-dark; was --content-background, the column's color now) */
:root {
	--backgroundColor: #122140;
	--contentColor: #02193f;
	--foregroundColor: #010d25;
	--primaryTextColor: #ffffff;
	--secondaryTextColor: #a9b7d0;
	--accentColor: #58a3ff;
	--onAccentColor: #010d25;
	--highlightColor: #facf05;
	--inactiveAccentColor: #8597b8;
	--destructiveColor: #ff6b5e;
	--horizontalRuleColor: #2c4167;
	--hoverColor: #0a2a5c;
	--headerBackgroundColor: #010d25e6;
}

body {
	display: flex; /* CLAUDE #830: the column (main, with the bar in it) runs to the bottom of the window: main takes what's left */
	flex-direction: column;
	background: var(--backgroundColor);
	color: var(--primaryTextColor);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.45;
}

a {
	color: var(--accentColor);
}

a:hover {
	text-decoration: underline;
}

/* the tabs, across the top. CLAUDE #830: as wide as the column, centered over it, as Agent and Good Show's nav is in their main (was the
   window's width) */
.tabs {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 3;
	max-width: 1024px;
	margin: 0 auto;
	background: var(--headerBackgroundColor);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--horizontalRuleColor);
}

.tabs ul {
	gap: 0.25rem;
	padding: 0 1.5rem; /* CLAUDE #830: the column's width (was 960 px, centered) */
}

.tabs a {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.85rem 0.75rem 0.75rem;
	border-bottom: 2px solid transparent;
	color: var(--inactiveAccentColor);
	font-weight: 500;
}

.tabs a:hover {
	color: var(--primaryTextColor);
	text-decoration: none;
}

.tabs .active a {
	color: var(--primaryTextColor);
	border-bottom-color: var(--highlightColor); /* CLAUDE #811: the yellow accent, as Agent's picked tab */
}

.tabs a::before {
	font-size: 1rem;
	font-weight: 400;
}

/* CLAUDE #817: the products on the left, as Agent and Good Show's nav has them: the TPM, current, with the Break Legs logo, then Agent and
   Good Show as links; the room's (or the Lobby's) tabs pushed to the right; every tab with the link's underline and color, the current
   one in white over the yellow accent */
.tabs ul {
	gap: 1.25rem;
}

.tabs li.product + li:not(.product) {
	margin-left: auto;
}

.tabs a {
	border-bottom-color: var(--accentColor);
	color: var(--accentColor);
	white-space: nowrap; /* CLAUDE #880: Good Show and Your Profile on one line each */
}

.tabs .current a,
.tabs .active a {
	color: var(--primaryTextColor);
}

.tabs .current a {
	border-bottom-color: transparent;
}

.tabs .logo {
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 0.25rem;
	background: center / contain no-repeat url(../../../app/images/icon-256.png);
}

/* CLAUDE #881: the page's header is Agent's (base.css); was the TPM's own, the title in bold system type under the tabs */

main {
	flex: 1 0 auto; /* CLAUDE #830: the column, the bar first, to the window's bottom, in its color, with the watermark (was 960 px, on the page) */
	width: 100%;
	max-width: 1024px;
	/* CLAUDE #881: not centered (was margin: 0 auto; owner): at the left, beside the sidebar, as Mail's */
	padding: 0 1rem 4rem; /* CLAUDE #881: Agent's main's sides (was 1.5rem) */
	background: var(--contentColor);
}

/* sections: a small heading, then a card of rows */
section {
	margin-top: 1.75rem;
}

section > header {
	display: flex;
	padding: 0 0.25rem 0.45rem;
}

section > header h3 {
	flex: 1;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--secondaryTextColor);
}

section > ul,
section > p {
	background: var(--foregroundColor);
	border: 1px solid var(--horizontalRuleColor);
	border-radius: 10px;
	overflow: hidden;
}

section li {
	min-height: 3rem;
	padding: 0.65rem 2.5rem 0.65rem 1rem;
}

section li + li {
	border-top: 1px solid var(--horizontalRuleColor);
}

section li:has(.view):hover {
	background: var(--hoverColor);
}

section li .image {
	width: 2.75rem;
	height: 2.75rem;
	margin-right: 0.9rem;
	border-radius: 8px;
	background-color: var(--backgroundColor);
}

section .image.none::before {
	color: var(--inactiveAccentColor);
	font-size: 1.1rem;
	font-weight: 300;
}

section .text {
	font-weight: 500;
}

section .detail-text {
	font-size: 0.88rem;
	color: var(--secondaryTextColor);
}

section .detail-text:empty {
	display: none;
}

section .view::after {
	content: "\f054";
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.75rem;
	color: var(--inactiveAccentColor);
}

section > p {
	padding: 0.75rem 1rem;
}

section > footer {
	padding: 0.5rem 0.25rem 0;
	font-size: 0.85rem;
	color: var(--secondaryTextColor);
}

section.intro > p {
	background: none;
	border: 0;
	padding: 0;
	color: var(--secondaryTextColor);
}

section.intro > p + p {
	margin-top: 0.6rem;
}

section.intro strong {
	color: var(--primaryTextColor);
}

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

/* a room's header: its image beside its name and kind */
.details_header {
	gap: 1.25rem;
}

.details_header .image {
	width: 5.5rem;
	height: 5.5rem;
	border-radius: 14px;
	background-color: var(--foregroundColor);
	border: 1px solid var(--horizontalRuleColor);
}

.details_header.theatre .image {
	background-size: contain;
}

.details_header .image.none::before {
	font-size: 2rem;
}

.details_header .text p:first-child {
	font-size: 1.35rem;
	font-weight: 600;
}

.details_header .text p + p {
	color: var(--secondaryTextColor);
}

/* a page's one action */
form.actions {
	padding-top: 1.5rem;
}

button.primary {
	padding: 0.6rem 1.4rem;
	border: 0;
	border-radius: 8px;
	background: var(--accentColor);
	color: var(--onAccentColor);
	font-weight: 600;
}

button.primary:hover {
	filter: brightness(1.08);
}

.view-as-bar {
	bottom: 0;
}

/* CLAUDE #156: forms: a card of fields, switches and checkboxes, and the page's buttons in a row */
/* CLAUDE #830: without the box's background, and a field without its padding (owner, 2026-11-14: "The label and its input or select
   having borders and background colors makes the form too busy on desktop"); were the cards' color, and 0.7rem 1rem 0.8rem */
label.field,
.switches,
.checks {
	border: 1px solid var(--horizontalRuleColor);
	border-radius: 10px;
}

label.field + label.field,
.checks + label.field,
section > p + label.field { /* CLAUDE #850: and a field under a card (General's image; Inventory's photo), which touched it */
	margin-top: 0.75rem;
}

label.field > span {
	margin-bottom: 0.3rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--secondaryTextColor);
}

label.field input,
label.field textarea {
	padding: 0.5rem 0.65rem;
	border: 1px solid var(--horizontalRuleColor);
	border-radius: 6px;
	background: var(--backgroundColor);
}

label.field input:focus,
label.field textarea:focus {
	outline: 2px solid var(--accentColor);
	outline-offset: -1px;
	border-color: transparent;
}

label.field.copy input {
	color: var(--accentColor);
}

label.switch,
label.check {
	padding: 0.65rem 1rem;
}

label.switch + label.switch,
label.check + label.check {
	border-top: 1px solid var(--horizontalRuleColor);
}

label.switch:hover,
label.check:hover {
	background: var(--hoverColor);
}

label.switch small {
	font-size: 0.85rem;
	color: var(--secondaryTextColor);
}

label.switch input[type="checkbox"] {
	width: 2.4rem;
	height: 1.4rem;
	border-radius: 0.7rem;
	background: var(--horizontalRuleColor);
	transition: background 0.15s;
}

label.switch input[type="checkbox"]::after {
	left: 0.15rem;
	top: 0.15rem;
	width: 1.1rem;
	height: 1.1rem;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s;
}

label.switch input[type="checkbox"]:checked {
	background: var(--accentColor);
}

label.switch input[type="checkbox"]:checked::after {
	transform: translateX(1rem);
}

label.check input[type="checkbox"] {
	width: 1rem;
	height: 1rem;
	margin: 0;
	accent-color: var(--accentColor);
}

.actions {
	padding-top: 1.5rem;
}

button.secondary,
button.destructive {
	padding: 0.6rem 1.2rem;
	border: 1px solid var(--horizontalRuleColor);
	border-radius: 8px;
	background: var(--foregroundColor);
	font-weight: 600;
}

button.secondary {
	color: var(--accentColor);
}

button.destructive {
	color: var(--destructiveColor);
}

button.secondary:hover,
button.destructive:hover {
	background: var(--hoverColor);
}

/* a member's initials */
section .image.initials {
	border-radius: 50%;
	background: linear-gradient(#a5abb8, #858994);
	color: #ffffff;
	font-size: 0.95rem;
}

section .about {
	font-size: 0.9rem;
}

section.bio > p .none {
	color: var(--secondaryTextColor);
}

/* CLAUDE #156: the calendar on desktop: tabs as pills, the choices as a button group, and the grid as a card */
nav.segments {
	display: inline-flex;
	gap: 0.25rem;
	margin-top: 1rem;
	padding: 0.2rem;
	border: 1px solid var(--horizontalRuleColor);
	border-radius: 8px;
	background: var(--foregroundColor);
}

nav.segments a {
	flex: none;
	padding: 0.35rem 1rem;
	border-radius: 6px;
	color: var(--secondaryTextColor);
	font-weight: 600;
}

nav.segments a:hover {
	text-decoration: none;
	color: var(--primaryTextColor);
}

nav.segments a.active { /* CLAUDE #839: the links' blue (owner, 2026-11-14: "Upcoming/Past should use the link color for desktop, not accent"; was #811's yellow accent, as Agent's picked Directory kind), with the words for a blue fill */
	background: var(--accentColor);
	color: var(--onAccentColor);
}

fieldset.choices {
	border: 1px solid var(--horizontalRuleColor);
	border-radius: 7px;
	overflow: hidden;
}

fieldset.choices label + label {
	border-left: 1px solid var(--horizontalRuleColor);
}

fieldset.choices span {
	color: var(--secondaryTextColor);
}

fieldset.choices label:hover span {
	background: var(--hoverColor);
}

fieldset.choices input:checked + span {
	background: var(--accentColor);
	color: var(--onAccentColor);
}

fieldset.choices input:focus-visible + span {
	outline: 2px solid var(--accentColor);
	outline-offset: -2px;
}

li.answering {
	padding-right: 1rem;
}

label.field select {
	padding: 0.45rem 0.6rem;
	border: 1px solid var(--horizontalRuleColor);
	border-radius: 6px;
	background: var(--backgroundColor);
}

.grid-scroll {
	margin-top: 1.5rem;
	border: 1px solid var(--horizontalRuleColor);
	border-radius: 10px;
	background: var(--foregroundColor);
}

table.conflicts th,
table.conflicts td {
	border-bottom: 1px solid var(--horizontalRuleColor);
}

table.conflicts tbody th,
table.conflicts tfoot th,
table.conflicts thead th:first-child { /* CLAUDE #910: Member too, as it stays in place (base.css) */
	background: var(--foregroundColor);
	font-weight: 500;
}

table.conflicts thead th {
	color: var(--secondaryTextColor);
}

table.conflicts tbody tr:hover td,
table.conflicts tbody tr:hover th {
	background: var(--hoverColor);
}

/* CLAUDE #156: a chat on desktop: bubbles with a border, the member's own blue */
section.posts {
	padding: 0.5rem 0;
}

.post .bubble {
	border: 1px solid var(--horizontalRuleColor);
	border-radius: 14px;
	background: var(--foregroundColor);
}

.post.mine .bubble {
	border-color: var(--accentColor);
	background: var(--accentColor);
	color: var(--onAccentColor);
}

.post.mine .bubble a {
	color: var(--onAccentColor);
	text-decoration: underline;
}

.post-name,
.post-time,
p.post-day {
	color: var(--secondaryTextColor);
}

form.compose {
	margin-top: 1.5rem;
}

/* CLAUDE #813: the room's page on desktop: See All in the accent color, and the buttons as the cards' rows of one, lighting up under the
   pointer */
section > header a {
	font-size: 0.85rem;
	font-weight: 500;
}

section.buttons a,
section.buttons button { /* CLAUDE #880 */
	padding: 0.75rem 1rem;
	border: 1px solid var(--horizontalRuleColor);
	border-radius: 10px;
	background: var(--foregroundColor);
	font-weight: 500;
}

section.buttons a:hover {
	background: var(--hoverColor);
	text-decoration: none;
}

/* CLAUDE #817: Membership's groups on desktop: a card row in the accent color */
details.group > summary {
	padding: 0.75rem 1rem;
	border: 1px solid var(--horizontalRuleColor);
	border-radius: 10px;
	background: var(--foregroundColor);
	color: var(--accentColor);
	font-weight: 500;
}

details.group[open] > summary {
	margin-bottom: 0.5rem;
}

/* CLAUDE #156: the inventory on desktop: an overdue loan in red, Find and Filter in the accent color, and the photo with the cards' corners */
section .detail-text.problem {
	color: var(--destructiveColor);
}

details.filters > summary {
	margin: 1.25rem 0.25rem 0;
	font-weight: 500;
	color: var(--accentColor);
}

section.inventory-photo img {
	border-radius: 10px;
}

/* CLAUDE #811: the answers' badges in their colors for a dark page whatever the system's setting (base.css gives them dark words in light
   mode, and this page is always dark) */
.answer-0 { color: #5fd47d; }
.answer-1 { color: #ffb340; }
.answer-2 { color: #ff6b61; }
.answer-3 { color: #9a98ff; }

/* CLAUDE #817: a chat's time beside its name, in the secondary color */
section .text.with-time time {
	color: var(--secondaryTextColor);
}

/* CLAUDE #822: the Events list and the event editor on desktop: the bar's Save as a link, a row's date and call count on the right, Copy
   lighting up under the pointer, a call's Delete in red, Public in the yellow accent, and the Edit Call sheet as a panel over the dimmed page,
   with its own bar (Cancel, its title, Done) */
/* CLAUDE #881: the bar's Save is Agent's header button (base.css) */

section li .secondary-text {
	font-size: 0.9rem;
	color: var(--secondaryTextColor);
}

section li .secondary-detail-text {
	font-size: 0.8rem;
	color: var(--secondaryTextColor);
}

section .alert,
section li .secondary-detail-text.alert {
	color: var(--destructiveColor);
}

section li .copy {
	border-radius: 6px;
	color: var(--accentColor);
}

section li .copy:hover {
	background: var(--hoverColor);
}

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

li.call-row .public {
	color: var(--highlightColor);
}

.sheets .sheet {
	margin-top: 1.75rem;
}

.sheet-bar {
	padding: 0 0.25rem 0.5rem;
}

.sheet-bar h3 {
	font-size: 1.05rem;
	font-weight: 700;
}

.sheet-bar button {
	color: var(--accentColor);
	font-weight: 600;
}

.sheet-bar button:hover {
	text-decoration: underline;
}

form.scripted .sheet.open {
	inset: 6vh auto auto 50%;
	transform: translateX(-50%);
	width: min(600px, calc(100vw - 2rem));
	max-height: 88vh;
	margin: 0;
	padding: 0 1.5rem 1.5rem;
	border: 1px solid var(--horizontalRuleColor);
	border-radius: 12px;
	background: var(--backgroundColor);
	box-shadow: 0 0 0 100vmax rgba(1, 13, 37, 0.7), 0 20px 50px rgba(0, 0, 0, 0.5);
}

form.scripted .sheet .sheet-bar {
	padding: 1.1rem 0 0.8rem;
	background: var(--backgroundColor);
	border-bottom: 1px solid var(--horizontalRuleColor);
}

form.scripted .sheet .sheet-bar h3 {
	font-size: 1.25rem;
}

section.venue .new-venue {
	margin-top: 0.75rem;
}

section.venue .new-venue .actions {
	padding-top: 0.75rem;
}

/* CLAUDE #833: a call's Delete on desktop: a trash can at the row's end, red under the pointer, which asks first (owner, 2026-11-14: "For
   desktop, use the trashcan icon and display a confirmation") */
li.call-row .public {
	order: 2;
}

li.call-row .remove {
	order: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	margin: 0 0 0 0.5rem;
	border-radius: 6px;
	color: var(--secondaryTextColor);
}

li.call-row .remove:hover {
	background: var(--hoverColor);
	color: var(--destructiveColor);
}

li.call-row .remove::before {
	content: "\f1f8";
	font-weight: 400;
	font-size: 1rem;
}

/* CLAUDE #839: the room's Subscribe buttons set apart from Upcoming Events' list by a section's space, as Update Bio is (owner, 2026-11-14) */
section > :not(header) + ul.subscribe {
	margin-top: 1.75rem;
}

/* CLAUDE #843: Auditioner Details' Enlarge and Shrink, in the link color */
section.resume label.resume-size {
	color: var(--accentColor);
}

/* CLAUDE #843: Available Characters' order numbers, as the fields' inputs */
section li label.order input {
	padding: 0.35rem 0.4rem;
	border: 1px solid var(--horizontalRuleColor);
	border-radius: 6px;
	background: var(--backgroundColor);
	color: inherit;
	font: inherit;
}

section li label.order input:focus {
	outline: 2px solid var(--accentColor);
	outline-offset: -1px;
	border-color: transparent;
}
