/* Ansico Fediverse blocks. Colors fall back so the blocks also work outside the Ansico theme. */
.afv-composer, .afv-actions, .afv-dialog, .afv-handle, .afv-server, .afv-fab, .afv-profile, .afv-quote, .afv-quote-link, .afv-reactions, .afv-follow, .afv-following, .afv-remote-result, .afv-search-note, .afv-boost, .afv-warning, .afv-notes, .afv-note-pages, .afv-badge, .afv-tabs, .afv-people, .afv-mods, .afv-mod, .afv-moved, .afv-visibility, .afv-poll, .afv-notify-settings, .afv-composer__poll, .afv-composer__schedule, .afv-new-posts, .afv-thread-view, .afv-thread__status, .afv-fields, .afv-followed-tags, .afv-field-editor {
	--afv-c-line: var(--wp--preset--color--line, #dcdce4);
	--afv-c-surface: var(--wp--preset--color--surface, #f2f2f6);
	--afv-c-ink: var(--wp--preset--color--ink, currentColor);
	--afv-c-muted: var(--wp--preset--color--muted, #666);
	--afv-c-iris: var(--wp--preset--color--iris, #4a38d9);
	--afv-c-base: var(--wp--preset--color--base, #fff);
	--afv-c-reply: var(--wp--preset--color--reply, #0a6fb0);
	--afv-c-repost: var(--wp--preset--color--repost, #08795a);
	--afv-c-like: var(--wp--preset--color--like, #c81e5b);
}

.afv-handle { color: var(--afv-c-muted); }

/* The reply's home server: where a person actually lives on the fediverse */
.afv-server {
	display: inline-block;
	padding: 0 0.5rem;
	border-radius: 999px;
	background: var(--afv-c-surface);
	color: var(--afv-c-muted);
	font-size: 0.8125rem;
	line-height: 1.5;
}

/* Composer */
.afv-composer {
	display: grid;
	grid-template-columns: 2.75rem minmax(0, 1fr);
	gap: 0.75rem;
	padding: 0.85rem 1rem;
	border-bottom: 1px solid var(--afv-c-line);
	margin: 0;
}
.afv-composer__avatar img { border-radius: 50%; display: block; }
.afv-composer textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	min-height: 3rem;
	padding: 0.5rem 0;
	border: 0;
	resize: none;
	background: transparent;
	color: var(--afv-c-ink);
	font: inherit;
	font-size: 1.25rem;
	line-height: 1.35;
}
.afv-composer textarea:focus { outline: none; }
.afv-composer:focus-within { background: color-mix(in srgb, var(--afv-c-surface) 35%, transparent); }
.afv-composer__quote {
	margin-block: 0.5rem;
	padding: 0.65rem 0.8rem;
	border: 1px solid var(--afv-c-line);
	border-radius: 14px;
	font-size: 0.875rem;
}
.afv-composer__quote[hidden] { display: none; }
.afv-composer__quote label { display: block; font-weight: 700; margin-block-end: 0.25rem; }
.afv-composer__quote input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.45rem 0.6rem;
	border: 1px solid var(--afv-c-line);
	border-radius: 8px;
	background: var(--afv-c-base);
	color: var(--afv-c-ink);
	font: inherit;
}
.afv-composer__quote p { margin: 0.4rem 0 0; color: var(--afv-c-muted); }
.afv-composer__media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.afv-composer__media:empty { display: none; }
.afv-thumb { position: relative; }
.afv-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; display: block; }
.afv-thumb input {
	width: 100%;
	box-sizing: border-box;
	margin-block-start: 0.25rem;
	padding: 0.3rem 0.5rem;
	border: 1px solid var(--afv-c-line);
	border-radius: 8px;
	background: var(--afv-c-base);
	color: var(--afv-c-ink);
	font-size: 0.875rem;
}
.afv-thumb button {
	position: absolute;
	top: 0.35rem;
	right: 0.35rem;
	width: 1.75rem;
	height: 1.75rem;
	border: 0;
	border-radius: 50%;
	background: rgba(10, 8, 30, 0.75);
	color: #fff;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
}
.afv-composer__bar { display: flex; align-items: center; gap: 0.25rem; margin-block-start: 0.4rem; }
.afv-tool {
	display: inline-flex;
	padding: 0.45rem;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--afv-c-iris);
	cursor: pointer;
}
.afv-tool:hover, .afv-tool[aria-pressed="true"] { background: var(--afv-c-surface); }
.afv-tool:focus-within { outline: 2px solid var(--afv-c-iris); }
.afv-tool input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.afv-composer__status { flex: 1; padding-inline: 0.4rem; font-size: 0.875rem; color: var(--afv-c-muted); }
.afv-composer__status.is-error { color: var(--afv-c-like); }
.afv-composer__count { font-size: 0.875rem; color: var(--afv-c-muted); margin-inline-end: 0.5rem; font-variant-numeric: tabular-nums; }
.afv-composer__count.is-over { color: var(--afv-c-like); font-weight: 700; }
.afv-composer__submit { cursor: pointer; border: 0; }
.afv-composer__submit:disabled { opacity: 0.55; cursor: default; }

/* Images in a note */
.afv-media { display: grid; gap: 0.25rem; }
.afv-media > * { margin: 0 !important; }
.afv-media--2, .afv-media--3, .afv-media--4 { grid-template-columns: 1fr 1fr; }
.afv-media--3 > :first-child { grid-row: span 2; }
.afv-media--2 img, .afv-media--3 img, .afv-media--4 img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Actions */
.afv-actions {
	display: flex;
	justify-content: space-between;
	max-width: 30rem;
	margin-inline-start: -0.5rem;
}
.afv-action {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	min-height: 2.25rem;
	min-width: 2.25rem;
	padding: 0.25rem 0.5rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--afv-c-muted);
	font: inherit;
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
	text-decoration: none !important;
	cursor: pointer;
}
.afv-action--reply:hover, .afv-action--reply:focus-visible { color: var(--afv-c-reply); background: color-mix(in srgb, var(--afv-c-reply) 12%, transparent); }
.afv-action--repost:hover, .afv-action--repost:focus-visible { color: var(--afv-c-repost); background: color-mix(in srgb, var(--afv-c-repost) 12%, transparent); }
.afv-action--like:hover, .afv-action--like:focus-visible { color: var(--afv-c-like); background: color-mix(in srgb, var(--afv-c-like) 12%, transparent); }
.afv-action--quote:hover, .afv-action--quote:focus-visible,
.afv-action--share:hover, .afv-action--share:focus-visible { color: var(--afv-c-iris); background: color-mix(in srgb, var(--afv-c-iris) 12%, transparent); }

/* Dialog */
.afv-dialog {
	width: min(26rem, calc(100vw - 2rem));
	box-sizing: border-box;
	padding: 1.25rem;
	border: 1px solid var(--afv-c-line);
	border-radius: 18px;
	background: var(--afv-c-base);
	color: var(--afv-c-ink);
}
.afv-dialog::backdrop { background: rgba(10, 8, 30, 0.55); }
.afv-dialog h2 { margin: 0 2rem 0.5rem 0; font-size: 1.3125rem; }
.afv-dialog p { margin: 0 0 0.9rem; font-size: 0.9375rem; color: var(--afv-c-muted); }
.afv-dialog label { display: block; font-weight: 700; font-size: 0.9375rem; margin-block-end: 0.25rem; }
.afv-dialog input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.6rem 0.75rem;
	margin-block-end: 0.5rem;
	border: 1px solid var(--afv-c-line);
	border-radius: 10px;
	background: var(--afv-c-base);
	color: var(--afv-c-ink);
	font: inherit;
}
.afv-dialog button.wp-element-button { width: 100%; cursor: pointer; border: 0; }
.afv-dialog__status:empty { display: none; }
.afv-dialog__status.is-error { color: var(--afv-c-like); }
.afv-dialog__close { position: absolute; top: 0.75rem; right: 0.75rem; margin: 0; }
.afv-dialog__close button { width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: var(--afv-c-surface); color: var(--afv-c-ink); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.afv-dialog__local { display: block; margin-block-start: 0.85rem; text-align: center; font-size: 0.9375rem; }
.afv-dialog__local[hidden] { display: none; }


/* Floating write button */
.afv-fab {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 30;
	display: grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	border: 0;
	border-radius: 50%;
	background: var(--afv-c-iris);
	color: var(--afv-c-base);
	cursor: pointer;
	box-shadow: 0 6px 18px color-mix(in srgb, var(--afv-c-iris) 35%, transparent);
}
.afv-fab svg { width: 1.5rem; height: 1.5rem; }
.afv-fab:focus-visible { outline: 2px solid var(--afv-c-ink); outline-offset: 2px; }

/* Write form in a dialog */
.afv-dialog--compose { width: min(38rem, calc(100vw - 2rem)); }
.afv-dialog--compose .afv-composer { padding: 0; border: 0; }
.afv-dialog--compose .afv-composer:focus-within { background: transparent; }
.afv-dialog--compose .afv-composer button.wp-element-button { width: auto; }
.afv-dialog--compose .afv-composer input, .afv-dialog--compose .afv-composer__quote input { margin: 0; }
.afv-dialog textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.6rem 0.75rem;
	margin-block-end: 0.5rem;
	border: 1px solid var(--afv-c-line);
	border-radius: 10px;
	background: var(--afv-c-base);
	color: var(--afv-c-ink);
	font: inherit;
}
.afv-dialog--compose .afv-composer textarea { padding: 0.5rem 0; border: 0; border-radius: 0; background: transparent; margin: 0; }

/* Public profile */
.afv-profile { border-bottom: 1px solid var(--afv-c-line); }
.afv-profile__cover { aspect-ratio: 3 / 1; background: linear-gradient(120deg, var(--afv-c-iris), var(--afv-c-reply)); overflow: hidden; }
.afv-profile__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.afv-profile__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	padding-inline: 1rem;
	margin-block-start: -3rem;
}
.afv-profile__avatar {
	width: 6.5rem;
	height: 6.5rem;
	border-radius: 50%;
	border: 4px solid var(--afv-c-base);
	background: var(--afv-c-surface);
	object-fit: cover;
	display: block;
}
.afv-profile__head .wp-element-button { cursor: pointer; border: 0; }
.afv-button-quiet.wp-element-button { background: transparent; color: var(--afv-c-ink); box-shadow: inset 0 0 0 1px var(--afv-c-line); }
.afv-profile__text { padding: 0.6rem 1rem 1rem; }
.afv-profile__text > * { margin-block: 0; }
.afv-profile__text > * + * { margin-block-start: 0.55rem; }
.afv-profile__name { font-size: 1.5rem; }
.afv-profile__handle { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-block-start: 0.1rem !important; color: var(--afv-c-muted); }
.afv-copy { padding: 0 0.55rem; border: 0; border-radius: 999px; background: var(--afv-c-surface); color: var(--afv-c-muted); font: inherit; font-size: 0.8125rem; line-height: 1.6; cursor: pointer; }
.afv-profile__bio p { margin: 0; }
.afv-profile__bio p + p { margin-block-start: 0.5rem; }
.afv-profile__facts, .afv-profile__counts { display: flex; flex-wrap: wrap; column-gap: 1rem; font-size: 0.9375rem; color: var(--afv-c-muted); }
.afv-profile__counts strong { color: var(--afv-c-ink); }

/* Follow card */
.afv-follow__who { display: flex; align-items: center; gap: 0.7rem; color: inherit; text-decoration: none !important; }
.afv-follow__who img { border-radius: 50%; display: block; flex: none; background: var(--afv-c-surface); }
.afv-follow__text { display: grid; min-width: 0; }
.afv-follow__text span { color: var(--afv-c-muted); font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; }
.afv-follow__count { margin: 0.6rem 0; font-size: 0.875rem; color: var(--afv-c-muted); }
.afv-follow__count strong { color: var(--afv-c-ink); }
.afv-follow .wp-element-button { cursor: pointer; border: 0; padding-block: 0.4rem; font-size: 0.9375rem; }

/* Reactions */
.afv-reactions { display: grid; gap: 0.5rem; font-size: 0.9375rem; color: var(--afv-c-muted); }
.afv-reactions__row { display: flex; align-items: center; gap: 0.6rem; }
.afv-reactions__faces { display: flex; }
.afv-reactions__faces a { margin-inline-start: -0.4rem; line-height: 0; }
.afv-reactions__faces a:first-child { margin-inline-start: 0; }
.afv-reactions__faces img { width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--afv-c-base); background: var(--afv-c-surface); color: transparent; font-size: 0; }

