/* The few rules the Events page and the Recipe pages need that styles.css (the prototype's)
	does not have. Fold them into the prototype stylesheet, then delete this file. */

/* The Recipe's tabs are links to the page with `tab` set, not radio buttons. The chosen one is
	drawn as styles.css draws a checked .editor__tab */
a.editor__tab {
	color: inherit;
	text-decoration: none;
}

.editor__tab[aria-selected="true"] {
	font-weight: 600;
}

.editor__tab[aria-selected="true"]::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -8px;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--color-banana-deep);
}

/* A Recipe's description and source link, under its title */
.recipe__about {
	margin: 0 0 12px;
	color: var(--color-muted);
}

.recipe__about p {
	margin: 0 0 4px;
}

/* The notice on an imported Recipe, above the tabs: the words, then "Undo import" */
.recipe__notice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin: 0 0 12px;
	padding: 8px 12px;
	border: 1px solid var(--color-banana-edge);
	border-radius: 8px;
	background: var(--color-banana-soft);
}

.recipe__notice p {
	margin: 0;
	overflow-wrap: anywhere;
}

/* A one-line notice at the top of a page (Profile, Home): the wording the controller sent */
.page-notice {
	margin: 0 0 16px;
	padding: 8px 12px;
	border: 1px solid var(--color-banana-edge);
	border-radius: 8px;
	background: var(--color-banana-soft);
	overflow-wrap: anywhere;
}

/* A warning button, for deleting an account */
.btn--danger {
	border-color: var(--color-danger);
	color: var(--color-danger);
}

.btn--danger:hover {
	background: var(--color-danger);
	color: #fff;
}

/* The Profile page: four sections in one narrow column, the last one set apart */
.profile {
	max-width: 560px;
}

.profile__section {
	margin-bottom: 32px;
}

.profile__title {
	margin: 0 0 12px;
	font-size: var(--text-body);
}

.profile__section--danger {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--color-border);
}

.profile__current {
	margin: 0 0 12px;
	overflow-wrap: anywhere;
}

.profile__current-label {
	color: var(--color-muted);
	margin-right: 6px;
}

.profile__pending {
	margin: 0 0 12px;
	color: var(--color-muted);
	overflow-wrap: anywhere;
}

.profile__text {
	margin: 0 0 12px;
}

.profile__actions {
	display: flex;
	gap: 8px;
}

.profile__list {
	margin: 0 0 16px;
	padding-left: 20px;
}

.profile__list li {
	margin-bottom: 6px;
}

/* The Privacy policy's table of providers: scrolls sideways on a phone instead of widening the page */
.legal__table {
	margin: 0 0 1em;
	overflow-x: auto;
}

.legal__table .data-table td {
	height: auto;
	padding-block: 8px;
	vertical-align: top;
}

/* The import page: one narrow centered box in the style of a dialog */
.import-box {
	width: min(480px, 100%);
	margin: 24px auto;
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	background: var(--color-surface);
}

/* The pasted-text option under the address on the import page: a line between the two options, a large box
   that scrolls, and the count under it, which turns to the error color past the limit */
.import-paste {
	border-top: 1px solid var(--color-border);
}

.import-text {
	width: 100%;
	min-height: 14rem;
	resize: vertical;
	overflow: auto;
	line-height: 1.4;
}

.import-count--over {
	color: var(--color-danger);
	font-weight: 600;
}

/* A row named by the address after # (an event found by a search) */
.event-row:target {
	background: var(--color-banana-soft);
	box-shadow: inset 3px 0 0 var(--color-banana-edge);
}

/* The sort headings are links here, not buttons */
a.sort {
	text-decoration: none;
}

/* The kind's icon sits in the first column; it is not a button */
.event__kind {
	display: inline-flex;
	padding: 6px;
	color: var(--color-muted);
}

/* The text, then the Group's name after it in the smaller grey style of a list row */
.event__text {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 10px;
}

.event__text .editable {
	width: auto;
	max-width: 100%;
	overflow-wrap: break-word;
}

/* On a phone the date column takes only what the date needs, so the text keeps room */
@media (max-width: 640px) {
	.data-table__date {
		width: auto;
		white-space: nowrap;
	}

	.event-row .editable[data-field="date"] {
		white-space: nowrap;
	}

	.event__time {
		padding-inline: 0 4px;
	}

	.event__time .editable {
		padding-inline: 4px;
	}
}

.event__group {
	color: var(--color-muted);
	font-size: var(--text-meta);
}

.event__time {
	width: 1%;
	white-space: nowrap;
}

.event__time .editable {
	width: auto;
}

