/* Pushout — built from the Pushout design system.
 * A single stack of notification cards on a quiet ground. One theme: people pick their own background colour.
 * Every value comes from the tokens below; components start with po-. */

@font-face {
	font-family: "Geist";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
		U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Geist";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("/fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
		U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Geist Mono";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("/fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
		U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	/* Colour */
	--ground-default: #efedf0;
	--ground: var(--ground-default);
	--on-ground: #151317;
	--on-ground-muted: #68626a;
	--card: #ffffff;
	--veil: rgba(255, 255, 255, 0.8);
	--card-edge: #d9d5db;
	--wash: #f4f2f5;
	--hairline: #e6e2e7;
	--control-line: #8f8991;
	--ink: #151317;
	--ink-muted: #68626a;
	--push: #f22952;
	--push-fill: #e11d48;
	--on-push: #ffffff;
	--push-text: #d1123c;
	--push-tint: #fde8ed;
	--ok: #187634;
	--danger: #b3261e;
	--code-bg: #151317;
	--code-ink: #f4f2f5;

	/* Type */
	--font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	/* Space */
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-6: 24px;
	--space-8: 32px;

	/* Radius */
	--radius-sm: 6px;
	--radius-icon: 10px;
	--radius-md: 12px;
	--radius-card: 22px;
	--radius-full: 999px;

	/* Depth */
	--rest: 0 1px 2px rgba(21, 19, 23, 0.04), 0 2px 8px rgba(21, 19, 23, 0.04);
	--float: 0 2px 4px rgba(21, 19, 23, 0.05), 0 12px 32px rgba(21, 19, 23, 0.1);
	--blur: none;

	/* Size */
	--column: 640px;
	--icon: 38px;
	--control: 40px;

	color-scheme: light;
}

* {
	box-sizing: border-box;
}

html {
	background: var(--ground);
}

body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font: 400 15px/21px var(--font-sans);
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
}

/* Hides Vue templates until the app mounts. !important: `.wrap` and other display rules would otherwise win. */
[v-cloak] {
	display: none !important;
}

:focus-visible {
	outline: 2px solid var(--push);
	outline-offset: 2px;
}

a {
	color: var(--push-text);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
}

code {
	font-family: var(--font-mono);
	font-size: 0.87em;
	overflow-wrap: anywhere;
}

h1,
h2,
h3 {
	text-wrap: balance;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- The column ---------- */

.wrap {
	max-width: calc(var(--column) + 2 * var(--space-4));
	margin: 0 auto;
	padding: max(var(--space-3), env(safe-area-inset-top)) max(var(--space-4), env(safe-area-inset-right)) var(--space-6)
		max(var(--space-4), env(safe-area-inset-left));
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

/* ---------- Card: the one surface ---------- */

.po-card,
.po-topbar,
.po-push,
.po-composer,
.po-panel,
.po-notice,
.po-profile,
.po-suggest,
.po-toast,
.po-empty {
	background: var(--card);
	border-radius: var(--radius-card);
	box-shadow: var(--rest);
	-webkit-backdrop-filter: var(--blur);
	backdrop-filter: var(--blur);
}

.po-card {
	padding: var(--space-4);
}

/* ---------- Page head: title on the ground, one action ---------- */

.po-page-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	margin-top: var(--space-4);
	/* Title to its first card or day label: 12px with the stack's 8px gap. */
	margin-bottom: var(--space-1);
	padding: 0 var(--space-1);
}

/* Spacing around the stack. Cards sit 8px apart (the .wrap gap); these add to it:
   top bar to the first card 16px, profile card to its day label 24px. */
.po-topbar + :not(.po-page-head) {
	margin-top: var(--space-2);
}

.po-page-head + .po-day {
	margin-top: 0;
}

.po-profile + .po-day {
	margin-top: var(--space-4);
}

@media (min-width: 640px) {
	.wrap {
		padding-top: max(20px, env(safe-area-inset-top));
	}

	.wrap > .po-topbar {
		top: max(20px, env(safe-area-inset-top));
	}

	.po-topbar + :not(.po-page-head) {
		margin-top: var(--space-4);
	}

	.po-page-head {
		margin-top: var(--space-6);
	}
}

.po-title,
.po-profile h1 {
	margin: 0;
	font-size: 24px;
	line-height: 30px;
	font-weight: 600;
	letter-spacing: -0.02em;
	overflow-wrap: anywhere;
}

.po-title {
	color: var(--on-ground);
}

.po-day {
	margin: var(--space-2) 0 0 var(--space-4);
	font: 600 11px/14px var(--font-sans);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--on-ground-muted);
}