/* A quoted post */
.afv-quote { margin: 0.6rem 0 0; padding: 0.7rem 0.9rem; border: 1px solid var(--afv-c-line); border-radius: 14px; font-size: 0.9375rem; font-style: normal; }
.afv-quote__who { display: flex; align-items: center; gap: 0.5rem; color: var(--afv-c-ink); text-decoration: none !important; }
.afv-quote__who img { border-radius: 50%; flex: none; background: var(--afv-c-surface); color: transparent; font-size: 0; }
.afv-quote__text { margin-block-start: 0.4rem; }
.afv-quote__text p { margin: 0; }
.afv-quote__text p + p { margin-block-start: 0.4rem; }
.afv-quote__date { display: inline-block; margin-block-start: 0.4rem; color: var(--afv-c-muted); font-size: 0.875rem; }
.afv-quote-link { margin: 0.6rem 0 0; padding: 0.7rem 0.9rem; border: 1px solid var(--afv-c-line); border-radius: 14px; font-size: 0.9375rem; }

.afv-dialog label.afv-tool { display: inline-flex; margin: 0; }
.afv-dialog input[type="file"] { padding: 0.4rem; }
.afv-dialog .afv-tool input[type="file"] { padding: 0; margin: 0; }

/* Other people's posts */
.afv-action.is-active.afv-action--like { color: var(--afv-c-like); }
.afv-action.is-active.afv-action--repost { color: var(--afv-c-repost); }
.afv-action.is-active.afv-action--like path { fill: currentColor; }
.afv-actions--plain { font-size: 0.875rem; margin-inline-start: 0; }
.afv-boost { margin: 0 0 0.3rem; color: var(--afv-c-muted); font-size: 0.875rem; }
.afv-boost a { color: inherit; }
.afv-warning summary { padding: 0.4rem 0.7rem; border-radius: 10px; background: var(--afv-c-surface); cursor: pointer; }
.afv-warning[open] summary { margin-block-end: 0.5rem; }
.invisible { display: none; }
.ellipsis::after { content: "…"; }
.hashtag span, .mention span { text-decoration: inherit; }