.event__clock {
	display: flex;
	align-items: center;
	gap: 6px;
}

.event__clock .input {
	width: 64px;
}

.event__clock .select {
	width: auto;
}

/* The admin side. Its header band is a darker cerulean, so it can never be mistaken for the
	EndUser side. One modifier on .site-header carries the whole change. */
.site-header--admin {
	background: #00506E;
	border-bottom-color: #003B52;
	color: #FFFFFF;
}

.site-header--admin .site-logo,
.site-header--admin .site-nav__link {
	color: #FFFFFF;
}

.site-header--admin .site-nav__link:hover {
	background: rgba(255, 255, 255, 0.14);
}

.site-header--admin .site-header__inner {
	padding-block: 12px;
}

.admin-label {
	padding: 1px 8px;
	border-radius: 4px;
	background: var(--color-banana);
	color: var(--color-ink);
	font-size: var(--text-tiny);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Sign out, with its message beside it (the message is white on the dark band) */
.admin-signout {
	display: flex;
	align-items: center;
	gap: 12px;
}

.site-header--admin .dialog__error {
	margin: 0;
	color: var(--color-banana-soft);
}

/* The "Friend of admin" box at the right of an End users row */
.admin-friend {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	cursor: pointer;
}

.admin-friend input {
	width: 18px;
	height: 18px;
	margin: 0;
}

.item__summary {
	overflow-wrap: anywhere;
}

/* Formatted Knowledge editor: the tags of the Bullet and Number rows. They sit beside the four tags of
   the prototype stylesheet (blue Title, green Heading, yellow Bold, violet Link) in two colors the
   others do not use: a soft orange and a soft rose. */
:root {
	--tag-bullet: #FDE6D2;
	--tag-bullet-edge: #E8B48A;
	--tag-number: #F9E0EA;
	--tag-number-edge: #DDA1BA;
}

.block[data-type="bullet"] {
	--tag-fill: var(--tag-bullet);
	--tag-edge: var(--tag-bullet-edge);
}

.block[data-type="number"] {
	--tag-fill: var(--tag-number);
	--tag-edge: var(--tag-number-edge);
}

/* The Recipe's multiplier (Post_Launch_Addition_6, Item 1). While the scale is not ×1 the quantities, and the
   chip that says so, are white on --scaled-ingredient: a strong magenta, clearly apart from the page's dark
   teal text, the cerulean of links and the banana accent. */
:root {
	--scaled-ingredient: #A0148C;
}

/* The one row under the Recipe's title: the "Scale Recipe" button, or the list of scales, or the chip. Only one
   shows at a time (static/recipe-scale.js), so they share the place */
.recipe__scale {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
}

.recipe__scale[hidden] {
	display: none;
}

.scale-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.scale-bar[hidden] {
	display: none;
}

.scale-button {
	min-width: 44px;
	justify-content: center;
}

.scale-button[aria-pressed="true"] {
	border-color: var(--color-banana-edge);
	background: var(--color-banana);
	font-weight: 600;
}

/* While the scale is not ×1 only the quantity cell is highlighted: a solid block of the color, in white. A row with
   no quantity has an empty cell, which shows nothing. The ingredient's name and its unit stay as they are */
.ingredient-row--scaled td[data-cell="quantity"]:not(:empty) {
	background: var(--scaled-ingredient);
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.45);
	color: #FFFFFF;
	font-weight: 600;
}

/* The chip: "×2 in effect · Reset", in the same color and white as the quantities it belongs to. The place for the
   message of a failed change is in the same row, hidden until there is one */
.recipe__scale-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 2px 4px 2px 12px;
	border: 1px solid var(--scaled-ingredient);
	border-radius: 999px;
	background: var(--scaled-ingredient);
	color: #FFFFFF;
	font-size: var(--text-small);
	font-weight: 600;
}

.recipe__scale-chip[hidden] {
	display: none;
}

.recipe__scale-chip {
	flex: none;
	white-space: nowrap;
}

/* The chip's words are a button that opens the list of scales: plain, in the chip's own white */
.recipe__scale-label {
	padding: 4px 2px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.recipe__scale-label:hover {
	text-decoration: underline;
}

.recipe__scale-label:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 2px;
}

.recipe__scale .dialog__error {
	flex: 1 0 100%;
	margin: 4px 0 0;
}

/* The words of Prep and Instructions that name an ingredient (Item 2): a subtle dotted underline, and the
   popup of a tapped word with the speaker button that goes with it */
.ingredient-word {
	border-bottom: 1px dotted currentColor;
	cursor: pointer;
}