.po-ground-note {
	margin: var(--space-2) var(--space-4) 0;
	font-size: 13px;
	line-height: 18px;
	color: var(--on-ground-muted);
	text-align: center;
}

.po-ground-note a {
	color: inherit;
	text-decoration: underline;
}

/* ---------- Button: pills ---------- */

.po-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	height: var(--control);
	padding: 0 18px;
	border: 0;
	border-radius: var(--radius-full);
	background: var(--push-fill);
	color: var(--on-push);
	font: 500 14px/20px var(--font-sans);
	white-space: nowrap;
	cursor: pointer;
	text-decoration: none;
	transition:
		filter 0.15s ease,
		background-color 0.15s ease,
		transform 0.1s ease;
}

.po-btn:hover {
	filter: brightness(1.06);
	text-decoration: none;
}

.po-btn:active {
	transform: scale(0.98);
}

.po-btn:disabled,
.po-btn.disabled {
	opacity: 0.4;
	cursor: default;
	filter: none;
	transform: none;
	pointer-events: none;
}

.po-btn.secondary {
	background: var(--wash);
	color: var(--ink);
}

.po-btn.secondary:hover {
	filter: none;
	background: var(--hairline);
}

.po-btn.plain {
	background: transparent;
	color: var(--ink);
}

.po-btn.plain:hover {
	filter: none;
	background: var(--wash);
}

.po-btn.danger {
	background: var(--wash);
	color: var(--danger);
}

.po-btn.danger:hover {
	filter: none;
	background: var(--hairline);
}

.po-btn.small {
	height: 32px;
	padding: 0 14px;
	font-size: 13px;
}

.po-btn.block {
	width: 100%;
}

.po-btn svg {
	width: 14px;
	height: 14px;
}

.po-link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--push-text);
	font: inherit;
	cursor: pointer;
}

.po-link:hover {
	text-decoration: underline;
}

/* A select that looks like a small secondary button. */
.po-select {
	appearance: none;
	height: 32px;
	padding: 0 30px 0 14px;
	border: 0;
	border-radius: var(--radius-full);
	background: var(--wash)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23151317' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
		no-repeat right 10px center / 14px;
	color: var(--ink);
	font: 500 13px/20px var(--font-sans);
	cursor: pointer;
}

.po-select:hover {
	background-color: var(--hairline);
}

/* ---------- Field ---------- */

.po-form {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.po-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.po-field > label,
.po-field > .label {
	display: flex;
	justify-content: space-between;
	font: 500 14px/20px var(--font-sans);
}

.po-field small,
.po-hint {
	margin: 0;
	font: 400 13px/18px var(--font-sans);
	color: var(--ink-muted);
}

.po-field small.err {
	color: var(--danger);
}

.po-input {
	width: 100%;
	height: var(--control);
	padding: 0 14px;
	background: var(--wash);
	color: var(--ink);
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	font: 400 15px/21px var(--font-sans);
}

textarea.po-input {
	height: auto;
	padding: 10px 14px;
	resize: vertical;
}

.po-input::placeholder {
	color: var(--ink-muted);
}

.po-input:focus {
	outline: none;
	background: var(--card);
	border-color: var(--control-line);
}

.po-handle {
	position: relative;
	display: flex;
}

.po-handle::before {
	content: "@";
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ink-muted);
	pointer-events: none;
}

.po-handle .po-input {
	flex: 1;
	padding-left: 30px;
}

.po-check {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	font: 500 14px/20px var(--font-sans);
	cursor: pointer;
}

.po-check input {
	appearance: none;
	flex: none;
	margin: 0;
	width: 18px;
	height: 18px;
	border: 1.5px solid var(--control-line);
	border-radius: var(--radius-full);
	display: grid;
	place-content: center;
	cursor: pointer;
}

.po-check input:checked {
	background: var(--push-fill);
	border-color: var(--push-fill);
}

.po-check input:checked::after {
	content: "";
	width: 8px;
	height: 4px;
	border: solid var(--on-push);
	border-width: 0 0 2px 2px;
	transform: rotate(-45deg) translate(1px, -1px);
}

.po-check .stack {
	display: flex;
	flex-direction: column;
}