/* A profile found by searching */
.afv-remote-result {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.6rem 0.75rem;
	padding: 0.9rem 1rem;
	border-bottom: 1px solid var(--afv-c-line);
}
.afv-remote-result .wp-element-button { cursor: pointer; border: 0; }
.afv-remote-result__bio { grid-column: 1 / -1; font-size: 0.9375rem; }
.afv-remote-result__bio:empty { display: none; }
.afv-remote-result__bio p { margin: 0; }
.afv-search-note { margin: 0; padding: 0.9rem 1rem; border-bottom: 1px solid var(--afv-c-line); color: var(--afv-c-muted); }

/* Accounts you follow */
.afv-following ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; max-height: 22rem; overflow-y: auto; }
.afv-following__empty { margin: 0; font-size: 0.9375rem; color: var(--afv-c-muted); }

/* Notifications */
.afv-notes { list-style: none; margin: 0; padding: 0; }
.afv-note {
	display: grid;
	grid-template-columns: 1.5rem 2.75rem minmax(0, 1fr);
	gap: 0.6rem;
	padding: 0.8rem 1rem;
	border-bottom: 1px solid var(--afv-c-line);
}
.afv-note.is-unread { background: color-mix(in srgb, var(--afv-c-iris) 8%, transparent); }
.afv-note__icon { color: var(--afv-c-muted); line-height: 0; padding-block-start: 0.2rem; }
.afv-note--like .afv-note__icon { color: var(--afv-c-like); }
.afv-note--repost .afv-note__icon { color: var(--afv-c-repost); }
.afv-note--reply .afv-note__icon, .afv-note--mention .afv-note__icon { color: var(--afv-c-reply); }
.afv-note--quote .afv-note__icon, .afv-note--follow .afv-note__icon, .afv-note--follow_accepted .afv-note__icon { color: var(--afv-c-iris); }
.afv-note__avatar img { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: block; background: var(--afv-c-surface); }
.afv-note__body > * { margin: 0; }
.afv-note__text time { color: var(--afv-c-muted); font-size: 0.875rem; white-space: nowrap; margin-inline-start: 0.25rem; }
.afv-note__excerpt { margin-block-start: 0.25rem !important; color: var(--afv-c-muted); }
.afv-note__open { display: inline-block; margin-block-start: 0.25rem; font-size: 0.875rem; }
.afv-note-pages { display: flex; justify-content: space-between; padding: 1rem; }
.afv-badge {
	display: inline-grid;
	place-items: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding-inline: 0.3rem;
	box-sizing: border-box;
	border-radius: 999px;
	background: var(--afv-c-iris);
	color: var(--afv-c-base);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
}