.ingredient-word:focus-visible {
	outline: 2px solid var(--color-cerulean);
	outline-offset: 2px;
}

.ingredient-speech[aria-pressed="true"] .icon:last-child,
.ingredient-speech[aria-pressed="false"] .icon:first-child {
	display: none;
}

.ingredient-popup {
	position: absolute;
	z-index: 30;
	max-width: min(340px, calc(100vw - 16px));
	padding: 10px 12px;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	background: var(--color-surface);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	font-size: var(--text-small);
}

.ingredient-popup[hidden] {
	display: none;
}

.ingredient-popup__lines {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ingredient-popup__lines li + li {
	margin-top: 6px;
}

/* The admin's Application Stats tables (both use this one class): no lines, every other body row in a
   very light gray, numbers right-aligned and labels left-aligned, a modest width, and a gap under
   each table. The header row of the second table is not shaded. */
:root {
	--stats-row-shade: #F3F6F7;
}

.stats-table {
	width: 100%;
	max-width: 480px;
	margin: 0 0 32px;
	border: 0;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.stats-table th,
.stats-table td {
	padding: 8px 12px;
	border: 0;
	text-align: right;
}

.stats-table th[scope="row"] {
	font-weight: 400;
	text-align: left;
}

.stats-table thead th {
	font-weight: 600;
}

.stats-table tbody tr:nth-child(even) {
	background: var(--stats-row-shade);
}

/* The fields of a sign-in or sign-up box: space above the first one, to match the 16px under each
   (`.field`). Only the form pages that link this file get it: sign-up and the admin sign-in. */
.auth-fields {
	margin-top: 16px;
}

/* A password box with its show/hide button inside the right edge (textField() with `revealable`) */
.password-field {
	position: relative;
}

.password-field .input {
	padding-right: 44px;
}

.password-toggle {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--color-muted);
	cursor: pointer;
}

.password-toggle:hover {
	color: inherit;
}

.password-toggle__icon {
	width: 20px;
	height: 20px;
}

/* The preview on an asset row (asset list, search results, the home page's sample rows) is cut by
   rendered lines, so the width of the screen decides how much text shows. Tune the count here. */
:root {
	--preview-lines: 2;
}

.item__summary--preview {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--preview-lines);
	line-clamp: var(--preview-lines);
	overflow: hidden;
}

/* A message: the name, address and time on one line, then the text as typed, line breaks kept */
.message__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 18px;
	margin-bottom: 8px;
}

.message__head .item__title {
	margin: 0;
}

.message__head .item__meta li {
	white-space: normal;
	overflow-wrap: anywhere;
}

.message__text {
	max-width: 68ch;
	margin: 0;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

/* The ingredient table of the Recipe editor: the boxes fill their cells */
#ingredient-rows .input {
	width: 100%;
}

/* The Categories page: the add row, and a row's rename box in place of its name */
.category-add {
	margin: 0 0 16px;
}

.category-add__row {
	display: flex;
	gap: 8px;
	max-width: 420px;
}

.category-add__row .input {
	flex: 1;
	min-width: 0;
}

.category-edit {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.category-edit[hidden] {
	display: none;
}

.category-edit .input {
	flex: 1;
	min-width: 8rem;
	max-width: 320px;
}

.category-actions {
	display: flex;
	gap: 4px;
}

.category-actions[hidden] {
	display: none;
}

/* The Recipe's editor form has no .layout: its editor box is the form's own last <div>, so on a phone
   (section 28 of styles.css, class editor-form) it takes the last place, after the buttons */
@media (max-width: 899px) {
	#recipe-editor.editor-form > div:not(.page-head) {
		order: 5;
	}

	/* Cancel and Save at the right. Where there is a Delete button it is pushed to the left by its own
	   margin (section 28); where there is none (the Recipe, and every new asset) they would otherwise
	   sit at the left */
	.editor-form .page-head__actions {
		justify-content: flex-end;
	}
}

/* The Categories page's "Shared with": on a phone the heading sits above the row of chips, so the chips
   have a whole line to themselves (900px and up it is the left column, as before) */
@media (max-width: 899px) {
	.side-nav__section--stacked {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}
}

/* A Category's color: in the rename box the dot is a button that opens the page's one swatch popover */
.color-picker {
	position: relative;
	display: inline-flex;
}

.color-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid var(--color-border-control);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.color-button .dot {
	width: 18px;
	height: 18px;
}

.color-button:focus-visible,
.color-swatch:focus-visible {
	outline: 2px solid var(--color-cerulean);
	outline-offset: 2px;
}