.po-check .sub {
	font-weight: 400;
	font-size: 12px;
	line-height: 16px;
	color: var(--ink-muted);
}

/* ---------- Avatar: an app icon ---------- */

.po-avatar {
	flex: none;
	width: var(--icon);
	height: var(--icon);
	border-radius: var(--radius-icon);
	display: grid;
	place-items: center;
	overflow: hidden;
	background: var(--wash);
	color: var(--ink);
	font: 600 15px/1 var(--font-sans);
	text-transform: uppercase;
	text-decoration: none;
}

.po-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.po-avatar svg {
	width: 20px;
	height: 20px;
}

.po-avatar.sm {
	width: 24px;
	height: 24px;
	border-radius: 7px;
	font-size: 11px;
}

.po-avatar.lg {
	width: 72px;
	height: 72px;
	border-radius: 18px;
	font-size: 26px;
}

/* ---------- Badge ---------- */

.po-badge {
	display: inline-flex;
	align-items: center;
	flex: none;
	height: 18px;
	padding: 0 6px;
	border-radius: var(--radius-sm);
	background: var(--wash);
	color: var(--ink-muted);
	font: 600 11px/14px var(--font-sans);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.po-badge.private {
	background: var(--push-tint);
	color: var(--push-text);
}

.po-badge.ok {
	color: var(--ok);
}

/* ---------- Push: a notification card ---------- */

.po-push {
	position: relative;
	display: grid;
	grid-template-columns: var(--icon) minmax(0, 1fr);
	gap: var(--space-3);
	padding: 14px var(--space-4);
}

.po-avatar-link {
	display: block;
	width: var(--icon);
	height: var(--icon);
	text-decoration: none;
}

.po-push .meta {
	display: flex;
	align-items: baseline;
	gap: var(--space-2);
	margin: 0;
	min-width: 0;
}

.po-push .who {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	min-width: 0;
	color: var(--ink);
	text-decoration: none;
	font: 600 15px/20px var(--font-sans);
	letter-spacing: -0.01em;
}

.po-push .who .name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.po-push .handle {
	font: 400 13px/18px var(--font-sans);
	letter-spacing: 0;
	color: var(--ink-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.po-push .time {
	margin-left: auto;
	flex: none;
	font: 400 13px/18px var(--font-sans);
	color: var(--ink-muted);
	font-variant-numeric: tabular-nums;
}

.po-push .text {
	margin: 2px 0 0;
	font: 400 15px/21px var(--font-sans);
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.po-push .text a {
	color: var(--push-text);
	text-decoration: none;
}

.po-push .text a:hover {
	text-decoration: underline;
}

.po-push-image {
	display: block;
	margin-top: var(--space-2);
	width: fit-content;
	max-width: 100%;
	border-radius: var(--radius-md);
	border: 1px solid var(--hairline);
	background: var(--wash);
	overflow: hidden;
}

.po-push-image img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 420px;
}

.po-push .recipients {
	margin: 6px 0 0;
	font: 400 13px/18px var(--font-sans);
	color: var(--ink-muted);
}

/* A push that mentions the viewer, sent by someone else. */
.po-push.mentions-you .po-avatar {
	box-shadow:
		0 0 0 2px var(--card),
		0 0 0 4px var(--push);
}

/* A collapsed run of pushes from one sender: the top card with two edges peeking out. */
.po-group {
	position: relative;
	padding-bottom: 12px;
}

.po-group::before,
.po-group::after {
	content: "";
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 6px;
	height: 20px;
	border-radius: 0 0 18px 18px;
	background: var(--card);
	box-shadow: var(--rest);
	opacity: 0.75;
	/* Only the part below the top card shows, so translucent cards do not reveal it. */
	clip-path: inset(14px -8px -8px -8px);
}

.po-group::after {
	left: 20px;
	right: 20px;
	bottom: 0;
	opacity: 0.5;
}

.po-group .po-swipe {
	z-index: 1;
}

/* ---------- Swipe a push (Home): slides left over its Delete or Reply button ---------- */

.po-swipe {
	position: relative;
}

.po-swipe.swipeable .po-push {
	touch-action: pan-y;
	transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.po-swipe.swipeable .po-push.dragging {
	transition: none;
	user-select: none;
	-webkit-user-select: none;
}

.po-swipe.open .po-push {
	/* As SWIPE_WIDTH in script.js */
	transform: translateX(-88px);
}

.po-swipe-action {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 0 0 0 12px;
	border: 0;
	border-radius: var(--radius-card);
	font: 600 12px/16px var(--font-sans);
	color: var(--on-push);
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.po-swipe-action svg {
	width: 22px;
	height: 22px;
}

.po-swipe-action.delete {
	background: var(--danger);
}

.po-swipe-action.reply {
	background: var(--ink);
	color: var(--card);
}

/* Shown only once the card starts to move, so it never peeks around a resting card's rounded corners. */
.po-swipe.open .po-swipe-action,
.po-swipe:has(.po-push.dragging) .po-swipe-action {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.po-swipe.swipeable .po-push,
	.po-swipe-action {
		transition: none;
	}
}

.po-more {
	margin: 4px 0 0;
	padding: 0;
	border: 0;
	background: none;
	font: 400 13px/18px var(--font-sans);
	color: var(--ink-muted);
	cursor: pointer;
}

.po-more:hover {
	color: var(--ink);
}

.po-arrive {
	animation: po-arrive 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes po-arrive {
	from {
		transform: translateY(-8px) scale(0.98);
		opacity: 0;
		box-shadow: var(--float);
	}
}

.po-empty {
	margin: 0;
	padding: var(--space-6) var(--space-4);
	text-align: center;
	color: var(--ink-muted);
	font-size: 14px;
	line-height: 20px;
}

/* ---------- Composer ---------- */

.po-composer {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	padding: 14px var(--space-4);
	transition: box-shadow 0.2s ease;
}

.po-composer.open {
	box-shadow: var(--float);
}

.po-composer .head {
	display: flex;
	align-items: center;
	gap: var(--space-3);
}

.po-composer.open .head {
	align-items: flex-start;
}

.po-composer textarea {
	flex: 1;
	min-width: 0;
	min-height: 21px;
	border: 0;
	background: none;
	resize: none;
	padding: 0;
	margin: 0;
	color: var(--ink);
	font: 400 15px/21px var(--font-sans);
	field-sizing: content;
}

.po-composer.open textarea {
	min-height: 80px;
	padding-top: 8px;
}

.po-composer textarea:focus {
	outline: none;
}

.po-composer textarea::placeholder {
	color: var(--ink-muted);
}

.po-composer .bar {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding-top: var(--space-3);
	border-top: 1px solid var(--hairline);
}

.po-attachment {
	position: relative;
	align-self: flex-start;
	margin-left: calc(var(--icon) + var(--space-3));
}

.po-attachment img {
	display: block;
	max-width: 100%;
	max-height: 200px;
	border-radius: var(--radius-md);
	border: 1px solid var(--hairline);
}

.po-attachment .remove {
	position: absolute;
	top: 6px;
	right: 6px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: var(--radius-full);
	background: rgba(21, 19, 23, 0.7);
	color: #fff;
	cursor: pointer;
}

.po-attachment .remove svg,
.po-attach svg {
	width: 18px;
	height: 18px;
}

.po-attach {
	display: grid;
	place-items: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: var(--radius-full);
	color: var(--ink-muted);
	cursor: pointer;
}

.po-attach svg {
	width: 22px;
	height: 22px;
}

.po-attach:hover {
	background: var(--wash);
	color: var(--ink);
}

.po-attach:focus-within {
	outline: 2px solid var(--push);
	outline-offset: 2px;
}

.po-composer .count {
	margin-left: auto;
	font: 400 13px/18px var(--font-sans);
	color: var(--ink-muted);
	font-variant-numeric: tabular-nums;
}

.po-composer .count.low {
	color: var(--danger);
}

.po-suggest {
	list-style: none;
	margin: 0 0 0 calc(var(--icon) + var(--space-3));
	padding: 6px;
	border-radius: 16px;
	box-shadow: var(--float);
	width: 220px;
	max-width: calc(100% - var(--icon) - var(--space-3));
}

.po-suggest li {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	padding: 6px 8px;
	border-radius: 10px;
	font: 500 14px/20px var(--font-sans);
	cursor: pointer;
}

.po-suggest li.active,
.po-suggest li:hover {
	background: var(--wash);
}

/* ---------- Top bar + nav ---------- */

.po-topbar {
	position: sticky;
	top: max(var(--space-3), env(safe-area-inset-top));
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding: 8px 8px 8px var(--space-4);
}

.po-logo {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	color: var(--ink);
	text-decoration: none;
	font: 600 16px/1 var(--font-sans);
	letter-spacing: -0.02em;
}

.po-logo:hover {
	text-decoration: none;
}

.po-logo svg {
	width: 22px;
	height: 22px;
	color: var(--push);
}

.po-nav {
	display: flex;
	align-items: center;
	gap: 2px;
}

.po-nav a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 10px;
	border-radius: var(--radius-full);
	color: var(--ink-muted);
	text-decoration: none;
	font: 500 14px/20px var(--font-sans);
}

.po-nav a svg {
	width: 18px;
	height: 18px;
}

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

.po-nav a.active {
	color: var(--ink);
	background: var(--wash);
}

.po-nav a.po-btn {
	height: 32px;
	padding: 0 14px;
	color: var(--on-push);
	font-size: 13px;
}

.po-nav .sep {
	width: 1px;
	height: 18px;
	background: var(--hairline);
	margin: 0 4px;
}

/* Account items show their label from tablet width up; Inbox always does on the logged-out bar. */
.po-nav .label {
	display: none;
}

@media (min-width: 640px) {
	.po-nav .label {
		display: inline;
	}
}

/* ---------- Panel + rows (settings, contacts, subscriptions) ---------- */

.po-panel {
	padding: 6px;
}

.po-panel > h2 {
	margin: 0;
	padding: 10px 12px 6px;
	font: 600 15px/20px var(--font-sans);
	letter-spacing: -0.01em;
}

.po-panel > .note {
	margin: 0;
	padding: 0 12px 8px;
	font: 400 13px/18px var(--font-sans);
	color: var(--ink-muted);
}

.po-panel > .note.empty {
	padding-top: 4px;
}

.po-list-row a.stack {
	color: inherit;
	text-decoration: none;
}

.po-avatar-edit .po-hint {
	flex-basis: 100%;
}

.po-list-row {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	width: 100%;
	min-height: 48px;
	padding: 0 12px;
	border: 0;
	border-radius: var(--radius-md);
	background: none;
	color: var(--ink);
	text-align: left;
	text-decoration: none;
	font: 500 15px/21px var(--font-sans);
	cursor: pointer;
}

a.po-list-row:hover,
button.po-list-row:hover {
	background: var(--wash);
	text-decoration: none;
}

.po-list-row.tall {
	min-height: 64px;
}

.po-list-row .stack {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.po-list-row .sub {
	font-weight: 400;
	font-size: 13px;
	line-height: 18px;
	color: var(--ink-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Featured accounts show their bio, up to two lines. */
.po-list-row.featured {
	align-items: flex-start;
	padding-top: 10px;
	padding-bottom: 10px;
}

.po-list-row .sub.bio {
	margin-top: 2px;
	color: var(--ink);
	white-space: normal;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
}

.po-list-row .value {
	margin-left: auto;
	font: 400 14px/20px var(--font-sans);
	color: var(--ink-muted);
	white-space: nowrap;
}

.po-list-row .value.ok {
	color: var(--ok);
}

.po-list-row .chev {
	flex: none;
	width: 16px;
	height: 16px;
	margin-left: auto;
	color: var(--ink-muted);
	transition: transform 0.15s ease;
}

.po-list-row .value + .chev {
	margin-left: 0;
}

.po-list-row[aria-expanded="true"] .chev {
	transform: rotate(90deg);
}

.po-list-row.danger {
	color: var(--danger);
}

.po-list-row.static {
	cursor: default;
}

.po-list-row .end {
	margin-left: auto;
	display: flex;
	gap: var(--space-2);
}

/* A row's content opened in place. */
.po-expand {
	padding: 4px 12px 14px;
}

/* An API key, or any one-line value with actions. */
.po-key-row {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	padding: 4px 6px 4px 12px;
}

.po-key {
	flex: 1;
	min-width: 0;
	display: block;
	padding: 6px 12px;
	background: var(--wash);
	border-radius: var(--radius-md);
	font: 400 13px/18px var(--font-mono);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.po-inline-form {
	display: flex;
	gap: var(--space-2);
	padding: 4px 12px 8px;
}

.po-inline-form .po-handle {
	flex: 1;
}

/* Find people: a roomier list than the settings rows. */
.po-people {
	padding: var(--space-2);
}

.po-people .po-inline-form {
	padding: var(--space-1) var(--space-1) 0;
}

.po-people > .note {
	padding: var(--space-3) var(--space-3) var(--space-2);
}

.po-people .po-list-row {
	gap: var(--space-4);
	min-height: 64px;
	padding: 10px var(--space-3);
}

.po-people .po-list-row + .po-list-row {
	margin-top: 2px;
}

.po-people .po-list-row .stack {
	gap: 2px;
}

.po-people > .note.empty {
	padding: var(--space-6) var(--space-3);
	text-align: center;
}

.po-people > .more {
	display: flex;
	justify-content: center;
	padding: var(--space-2) 0 var(--space-1);
}

/* Settings: profile picture and background colour. */
.po-avatar-edit {
	display: flex;
	align-items: center;
	gap: var(--space-4);
}

.po-avatar-edit .actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2) var(--space-3);
}

.po-swatches {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
}

.po-swatch,
.po-swatches input[type="color"] {
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-full);
	cursor: pointer;
}

/* "Default" always shows the design's own ground, even while a custom colour is in use. */
.po-swatch.none {
	background: var(--ground-default);
}

.po-swatch[aria-pressed="true"] {
	box-shadow:
		0 0 0 2px var(--card),
		0 0 0 4px var(--ink);
}

.po-swatches input[type="color"] {
	background: none;
	overflow: hidden;
}

.po-swatches input[type="color"]::-webkit-color-swatch-wrapper {
	padding: 0;
}

.po-swatches input[type="color"]::-webkit-color-swatch {
	border: 0;
	border-radius: var(--radius-full);
}

/* ---------- Profile card ---------- */

.po-profile {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.po-profile .id {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.po-profile .handle {
	margin: 0;
	font-size: 13px;
	line-height: 18px;
	color: var(--ink-muted);
}

.po-profile .bio {
	margin: 0;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.po-profile .actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

.po-profile .actions .po-btn {
	padding: 0 14px;
}

.po-profile .actions .po-btn:first-child {
	flex: 1;
}

/* ---------- Notice: a system notification ---------- */

.po-notice {
	display: grid;
	grid-template-columns: var(--icon) minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--space-3);
	padding: 12px 12px 12px var(--space-4);
}

.po-notice .po-avatar {
	background: var(--push-tint);
	color: var(--push-text);
}

.po-notice strong {
	display: block;
	font: 600 15px/20px var(--font-sans);
}

.po-notice .why {
	display: block;
	font: 400 13px/18px var(--font-sans);
	color: var(--ink-muted);
}

/* ---------- Toast ---------- */

.po-toast-wrap {
	position: fixed;
	z-index: 50;
	left: 0;
	right: 0;
	bottom: max(var(--space-8), env(safe-area-inset-bottom));
	display: flex;
	justify-content: center;
	padding: 0 var(--space-4);
	pointer-events: none;
}

.po-toast {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	padding: 10px 18px 10px 12px;
	border-radius: var(--radius-full);
	box-shadow: var(--float);
	font: 500 14px/20px var(--font-sans);
	pointer-events: auto;
	cursor: pointer;
	animation: po-arrive 0.25s ease;
}

.po-toast .mark {
	flex: none;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: var(--radius-full);
	background: var(--wash);
	font: 700 12px/1 var(--font-sans);
	color: var(--danger);
}

.po-toast.success .mark {
	color: var(--ok);
}

/* ---------- Code ---------- */

.po-code {
	margin: 0;
	padding: var(--space-4);
	background: var(--code-bg);
	color: var(--code-ink);
	border-radius: 16px;
	overflow-x: auto;
	font: 400 13px/20px var(--font-mono);
	white-space: pre;
}

/* ---------- Prose (privacy, terms) ---------- */

.po-prose {
	padding: 20px;
}

.po-prose h3 {
	margin: var(--space-6) 0 var(--space-2);
	font: 600 15px/20px var(--font-sans);
}

.po-prose h3:first-child {
	margin-top: 0;
}

.po-prose p,
.po-prose ul {
	margin: 0 0 var(--space-3);
}

.po-prose li {
	margin-bottom: var(--space-1);
}

/* ---------- Footer ---------- */

.po-footer {
	display: flex;
	justify-content: center;
	gap: var(--space-6);
	padding: var(--space-6) var(--space-4) max(var(--space-8), env(safe-area-inset-bottom));
	font-size: 13px;
	line-height: 18px;
}

.po-footer a {
	color: var(--on-ground-muted);
}

.po-footer a:hover {
	color: var(--on-ground);
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		animation: none !important;
	}
}