/* Followers and following */
.afv-profile__counts a { color: inherit; text-decoration: none; }
.afv-profile__counts a:hover strong, .afv-follow__count a:hover strong { text-decoration: underline; }
.afv-follow__count a { color: inherit; text-decoration: none; }
.afv-tabs { display: flex; border-bottom: 1px solid var(--afv-c-line); }
.afv-tabs a { flex: 1; padding: 0.85rem 1rem; text-align: center; color: var(--afv-c-muted); text-decoration: none; box-shadow: inset 0 -3px 0 transparent; }
.afv-tabs a:hover { background: var(--afv-c-surface); }
.afv-tabs a[aria-current="page"] { color: var(--afv-c-ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--afv-c-iris); }
.afv-people { list-style: none; margin: 0; padding: 0; }
.afv-person { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--afv-c-line); }
.afv-person .afv-follow__who { min-width: 0; }
.afv-person .wp-element-button { flex: none; border: 0; cursor: pointer; padding-block: 0.4rem; font-size: 0.9375rem; }
.afv-person img { background: var(--afv-c-surface); }

/* Fields on a profile from another server */
.afv-fields { margin: 0; border: 1px solid var(--afv-c-line); border-radius: 12px; overflow: hidden; font-size: 0.9375rem; }
.afv-field { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); gap: 0.75rem; padding: 0.5rem 0.75rem; }
.afv-field + .afv-field { border-top: 1px solid var(--afv-c-line); }
.afv-field dt { color: var(--afv-c-muted); font-weight: 700; }
.afv-field dd { margin: 0; }
.afv-field dd p { margin: 0; }
@media (max-width: 30rem) { .afv-field { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* Who can see a post */
.afv-composer__visibility { max-width: 9rem; padding: 0.3rem 0.4rem; border: 1px solid var(--afv-c-line); border-radius: 8px; background: var(--afv-c-base); color: var(--afv-c-ink); font: inherit; font-size: 0.875rem; }
.afv-composer__direct { margin: 0.4rem 0; padding: 0.5rem 0.7rem; border-radius: 10px; background: var(--afv-c-surface); color: var(--afv-c-muted); font-size: 0.875rem; }
.afv-composer__direct[hidden], .afv-composer__cw[hidden], .afv-composer__sensitive[hidden] { display: none; }
.afv-composer__cw { margin-block: 0.4rem; }
.afv-dialog .afv-composer__cw label, .afv-composer__cw label { display: block; margin: 0 0 0.2rem; font-size: 0.875rem; font-weight: 700; }
.afv-composer__cw input { width: 100%; box-sizing: border-box; padding: 0.45rem 0.6rem; border: 1px solid var(--afv-c-line); border-radius: 8px; background: var(--afv-c-base); color: var(--afv-c-ink); font: inherit; }
.afv-dialog label.afv-composer__sensitive, .afv-composer__sensitive { display: block; margin: 0.4rem 0 0; font-size: 0.875rem; font-weight: 400; }
.afv-dialog .afv-composer__sensitive input { width: auto; margin: 0; }
.afv-tool--cw { font-size: 0.75rem; font-weight: 800; width: 2rem; height: 2rem; align-items: center; justify-content: center; padding: 0; }
.afv-composer__bar { flex-wrap: wrap; }
.afv-visibility { margin: 0 0 0.3rem; color: var(--afv-c-muted); font-size: 0.8125rem; font-weight: 700; }
.afv-visibility::before { content: ""; display: inline-block; width: 0.8em; height: 0.8em; margin-inline-end: 0.35em; border-radius: 50%; background: currentColor; }
.afv-visibility--direct { color: var(--afv-c-like); }
.afv-visibility--followers { color: var(--afv-c-iris); }

/* Moderation */
.afv-mods { display: flex; gap: 0.5rem; margin-block-start: 0.6rem !important; }
.afv-mod { padding: 0.25rem 0.7rem; border: 1px solid var(--afv-c-line); border-radius: 999px; background: transparent; color: var(--afv-c-muted); font: inherit; font-size: 0.875rem; cursor: pointer; }
.afv-mod:hover { background: var(--afv-c-surface); color: var(--afv-c-ink); }
.afv-mod--block, .afv-mod--remove, .afv-mod--deny { color: var(--afv-c-like); }
.afv-mod--approve { background: var(--afv-c-iris); border-color: var(--afv-c-iris); color: var(--afv-c-base); }
.afv-person__tools { display: flex; align-items: center; gap: 0.4rem; flex: none; }
.afv-moved { margin: 0 0 0.5rem; padding: 0.5rem 0.75rem; border-radius: 10px; background: var(--afv-c-surface); font-size: 0.9375rem; }
@media (max-width: 30rem) { .afv-person { flex-wrap: wrap; } }

.afv-composer [hidden] { display: none !important; }
.afv-fields { margin-block: 0.75rem; }

/* New posts */
.afv-new-posts { display: block; width: 100%; padding: 0.7rem 1rem; border: 0; border-bottom: 1px solid var(--afv-c-line); background: color-mix(in srgb, var(--afv-c-iris) 10%, transparent); color: var(--afv-c-iris); font: inherit; font-weight: 700; cursor: pointer; }
.afv-new-posts:hover { background: color-mix(in srgb, var(--afv-c-iris) 18%, transparent); }
.afv-new-posts[hidden] { display: none; }

/* Conversation */
.afv-thread__item { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0.75rem; padding: 0.85rem 1rem 0.5rem; border-bottom: 1px solid var(--afv-c-line); }
.afv-thread__item.is-focus { background: color-mix(in srgb, var(--afv-c-iris) 5%, transparent); }
.afv-thread__item.is-focus .afv-post__content { font-size: 1.1875rem; line-height: 1.4; }
.afv-thread__item.is-parent { position: relative; border-bottom: 0; }
.afv-thread__item.is-parent::after { content: ""; position: absolute; inset-block: 3.6rem 0; inset-inline-start: 2.3rem; width: 2px; background: var(--afv-c-line); }
.afv-thread__avatar img { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: block; background: var(--afv-c-surface); }
.afv-thread__body > * { margin-block: 0; }
.afv-thread__body > * + * { margin-block-start: 0.4rem; }
.afv-thread__name { font-weight: 700; color: var(--afv-c-ink); }
.afv-thread__date, .afv-thread__origin { color: var(--afv-c-muted); font-size: 0.875rem; }
.afv-thread__origin { display: inline-block; }
.afv-thread__title { margin: 0; padding: 0.9rem 1rem 0.4rem; font-size: 1.0625rem; }
.afv-thread__replies { list-style: none; margin: 0; padding: 0; }
.afv-thread__replies .afv-thread__replies { margin-inline-start: 1.5rem; border-inline-start: 2px solid var(--afv-c-line); }
.afv-thread__status { margin: 0; padding: 0.8rem 1rem; color: var(--afv-c-muted); font-size: 0.9375rem; }
.afv-thread__status:empty { display: none; }
@media (max-width: 30rem) { .afv-thread__replies .afv-thread__replies { margin-inline-start: 0.5rem; } }
.afv-action--bookmark.is-active { color: var(--afv-c-iris); }
.afv-action--bookmark.is-active path { fill-rule: nonzero; }

/* Hashtags */
.afv-tag-card__name { font-size: 1.3125rem; font-weight: 800; color: var(--afv-c-ink); text-decoration: none; }
.afv-followed-tags p { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; }
.afv-followed-tags a { padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--afv-c-surface); color: var(--afv-c-ink); font-size: 0.875rem; text-decoration: none; }

/* Verified links */
.afv-verified { display: none; }
.afv-field.is-verified .afv-verified { display: inline-block; width: 1.05em; height: 1.05em; margin-inline-start: 0.35em; vertical-align: -0.15em; background: var(--afv-c-repost); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20m-1.300 14.500-4.200-4.200 1.400-1.400 2.800 2.800 5.800-5.800 1.400 1.400z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20m-1.300 14.500-4.200-4.200 1.400-1.400 2.800 2.800 5.800-5.800 1.400 1.400z'/%3E%3C/svg%3E") center / contain no-repeat; }
.afv-field.is-verified { background: color-mix(in srgb, var(--afv-c-repost) 10%, transparent); }
.afv-field.is-verified dd a { color: var(--afv-c-repost); font-weight: 700; }

/* Field editor and login */
.afv-field-editor { margin: 0 0 0.75rem; padding: 0; border: 0; }
.afv-field-editor legend { padding: 0; font-weight: 700; font-size: 0.9375rem; }
.afv-field-editor p { margin: 0 0 0.4rem; font-size: 0.875rem; }
.afv-field-editor__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0.4rem; }
.afv-field-editor__row input { margin-block-end: 0.4rem; }
.afv-dialog { max-height: calc(100vh - 2rem); overflow-y: auto; }
.afv-profile__buttons { display: flex; gap: 0.5rem; align-items: center; }
.afv-login-link { text-decoration: none !important; }

/* Profile tabs */
.afv-tabs { display: flex; border-bottom: 1px solid var(--afv-c-line); }
.afv-tabs a { flex: 1; padding: 0.85rem 0.5rem; text-align: center; color: var(--afv-c-muted); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
.afv-tabs a:hover { background: var(--afv-c-surface); }
.afv-tabs a[aria-current] { color: var(--afv-c-ink); border-bottom-color: var(--afv-c-iris); font-weight: 800; }

/* Pinned, threads */
.afv-pinned-label, .afv-thread-link { margin: 0 0 0.25rem; color: var(--afv-c-muted); font-size: 0.875rem; font-weight: 600; }
.afv-remote-pins > .afv-pinned-label { padding: 0.7rem 1rem 0; margin: 0; }
.afv-remote-pins .afv-thread__item { padding-top: 0.35rem; }
.afv-thread-link a { color: var(--afv-c-iris); }
.afv-post--single .afv-thread__replies { margin: 0.75rem -1rem 0; list-style: none; padding: 0; border-top: 1px solid var(--afv-c-line); }

/* More menu */
.afv-more { position: relative; display: inline-flex; }
.afv-more__menu { position: absolute; z-index: 30; inset-block-end: calc(100% + 0.25rem); inset-inline-end: 0; min-width: 11rem; padding: 0.3rem; border: 1px solid var(--afv-c-line); border-radius: 0.75rem; background: var(--wp--preset--color--base, #fff); box-shadow: 0 6px 24px rgb(20 16 60 / 0.18); }
.afv-more__menu[hidden] { display: none; }
.afv-more__menu > * { display: block; width: 100%; padding: 0.5rem 0.7rem; border: 0; border-radius: 0.5rem; background: none; color: var(--afv-c-ink); font: inherit; font-size: 0.9375rem; text-align: start; text-decoration: none; cursor: pointer; }
.afv-more__menu > *:hover { background: var(--afv-c-surface); }
.afv-more__menu .is-danger { color: #c2184b; }

/* Composer: threads and editing */
.afv-composer__part { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.25rem 0.6rem; align-items: center; margin-block: 0.5rem; padding-inline-start: 0.75rem; border-inline-start: 2px solid var(--afv-c-line); }
.afv-composer__part textarea { grid-column: 1 / -1; width: 100%; box-sizing: border-box; }
.afv-composer__part .afv-composer__count { grid-column: 2; }
.afv-part-remove { grid-column: 3; border: 0; background: none; color: var(--afv-c-muted); font: inherit; font-size: 0.8125rem; cursor: pointer; text-decoration: underline; }
.afv-tool--part { font-size: 1.25rem; font-weight: 700; line-height: 1; }
.afv-composer.is-editing .afv-tool:not(.afv-tool--cw):not(.afv-tool--schedule):not(summary), .afv-composer.is-editing:not(.is-unpublished) .afv-tool--schedule, .afv-composer.is-editing:not(.is-unpublished) .afv-composer__visibility, .afv-composer.is-editing [data-afv-parts], .afv-composer.is-editing [data-afv-quote-row], .afv-composer.is-editing [data-afv-media] { display: none; }

/* Link preview */
.afv-card { display: block; margin-block-start: 0.65rem; border: 1px solid var(--afv-c-line); border-radius: 0.85rem; overflow: hidden; color: var(--afv-c-ink); text-decoration: none; }
.afv-card:hover { background: var(--afv-c-surface); }
.afv-card__image { display: block; width: 100%; max-height: 16rem; aspect-ratio: 1.91 / 1; object-fit: cover; border-bottom: 1px solid var(--afv-c-line); }
.afv-card__text { display: block; padding: 0.6rem 0.8rem; }
.afv-card__site { display: block; color: var(--afv-c-muted); font-size: 0.8125rem; }
.afv-card__title { display: block; font-size: 0.9375rem; line-height: 1.3; }
.afv-card__description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-block-start: 0.15rem; color: var(--afv-c-muted); font-size: 0.875rem; line-height: 1.35; }

/* Personal note */
.afv-private-note { margin-block-start: 0.75rem; }
.afv-private-note label { display: block; font-size: 0.875rem; font-weight: 700; margin-block-end: 0.2rem; }
.afv-private-note textarea { width: 100%; box-sizing: border-box; padding: 0.5rem 0.65rem; border: 1px dashed var(--afv-c-line); border-radius: 0.6rem; background: var(--afv-c-surface); color: var(--afv-c-ink); font: inherit; font-size: 0.9375rem; resize: vertical; }
.afv-private-note__status { color: var(--afv-c-muted); font-size: 0.8125rem; }

.afv-post--single .afv-thread__replies .afv-thread__replies { margin: 0; border: 0; }

/* Polls */
.afv-poll { margin-block-start: 0.65rem; }
.afv-poll__choice { display: flex; gap: 0.55rem; align-items: center; padding: 0.5rem 0.7rem; margin-block-end: 0.35rem; border: 1px solid var(--afv-c-line); border-radius: 0.6rem; cursor: pointer; }
.afv-poll__choice:hover { background: var(--afv-c-surface); }
.afv-poll__vote { margin-block-start: 0.2rem; }
.afv-poll__results { list-style: none; margin: 0; padding: 0; }
.afv-poll__result { position: relative; display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.45rem 0.7rem; margin-block-end: 0.3rem; border-radius: 0.45rem; overflow: hidden; background: var(--afv-c-surface); }
.afv-poll__bar { position: absolute; inset-block: 0; inset-inline-start: 0; background: color-mix(in srgb, var(--afv-c-muted) 22%, transparent); }
.afv-poll__result.is-leading .afv-poll__bar { background: color-mix(in srgb, var(--afv-c-iris) 26%, transparent); }
.afv-poll__result.is-leading .afv-poll__name { font-weight: 700; }
.afv-poll__name, .afv-poll__share { position: relative; }
.afv-poll__share { font-variant-numeric: tabular-nums; color: var(--afv-c-muted); }
.afv-poll__mine { color: var(--afv-c-iris); font-weight: 800; }
.afv-poll__foot { margin: 0.35rem 0 0; color: var(--afv-c-muted); font-size: 0.875rem; }
.afv-poll__error { margin: 0.25rem 0 0; color: #c2184b; font-size: 0.875rem; }
.afv-poll__error:empty { display: none; }

/* Composer: polls, schedule, drafts, emoji */
.afv-composer__poll, .afv-composer__schedule { margin-block: 0.5rem; padding: 0.6rem; border: 1px solid var(--afv-c-line); border-radius: 0.6rem; }
.afv-composer__poll input[type=text] { display: block; width: 100%; box-sizing: border-box; margin-block-end: 0.35rem; }
.afv-composer__poll-bar { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; align-items: center; font-size: 0.875rem; }
.afv-composer__schedule { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.9375rem; }
.afv-composer__draft { border: 0; background: none; color: var(--afv-c-muted); font: inherit; font-size: 0.875rem; cursor: pointer; text-decoration: underline; }
.afv-composer__drafts { display: inline-block; margin-block-start: 0.45rem; font-size: 0.875rem; color: var(--afv-c-iris); }
.afv-composer__bar { flex-wrap: wrap; row-gap: 0.4rem; }
.afv-composer.is-editing:not(.is-unpublished) .afv-composer__draft { display: none; }
.afv-composer.is-editing .afv-emoji-picker { display: inline-block; }
.afv-emoji { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.25em; object-fit: contain; }
.afv-emoji-picker { position: relative; display: inline-block; }
.afv-emoji-picker summary { list-style: none; cursor: pointer; font-size: 1.2rem; }
.afv-emoji-picker summary::-webkit-details-marker { display: none; }
.afv-emoji-picker > div { position: absolute; z-index: 30; inset-block-start: 100%; inset-inline-start: 0; display: grid; grid-template-columns: repeat(6, 2.1rem); gap: 0.15rem; padding: 0.35rem; border: 1px solid var(--afv-c-line); border-radius: 0.6rem; background: var(--wp--preset--color--base, #fff); box-shadow: 0 6px 24px rgb(20 16 60 / 0.18); }
.afv-emoji-picker button { padding: 0.2rem; border: 0; background: none; border-radius: 0.35rem; cursor: pointer; }
.afv-emoji-picker button:hover { background: var(--afv-c-surface); }
.afv-emoji-picker img { display: block; width: 1.5rem; height: 1.5rem; object-fit: contain; }

/* Notification settings */
.afv-notify-settings { border-bottom: 1px solid var(--afv-c-line); padding: 0.7rem 1rem; }
.afv-notify-settings summary { cursor: pointer; font-weight: 700; }
.afv-notify-settings form > * { margin: 0.6rem 0 0; font-size: 0.9375rem; }
.afv-notify-settings fieldset { padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }
.afv-notify-settings legend { padding: 0; margin-block-end: 0.3rem; font-weight: 700; }
.afv-notify-settings__email { display: block; }

/* Theme image rules must not make emoji into full images. */
img.afv-emoji { display: inline-block !important; width: 1.25em !important; height: 1.25em !important; max-width: none !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; vertical-align: -0.25em; object-fit: contain; }
.afv-composer__poll input[type=text] { padding: 0.45rem 0.6rem; border: 1px solid var(--afv-c-line); border-radius: 0.5rem; background: transparent; color: var(--afv-c-ink); font: inherit; font-size: 0.9375rem; }
.afv-composer__poll select, .afv-composer__schedule input { padding: 0.3rem 0.45rem; border: 1px solid var(--afv-c-line); border-radius: 0.5rem; background: transparent; color: var(--afv-c-ink); font: inherit; font-size: 0.875rem; }
.afv-composer__submit { margin-inline-start: auto; }