.color-popover {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 20;
	padding: 10px;
	border: 1px solid var(--color-border-control);
	border-radius: 8px;
	background: var(--color-surface, Canvas);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.color-popover[hidden] {
	display: none;
}

.color-popover__pending {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.color-popover__pending[hidden] {
	display: none;
}

.color-popover__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	width: max-content;
	max-width: min(260px, calc(100vw - 48px));
	margin: 0;
	padding: 0;
	list-style: none;
}

.color-swatch {
	width: 28px;
	height: 28px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 50%;
	cursor: pointer;
}

.color-swatch[aria-pressed="true"] {
	border-color: currentColor;
}

.color-swatch--custom {
	display: inline-flex;
	align-items: center;
	height: 28px;
	width: auto;
	padding: 0 10px;
	border: 1px solid var(--color-border-control);
	border-radius: 14px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: var(--text-small);
	white-space: nowrap;
}

/* The page's own color picker, under the swatches (static/color-picker.js) */
.color-popover__panel {
	flex: 0 0 240px;
}

.color-popover__panel:has(.color-custom[hidden]) {
	display: none;
}

.color-custom {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 240px;
	max-width: 100%;
}

.color-custom[hidden] {
	display: none;
}

/* Saturation across, brightness up: white fades in from the left, black from the bottom, over the hue */
.color-area {
	position: relative;
	height: 150px;
	border-radius: 6px;
	background-color: #ff0000;
	background-image: linear-gradient(to top, #000, rgba(0, 0, 0, 0)), linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
	cursor: crosshair;
	touch-action: none;
	user-select: none;
}

.color-area:focus-visible,
.color-hue:focus-visible,
.color-mode:focus-visible {
	outline: 2px solid var(--color-cerulean);
	outline-offset: 2px;
}

.color-area__handle {
	position: absolute;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
	pointer-events: none;
}

.color-hue {
	width: 100%;
	height: 14px;
	margin: 0;
	border-radius: 7px;
	background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
	-webkit-appearance: none;
	appearance: none;
	touch-action: none;
}

.color-hue::-webkit-slider-thumb {
	width: 20px;
	height: 20px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: transparent;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
	-webkit-appearance: none;
	appearance: none;
}

.color-hue::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: transparent;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.color-modes {
	display: flex;
	gap: 4px;
}

.color-mode {
	flex: 1;
	padding: 4px 0;
	border: 1px solid var(--color-border-control);
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: var(--text-small);
	cursor: pointer;
}

.color-mode[aria-pressed="true"] {
	background: var(--color-shade, rgba(0, 0, 0, 0.08));
	font-weight: 600;
}

.color-fields {
	display: flex;
	gap: 6px;
}

.color-fields[hidden] {
	display: none;
}

.color-field {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	font-size: var(--text-small);
}

.color-field .input {
	flex: none;
	width: 100%;
	min-width: 0;
	max-width: none;
	padding: 6px;
	text-align: center;
}

/* Editing an asset in place (static/edit-mode.js), for every asset view that has it. The view's region
	is hidden with the `hidden` attribute and the copy of the editor sits after it, so the only rule
	needed is for the page around them: while the editor is open the header's search is hidden, as a
	search would leave the page and lose what was typed. */
body.is-editing .site-search,
body.is-editing .site-header__search-link {
	display: none;
}

/* The asset list's Categories panel, with "Anyone": a "more" button under the main list opens one
	section per Group (static/asset-list-more.js). The button shows "more" and a down chevron, and
	"less" and an up chevron when it is open (aria-expanded) */
.side-nav__more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 4px 0 0 8px;
	padding: 4px 6px;
	border: 0;
	border-radius: var(--radius);
	background: transparent;
	color: var(--color-muted);
	font: inherit;
	font-size: var(--text-small);
	cursor: pointer;
}

.side-nav__more:hover {
	background: rgba(11, 74, 99, 0.08);
}

/* The button holds two words and two chevrons (spans, then svgs), so the chevrons are told apart by
	their order among the svgs: the first is the down chevron, the last the up one */
.side-nav__more[aria-expanded="false"] .side-nav__more-less,
.side-nav__more[aria-expanded="false"] svg:last-of-type,
.side-nav__more[aria-expanded="true"] .side-nav__more-more,
.side-nav__more[aria-expanded="true"] svg:first-of-type {
	display: none;
}

.side-nav__group {
	margin-top: 12px;
}

.side-nav__subheading {
	margin: 0 0 4px;
	padding: 0 8px 4px;
	border-bottom: 1px solid var(--color-border);
	color: var(--color-muted);
	font-size: var(--text-meta);
	font-weight: 600;
	overflow-wrap: anywhere;
}

/* An existing asset's "Shared with" is a fixed value on the same line as its label (editors) */
.side-nav__fixed {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 8px;
}

.side-nav__fixed .side-nav__heading {
	margin: 0;
}

.side-nav__value {
	margin: 0;
	overflow-wrap: anywhere;
}

/* The Sharing menu of an asset's view, with the message of "Stop sharing" beside it */
#sharing-area {
	display: flex;
	align-items: center;
	gap: 12px;
}

#sharing-area .dialog__error {
	margin: 0;
}

/* A status box or text that cannot be used (a ToDo shared as read-only) */
.todo__row .icon-toggle:disabled,
.todo__row .editable:disabled {
	color: inherit;
	cursor: default;
}

.todo__row .editable:disabled:hover {
	background: transparent;
}

/* A List view's lines: a clicked line shows the copy icon at its right end (static/list-view.js) */
.prose li[data-copy-text] {
	position: relative;
	cursor: pointer;
}

.prose li[data-copy-text]:has(.copy-btn) {
	padding-right: 40px;
}

.copy-btn {
	position: absolute;
	top: 50%;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	transform: translateY(-50%);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-surface);
	color: var(--color-ink);
	cursor: pointer;
}

.copy-btn:hover {
	background: var(--color-banana-soft);
}

/* The Recipe view's actions: Play, then the pen */
.editor__tools {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* The Recipe's tools (Play, the pen) are inside each tab's panel, so they show and hide with it. On a
	wide screen they sit at the right end of the tab bar, where they were; on a phone, which has no
	room beside three tabs, they are a row of their own at the top of the panel */
#recipe-box {
	position: relative;
}

@media (min-width: 600px) {
	#recipe-box .editor__tools {
		position: absolute;
		top: 0;
		right: 8px;
		height: 47px;
	}
}

@media (max-width: 599px) {
	#recipe-box .editor__tools {
		justify-content: flex-end;
		padding: 4px 8px;
		border-bottom: 1px solid var(--color-border-muted);
	}
}

#player-start {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* Player mode (static/recipe-player.js): the tabs and actions go, the current step is large and
	the rest are dimmed, and the controls are pinned to the bottom of the screen */
#recipe-box.is-playing [data-player-hide],
#recipe-box.is-playing .editor__header {
	display: none;
}

body.is-playing main {
	padding-bottom: 50vh;
}

#recipe-box.is-playing .prose li {
	margin-left: -12px;
	padding: 8px 12px;
	border-radius: 8px;
	opacity: 0.45;
	transition: opacity 0.15s;
}

#recipe-box.is-playing .prose li.is-current {
	background: var(--color-banana-soft);
	font-size: 1.75rem;
	line-height: 1.35;
	opacity: 1;
}

.player {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--color-border);
	background: var(--color-surface);
}

.player__small,
.player__next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--color-ink);
	cursor: pointer;
}

.player__small {
	width: 44px;
	height: 44px;
	border: 1px solid var(--color-border);
	border-radius: 50%;
	background: transparent;
}

.player__small[hidden] {
	display: none;
}

/* The speaker button shows the speaker when it is on and the crossed-out speaker when it is off */
.player__speaker[aria-pressed="true"] .icon:last-child,
.player__speaker[aria-pressed="false"] .icon:first-child {
	display: none;
}

.player__small:disabled {
	opacity: 0.4;
	cursor: default;
}

.player__next {
	flex: 0 1 240px;
	height: 64px;
	border: 1px solid var(--color-banana-edge);
	border-radius: 32px;
	background: var(--color-banana);
}

.player__next:hover {
	background: var(--color-banana-deep);
}

.player__next .icon {
	width: 32px;
	height: 32px;
}

/* The Events page: filter links above the table, the arrow of the sorted heading, and the kind
	icons at 1.5 times their size (24px instead of 16px) */
.event-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 8px 12px;
}

.event-filter {
	padding: 4px 12px;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	color: inherit;
	font-size: var(--text-small);
	text-decoration: none;
}

.event-filter:hover {
	background: rgba(11, 74, 99, 0.08);
}

.event-filter[aria-current="true"] {
	border-color: var(--color-banana-edge);
	background: var(--color-banana);
	font-weight: 600;
}

.event-row.is-filtered {
	display: none;
}

th[aria-sort="ascending"] .sort::after {
	content: "\2191";
}

th[aria-sort="descending"] .sort::after {
	content: "\2193";
}

.event__kind .icon {
	width: 24px;
	height: 24px;
}

.data-table--editable .data-table__icon {
	width: 56px;
}

.data-table--editable td.data-table__icon {
	vertical-align: middle;
}
