/*
 * Vox Tasks UI, phase 1 (#519): the accepted redesign as CSS only. Loaded by vox.js after vox.css (opt-in until the rollout, see
 * docs/vikunja-theme.md "UI v2"). Same rules as vox.css's header (no data-v-*, no structural selectors, fail soft), plus:
 *
 *  - every value is a --vt-* variable on :root / :root.dark; Vikunja's own variables are pointed at them first, selectors only
 *    where no variable exists. A change of palette or radius is a change in section 1 and nothing else.
 *  - selectors that depend on a state class or on how Vikunja nests things are marked FRAGILE and listed in docs/vikunja-theme.md.
 *  - `!important` only where Vikunja's own rule is scoped (data-v) and outranks a class; each use says so.
 */


/* ==========================================================================
 * 0. FONTS: IBM Plex Sans 400/500 and Mono 400 (OFL), self-hosted from deploy/vikunja-theme/fonts/ (no CDN), Latin + Cyrillic subsets.
 *    Neue Haas Unica is not here: it is licensed and loaded by vox.js with the user's token (see --vt-font-display).
 * ========================================================================== */

@font-face {
	font-family: "IBM Plex Sans";
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	src: url("/vox-theme/fonts/ibm-plex-sans-cyrillic-400.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "IBM Plex Sans";
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	src: url("/vox-theme/fonts/ibm-plex-sans-latin-400.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "IBM Plex Sans";
	font-weight: 500;
	font-style: normal;
	font-display: swap;
	src: url("/vox-theme/fonts/ibm-plex-sans-cyrillic-500.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "IBM Plex Sans";
	font-weight: 500;
	font-style: normal;
	font-display: swap;
	src: url("/vox-theme/fonts/ibm-plex-sans-latin-500.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "IBM Plex Mono";
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	src: url("/vox-theme/fonts/ibm-plex-mono-cyrillic-400.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "IBM Plex Mono";
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	src: url("/vox-theme/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ==========================================================================
 * 1. TOKENS
 * ========================================================================== */

:root {
	--vt-bg: #efefef;
	--vt-surface: #fff;
	--vt-line: #dcdcdc;
	--vt-card-line: #e2e2e2;       /* the task description card border (TASK-DETAIL.md); dark mode uses --vt-line */
	--vt-desc-ink: #2b2b2b;        /* the task description text; dark mode uses --vt-ink */
	--vt-ink: #111;
	--vt-muted: #5c5c5c;
	--vt-accent: #fe3d00;          /* dots, badges, fills only: never small text */
	--vt-accent-ink: #c42f00;      /* links, overdue, small accent text */
	--vt-up: #3d6b1f;
	--vt-accent-deep: #9e2600;     /* hover of the filled accent button */
	--vt-draft-bg: #fce7df;
	--vt-draft-ink: #9e2600;
	--vt-pub-bg: #e3eeda;
	--vt-pub-ink: #2f5418;
	--vt-warn-bg: #fce7df;
	--vt-badge: #c42f00;           /* the bell pill: white 10px text on it, the same fill in both themes */
	--vt-on-accent: #fff;          /* text on the filled accent button (--vt-accent-ink) */

	--vt-radius: 2px;
	--vt-popover-shadow: 0 8px 24px rgba(0, 0, 0, .08);
	--vt-s1: 4px;
	--vt-s2: 8px;
	--vt-s3: 12px;
	--vt-s4: 16px;
	--vt-s5: 28px;

	--vt-font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--vt-font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	/* Unica is desktop-licensed: vox.js loads it with the user's token and registers it under this name; until then (and for
	   anyone not logged in) the fallbacks show. */
	--vt-font-display: "Neue Haas Unica W1G", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--vt-fs-body: 13px;
	--vt-fs-meta: 12px;
	--vt-fs-label: 11px;
	--vt-fs-section: 15px;
	--vt-fs-page: 20px;
	--vt-fs-task: 26px;
	--vt-lh: 1.45;
	--vt-tap: 32px;

	/* Vikunja's own variables, pointed at the tokens (light) */
	--site-background: var(--vt-bg);
	--white: var(--vt-surface);
	--scheme-main: var(--vt-surface);
	--text: var(--vt-ink);
	--text-strong: var(--vt-ink);
	--text-light: var(--vt-muted);
	--text-muted: var(--vt-muted);
	--grey-100: var(--vt-bg);
	--grey-200: var(--vt-line);
	--grey-300: var(--vt-line);
	--grey-500: var(--vt-muted);
	--border: var(--vt-line);
	--card-border-color: var(--vt-line);
	--link: var(--vt-accent-ink);
	--link-hover: var(--vt-accent-ink);
	--primary-h: 14;
	--primary-s: 100%;
	--primary-l: 50%;
	--tag-radius: var(--vt-radius);
	--body-family: var(--vt-font);
	--body-size: var(--vt-fs-body);
	--body-line-height: var(--vt-lh);
	--shadow-xs: none;
	--shadow-sm: none;
	--shadow-md: var(--vt-popover-shadow);
	--shadow-lg: var(--vt-popover-shadow);
}

:root.dark {
	--vt-bg: #141414;
	--vt-surface: #1e1e1e;
	--vt-line: #333;
	--vt-card-line: var(--vt-line);
	--vt-desc-ink: var(--vt-ink);
	--vt-ink: #ededed;
	--vt-muted: #a6a6a6;
	--vt-accent-ink: #ff7a4d;
	--vt-up: #9bcb6c;
	--vt-accent-deep: #ff9a78;
	--vt-draft-bg: #3a2018;
	--vt-draft-ink: #ffb199;
	--vt-pub-bg: #1f3018;
	--vt-pub-ink: #b5dc8c;
	--vt-warn-bg: #3a2018;
	--vt-popover-shadow: 0 8px 24px rgba(0, 0, 0, .4);
	--vt-on-accent: #141414;       /* the accent-ink fill is light in the dark theme */

	--primary-l: 55%;
	--grey-50: var(--vt-surface);
	--grey-100: var(--vt-bg);
}

@media (max-width: 769px) {
	:root {
		--vt-fs-body: 14px;
		--vt-tap: 44px;
	}
}


/* ==========================================================================
 * 2. BASE: type, radius, borders
 * ========================================================================== */

body,
button,
input,
select,
textarea {
	font-family: var(--vt-font);
	font-size: var(--vt-fs-body);
	line-height: var(--vt-lh);
}

h1,
h2,
h3,
.title,
.bucket-header .title,
.project-title,
.task-section-title {
	font-family: var(--vt-font-display);
	font-weight: 500;
	color: var(--vt-ink);
}

.project-title {
	font-size: var(--vt-fs-page);
}

.task-view .task-section-title,
.task-view .comments-heading {
	font-size: var(--vt-fs-section) !important;   /* Vikunja's heading rule is scoped */
}

.card,
.button,
.base-button.button,
.input,
.select select,
.tag,
.dropdown-content,
.modal-content,
.kanban-card,
.tiptap__editor,
.global-notification {
	border-radius: var(--vt-radius);
}

.card,
.kanban-card {
	background: var(--vt-surface);
	border: 1px solid var(--vt-line);
	box-shadow: none;
}

.avatar,
.color-bubble {
	border-radius: 50%;   /* avatars and dots stay round */
}

/* A task colour (hex_color, mostly from the Asana import) is an inline background-color on the card. The text on it is --vt-ink, which is light in
   the dark theme, so the colour is veiled with the surface: a pale tint in light, a dark card with a hint of the hue in dark. The inline colour stays
   (it is the hue); the gradient is a second layer on top of it. FRAGILE: keyed on Vikunja's has-custom-background-color class. Elsewhere a task colour is
   only a dot (.color-bubble: list rows, task header), which needs no veil. */
.kanban-card.kanban-card.has-custom-background-color {   /* doubled class: Vikunja's scoped `.task[data-v]` background and its route CSS (loaded after this file) tie at one class */
	background-image: linear-gradient(color-mix(in srgb, var(--vt-surface) 80%, transparent), color-mix(in srgb, var(--vt-surface) 80%, transparent));
	border-color: var(--vt-line);
	color: var(--vt-ink);   /* Vikunja sets black (has-custom-background-color) or white (has-light-text) by the colour, which no longer is what is behind the text */
}

time,
.task-id,
.comment-count-badge,
.checklist-summary,
.created {
	font-family: var(--vt-font-mono);
	font-variant-numeric: tabular-nums;
}

.created,
.task-id,
.comment-count,
.checklist-summary {
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
}

/* small link-coloured text that vox.css paints with Vikunja's --primary (3.6:1 on white): the ink variant, like every other small accent text */
.vox-desc-toggle,
.vox-home-mine .vox-home-more {
	color: var(--vt-accent-ink);
}

/* popovers are the only things that float */
.dropdown-content,
.notifications-list,
.modal-content {
	box-shadow: var(--vt-popover-shadow);
	border: 1px solid var(--vt-line);
	background: var(--vt-surface);
}

/* touch targets on a phone */
@media (max-width: 769px) {
	.button,
	.base-button.button,
	.list-menu-link,
	.navigation-item,
	.menu-show-button,
	.trigger-button {
		min-height: var(--vt-tap);
	}
}


/* ==========================================================================
 * 3. HIDDEN: every Vikunja mention
 * ========================================================================== */

/* "Powered by Vikunja" in the sidebar and any other link out to vikunja.io (About dialog, docs). The attribute is the stable part. */
.menu-bottom-link,
a[href*="vikunja.io"] {
	display: none !important; /* Vikunja's scoped rule for the link outranks a class */
}


/* ==========================================================================
 * 4. SIDEBAR
 * ========================================================================== */

aside.menu-container {
	background: var(--vt-bg);
	border-right: 1px solid var(--vt-line);
}

/* wordmark: the logo's SVG is replaced by text (the raccoon rule in vox.css targets svg.logo, which this hides) */
aside a.logo div,
aside a.logo svg {
	display: none;
}

aside a.logo {
	display: block !important;   /* hidden by Vikunja's scoped rule in this layout */
	height: auto;
}

aside a.logo::after {
	content: "Vox Tasks";
	display: block;
	padding: var(--vt-s4) var(--vt-s4) var(--vt-s3);
	font-family: var(--vt-font-display);
	font-size: var(--vt-fs-section);
	font-weight: 500;
	letter-spacing: -.01em;
	color: var(--vt-ink);
}

aside .list-menu-link {
	display: flex;
	align-items: center;
	min-height: 32px;
	border-radius: var(--vt-radius);
	font-size: var(--vt-fs-body);
	color: var(--vt-ink);
}

aside .navigation-item {
	min-height: 32px;
}

aside .project-menu-title {
	font-size: var(--vt-fs-body);
	font-weight: 400;
}

/* 6px colored dot per project; the colour itself is the project's own inline style */
aside .color-bubble {
	width: 6px !important;   /* Vikunja's size rule is scoped */
	height: 6px !important;
	min-width: 6px;
	flex: none !important;   /* `.menu .menu-list a .color-bubble { flex: 0 0 12px }` outranks a plain declaration: a dot the script adds is a flex item and came out 12x6 */
}

/* FRAGILE: the active project is Vue Router's state class. If it is renamed the row simply loses the highlight. */
aside .list-menu-link.router-link-exact-active,
aside .list-menu-link.router-link-active {
	background: var(--vt-surface);
	color: var(--vt-ink);
}

aside .list-menu-link.router-link-exact-active .project-menu-title,
aside .list-menu-link.router-link-active .project-menu-title {
	color: var(--vt-ink) !important;   /* Vikunja colours the active title with --primary (the accent is never small text) */
	font-family: var(--vt-font-display);
	font-weight: 500;
}


/* ==========================================================================
 * 5. KANBAN
 * ========================================================================== */

.kanban .bucket {
	min-width: 248px;
	width: 260px;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.bucket-header .title {
	font-size: var(--vt-fs-section);
}

.kanban-card .p-2 {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: var(--vt-s2) var(--vt-s3);
	padding: 10px 12px !important;   /* a utility class (p-2) outranks ours otherwise */
}

.kanban-card h3 {
	grid-row: 1;
	grid-column: 1 / -1;
	margin: 0;
}

/* vox-ui.js marks the wrapper of the id and the due date; it dissolves so the due date becomes a cell of the card's own grid */
.kanban-card .vox-card-top {
	display: contents;
}

.kanban-card .task-id {
	display: contents !important;   /* the id text goes (font-size 0), the wrapper dissolves so a done card's badge below can show; Vikunja's scoped rule sets display:flex */
	font-size: 0 !important;
}

/* a done card: Vikunja puts its «Закінчено» badge inside .task-id (it used to be hidden together with the id, so done cards looked open). Yuri prefers a ✅ before
   the title to a chip: the badge itself stays hidden, the title of a done card is muted (design: .card.done). Fragile: keyed on Vikunja's class kanban-card__done and :has(). */
.kanban-card .kanban-card__done {
	display: none !important;
}

.kanban-card:has(.kanban-card__done) h3::before {
	content: "✅\00a0";
}

.kanban-card:has(.kanban-card__done) h3,
.kanban-card:has(.kanban-card__done) .kanban-card__title-link {
	color: var(--vt-muted) !important;
}

/* the meta row: due date | checklist, spacer, avatar */
.kanban-card .due-date {
	grid-row: 2;
	grid-column: 1;
	padding: 0 !important;
	background: none !important;   /* Vikunja's scoped rule gives the date a grey pill */
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
}

.kanban-card .footer {
	grid-row: 2;
	grid-column: 2;
	display: flex;
	align-items: center;
	gap: var(--vt-s3);
	min-height: 22px;
	margin: 0;
	font-size: var(--vt-fs-meta);
}

.kanban-card .footer .icon,
.kanban-card .comment-count,
.kanban-card .checklist-summary svg,
.kanban-card .due-date .icon {
	display: none;   /* description / comment / progress icons are noise on the card; the task view has them */
}

.kanban-card .checklist-summary {
	order: 1;
}

.kanban-card .assignees-list {
	order: 2;
	margin-left: auto;
}

.kanban-card[data-is-overdue="true"] .due-date,
.kanban-card[data-is-overdue="true"] .due-date time {
	color: var(--vt-accent-ink) !important;   /* Vikunja's scoped rule paints overdue dates its own red */
}

.kanban-card .avatar {
	width: 22px;
	height: 22px;
}

.kanban-card .username {
	display: none;
}

@media (max-width: 769px) {
	.kanban .bucket {
		width: 300px !important;   /* vox.css sets 85vw there: ~300px leaves the next column peeking at 390px */
	}
}


/* ==========================================================================
 * 6. PROJECT DESCRIPTION: one line under the title (the strip's first line, vox-description.js)
 * ========================================================================== */

.vox-desc-first {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}


/* ==========================================================================
 * 7. TASK VIEW (every selector starts `.task-view.task-view`: Vikunja's route chunk loads after this file at equal specificity)
 * ========================================================================== */

.task-view.task-view {
	max-width: 760px;
	margin-inline: auto;
}

.task-view.task-view .heading .title {
	font-size: var(--vt-fs-task);
	font-weight: 500;
	line-height: 1.2;
}

/* FRAGILE: the outer two-column wrapper has no class of its own. Stack it so the action buttons become one row above the content. */
.task-view.task-view .columns {
	display: flex;
	flex-direction: column;
	gap: var(--vt-s3);
}

.task-view.task-view .columns.details {
	flex-direction: row;
	flex-wrap: wrap;
}

.task-view.task-view .detail-content,
.task-view.task-view .action-buttons {
	width: 100%;
	max-width: none;
	flex: none;
}

.task-view.task-view .action-buttons {
	order: -1;
	display: flex;
	flex-wrap: wrap;
	gap: var(--vt-s2);
}

.task-view.task-view .action-buttons .action-heading,
.task-view.task-view .action-buttons .created {
	display: none;
}

.task-view.task-view .action-buttons .button {
	width: auto;
	min-height: var(--vt-tap);
	height: var(--vt-tap);
	margin: 0;
	padding: 0 var(--vt-s3);
	background: var(--vt-surface);
	border: 1px solid var(--vt-line);
	color: var(--vt-ink);
	font-size: var(--vt-fs-meta);
	font-weight: 400;
	text-transform: none;
}

.task-view.task-view .detail-title,
.task-view.task-view .action-heading {
	font-size: var(--vt-fs-label);
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--vt-muted);
}

.task-view.task-view .comment {
	padding-bottom: var(--vt-s3);
	border-bottom: 1px solid var(--vt-line);
}

.task-view.task-view .comment-info {
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
}

/* the "Imported from Asana" line is the last paragraph of the description: small and muted at the bottom is the closest CSS gets;
   moving it is phase 2 (it needs a class to hang on). */
.task-view.task-view .tiptap__task-description .ProseMirror {
	font-size: var(--vt-fs-body);
}


/* ==========================================================================
 * 8. NOTIFICATIONS POPOVER
 * ========================================================================== */

.notifications-list {
	border-radius: var(--vt-radius);
}

.notifications-list .head {
	font-size: var(--vt-fs-label);
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--vt-muted);
}

.single-notification {
	padding: var(--vt-s2) var(--vt-s3);
	font-size: var(--vt-fs-body);
	line-height: 1.35;
	border-bottom: 1px solid var(--vt-line);
}

.single-notification .created {
	display: block;
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
}

.single-notification .read-indicator {
	width: 6px;
	height: 6px;
	background: var(--vt-accent) !important;   /* Vikunja's dot colour is a scoped rule on --primary */
	border-radius: 50%;
}

/* view tabs and links: accent text would be small text, so the accent-ink variant */
.switch-view .base-button {
	color: var(--vt-accent-ink);
}

.notifications .unread-indicator {
	background: var(--vt-accent);
}


/* ==========================================================================
 * 9. DESIGN GAPS (#519 round 2, docs/ui-v2/design/DESIGN.md "Gaps on live" 1-10)
 * ========================================================================== */

/* 1. every heading is Unica 500 (vox.css sets font-family: inherit on the home block's headings) */
h1,
h2,
h3,
.vox-home .vox-home-h,
.vox-home .vox-home-title,
.vox-greet-h,
.vox-page-title,
.task-view .heading .title {
	font-family: var(--vt-font-display) !important;
	font-weight: 500;
}

.vox-home .vox-home-h {
	font-size: var(--vt-fs-section);
}

.vox-home .vox-home-title {
	font-size: var(--vt-fs-label);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--vt-muted);
}

/* 3. top bar: no logo, no hamburger on a desktop, title left, bell and avatar only */
header.navbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--vt-s3);
	min-height: 60px;
	padding: var(--vt-s3) var(--vt-s5);
	background: var(--vt-bg);
	border-bottom: 1px solid var(--vt-line);
}

.logo-link {
	display: none !important;   /* the wordmark is in the sidebar */
}

@media (min-width: 770px) {
	.menu-show-button {
		display: none !important;   /* a phone keeps its menu button (MobileHome) */
	}
}

/* top row (Main.dc.html): the «Vox Tasks» wordmark over the sidebar column, the page title over the main column, both 60px high.
   Vikunja pins the bar across the whole width and the aside below it (both scoped, hence !important). Here the bar starts where the main
   column starts and the aside runs from the very top, so its border-right is full height; the aside's first nav is the wordmark row and
   carries the same bottom border, so the line runs under both columns. The wordmark is the real home link (a.logo, text via ::after). */
@media (min-width: 770px) {
	header.navbar {
		inset-inline-start: 240px !important;   /* = the aside width below */
		box-sizing: border-box;
		height: 60px !important;
		min-block-size: 60px !important;
		padding: 0 var(--vt-s5) !important;
	}

	aside.menu-container {
		inset-block-start: 0 !important;
		padding-block-start: 0 !important;
	}

	aside nav.top-menu {
		box-sizing: border-box;
		height: 60px;
		margin: 0;
		border-bottom: 1px solid var(--vt-line);
	}

	aside a.logo {
		height: 60px !important;
		margin: 0 !important;
	}

	aside nav.top-menu a.logo::after {   /* the extra element outranks the later base rule */
		line-height: 60px;   /* the height of the top bar, so the text sits on its centre line */
		margin-bottom: 0;
	}

	/* the home has no title: the wordmark already says where you are (a phone shows it in the bar, see below) */
	.vox-page-title--home {
		display: none;
	}

	/* the title and the content share one left edge, 28px from the column (Main.dc.html); the first block starts 28px under the bar
	   (Vikunja's own offsets are 1.5rem and 5.5rem, for its 4rem bar) */
	#main-content.is-menu-enabled {
		padding-inline: var(--vt-s5);
	}

	#main-content.home {
		padding-top: calc(60px + var(--vt-s5)) !important;
	}

	.project-title-wrapper {
		padding-inline: 0 !important;   /* Vikunja's scoped 13px */
	}

	.navbar-end {
		align-items: center !important;   /* Vikunja stretches the bell to the bar's height */
	}
}

/* phone: the same 28px between the bar and the first block of the home */
@media (max-width: 769px) {
	#main-content.home {
		padding-top: var(--vt-s5);
	}

	#main-content.home .vox-home-mine {
		margin-top: 0;
	}
}

.project-title-wrapper {
	flex: 1;
	margin: 0;
	text-align: left;
	justify-content: flex-start;
}

.project-title,
.vox-page-title {
	margin: 0;
	font-size: var(--vt-fs-page);
	font-weight: 500;
	text-align: left;
}

.navbar-end {
	display: flex;
	align-items: center;
	gap: var(--vt-s3);
	margin-left: auto;
}

.username-dropdown-trigger .username,
.username-dropdown-trigger .dropdown-icon {
	display: none;
}

.username-dropdown-trigger .avatar,
.navbar-end .avatar {
	width: 28px !important;
	height: 28px !important;
}

/* 4. bell: a number in a 16px pill (Notifications.dc.html), not a dot (vox-ui.js writes the count, 99+ above 99; empty = nothing shown).
   Vikunja sizes the dot with block-size/inline-size 0.75rem in a scoped rule (a height of ours loses to it and the pill came out 10px, clipping
   the number), so the size is !important. The pill is anchored by its left edge, so a longer text grows to the right, into the gap before the
   avatar, instead of over the icon. */
.notifications .trigger-button {
	position: relative;
	block-size: 36px;
	inline-size: 40px;
}

.notifications .unread-indicator {
	position: absolute;
	inset-block-start: 3px !important;
	inset-block-end: auto !important;
	inset-inline-start: 24px !important;
	inset-inline-end: auto !important;
	block-size: 16px !important;
	inline-size: auto !important;
	min-inline-size: 16px;
	padding: 0 4px;
	box-sizing: border-box;
	border: 0 !important;   /* Vikunja draws a white ring */
	border-radius: 8px;
	background: var(--vt-badge) !important;   /* the pill carries small white text: #C42F00 in both themes (the ink variant would be light in dark) */
	color: #fff;
	font-family: var(--vt-font);
	font-size: 10px;
	font-weight: 600;
	line-height: 16px;
	text-align: center;
	white-space: nowrap;
}

.notifications .unread-indicator:empty {
	display: none;
}

/* 5. sidebar: «Проєкти» label, no chevrons, wordmark 18/400 */
.vox-proj-label {
	padding: var(--vt-s2) var(--vt-s3) var(--vt-s1);
	font-size: var(--vt-fs-label);
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--vt-muted);
}

.collapse-project-button,
.collapse-project-button-placeholder {
	display: none !important;   /* Vikunja's scoped rule keeps the placeholder's width */
}

aside a.logo::after {
	font-size: 18px;
	font-weight: 400;
	font-family: var(--vt-font);
}

/* 6. board buttons: quiet, sentence case ("+ Додати" text is set by vox-ui.js) */
.bucket-footer .button,
.filter-container .button {
	background: transparent;
	border: 0;
	color: var(--vt-muted);
	font-size: var(--vt-fs-body);
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	justify-content: flex-start;
}

@media (hover: hover) {
	.bucket-footer .button:hover,
	.filter-container .button:hover {
		background: var(--vt-line);
		color: var(--vt-ink);
	}
}

/* 7. avatars: coloured circles (vox-ui.js draws the image); sizes */
.kanban-card .avatar {
	width: 22px;
	height: 22px;
}

/* 9. home: tight stats tables, black links; no greeting or raccoon, «Мої завдання» is the first block (the search is in the top bar, see «search» below) */
.vox-home-block {
	border-radius: var(--vt-radius);
	border-color: var(--vt-line);
}

.vox-home-table {
	table-layout: auto;
	font-size: var(--vt-fs-body);
}

.vox-home-table th,
.vox-home-table td {
	padding-left: var(--vt-s3);
	text-align: right;
	white-space: nowrap;
}

.vox-home-table th:first-child,
.vox-home-table td:first-child {
	padding-left: 0;
	text-align: left;
	white-space: normal;
	width: 100%;   /* the label takes the slack, so the numbers sit in a tight column at the right */
}

.vox-home-table .vox-home-num,
.vox-home-table .vox-home-dyn {
	font-family: var(--vt-font-mono);
	font-variant-numeric: tabular-nums;
}

.vox-home-up { color: var(--vt-up); }
.vox-home-down { color: var(--vt-accent-ink); }

.vox-home a,
.vox-home .vox-home-table .vox-home-article a {
	color: var(--vt-ink);
	text-decoration: none;
}

@media (hover: hover) {
	.vox-home a:hover {
		color: var(--vt-accent-ink);
	}
}

.vox-home .vox-home-more {
	color: var(--vt-accent-ink);
}

/* task page: the imported-from line is last and quiet (vox-ui.js marks the paragraph) */
.task-view .vox-imported {
	margin-top: var(--vt-s4);
	padding-top: var(--vt-s3);
	border-top: 1px solid var(--vt-line);
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
}

.task-view .task-id,
.task-view .back-button {
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
}

/* sidebar 240px (design: ~216-280); Vikunja fixes the aside at 300px and offsets the content by the same number (both scoped, hence !important) */
@media (min-width: 770px) {
	aside.menu-container {
		width: 240px !important;
	}

	#main-content.is-menu-enabled {
		margin-inline-start: 240px !important;
	}
}

.kanban-card time {
	font-family: var(--vt-font);
	font-variant-numeric: tabular-nums;
}

.kanban-card .checklist-summary,
.kanban-card .checklist-summary span {
	font-family: var(--vt-font-mono);
}

.kanban .bucket {
	margin-inline-end: var(--vt-s4);
}

.vox-count {
	margin-inline-start: auto;
	margin-inline-end: var(--vt-s2);
	font-family: var(--vt-font-mono);
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
}

.notifications .trigger-button,
.navbar-end .trigger-button {
	color: var(--vt-ink);
}

/* home: two columns of blocks (site | social), «Мої завдання» and the heading full width */
@media (min-width: 900px) {
	.vox-home {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--vt-s4);
		align-items: start;
	}

	.vox-home-head,
	.vox-home-caption,
	.vox-home-mine {
		grid-column: 1 / -1;
	}

	.vox-home-block {
		margin: 0;
	}
}

.task-view.task-view .action-buttons .button.button {
	width: auto !important;   /* Vikunja's scoped rule makes every action a full-width bar */
	flex: none;
	justify-content: flex-start;
}

.task-view.task-view .button--mark-done {
	background: var(--vt-ink);
	border-color: var(--vt-ink);
	color: var(--vt-surface);
}

/* round 2b: details found against the mockups */
.notifications .trigger-button,
.navbar-end .trigger-button,
.notifications .trigger-button svg {
	color: var(--vt-ink) !important;   /* Vikunja's scoped rule greys the icons */
}

.single-notification .created {
	font-family: var(--vt-font);
}

strong,
.has-text-weight-bold,
.single-notification .detail span {
	font-family: var(--vt-font-display);
	font-weight: 500;
}

.single-notification .avatar {
	width: 28px;
	height: 28px;
}

.single-notification .read-indicator {
	inset: auto;
	position: static;
	flex: none;
	margin-top: 10px;
}

/* task page: section titles are labels (Task.dc.html: ОПИС / ЧЕКЛІСТ / КОМЕНТАРІ), comment avatars 22px, done button solid ink */
.task-view.task-view .task-section-title,
.task-view.task-view .comments-heading {
	font-family: var(--vt-font) !important;
	font-size: var(--vt-fs-label) !important;
	font-weight: 500 !important;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--vt-muted);
}

.task-view.task-view .comment .avatar,
.task-view.task-view .comment .image.is-avatar {
	width: 22px !important;
	height: 22px !important;
}

.task-view.task-view .button--mark-done {
	background: var(--vt-ink) !important;   /* Vikunja's success green is a scoped rule */
	border-color: var(--vt-ink) !important;
	color: var(--vt-surface) !important;
}

/* the saved filter «My Open Tasks» (a pseudo project with a negative id) is not in the design: the home page has «Мої завдання» */
aside li.list-menu[data-project-id^="-"] {
	display: none;
}

/* Vikunja's «Last viewed» block (an h2 without a class + `.project-grid`) is not in the design either. FRAGILE: the wrapper has only utility
   classes, so it is reached with :has() on its direct child; if :has() is unsupported or the grid is renamed, the block just stays. */
.home :has(> .project-grid) {
	display: none;
}


/* ==========================================================================
 * 10. REVIEW 2 (#519, docs/ui-v2/design/REVIEW-2.md, items 1-18)
 * ========================================================================== */

/* never let the browser fake a weight: Unica has only 500, Plex 400 and 500 */
html {
	font-synthesis: none;
}

/* 1 card titles: Plex 13/400, not the Unica heading rule */
.kanban-card h3,
.kanban-card .kanban-card__title-link {
	font-family: var(--vt-font) !important;
	font-size: var(--vt-fs-body) !important;
	font-weight: 400 !important;
	line-height: var(--vt-lh);
}

header.navbar > .vox-page-title {
	align-self: center;   /* Vikunja's bar stretches its children; the injected title would hang from the top */
}

/* 2 page title 20/500, 3 column headers 13/500 (Vikunja's scoped sizes and weights win otherwise) */
.project-title,
.vox-page-title {
	font-family: var(--vt-font-display) !important;
	font-size: var(--vt-fs-page) !important;
	font-weight: 500 !important;
}

.bucket-header .title,
.bucket-header h2 {
	font-family: var(--vt-font-display) !important;
	font-size: var(--vt-fs-body) !important;
	font-weight: 500 !important;
}

/* 4 card meta: Plex 12 muted, a drawn box before «n/m» (mono is for numbers on the home block only) */
.kanban-card .footer,
.kanban-card .due-date,
.kanban-card .due-date time,
.kanban-card .checklist-summary,
.kanban-card .checklist-summary span {
	font-family: var(--vt-font) !important;
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
}

.kanban-card .checklist-summary {
	display: inline-flex;
	align-items: center;
}

.kanban-card .checklist-summary::before {
	content: "";
	flex: none;
	width: 9px;
	height: 9px;
	margin-inline-end: 5px;
	border: 1.5px solid currentColor;
	border-radius: 2px;
}

/* all items done (class set by vox-ui.js cardsStep, #847): the box is filled and carries a tick */
.kanban-card .checklist-summary.vox-checklist-done {
	position: relative;
}

.kanban-card .checklist-summary.vox-checklist-done::before {
	background: currentColor;
}

.kanban-card .checklist-summary.vox-checklist-done::after {
	content: "";
	position: absolute;
	inset-inline-start: 3.5px;
	top: 50%;
	width: 2.5px;
	height: 5px;
	border: solid #fff;
	border-width: 0 1.5px 1.5px 0;
	transform: translateY(-62%) rotate(45deg);
}

.kanban-card[data-is-overdue="true"] .due-date,
.kanban-card[data-is-overdue="true"] .due-date time {
	color: var(--vt-accent-ink) !important;
}

/* 5 + 6 sidebar: 12px nav padding, rows 32px with 10px padding, dot + 10px + name, active row full width, wordmark aligned with the rows */
@media (min-width: 770px) {
	aside.menu-container .menu {
		padding-inline: var(--vt-s3);
	}
}

aside .navigation-item {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 0;
	border-radius: var(--vt-radius);
}

aside .list-menu-link {
	flex: 1 1 auto;
	min-width: 0;
	gap: 10px;
	padding: 0 10px !important;   /* Vikunja's scoped padding */
	margin: 0;
}

aside .color-bubble-wrapper {
	flex: none;
	display: inline-flex;
	align-items: center;
	width: 6px;
	margin: 0 !important;
	padding: 0;
}

aside a.logo::after {
	padding: 0 22px !important;   /* 12px nav + 10px row padding: the same left edge as the project names */
	line-height: 40px;
	margin-bottom: 14px;
}

.vox-proj-label {
	padding: var(--vt-s2) 22px var(--vt-s1);
}

.vox-archive {
	margin: 10px 0 0;
	padding: 0 var(--vt-s3) !important;
}

.vox-archive-head-v2 {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 32px;
	padding: 0 10px;
	background: transparent;
	border: 0;
	font-size: var(--vt-fs-body);
	color: var(--vt-muted);
	cursor: pointer;
}

.vox-arch-chev {
	flex: none;
	width: 14px;
	text-align: center;
	transition: transform .12s;
}

.vox-archive-head-v2.is-open .vox-arch-chev {
	transform: rotate(90deg);
}

.vox-arch-label {
	flex: 1;
	text-align: left;
}

.vox-arch-n {
	font-family: var(--vt-font-mono);
	font-size: var(--vt-fs-label);
}

.vox-archive-link {
	display: flex;
	align-items: center;
	min-height: 32px;
	padding: 0 10px 0 34px;
}

/* 7-10 task view: one surface, 760px; a flat flex row built from Vikunja's own elements (the wrappers dissolve with display: contents) */
.task-detail-view-modal .modal-content,
.task-view-container.is-modal {
	width: 100% !important;
	max-width: 760px !important;
	background: var(--vt-surface) !important;
	border-radius: var(--vt-radius);
}

#main-content.task\.detail {
	background: var(--vt-surface);
}

.task-view.task-view {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--vt-s2);
	max-width: 760px;
	margin-inline: auto;
	padding: var(--vt-s5);
	border: 0;
	box-shadow: none;
}

.task-view.task-view .heading,
.task-view.task-view .subtitle,
.task-view.task-view .columns,
.task-view.task-view .detail-content,
.task-view.task-view .columns.details {
	display: contents;
}

.task-view.task-view .back-button {
	order: 0;
	flex: 0 0 100%;
	justify-content: flex-start;
}

.task-view.task-view .heading .task-properties,
.task-view.task-view .checklist-summary,
.task-view.task-view .subtitle > a,
.task-view.task-view .subtitle .has-text-grey-light,
.task-view.task-view .action-heading,
.task-view.task-view .action-buttons .created {
	display: none !important;   /* the id (8), the breadcrumb (the header has it in the design), the group headings */
}

.task-view.task-view .heading .title {
	order: 1;
	flex: 0 0 100%;
	margin: 0 0 var(--vt-s2);
	font-size: var(--vt-fs-task) !important;
	line-height: 1.2;
}

/* the fields row: Колонка · Виконавець · Термін, 32px bordered buttons */
.task-view.task-view .subtitle .dropdown,
.task-view.task-view .columns.details .column {
	order: 2;
	flex: none;
	width: auto;
	margin: 0;
}

.task-view.task-view .bucket-name,
.task-view.task-view .columns.details .column {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: var(--vt-tap);
	padding: 0 10px;
	background: var(--vt-surface);
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	font-size: var(--vt-fs-body);
	color: var(--vt-ink);
}

.task-view.task-view .bucket-name::before {
	content: "Колонка";
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
}

.task-view.task-view .columns.details .detail-title {
	display: inline-flex;
	align-items: center;
	margin: 0;
	font-size: var(--vt-fs-meta);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--vt-muted);
}

.task-view.task-view .columns.details .detail-title .icon {
	display: none;
}

.task-view.task-view .columns.details .multiselect input {
	width: 9rem;
}

/* actions: «Виконати» and «⋯» in a row, everything else in the menu that «⋯» opens */
.task-view.task-view .action-buttons {
	order: 3;
	flex: 0 0 100%;
	display: grid;
	grid-template-columns: auto auto 1fr;
	align-items: start;
	gap: var(--vt-s2);
	height: var(--vt-tap);
	padding: 0;
}

.task-view.task-view .action-buttons .button:not(.button--mark-done) {
	display: none;
}

.task-view.task-view .action-buttons .button--mark-done {
	grid-row: 1;
	grid-column: 1;
}

.task-view.task-view .vox-more {
	grid-row: 1;
	grid-column: 2;
	width: var(--vt-tap);
	height: var(--vt-tap);
	background: var(--vt-surface);
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	color: var(--vt-ink);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.task-view.task-view .action-buttons.vox-more-open .button:not(.button--mark-done) {
	display: flex;
	grid-column: 1 / span 2;
	position: relative;
	z-index: 30;
	width: 240px;
	justify-content: flex-start;
	box-shadow: var(--vt-popover-shadow);
}

.task-view.task-view .description {
	order: 4;
	flex: 0 0 100%;
	margin-top: var(--vt-s3);
}

.task-view.task-view .reactions {
	order: 4;
	flex: 0 0 100%;
}

.task-view.task-view .attachments {
	order: 5;
	flex: 0 0 100%;
}

.task-view.task-view .comments-container {
	order: 6;
	flex: 0 0 100%;
}

.task-view.task-view .content-bottom-marker {
	order: 7;
	flex: 0 0 100%;
}

/* 10 the Asana provenance: the paragraphs it came in are hidden, one muted line with the link goes last (vox-ui.js) */
.task-view .vox-imported-src {
	display: none;
}

.task-view.task-view .vox-imported-line {
	order: 9;
	flex: 0 0 100%;
	margin: var(--vt-s3) 0 0;
	padding-top: var(--vt-s3);
	border-top: 1px solid var(--vt-line);
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
}

.task-view .vox-imported-line a {
	color: var(--vt-muted);
	text-decoration: underline;
}

/* 11-13 bell: names in Unica (strong), rows as in the mockup */
.single-notification .detail .has-text-weight-bold {
	font-family: var(--vt-font-display);
	font-weight: 500;
}

/* 15 home: the change column stays on one line */
.vox-home-table .vox-home-dyn {
	white-space: nowrap !important;
	min-width: 0;
}

/* 16-18 phone */
.add-to-home-screen {
	display: none !important;   /* Vikunja's install banner (also mistranslated in Ukrainian) */
}

@media (max-width: 769px) {
	header.navbar {
		padding: 4px 6px;
		min-height: 52px;
	}

	.project-title-wrapper {
		justify-content: center;
		text-align: center;
	}

	.project-title,
	.vox-page-title {
		font-size: 17px !important;
		text-align: center;
	}

	.filter-container {
		display: flex;
		justify-content: flex-start;
		padding-inline: var(--vt-s4);
	}

	.task-view.task-view {
		padding: var(--vt-s4);
	}

	.task-detail-view-modal .modal-content {
		max-width: none !important;
	}
}

/* the assignee field as a compact chip: avatar(s) and a short input, no inner box */
.task-view.task-view .columns.details .column .multiselect,
.task-view.task-view .columns.details .column .control,
.task-view.task-view .columns.details .column .input-wrapper {
	display: flex;
	align-items: center;
	min-height: 0;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.task-view.task-view .columns.details .column .assignees-list {
	display: flex;
	align-items: center;
}

.task-view.task-view .columns.details .column .assignees-list .user,
.task-view.task-view .columns.details .column .assignees-list .assignee {
	margin: 0 !important;
	--avatar-size: 22px;
}

.task-view.task-view .columns.details .column .assignees-list .avatar {
	width: 22px !important;
	height: 22px !important;
}

.task-view.task-view .columns.details .column input,
.task-view.task-view .columns.details .column .simple-button {
	height: auto;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	font-size: var(--vt-fs-body);
	color: var(--vt-ink);
}

/* item 9: Vikunja's grey card inside the modal's white one; its own selector (`.is-modal .task-view[data-v]`) has specificity 0,3,0 */
.task-view-container .task-view.task-view.task-view {
	background: transparent !important;   /* 0,4,0 beats the chunk's important rule at 0,3,0 */
}

/* an assigned task shows the avatars only; the input stays reachable (it takes focus on click) but takes no room */
.task-view.task-view .columns.details .has-assignees input:not(:focus) {
	width: 1px;
	min-width: 0;
	opacity: 0;
}

.task-view.task-view .columns.details .column .multiselect {
	min-width: 26px;
	height: 22px;
}

.task-view.task-view .columns.details .column .control,
.task-view.task-view .columns.details .column .input-wrapper {
	height: 22px;
}

.task-view.task-view .columns.details .column .assignees-list .user,
.task-view.task-view .columns.details .column .assignees-list .avatar-wrapper {
	display: flex;
	width: 22px;
	height: 22px;
}

.task-view.task-view .columns.details .column .assignees-list .assignee {
	display: block;
	width: 22px;
	height: 22px;
	margin-inline-end: 6px !important;
}

.task-view.task-view .columns.details .column .remove-assignee {
	top: -6px;
	inset-inline-end: -8px;
	width: 14px;
	height: 14px;
	font-size: 10px;
}

/* item 3: Vikunja's column header rule is important and more specific */
.kanban .bucket .bucket-header h2.title.title {
	font-family: var(--vt-font-display) !important;
	font-size: var(--vt-fs-body) !important;
	font-weight: 500 !important;
}


/* ==========================================================================
 * 11. REVIEW 3 (#519, docs/ui-v2/design/REVIEW-3.md): the «⋯» popover, the three field chips, a plain description and comment box
 * ========================================================================== */

/* flex order of the task page: title 1, Колонка 2, Виконавець 3, Термін 4, Мітки 5, actions 6, description 7, attachments 8, comments 9, Asana line 10 */
.task-view.task-view .columns.details .column.assignees,
.task-view.task-view .vox-field-assign {
	order: 3;
}

.task-view.task-view .columns.details .column,
.task-view.task-view .vox-field-due {
	order: 4;
}

.task-view.task-view .columns.details .column.assignees {
	order: 3;
}

/* Мітки (vox-ui.js): the field button and its popover; Vikunja's own raw label multiselect is hidden, the field replaces it */
.task-view.task-view .vox-lwrap {
	order: 5;
}

.task-view.task-view .labels-list {
	display: none !important;   /* Vikunja's rule is scoped; `l` and the «Позначки» action would otherwise show it above the title */
}

.task-view.task-view .action-buttons {
	order: 6;
}

.task-view.task-view .description {
	order: 7;
}

.task-view.task-view .attachments {
	order: 8;
}

.task-view.task-view .comments-container {
	order: 9;
}

.task-view.task-view .vox-imported-line {
	order: 10;
}

.task-view.task-view .content-bottom-marker,
.task-view.task-view .reactions {
	display: none !important;   /* reactions are not in the design */
}

/* the field chips: Vikunja's own fields when set, ours (vox-ui.js) when empty; same look */
.task-view.task-view .vox-field {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: var(--vt-tap);
	padding: 0 10px;
	background: var(--vt-surface);
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	font: inherit;
	font-size: var(--vt-fs-body);
	color: var(--vt-ink);
	cursor: pointer;
}

.task-view.task-view .vox-field-label {
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
}

@media (hover: hover) {
	.task-view.task-view .vox-field:hover {
		background: var(--vt-bg);
	}
}

/* 1 the «⋯» popover: one surface, 32px rows, no borders between them; the real buttons stay hidden and are pressed by the rows */
.task-view.task-view .action-buttons {
	position: relative;
}

.task-view.task-view .action-buttons .button:not(.button--mark-done),
.task-view.task-view .action-buttons.vox-more-open .button:not(.button--mark-done) {
	display: none !important;
}

.task-view.task-view .vox-menu {
	display: none;
}

.task-view.task-view .action-buttons.vox-more-open .vox-menu {
	display: flex;
	flex-direction: column;
	position: absolute;
	top: calc(var(--vt-tap) + 4px);
	left: 0;
	z-index: 40;
	min-width: 240px;
	padding: 4px;
	background: var(--vt-surface);
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	box-shadow: var(--vt-popover-shadow);
}

.task-view.task-view .vox-menu-row {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	padding: 0 10px;
	background: transparent;
	border: 0;
	border-radius: var(--vt-radius);
	font: inherit;
	font-size: var(--vt-fs-body);
	color: var(--vt-ink);
	text-align: left;
	cursor: pointer;
}

.task-view.task-view .vox-menu-row .icon {
	flex: none;
	width: 14px;
	color: var(--vt-muted);
}

.task-view.task-view .vox-menu-row.is-danger,
.task-view.task-view .vox-menu-row.is-danger .icon {
	color: var(--vt-accent-ink);
}

@media (hover: hover) {
	.task-view.task-view .vox-menu-row:hover {
		background: var(--vt-bg);
	}
}

@media (max-width: 769px) {
	.task-view.task-view .vox-menu-row {
		min-height: var(--vt-tap);
	}
}

/* 3 + 4 the description is plain text (the pencil stays as the edit affordance, #426); «Змінити» shows only while editing */
.task-view.task-view .tiptap__task-description .tiptap__editor {
	background-color: transparent !important;   /* keeps vox.css's pencil image, drops the white box */
	border: 0 !important;
	padding: 0 28px 0 0 !important;
	max-width: 64ch;
	font-size: 14px;
	line-height: 1.6;
	color: var(--vt-ink);
}

.task-view.task-view .tiptap__task-description .ProseMirror {
	font-size: 14px;
	line-height: 1.6;
}

.task-view.task-view .tiptap__task-description:not(:focus-within) .tiptap__editor-actions {
	display: none;
}

/* 5 + 6 the comment box: a plain box, the toolbar only while it has focus; «Надіслати» is black, disabled is line + muted */
.task-view.task-view .comments-container .field .editor-toolbar {
	display: none;
}

.task-view.task-view .comments-container .field .tiptap:focus-within .editor-toolbar {
	display: flex;
}

/* the comment toolbar keeps bold and italic only (Yuri, 2026-11-02: nobody needs headings, underline, strike, code, quotes, lists, links or the «…» menu there; if they ask, we add).
   Hidden, not removed: Vikunja's keyboard shortcuts and pasted formatting still work. The buttons are found by their icon (`svg[data-icon]`), not by position or text. */
.task-view.task-view .comments-container .editor-toolbar .editor-toolbar__button:not(:has(svg[data-icon="bold"])):not(:has(svg[data-icon="italic"])) {
	display: none !important;
}

/* Vikunja measures which buttons fit and marks the rest `is-overflowing` (visibility: hidden, for its own «…» menu); with the others hidden by us the measure is wrong and it
   hid bold too. The two that stay always fit, so they are forced visible. */
.task-view.task-view .comments-container .editor-toolbar .editor-toolbar__button:has(svg[data-icon="bold"]),
.task-view.task-view .comments-container .editor-toolbar .editor-toolbar__button:has(svg[data-icon="italic"]) {
	visibility: visible !important;
}

@media (pointer: coarse), (max-width: 769px) {
	.task-view.task-view .comments-container .editor-toolbar .editor-toolbar__button:has(svg[data-icon="bold"]),
	.task-view.task-view .comments-container .editor-toolbar .editor-toolbar__button:has(svg[data-icon="italic"]) {
		min-width: var(--vt-tap);    /* two buttons are left, so a thumb-sized target costs nothing */
		min-height: var(--vt-tap);
	}
}

.task-view.task-view .comments-container .editor-toolbar .editor-toolbar__button.is-group-start {
	margin-inline-start: 0;
	border-inline-start: 0;
	padding-inline-start: inherit;   /* the left separator of the first remaining group goes: nothing is grouped any more */
}

.task-view.task-view .comments-container .field button.is-primary,
.task-view.task-view .comments-container .form button.is-primary {
	background: var(--vt-ink) !important;
	border-color: var(--vt-ink) !important;
	color: var(--vt-surface) !important;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	opacity: 1 !important;
}

.task-view.task-view .comments-container .field button.is-primary:disabled,
.task-view.task-view .comments-container .form button.is-primary:disabled,
.task-view.task-view .comments-container .field button.is-primary.is-disabled {
	background: var(--vt-line) !important;
	border-color: var(--vt-line) !important;
	color: var(--vt-muted) !important;
}

/* 7 one divider before the Asana line: the comments carry none */
.task-view.task-view .comment {
	border-bottom: 0;
}

.task-view.task-view .vox-imported-line {
	margin-top: var(--vt-s3);
}

/* the description's toolbar too: only while the editor has focus (an empty description opens in edit mode) */
.task-view.task-view .tiptap__task-description .editor-toolbar {
	display: none;
}

.task-view.task-view .tiptap__task-description .tiptap:focus-within .editor-toolbar {
	display: flex;
}

.task-view.task-view .comments-container .field button.is-primary,
.task-view.task-view .comments-container .form button.is-primary {
	min-height: var(--vt-tap);
	padding: 0 var(--vt-s4);
	border-radius: var(--vt-radius);
	font-size: var(--vt-fs-body);
}

/* on the full task page Vikunja pins the action column with `top: 71.5px`; a relative box would be pushed down over the description */
.task-view.task-view .action-buttons {
	top: auto !important;
	inset-block-start: auto !important;
	bottom: auto !important;
}

.task-view.task-view .columns.details .column .assignees-list .username {
	display: none;   /* the chip shows avatars only (a name leaked out of it on a phone) */
}


/* ==========================================================================
 * 12. REVIEW 4 (#519, docs/ui-v2/design/REVIEW-4.md): the Виконавець picker and the Термін popup as popovers under their fields
 * ========================================================================== */

/* the field stays a chip: label + «—» or avatar and name; the search input and the list live in a popover under it */
.task-view.task-view .columns.details .column.assignees {
	position: relative;
}

.task-view.task-view .columns.details .column.assignees .multiselect,
.task-view.task-view .columns.details .column.assignees .control,
.task-view.task-view .columns.details .column.assignees .input-wrapper {
	position: static;
	width: auto;
	height: auto;
	min-width: 0;
}

.task-view.task-view .columns.details .column.assignees .assignees-list {
	min-height: 22px;
}

.task-view.task-view .columns.details .column.assignees .assignees-list:empty::after {
	content: "—";
	color: var(--vt-muted);
}

.task-view.task-view .columns.details .column.assignees .assignees-list .assignee {
	display: flex;
	align-items: center;
	width: auto;
	height: 22px;
	margin-inline-end: 10px !important;
}

.task-view.task-view .columns.details .column.assignees .assignees-list .user {
	display: flex;
	align-items: center;
	gap: 6px;
	width: auto;
}

.task-view.task-view .columns.details .column.assignees .assignees-list .username {
	display: inline;
	font-size: var(--vt-fs-body);
	color: var(--vt-ink);
}

/* the input: hidden in the chip, shown at the top of the popover while it has focus */
.task-view.task-view .columns.details .column.assignees input.input {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	z-index: 61;
	width: min(280px, calc(100vw - 32px));
	height: 36px;
	padding: 0 10px;
	background: var(--vt-surface);
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius) var(--vt-radius) 0 0;
	box-shadow: var(--vt-popover-shadow);
	opacity: 0;
	pointer-events: none;
}

.task-view.task-view .columns.details .column.assignees .multiselect.has-search-results input.input,
.task-view.task-view .columns.details .column.assignees input.input:focus:not(:placeholder-shown) {
	opacity: 1;   /* only while the list is open (or while something is typed): an empty focused input after Escape or a pick stays invisible */
	pointer-events: auto;
	outline: 0;
}

/* the list: ~280px, rows = avatar 22px + full name, 36px, the same look as the «⋯» menu */
.task-view.task-view .columns.details .column.assignees .search-results {
	position: absolute;
	top: calc(100% + 40px);
	left: 0;
	right: auto;
	bottom: auto;
	z-index: 60;
	width: min(280px, calc(100vw - 32px));
	max-height: 264px;
	margin: 0;
	padding: 4px;
	overflow-y: auto;
	background: var(--vt-surface);
	border: 1px solid var(--vt-line);
	border-top: 0;
	border-radius: 0 0 var(--vt-radius) var(--vt-radius);
	box-shadow: var(--vt-popover-shadow);
}

.task-view.task-view .columns.details .column.assignees .search-result-button {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 36px;
	padding: 0 10px;
	background: transparent;
	border: 0;
	border-radius: var(--vt-radius);
	font: inherit;
	font-size: var(--vt-fs-body);
	color: var(--vt-ink);
	text-align: left;
	cursor: pointer;
}

.task-view.task-view .columns.details .column.assignees .search-result-button .user {
	display: flex;
	align-items: center;
	gap: 8px;
	width: auto;
	margin: 0;
}

.task-view.task-view .columns.details .column.assignees .search-result-button .avatar-wrapper,
.task-view.task-view .columns.details .column.assignees .search-result-button .avatar {
	width: 22px !important;
	height: 22px !important;
}

.task-view.task-view .columns.details .column.assignees .search-result-button .username {
	display: inline;
	font-size: var(--vt-fs-body);
}

.task-view.task-view .columns.details .column.assignees .search-result-button .hint-text {
	display: none;
}

@media (hover: hover) {
	.task-view.task-view .columns.details .column.assignees .search-result-button:hover {
		background: var(--vt-bg);
	}
}

/* the date popup: Vikunja's own, placed under the field; surface, line, popover shadow; it must fit a phone */
.task-view.task-view .datepicker .popup {
	background: var(--vt-surface);
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	box-shadow: var(--vt-popover-shadow);
	max-width: calc(100vw - 24px);
}

@media (max-width: 769px) {
	.task-view.task-view .datepicker .popup {
		left: 12px !important;
		right: 12px !important;
		width: auto !important;
		max-height: calc(100vh - 120px);
		overflow-y: auto;
	}

	.task-view.task-view .datepicker .date-shortcuts {
		display: none;   /* the quick-select list does not fit a phone; the calendar and the time do */
	}
}

/* review 4 #6: the «⋯» popover keeps its shadow in both modes (Vikunja's own shadow rule is scoped) */
.task-view.task-view .action-buttons.vox-more-open .vox-menu {
	box-shadow: var(--vt-popover-shadow) !important;
}

/* review 4 #5: the description uses the width; the pencil sits right after the heading «Опис» (decoration; clicking the text edits) */
.task-view.task-view .tiptap__task-description .tiptap__editor {
	max-width: none;
	background-image: none !important;
	padding-right: 0 !important;
}

.task-view.task-view .tiptap__task-description .ProseMirror {
	max-width: 72ch;
}

.task-view.task-view .description .task-section-title::after {
	content: "";
	display: inline-block;
	width: 13px;
	height: 13px;
	margin-inline-start: 8px;
	vertical-align: -1px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8f98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") no-repeat center / contain;
	pointer-events: none;
}

/* the chip grows with the name inside it (Vikunja's 100% widths collapse to the label's width in a content-sized flex item) */
.task-view.task-view .columns.details .column.assignees .multiselect,
.task-view.task-view .columns.details .column.assignees .control,
.task-view.task-view .columns.details .column.assignees .input-wrapper,
.task-view.task-view .columns.details .column.assignees .assignees-list {
	width: max-content;
	max-width: none;
	flex: none;
}

/* Vikunja's multiselect is `container-type: inline-size`, which makes its width ignore its content (the chip collapsed to the label) */
.task-view.task-view .columns.details .column.assignees .multiselect {
	container-type: normal !important;
}

/* the due-date field shows «вт, 21.10» (vox-ui.js sets the attribute from the task); without the attribute Vikunja's own text stays */
.task-view.task-view .datepicker > button.simple-button[data-vox-label] {
	font-size: 0 !important;
}

.task-view.task-view .datepicker > button.simple-button[data-vox-label]::after {
	content: attr(data-vox-label);
	font-size: var(--vt-fs-body);
	color: var(--vt-ink);
}

/* a phone: the assignee popover opens leftwards from the chip's right edge, so it stays on the screen */
@media (max-width: 769px) {
	.task-view.task-view .columns.details .column.assignees input.input,
	.task-view.task-view .columns.details .column.assignees .search-results {
		left: auto;
		right: 0;
	}
}


/* ==========================================================================
 * 13. DOCUMENTS (WP-EXPORT.md, vox-docs.js): the «Документи» rows above the description, the create / update windows, the toast
 * ========================================================================== */

.task-view.task-view .vox-docs {
	order: 5;   /* after the action row (5, earlier in the DOM), before the description (6) */
	flex: 0 0 100%;
	min-width: 0;   /* a long document name must be cut by the row, not stretch the task page */
	display: flex;
	flex-direction: column;
	gap: var(--vt-s2);
	margin-top: var(--vt-s3);
}

.vox-docs-h,
.vox-lbl {
	margin: 0;
	font-family: var(--vt-font) !important;
	font-size: var(--vt-fs-label);
	font-weight: 500 !important;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--vt-muted);
}

.vox-doc {
	display: flex;
	align-items: center;
	gap: var(--vt-s3);
	padding: var(--vt-s3) 14px;
	background: var(--vt-surface);
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
}

.vox-doc.is-live {
	border-color: var(--vt-ink);   /* a row with a draft or a published post */
}

.vox-doc-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 32px;
	height: 32px;
	background: var(--vt-bg);
	border-radius: var(--vt-radius);
	color: var(--vt-ink);
}

.vox-doc-mid {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.vox-doc-title {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 500;
	color: var(--vt-ink);
	text-decoration: none;
}

.vox-doc-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--vt-s2);
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
}

.vox-doc-acts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--vt-s2);
	flex: none;
}

.vox-doc-noaccess {
	color: var(--vt-accent-ink);
}

.vox-go-wrap {
	display: inline-flex;
	cursor: not-allowed;
}

.vox-pill {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 var(--vt-s2);
	border-radius: 11px;
	font-size: var(--vt-fs-meta);
	font-weight: 500;
	white-space: nowrap;
}

.vox-pill-draft {
	background: var(--vt-draft-bg);
	color: var(--vt-draft-ink);
}

.vox-pill-pub {
	background: var(--vt-pub-bg);
	color: var(--vt-pub-ink);
}

.vox-meta {
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
}

/* the only coloured button in the task */
.vox-go {
	display: inline-flex;
	align-items: center;
	gap: var(--vt-s2);
	min-height: 36px;
	padding: 0 14px;
	background: var(--vt-accent-ink);
	border: 0;
	border-radius: var(--vt-radius);
	color: var(--vt-on-accent);
	font: inherit;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
}

.vox-go-lg {
	min-height: 40px;
	padding: 0 18px;
}

.vox-go.vox-go-wait {
	opacity: .55;   /* looks off until the box is ticked, but a tap answers (see vox-docs.js editorBlock) */
}

.vox-go:disabled {
	background: var(--vt-line);
	color: var(--vt-muted);
	cursor: default;
}

.vox-sec,
.vox-ghost {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	padding: 0 12px;
	background: var(--vt-surface);
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	color: var(--vt-ink);
	font: inherit;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
}

.vox-ghost {
	min-height: 40px;
	padding: 0 16px;
}

a.vox-sec {
	text-decoration: underline;   /* as in the mockup: the link buttons are underlined */
}

.vox-ghost:disabled {
	color: var(--vt-muted);
	cursor: default;
}

/* TaskLinks.dc.html (#1028), v3: the quiet line for an article that was made straight on the site (WordPress says it has no source document) */
/* mockup 4: the language of a second document in a language that already has an article; neutral (not a state) */
.task-view.vox-v3 .vox-pill-lang {
	background: var(--vt-btn);
	color: var(--vt-muted);
	font-family: var(--vt-font-mono);
	font-size: 11px;
}

@media (max-width: 769px) {
	.task-view.vox-v3 .vox-doc-when.has-tr .vox-doc-date {
		display: none;   /* the phone row of a translation says «переклад» and no date */
	}
}

/* «Скопіювати» (copy the document link): a plain secondary button, never the accent */
.vox-copy svg {
	flex: none;
}

@media (hover: hover) {
	.vox-go:hover:not(:disabled) {
		background: var(--vt-accent-deep);
	}

	.vox-sec:hover,
	.vox-ghost:hover:not(:disabled) {
		border-color: color-mix(in srgb, var(--vt-ink) 45%, transparent);
	}
}

@media (max-width: 769px) {
	.vox-doc {
		flex-wrap: wrap;
	}

	.task-view.vox-v3 .vox-doc-mid {
		flex-basis: 0;   /* a long meta line («… · не опубліковано») wraps inside the column instead of pushing the whole column under the icon */
	}

	.vox-doc-acts {
		flex: 1 0 100%;
		padding-left: 44px;
	}

	.vox-go,
	.vox-sec {
		min-height: var(--vt-tap);
	}

	/* a phone: «Скопіювати» is the icon alone, 44px square; for the 2 s of feedback the words come back (the button grows) */
	.vox-copy {
		justify-content: center;
		min-width: var(--vt-tap);
		padding: 0;
	}

	.vox-copy:not([data-state]) .vox-copy-t {
		display: none;
	}

	.vox-copy[data-state] {
		padding: 0 12px;
	}
}

/* the hidden bare links (the stored description keeps them, and a focused editor shows them again) */
.task-view .tiptap__task-description:not(:focus-within) .vox-doc-src {
	display: none;
}

/* the window: the popover tokens (surface, 1px line, popover shadow) */
.vox-wp-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--vt-s4);
	background: rgba(17, 17, 17, .25);
}

.vox-wp-win {
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow-y: auto;
	box-sizing: border-box;
	padding: 24px;
	background: var(--vt-surface);
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	box-shadow: var(--vt-popover-shadow);
	color: var(--vt-ink);
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.vox-wp-head {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.vox-wp-title {
	margin: 0;
	font-family: var(--vt-font-display) !important;
	font-size: var(--vt-fs-page) !important;
	font-weight: 500 !important;
}

.vox-wp-sub {
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
}

.vox-wp-body {
	display: flex;
	flex-direction: column;
	gap: var(--vt-s2);
}

.vox-seg {
	display: inline-flex;
	align-self: flex-start;
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	overflow: hidden;
}

.vox-seg button {
	min-width: 56px;
	min-height: 36px;
	padding: 0 14px;
	background: var(--vt-surface);
	border: 0;
	border-right: 1px solid var(--vt-line);
	color: var(--vt-ink);
	font: inherit;
	cursor: pointer;
}

.vox-seg button:last-child {
	border-right: 0;
}

.vox-seg button.on {
	background: var(--vt-ink);
	color: var(--vt-surface);
	font-weight: 500;
}

.vox-seg button:disabled {
	color: var(--vt-muted);
	cursor: not-allowed;
}

.vox-wp-sum {
	margin-top: var(--vt-s2);
	padding: var(--vt-s3) 14px;
	background: var(--vt-bg);
}

.vox-wp-sumrow {
	display: flex;
	justify-content: space-between;
	gap: var(--vt-s3);
	padding: var(--vt-s2) 0;
	border-bottom: 1px solid var(--vt-line);
}

.vox-wp-sumrow:last-child {
	border-bottom: 0;
}

.vox-wp-foot {
	display: flex;
	justify-content: flex-end;
	gap: var(--vt-s2);
}

.vox-wp-work {
	display: flex;
	align-items: center;
	gap: var(--vt-s3);
	padding: var(--vt-s3) 0;
}

.vox-spin {
	flex: none;
	width: 18px;
	height: 18px;
	border: 2px solid var(--vt-line);
	border-top-color: var(--vt-ink);
	border-radius: 50%;
	animation: vox-spin-turn .8s linear infinite;
}

@keyframes vox-spin-turn {
	to { transform: rotate(360deg); }
}

.vox-wp-err {
	margin: 0;
	color: var(--vt-accent-ink);
}

.vox-wp-who {
	display: flex;
	flex-direction: column;
	gap: var(--vt-s2);
	margin-top: var(--vt-s3);
}

.vox-wp-confirm {
	display: flex;
	align-items: center;
	gap: var(--vt-s2);
	cursor: pointer;
}

.vox-wp-warn {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: var(--vt-s3) 14px;
	background: var(--vt-warn-bg);
	border-left: 3px solid var(--vt-accent-ink);
}

.vox-wp-warn strong {
	font-family: var(--vt-font-display);
	font-weight: 500;
}

.vox-wp-peek {
	align-self: flex-start;
	color: var(--vt-ink);
	text-decoration: underline;
}

.vox-toast {
	position: fixed;
	left: 50%;
	bottom: var(--vt-s5);
	z-index: 10001;
	transform: translateX(-50%);
	padding: var(--vt-s3) var(--vt-s4);
	background: var(--vt-ink);
	color: var(--vt-surface);
	border-radius: var(--vt-radius);
	box-shadow: var(--vt-popover-shadow);
}

@media (max-width: 769px) {
	.vox-wp-overlay {
		align-items: flex-end;
		padding: 0;
	}

	.vox-wp-win {
		max-width: none;
		border-radius: var(--vt-radius) var(--vt-radius) 0 0;
		padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	}

	.vox-wp-foot .vox-go,
	.vox-wp-foot .vox-ghost {
		flex: 1;
		min-height: var(--vt-tap);
	}
}


/* ==========================================================================
 * 11. NOTIFICATIONS POPOVER (#579, docs/ui-v2/design/Notifications.dc.html «Пропозиція»)
 * Rows, grouping, titles, projects and the bots rule come from vox-notify.js, which adds ONE container (.vox-notif) inside Vikunja's list.
 * Vikunja's own head and rows are hidden only while that container is there (.vox-notif-on), so a failing script or a changed markup leaves
 * the stock list visible. The stock rows stay in the DOM: a click on ours clicks the matching stock row so Vue's router navigates.
 * ========================================================================== */

/* size: 440px on a desktop; a full-width sheet under the bar on a phone */
.notifications-list {
	width: 440px !important;   /* Vikunja's own width is scoped */
	max-width: calc(100vw - 16px);
	max-height: calc(100vh - 80px);
	overflow-y: auto;
	padding: 0;
}

@media (max-width: 769px) {
	.notifications-list {
		position: fixed !important;
		inset-block-start: 56px !important;   /* Vikunja's own offsets and its logical inline-size are scoped */
		inset-inline: 0 !important;
		width: auto !important;
		inline-size: auto !important;
		max-width: none !important;
		max-inline-size: none !important;
		max-height: calc(100vh - 56px);
		border-width: 0 0 1px;
		border-radius: 0;
	}
}

/* the RSS (Atom feed) icon is not in the design; stable part: the link to the feed settings */
.notifications-list .head a[href*="feeds"] {
	display: none !important;
}

.notifications-list.vox-notif-on > :not(.vox-notif) {
	display: none !important;
}

.vox-notif {
	font-size: var(--vt-fs-body);
	line-height: var(--vt-lh);
	color: var(--vt-ink);
	text-align: start;
}

.vox-notif-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--vt-s3);
	padding: var(--vt-s3) var(--vt-s4);
	border-bottom: 1px solid var(--vt-line);
}

.vox-notif-tabs {
	display: flex;
	gap: var(--vt-s1);
}

.vox-notif-tab {
	min-height: 32px;
	padding: 0 10px;
	border: 0;
	border-radius: var(--vt-radius);
	background: transparent;
	font: inherit;
	color: var(--vt-muted);
	cursor: pointer;
}

.vox-notif-tab.is-on {
	background: var(--vt-ink);
	color: var(--vt-surface);
}

.vox-notif-readall {
	min-height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	color: var(--vt-accent-ink);
	cursor: pointer;
}

.vox-notif-readall:disabled {
	color: var(--vt-muted);
	cursor: default;
}

.vox-notif-section {
	padding: 10px var(--vt-s4) var(--vt-s1);
	font-size: var(--vt-fs-label);
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--vt-muted);
}

.vox-notif-empty {
	padding: var(--vt-s5) var(--vt-s4);
	color: var(--vt-muted);
	text-align: center;
}

.vox-notif-row {
	display: flex;
	gap: var(--vt-s3);
	padding: var(--vt-s3) var(--vt-s4);
	border-bottom: 1px solid var(--vt-bg);
	color: var(--vt-ink);
	text-decoration: none;
}

.vox-notif-row:last-child {
	border-bottom: 0;
}

@media (hover: hover) {
	.vox-notif-row:hover {
		background: color-mix(in srgb, var(--vt-bg) 50%, var(--vt-surface));
		color: var(--vt-ink);
	}
}

.vox-notif-dot {
	flex: none;
	width: 8px;
	height: 8px;
	margin-top: 10px;
	border-radius: 50%;
	background: var(--vt-accent);
}

.vox-notif-dot.is-read {
	background: transparent;
}

.vox-notif-av {
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
}

.vox-notif-av--sys,
.vox-notif-av--due {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.vox-notif-av--sys {
	background: var(--vt-line);
	color: var(--vt-ink);
}

.vox-notif-av--due {
	background: color-mix(in srgb, var(--vt-accent) 16%, var(--vt-surface));
	color: var(--vt-accent-ink);
}

.vox-notif-body {
	min-width: 0;
}

.vox-notif-line strong {
	font-family: var(--vt-font-display);
	font-weight: 500;
}

.vox-notif-row:not(.is-unread) .vox-notif-body {
	color: var(--vt-muted);
}

.vox-notif-row:not(.is-unread) .vox-notif-line strong {
	color: var(--vt-ink);
}

.vox-notif-quote {
	margin-top: 2px;
	overflow-wrap: anywhere;
}

.vox-notif-meta {
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
}

@media (max-width: 769px) {
	.vox-notif-row,
	.vox-notif-tab,
	.vox-notif-readall {
		min-height: var(--vt-tap);   /* 44px touch targets */
	}
}

/* Home nano dashboard v2 (#634, docs/stats-home-v2.md; design: docs/ui-v2/design/DESIGN.md «Home nano dashboard v2», Main.dc.html, MobileHome.dc.html).
   Drawn by vox-home.js (`?vox-home-v2=1`). Own `vox-h2-*` classes: nothing here depends on Vikunja's markup. Fragile: only the block's anchor (see vox-home.js). */
.vox-h2 {
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: var(--vt-s4);
	margin-top: var(--vt-s5);
}

.vox-h2-head {
	display: flex;
	align-items: center;
	gap: var(--vt-s4);
	flex-wrap: wrap;
}

.vox-h2 h2.vox-h2-h {
	margin: 0;
	font-size: var(--vt-fs-section);
}

.vox-h2-tabs {
	display: flex;
	gap: 2px;
}

.vox-h2-tab {
	min-height: 28px;
	padding: 0 10px;
	border: 0;
	border-radius: var(--vt-radius);
	background: transparent;
	font: inherit;
	color: var(--vt-muted);
	cursor: pointer;
}

.vox-h2-tab:hover {
	background: color-mix(in srgb, var(--vt-ink) 8%, transparent);
	color: var(--vt-ink);
}

.vox-h2-tab.vox-h2-on {
	background: var(--vt-ink);
	color: var(--vt-surface);
}

.vox-h2-meta {
	margin-left: auto;
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
}

.vox-h2-m {
	display: none;
}

.vox-h2-how {
	font-size: var(--vt-fs-meta);
}

.vox-h2-how summary {
	display: inline;
	list-style: none;
	cursor: pointer;
	color: var(--vt-accent-ink);
}

.vox-h2-how summary::-webkit-details-marker {
	display: none;
}

.vox-h2-how summary:hover {
	text-decoration: underline;
}

.vox-h2-how-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: 64ch;
	margin-top: var(--vt-s2);
	font-size: var(--vt-fs-body);
	color: var(--vt-ink);
}

.vox-h2-how-body p {
	margin: 0;
}

.vox-h2-pulse {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--vt-s3);
}

.vox-h2-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
	gap: var(--vt-s3);
	align-items: start;
}

.vox-h2-tile {
	display: flex;
	flex-direction: column;
	gap: var(--vt-s1);
	min-width: 0;
	padding: 14px 16px 12px;
	background: var(--vt-surface);
}

.vox-h2-card {
	padding: var(--vt-s4) 20px;
	background: var(--vt-surface);
	min-width: 0;
}

.vox-h2 h3.vox-h2-lbl {
	margin: 0;
	font-size: var(--vt-fs-label);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--vt-muted);
}

.vox-h2-card > .vox-h2 h3.vox-h2-lbl {
	margin-bottom: 6px;
}

.vox-h2-big,
.vox-h2-num {
	font-family: var(--vt-font-mono);
	font-variant-numeric: tabular-nums;
}

.vox-h2 .vox-h2-big {
	font-size: 24px;
	line-height: 1.15;
}

/* «2 статті · 14 дописів» under the number of the «Опубліковано» tile (#788) */
.vox-h2 .vox-h2-parts {
	display: block;
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
}

.vox-h2-asof {
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
}

/* Freshness (#788): «оновлено о 12:10» in the header line; a source that stopped (last fetch older than twice its schedule) is in accent ink */
.vox-h2 .vox-h2-upd {
	color: var(--vt-muted);
}

.vox-h2 .vox-h2-stale {
	color: var(--vt-accent-ink);
}

.vox-h2-chg {
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
	min-height: 1.45em;
}

.vox-h2-chg.vox-h2-up,
.vox-h2-chg.vox-h2-down {
	color: var(--vt-up);
}

.vox-h2-chg.vox-h2-down {
	color: var(--vt-accent-ink);
}

.vox-h2-base {
	color: var(--vt-muted);
}

.vox-h2-spark {
	position: relative;
	width: 100%;
	height: 56px;
	margin-top: 6px;
	touch-action: pan-y;      /* a horizontal drag moves along the line, a vertical one still scrolls the page */
	cursor: pointer;          /* a click moves the whole dashboard to that day */
}

.vox-h2-spark:focus-visible {
	outline: 2px solid var(--vt-ink);
	outline-offset: 2px;
}

.vox-h2-spark svg {
	display: block;
	width: 100%;
	height: 100%;
}

.vox-h2-band {
	fill: color-mix(in srgb, var(--vt-ink) 7%, transparent);       /* «зазвичай»: the no-arrow range, a light neutral behind the line */
}

.vox-h2-line {
	fill: none;
	stroke: #bcbbbc;
	stroke-width: 1.25;
	vector-effect: non-scaling-stroke;
}

.vox-h2-end,
.vox-h2-dot {
	position: absolute;
	width: 6px;
	height: 6px;
	margin: -3px 0 0 -3px;
	border-radius: 50%;
	background: var(--vt-ink);
	pointer-events: none;
}

.vox-h2-end.vox-h2-up {
	background: var(--vt-up);
}

.vox-h2-end.vox-h2-down {
	background: var(--vt-accent-ink);
}

.vox-h2-dot {
	width: 9px;
	height: 9px;
	margin: -4.5px 0 0 -4.5px;
	box-shadow: 0 0 0 2px var(--vt-surface);
}

.vox-h2-guide {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 1px;
	background: color-mix(in srgb, var(--vt-ink) 35%, transparent);
	pointer-events: none;
}

.vox-h2-tip {
	position: absolute;
	bottom: calc(100% + 4px);
	z-index: 2;
	padding: 2px 6px;
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	background: var(--vt-surface);
	box-shadow: var(--vt-popover-shadow);
	font-family: var(--vt-font-mono);
	font-size: var(--vt-fs-meta);
	white-space: nowrap;
	pointer-events: auto;
}

.vox-h2-tip::after {        /* bridges the gap to the line, so the pointer can reach the link without the label closing */
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 6px;
}

.vox-h2-tiptxt,
.vox-h2-tipgo {
	display: block;
}

.vox-h2-tipgo {
	padding: 4px 0 2px;
	border: 0;
	background: transparent;
	font: inherit;
	color: var(--vt-accent-ink);
	cursor: pointer;
}

.vox-h2-tipgo:hover {
	text-decoration: underline;
}

.vox-h2-views {
	align-self: flex-start;
}

.vox-h2-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.vox-h2-chip {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 10px;
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	background: var(--vt-surface);
	font: inherit;
	color: var(--vt-muted);
	cursor: pointer;
}

.vox-h2-chip.vox-h2-on {
	border-color: var(--vt-ink);
	color: var(--vt-ink);
}

.vox-h2-pub {
	display: flex;
	flex-direction: column;
	gap: var(--vt-s4);
}

.vox-h2-child td:first-child {
	padding-left: 28px;
	box-shadow: inset 2px 0 0 var(--vt-line);
}

.vox-h2-rdbtn {
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	color: var(--vt-accent-ink);
	cursor: pointer;
}

.vox-h2-rdbtn:hover {
	text-decoration: underline;
}

.vox-h2-dayrow td {
	padding: var(--vt-s4) 0 var(--vt-s2);
	font-size: var(--vt-fs-label);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--vt-muted);
}

.vox-h2-guide,
.vox-h2-tip,
.vox-h2-dot {
	display: none;
}

.vox-h2-hover .vox-h2-guide,
.vox-h2-hover .vox-h2-tip,
.vox-h2-hover:not(.vox-h2-nodot) .vox-h2-dot {
	display: block;
}

.vox-h2-t {
	width: 100%;
	border-collapse: collapse;
}

.vox-h2-t th {
	padding: 6px 0 6px 16px;
	border-bottom: 1px solid var(--vt-line);
	font-size: var(--vt-fs-label);
	font-weight: 400;
	text-align: right;
	white-space: nowrap;
	color: var(--vt-muted);
}

.vox-h2-t td {
	padding: var(--vt-s2) 0 var(--vt-s2) 16px;
	border-bottom: 1px solid color-mix(in srgb, var(--vt-line) 55%, transparent);
	text-align: right;
	white-space: nowrap;
	vertical-align: top;
}

.vox-h2-t th:first-child,
.vox-h2-t td:first-child {
	width: 100%;
	padding-left: 0;
	text-align: left;
	white-space: normal;
}

.vox-h2-t tr:last-child td {
	border-bottom: 0;
}

.vox-h2-sub {
	margin-top: 1px;
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
}

.vox-h2-new {
	color: var(--vt-accent-ink);
}

.vox-h2-muted {
	color: var(--vt-muted);
}

.vox-h2-ndot {
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 6px;
	border-radius: 50%;
	vertical-align: 1px;
}

.vox-h2-note {
	margin: 0 0 6px;
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
}

.vox-h2-var {
	font-size: var(--vt-fs-meta);
	white-space: nowrap;
	color: var(--vt-muted);
}

.vox-h2-beta {
	margin-left: 8px;
	padding: 1px 6px;
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	font-size: var(--vt-fs-meta);
	font-weight: 400;
	color: var(--vt-muted);
	vertical-align: 2px;
}

.vox-h2-datectl {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 2px;
}

.vox-h2-step,
.vox-h2-datelbl {
	min-height: 28px;
	padding: 0 10px;
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	background: var(--vt-surface);
	font: inherit;
	color: var(--vt-ink);
	cursor: pointer;
}

.vox-h2-step:hover:not(:disabled),
.vox-h2-datelbl:hover {
	border-color: var(--vt-ink);
}

.vox-h2-step:disabled {
	color: var(--vt-muted);
	opacity: 0.45;
	cursor: default;
}

.vox-h2-cal {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	z-index: 6;
	width: 288px;
	box-sizing: border-box;
	padding: 8px;
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	background: var(--vt-surface);
	box-shadow: var(--vt-popover-shadow);
}

.vox-h2-calhead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.vox-h2-caltitle {
	font-weight: 500;
}

.vox-h2-calgrid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}

.vox-h2-calwd {
	padding: 4px 0;
	font-size: var(--vt-fs-meta);
	text-align: center;
	color: var(--vt-muted);
}

.vox-h2-calday {
	min-height: 36px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--vt-radius);
	background: transparent;
	font: inherit;
	color: var(--vt-ink);
	cursor: pointer;
}

.vox-h2-calday:hover:not(:disabled) {
	border-color: var(--vt-ink);
}

.vox-h2-calday:focus-visible {
	outline: 2px solid var(--vt-ink);
	outline-offset: -2px;
}

.vox-h2-calday:disabled {
	color: var(--vt-muted);
	opacity: 0.35;
	cursor: default;
}

.vox-h2-calrange {
	background: color-mix(in srgb, var(--vt-ink) 8%, transparent);
}

.vox-h2-calnow {                  /* the latest stored day */
	border-color: var(--vt-accent-ink);
}

.vox-h2-calsel {                  /* the day on screen */
	background: var(--vt-ink);
	color: var(--vt-surface);
}

.vox-h2-folline {
	margin: 0;
	font-size: var(--vt-fs-body);
	color: var(--vt-ink);
}

.vox-h2-fblink {
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: var(--vt-fs-meta);
	color: var(--vt-accent-ink);
	cursor: pointer;
}

.vox-h2-fblink:hover {
	text-decoration: underline;
}

.vox-h2-fb {
	display: flex;
	flex-direction: column;
	gap: var(--vt-s2);
	max-width: 640px;
}

.vox-h2-fbtext {
	width: 100%;
	box-sizing: border-box;
	padding: 6px 8px;
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	background: var(--vt-surface);
	font: inherit;
	color: var(--vt-ink);
	resize: vertical;
}

.vox-h2-send {
	align-self: flex-start;
	min-height: 28px;
	padding: 0 14px;
	border: 0;
	border-radius: var(--vt-radius);
	background: var(--vt-ink);
	font: inherit;
	color: var(--vt-surface);
	cursor: pointer;
}

.vox-h2-send:disabled {
	opacity: 0.5;
	cursor: default;
}

.vox-h2-fbmsg {
	margin: 0;
}

.vox-h2-fberr {
	color: var(--vt-accent-ink);
}

.vox-h2-back {
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: var(--vt-fs-meta);
	color: var(--vt-accent-ink);
	cursor: pointer;
}

.vox-h2-back:hover {
	text-decoration: underline;
}

.vox-h2-more {
	display: flex;
	flex-direction: column;
	gap: var(--vt-s4);
}

.vox-h2-morebtn {
	align-self: flex-start;
	min-height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	color: var(--vt-accent-ink);
	cursor: pointer;
}

.vox-h2-morebtn:hover {
	text-decoration: underline;
}

.vox-h2-empty {
	margin: 0;
	padding: 10px 0 2px;
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
}

.vox-h2 a {
	color: var(--vt-ink);
	text-decoration: none;
}

@media (hover: hover) {
	.vox-h2 a:hover {
		color: var(--vt-accent-ink);
	}
}

/* phone: tiles 2x2 without the «зазвичай» line, tops of 3 (the followers table keeps all rows), the post value moves into its meta line, tabs full width 44px */
@media (max-width: 600px) {
	.vox-h2-d {
		display: none;
	}

	.vox-h2-m {
		display: inline;
	}

	.vox-h2-tabs {
		width: 100%;
	}

	.vox-h2-send {
		min-height: 44px;
	}

	.vox-h2-datectl {                 /* phone: the same row, arrows 44 px wide, the label takes the rest */
		display: flex;
		width: 100%;
	}

	.vox-h2-step {
		min-width: 44px;
		min-height: 44px;
	}

	.vox-h2-datelbl {
		flex: 1;
		min-height: 44px;
	}

	.vox-h2-cal {                     /* phone: as wide as the control, cells at least 44 px */
		left: 0;
		right: 0;
		width: auto;
	}

	.vox-h2-calday {
		min-height: 44px;
	}

	.vox-h2-tab {
		flex: 1;
		min-height: 44px;
	}

	.vox-h2-meta {
		margin-left: 0;
	}

	.vox-h2-pulse {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vox-h2-spark {
		height: 48px;
	}

	.vox-h2-pulse > .vox-h2-tile:last-child:nth-child(odd) {
		grid-column: 1 / -1;   /* three tiles: the third spans both columns */
	}

	.vox-h2-val,
	.vox-h2-chcol {
		display: none;
	}

	.vox-h2-card:not(.vox-h2-all) .vox-h2-t tbody tr:nth-child(n + 4) {
		display: none;
	}

	.vox-h2-card {
		padding: 14px;
	}
}

/* ==========================================================================
 * 13. LABELS ON THE TASK PAGE (vox-ui.js «Мітки»; design: the .field button, a popover with a list)
 * ========================================================================== */

/* the wrapper is the anchor of the popover (desktop); the button inside is the same .field button as the others */
.task-view.task-view .vox-lwrap {
	position: relative;
	flex: none;
	margin: 0;
}

.task-view.task-view .vox-field-labels {
	max-width: 100%;
}

.task-view.task-view .vox-field-labels .vox-field-val {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
}

/* label chips: the label's own colour, black or white text chosen by luminance in vox-ui.js (never forced to --vt-ink), 11px, no bold */
.vox-lchip,
.kanban-card .tag,
.task-view .tag {
	display: inline-flex;
	align-items: center;
	max-width: 160px;
	min-height: 18px;
	padding: 0 6px;
	border-radius: var(--vt-radius);
	font-size: var(--vt-fs-label);
	font-weight: 400;
	line-height: 18px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vox-lmore {
	font-size: var(--vt-fs-label);
	color: var(--vt-muted);
}

.task-view.task-view .vox-lpop {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	z-index: 62;
	display: flex;
	flex-direction: column;
	min-width: 240px;
	max-width: calc(100vw - 32px);
	max-height: 320px;
	background: var(--vt-surface);
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	box-shadow: var(--vt-popover-shadow);
	color: var(--vt-ink);
}

.task-view.task-view .vox-lsearch {
	flex: none;
	box-sizing: border-box;
	width: 100%;
	height: 36px;
	padding: 0 10px;
	background: var(--vt-surface);
	border: 0;
	border-bottom: 1px solid var(--vt-line);
	border-radius: var(--vt-radius) var(--vt-radius) 0 0;
	box-shadow: none;
	color: var(--vt-ink);
	outline: 0;
}

.task-view.task-view .vox-lsearch::placeholder {
	color: var(--vt-muted);
}

.task-view.task-view .vox-llist {
	flex: 1 1 auto;
	margin: 0;
	padding: 4px;
	overflow-y: auto;
	list-style: none;
}

.task-view.task-view .vox-lrow {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	margin: 0;
	padding: 0 10px;
	border-radius: var(--vt-radius);
	cursor: pointer;
}

.task-view.task-view .vox-lrow.is-active {
	background: color-mix(in srgb, var(--vt-ink) 6%, transparent);
	outline: 1px solid var(--vt-line);
	outline-offset: -1px;
}

@media (hover: hover) {
	.task-view.task-view .vox-lrow:hover {
		background: color-mix(in srgb, var(--vt-ink) 6%, transparent);
	}
}

.task-view.task-view .vox-lcheck {
	flex: none;
	position: relative;
	box-sizing: border-box;
	width: 14px;
	height: 14px;
	border: 1px solid var(--vt-muted);
	border-radius: var(--vt-radius);
}

.task-view.task-view .vox-lrow[aria-selected="true"] .vox-lcheck {
	background: var(--vt-ink);
	border-color: var(--vt-ink);
}

.task-view.task-view .vox-lrow[aria-selected="true"] .vox-lcheck::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 3px;
	height: 7px;
	border: solid var(--vt-surface);
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg);
}

.task-view.task-view .vox-ldot {
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.task-view.task-view .vox-ldot.is-faint {
	box-shadow: 0 0 0 1px var(--vt-muted);   /* a colour under 3:1 against the surface (no colour, or very dark in the dark theme) */
}

.task-view.task-view .vox-lname {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.task-view.task-view .vox-lrow.is-create {
	color: var(--vt-accent-ink);
}

.task-view.task-view .vox-lempty {
	padding: 8px 10px;
	color: var(--vt-muted);
	list-style: none;
}

.task-view.task-view .vox-lnote {
	flex: none;
	padding: 0 10px;
	font-size: var(--vt-fs-meta);
	color: var(--vt-accent-ink);
}

.task-view.task-view .vox-lnote:not(:empty) {
	padding-block: 6px;
}

/* a phone: rows 44px; the popover is as wide as the task, under the field row (the wrapper stops being the anchor, the task is) */
@media (max-width: 769px) {
	.task-view.task-view {
		position: relative;
	}

	.task-view.task-view .vox-lwrap {
		position: static;
	}

	.task-view.task-view .vox-lpop {
		top: auto;
		left: 0;
		right: 0;
		min-width: 0;
		max-width: none;
		margin-top: 4px;
	}

	.task-view.task-view .vox-lrow {
		min-height: var(--vt-tap);
	}

	.task-view.task-view .vox-lsearch {
		height: var(--vt-tap);
	}
}

/* search (#882, Search.dc.html, DESIGN.md «Search»; vox-search.js, vox-search-results.js): the top-bar field and its popover, the phone magnifier and full-screen search,
   the results view (filters, rows). Our own classes only; fragile: `header.navbar` > `.navbar-end` (the field is inserted before it). */
.vox-sf-wrap {
	position: relative;
	align-self: center;   /* Vikunja's bar stretches its children */
	flex: none;
	width: 260px;
	margin-left: auto;
	transition: width .15s;
	z-index: 5;
}

.vox-sf-wrap:focus-within {
	width: 440px;
}

/* Vikunja gives .navbar-end an auto start margin too: two auto margins would share the free space and the field would float in the middle */
header.navbar > .navbar-end {
	margin-inline-start: 0 !important;
}

.vox-sf {
	display: flex;
	align-items: center;
	gap: var(--vt-s2);
	box-sizing: border-box;
	height: var(--vt-tap);
	padding: 0 var(--vt-s2) 0 10px;
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	background: var(--vt-surface);
	color: var(--vt-muted);
	font-size: var(--vt-fs-body);
	cursor: text;
}

.vox-sf:hover {
	border-color: var(--vt-muted);
}

.vox-sf-wrap:focus-within .vox-sf,
.vox-sf.vox-sf-focus {
	border-color: var(--vt-ink);
	box-shadow: 0 0 0 1px var(--vt-ink);
}

.vox-sf input {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	color: var(--vt-ink);
	font: inherit;
}

.vox-sf input::-webkit-search-cancel-button {
	display: none;   /* the field has its own «Очистити» */
	-webkit-appearance: none;
}

.vox-sf input::placeholder {
	color: var(--vt-muted);
}

.vox-sf-key {
	padding: 0 5px;
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	color: var(--vt-muted);
	font-family: var(--vt-font-mono);
	font-size: var(--vt-fs-label);
	line-height: 16px;
}

.vox-sf-clr {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border: 0;
	border-radius: var(--vt-radius);
	background: transparent;
	color: var(--vt-muted);
	cursor: pointer;
}

.vox-sf-clr:hover {
	background: var(--vt-line);
	color: var(--vt-ink);
}

.vox-sf-chip {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: var(--vt-s1);
	min-height: 22px;
	padding: 0 6px;
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	background: var(--vt-surface);
	color: var(--vt-ink);
	font-size: var(--vt-fs-meta);
	white-space: nowrap;
}

.vox-sf-x {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--vt-muted);
	cursor: pointer;
}

.vox-sr-dot {
	display: inline-block;
	flex: none;
	width: 6px;
	height: 6px;
	margin-top: 7px;
	border-radius: 50%;
}

.vox-sr-av {
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
}

.vox-sf mark,
.vox-sf-pop mark,
.vox-sv mark {
	padding: 0 1px;
	border-radius: 1px;
	background: rgba(254, 61, 0, .14);
	color: inherit;
}

.vox-sf-pop {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	background: var(--vt-surface);
	box-shadow: var(--vt-popover-shadow);
}

.vox-sf-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: var(--vt-s2) var(--vt-s3);
	color: var(--vt-ink);
	text-decoration: none;
}

.vox-sf-row:hover,
.vox-sf-row.vox-sel {
	background: var(--vt-bg);
	color: var(--vt-ink);
}

.vox-sf-row .vox-sr-dot {
	margin-top: 6px;
}

.vox-sf-body {
	flex: 1;
	min-width: 0;
}

.vox-sf-t,
.vox-sf-m {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vox-sf-m,
.vox-sf-sub {
	color: var(--vt-muted);
	font-size: var(--vt-fs-meta);
}

.vox-sf-msg {
	padding: var(--vt-s3);
	color: var(--vt-ink);
}

.vox-sf-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--vt-s2) var(--vt-s3);
	border-top: 1px solid var(--vt-line);
	color: var(--vt-muted);
	font-size: var(--vt-fs-meta);
}

.vox-sf-foot a {
	color: var(--vt-accent-ink);
}

.vox-sm-btn {
	display: none;
}

/* results view: filters and rows (the phone overlay now, the results page next) */
.vox-sv-filters {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--vt-s3);
	padding: 0 0 var(--vt-s3);
}

.vox-sv-menuwrap {
	position: relative;
}

.vox-sv-chip,
.vox-sv-tab,
.vox-sv-more {
	min-height: 28px;
	padding: 0 10px;
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	background: var(--vt-surface);
	color: var(--vt-ink);
	font: inherit;
	cursor: pointer;
}

.vox-sv-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.vox-sv-chip .vox-sr-dot {
	margin-top: 0;
}

.vox-sv-tabs {
	display: flex;
	gap: 2px;
}

.vox-sv-tab {
	border-color: transparent;
	background: transparent;
	color: var(--vt-muted);
}

.vox-sv-tab.on {
	background: var(--vt-ink);
	color: var(--vt-surface);
}

.vox-sv-more {
	border-color: transparent;
	background: transparent;
	color: var(--vt-muted);
}

.vox-sv-count {
	margin-left: auto;
	color: var(--vt-muted);
	font-family: var(--vt-font-mono);
	font-size: var(--vt-fs-meta);
	font-variant-numeric: tabular-nums;
}

.vox-sv-menu {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	z-index: 10;
	width: 240px;
	max-height: 60vh;
	overflow: auto;
	padding: 6px 0;
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	background: var(--vt-surface);
	box-shadow: var(--vt-popover-shadow);
}

.vox-sv-menu-h {
	margin-top: var(--vt-s1);
	padding: var(--vt-s2) var(--vt-s3) var(--vt-s1);
	border-top: 1px solid var(--vt-line);
	color: var(--vt-muted);
	font-size: var(--vt-fs-label);
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.vox-sv-it {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 30px;
	padding: 0 var(--vt-s3);
	border: 0;
	background: transparent;
	color: var(--vt-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.vox-sv-it .vox-sr-dot {
	margin-top: 0;
}

.vox-sv-it.on {
	font-weight: 500;
}

.vox-sv-it.meta {
	color: var(--vt-muted);
}

.vox-sv-it:hover {
	background: var(--vt-bg);
}

.vox-sv-msg {
	padding: var(--vt-s3) 0;
}

.vox-sr-list {
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	background: var(--vt-surface);
}

.vox-sr-res {
	display: flex;
	gap: var(--vt-s3);
	padding: var(--vt-s3) var(--vt-s4);
	border-bottom: 1px solid var(--vt-line);
	color: var(--vt-ink);
	text-decoration: none;
}

.vox-sr-res:last-child {
	border-bottom: 0;
}

.vox-sr-res:hover {
	background: var(--vt-bg);
	color: var(--vt-ink);
}

.vox-sr-res.done .vox-sr-ttl {
	color: var(--vt-muted);
}

.vox-sr-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.vox-sr-why {
	overflow: hidden;
	font-size: var(--vt-fs-meta);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vox-sr-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	color: var(--vt-muted);
	font-size: var(--vt-fs-meta);
}

.vox-sr-late {
	color: var(--vt-accent-ink);
}

.vox-sr-num {
	font-family: var(--vt-font-mono);
	font-variant-numeric: tabular-nums;
}

/* the results page (/vox-theme/search, vox-search-results.js): ours in #main-content, Vikunja's «not found» view hidden next to it */
#main-content.vox-sp-active > *:not(#vox-search-page) {
	display: none !important;
}

.vox-sp {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 760px;
	padding: 24px 0 var(--vt-s5);   /* #main-content already has the 28px side padding */
}

.vox-sp .vox-sp-field {
	height: 40px;
	font-size: 14px;
}

.vox-sp .vox-sv-filters {
	padding-bottom: 0;
}

/* the phone: a magnifier in the bar and a full-screen search (44px targets) */
@media (max-width: 769px) {
	.vox-sf-wrap {
		display: none;
	}

	.vox-sm-btn {
		display: inline-flex;
		align-self: center;
		flex: none;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin-left: auto;
		border: 0;
		background: transparent;
		color: var(--vt-ink);
		cursor: pointer;
	}

	.vox-so {
		position: fixed;
		inset: 0;
		z-index: 1000;
		display: flex;
		flex-direction: column;
		overflow-y: auto;
		background: var(--vt-bg);
	}

	.vox-so-top {
		display: flex;
		align-items: center;
		gap: var(--vt-s2);
		padding: var(--vt-s2) var(--vt-s2) var(--vt-s2) var(--vt-s4);
		border-bottom: 1px solid var(--vt-line);
	}

	.vox-so .vox-sf {
		flex: 1;
	}

	.vox-so-cancel {
		min-height: 44px;
		padding: 0 var(--vt-s2);
		border: 0;
		background: transparent;
		color: var(--vt-ink);
		font: inherit;
		cursor: pointer;
	}

	.vox-so .vox-sv-filters {
		padding: 10px var(--vt-s4);
	}

	.vox-so .vox-sv-chip {
		min-height: 36px;
	}

	.vox-sp {
		padding: var(--vt-s4);
	}

	.vox-so .vox-sv-it,
	.vox-so .vox-sv-more {
		min-height: 44px;
	}

	.vox-so .vox-sr-list {
		border-right: 0;
		border-left: 0;
		border-radius: 0;
	}

	.vox-so .vox-sr-res {
		padding: var(--vt-s3) 14px;
	}

	.vox-so .vox-sr-dot {
		margin-top: 8px;
	}

	.vox-so .vox-sv-msg,
	.vox-so .vox-sv-morewrap {
		padding: var(--vt-s2) var(--vt-s4);
	}

	html.vox-so-open body {
		overflow: hidden;
	}
}

.vox-sf [hidden],
.vox-sf-wrap [hidden],
.vox-sv [hidden] {
	display: none !important;
}

/* ==========================================================================
 * TASK DETAIL: the description card and the comment separators (docs/ui-v2/design/TASK-DETAIL.md)
 * ========================================================================== */

/* the description sits on a surface card; the card wraps Vikunja's editor box, so edit-in-place is untouched */
.task-view.task-view .tiptap__task-description .tiptap__editor {
	box-sizing: border-box;
	max-width: 64ch;
	padding: 12px 14px !important;
	background-color: var(--vt-surface) !important;
	border: 1px solid var(--vt-card-line) !important;
	border-radius: var(--vt-radius);
	box-shadow: none;
	font-size: 14px;
	line-height: 1.6;
	color: var(--vt-desc-ink);
}

.task-view.task-view .tiptap__task-description .ProseMirror {
	max-width: none;
	padding: 0;
	color: inherit;
}

/* while editing, the editor's own focus frame takes over: no second border inside it */
.task-view.task-view .tiptap__task-description:focus-within .tiptap__editor {
	max-width: none;
	border-color: transparent !important;
}

/* the card hugs its text: no margin under the last block, and no trailing empty paragraph (ProseMirror adds one after a list) */
.task-view.task-view .tiptap__task-description .ProseMirror > :last-child {
	margin-bottom: 0;
}

.task-view.task-view .tiptap__task-description .ProseMirror[contenteditable="false"] > p:last-child:not(:only-child):has(> .ProseMirror-trailingBreak:only-child) {
	display: none;
}

/* an empty description (Vikunja opens it in edit mode with a placeholder): no card, a muted «Опису немає»; the placeholder
   comes back on focus. Fragile: `p.is-editor-empty` (tiptap's placeholder class) and the Save button's `> .button`. */
.task-view.task-view .tiptap__task-description .tiptap__editor:has(.ProseMirror p.is-editor-empty) {
	padding: 0 !important;
	background-color: transparent !important;
	border-color: transparent !important;
}

.task-view.task-view .tiptap__task-description:not(:focus-within) .tiptap__editor:has(.ProseMirror p.is-editor-empty) {
	min-height: 0;   /* Vikunja gives the edit box 130px; an unfocused empty one is just the line */
}

.task-view.task-view .tiptap__task-description:not(:focus-within) .ProseMirror p.is-editor-empty::before {
	content: "Опису немає" !important;
	color: var(--vt-muted);
}

.task-view.task-view .tiptap__task-description:not(:focus-within):has(.ProseMirror p.is-editor-empty) > .button {
	display: none;
}

/* comments: a line between them (none above the first), 12px each way, the first without a top padding */
.task-view.task-view .comments .comment {
	margin: 0;
	padding: var(--vt-s3) 0;
	border-top: 1px solid var(--vt-line);
	border-bottom: 0;
}

.task-view.task-view .comments .comment:first-child {
	padding-top: 0;
	border-top: 0;
}

.task-view.task-view .comments .comment-info {
	display: flex;
	align-items: baseline;
	gap: var(--vt-s2);
	margin-bottom: 2px;
}

.task-view.task-view .comments .comment-info > span {
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
}

.task-view.task-view .comments .comment-info strong {
	font-family: var(--vt-font-display);
	font-weight: 500;
	color: var(--vt-ink);
}

/* the new-comment form is the last `.media.comment` (it holds `.form`): a line above it, 14px, even with no comments above;
   the first-child exemption of the rules above does not apply to it. Fragile: `.comment > .media-content > .form`. */
.task-view.task-view .comments .comment:has(> .media-content > .form) {
	padding: 14px 0 0;
	border-top: 1px solid var(--vt-line);
}

/* ==========================================================================
 * COMPACT (#895, docs/ui-v2/design/TASK-DETAIL.md "Compact"): comments, the comment form, the task-page top, board cards
 * ========================================================================== */

/* comments: 10px each way; Змінити · Відповісти and the permalink sit on the head line, shown on hover / focus (always on touch).
   Fragile: `.tiptap > .tiptap__editor-actions` (Vikunja's Edit/Reply list), `.tiptap__wrapper-is-editing`, `.comment-permalink`. */
.task-view.task-view .comments .comment {
	padding: 10px 0;
}

.task-view.task-view .comments .comment:first-child {
	padding-top: 0;
}

.task-view.task-view .comments .comment > .media-content {
	position: relative;
	min-width: 0;
}

.task-view.task-view .comments .comment-info {
	min-height: 22px;
	margin-bottom: 0;
	padding-inline-end: 160px;   /* room for the actions on the right */
}

.task-view.task-view .comments .comment-info .comment-permalink {
	position: absolute;
	top: 0;
	inset-inline-end: 0;
	display: inline-flex;
	align-items: center;
	height: 22px;
	color: var(--vt-muted);
}

.task-view.task-view .comments .comment .tiptap:not(:has(> .tiptap__wrapper-is-editing)) > .tiptap__editor-actions {
	position: absolute;
	top: 0;
	inset-inline-end: 24px;
	display: flex;
	align-items: center;
	gap: var(--vt-s2);
	height: 22px;
	margin: 0;
	padding: 0;
	font-size: var(--vt-fs-meta);
}

.task-view.task-view .comments .comment .tiptap:not(:has(> .tiptap__wrapper-is-editing)) > .tiptap__editor-actions li {
	margin: 0;
}

.task-view.task-view .comments .comment .tiptap:not(:has(> .tiptap__wrapper-is-editing)) > .tiptap__editor-actions button {
	color: var(--vt-muted);
	font-size: var(--vt-fs-meta);
}

.task-view.task-view .comments .comment .tiptap:not(:has(> .tiptap__wrapper-is-editing)) > .tiptap__editor-actions button:hover {
	color: var(--vt-accent-ink);
}

@media (hover: hover) {
	.task-view.task-view .comments .comment:not(:hover):not(:focus-within) .tiptap:not(:has(> .tiptap__wrapper-is-editing)) > .tiptap__editor-actions,
	.task-view.task-view .comments .comment:not(:hover):not(:focus-within) .comment-permalink {
		opacity: 0;
	}
}

/* the description card: the import line (`.vox-imported-src`, hidden) is the last paragraph, so the visible last block keeps its margin */
.task-view.task-view .tiptap__task-description .ProseMirror > :has(+ .vox-imported-src:last-child) {
	margin-bottom: 0;
}

/* the body: 13/1.45, no paragraph margins beyond 4px between them, no editor padding */
.task-view.task-view .comments .comment:not(:has(> .media-content > .form)) .tiptap__editor {
	min-height: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.task-view.task-view .comments .comment .tiptap:not(:has(> .tiptap__wrapper-is-editing)) .ProseMirror {
	min-height: 0;
	padding: 0;
	font-size: var(--vt-fs-body);
	line-height: var(--vt-lh);
}

.task-view.task-view .comments .comment .ProseMirror p {
	margin: 0;
}

.task-view.task-view .comments .comment .ProseMirror > * + * {
	margin-top: 4px;
}

/* Vikunja's reactions row keeps a 6.5px top margin even when it holds only its hidden add button */
.task-view.task-view .comments .comment .reactions {
	margin: 0;
}

.task-view.task-view .comments .comment .reactions > * {
	margin-top: 4px;
}

/* imported comments (vox-ui.js commentsStep): the head shows the original author and date; «Імпорт», its relative time, «edited» and the
   «Name · date» first paragraph of the body go (the paragraph comes back while editing) */
.task-view.task-view .comments .comment.vox-cmt-imp .comment-info > strong,
.task-view.task-view .comments .comment.vox-cmt-imp .comment-info > span:not(.vox-cmt-who) {
	display: none;
}

.task-view.task-view .comments .comment.vox-cmt-imp .tiptap:not(:has(> .tiptap__wrapper-is-editing)) .ProseMirror > p:first-child {
	display: none;
}

.task-view.task-view .comments .comment.vox-cmt-imp .ProseMirror > p:first-child + * {
	margin-top: 0;
}

.task-view.task-view .comments .vox-cmt-who {
	display: inline-flex;
	align-items: baseline;
	gap: var(--vt-s2);
}

.task-view.task-view .comments .vox-cmt-who strong {
	font-family: var(--vt-font-display);
	font-weight: 500;
	color: var(--vt-ink);
}

.task-view.task-view .comments .vox-cmt-who .vox-cmt-when {
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
}

/* the new-comment form: one line until it has focus or text; «Надіслати» only then. Fragile: `.form .field > button.is-primary`,
   `p.is-editor-empty` (tiptap's placeholder class). */
.task-view.task-view .comments .comment:has(> .media-content > .form) {
	padding-top: 12px;
}

.task-view.task-view .comments .form:not(:focus-within):has(.ProseMirror p.is-editor-empty:only-child) .tiptap__editor {
	min-height: 0 !important;
	height: auto;
	padding: 7px 10px !important;
}

.task-view.task-view .comments .form:not(:focus-within):has(.ProseMirror p.is-editor-empty:only-child) .ProseMirror {
	min-height: 0 !important;
	padding: 0;
}

.task-view.task-view .comments .form:focus-within .ProseMirror {
	min-height: calc(3 * var(--vt-lh) * 1em);   /* three rows while writing */
}

.task-view.task-view .comments .form:not(:focus-within):has(.ProseMirror p.is-editor-empty:only-child) > .field:has(> button.is-primary) {
	display: none;
}

.task-view.task-view .comments .comment:has(> .media-content > .form) .image.is-avatar {
	width: 22px !important;
	height: 22px !important;
}

/* the task-page top: «До проєкту» is a small link on the left (Vikunja centres a full-width button); related tasks go under the
   description at full width, with their «+» next to the heading. Fragile: `.back-button`, `.content.details:has(> .task-relations)`. */
.task-view.task-view > .back-button {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: auto;
	margin: 0 0 var(--vt-s2);
	padding: 0;
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
}

.task-view.task-view > .back-button:hover {
	color: var(--vt-accent-ink);
}

.task-view.task-view .detail-content > .content.details:has(> .task-relations) {
	order: 8;   /* after the description (7); attachments share 8 and come first in the DOM */
	width: 100%;
	margin: 0;
}

.task-view.task-view .detail-content > .content.details:has(> .task-relations) {
	position: relative;
}

/* the «+» (add a relation) sits on the heading line at the right, like «Спершу старі» on the comments heading; Vikunja floats it with a
   scoped rule, hence !important */
.task-view.task-view .task-relations > .button {
	position: absolute;
	top: -4px;
	inset-inline-end: 0;
	float: none !important;
	min-height: 0;
	height: 28px;
	padding: 0 8px;
}

/* «Запросити» (vox-invite.js, shown only to people who may invite): a quiet header button, not a framed one */
.navbar-end .vox-invite-btn.vox-invite-btn {
	min-height: 36px;
	margin-inline-end: var(--vt-s1);
	padding: 0 var(--vt-s2);
	border: 0;
	color: var(--vt-muted);
	font-size: var(--vt-fs-body);
}

.navbar-end .vox-invite-btn.vox-invite-btn:hover {
	background: color-mix(in srgb, var(--vt-ink) 6%, transparent);
	color: var(--vt-ink);
}

/* board cards: one row when the card has only a title (and avatars): avatars sit at the title's right, date and checklist go to a second row
   that exists only when they do. The id row and the footer dissolve into the card's grid. Fragile: `.p-2 > div:has(> .task-id)` (Vikunja's
   id row, kept 17px tall when the id is hidden), `.footer` children placed as grid items. */
.kanban-card.kanban-card .p-2 {
	grid-template-columns: auto auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 4px 10px;
	padding: 8px 10px !important;
}

/* Vikunja's `.task .footer[data-v]` and the id row's utility classes set display:flex; hence !important */
.kanban-card.kanban-card .p-2 > div:has(> .task-id),
.kanban-card.kanban-card .footer {
	display: contents !important;
}

/* the id («#6») is a bare text node: inside a dissolved wrapper it would become its own 17px grid row. The done badge inside it was
   already hidden (the ✅ before the title is keyed on `:has(.kanban-card__done)`, which still matches a hidden element). */
.kanban-card.kanban-card .task-id {
	display: none !important;
}

.kanban-card.kanban-card h3 {
	grid-row: 1;
	grid-column: 1 / 4;
}

.kanban-card.kanban-card .p-2:not(:has(.assignees-list > *)) h3 {
	grid-column: 1 / -1;
}

.kanban-card.kanban-card .assignees-list {
	grid-row: 1;
	grid-column: 4;
	align-self: start;
	margin: 0;
}

.kanban-card.kanban-card .due-date {
	grid-row: 2;
	grid-column: 1;
	line-height: 18px;
}

.kanban-card.kanban-card .checklist-summary {
	grid-row: 2;
	grid-column: 2;
	line-height: 18px;
}

.kanban-card.kanban-card .p-2:not(:has(.due-date)) .checklist-summary {
	grid-column: 1;
}

@media (max-width: 769px) {
	.kanban-card.kanban-card .p-2 {
		min-height: 44px;
		box-sizing: border-box;
		padding: 10px 12px !important;
	}
}

/* ==========================================================================
 * DESCRIPTION EDITING + CHECKLISTS (#902, docs/ui-v2/design/TASK-DETAIL.md "Editing the description")
 * ========================================================================== */

/* the old pencil was a picture (review 4 #5, pointer-events: none); vox-ui.js descStep puts real buttons on the heading line instead */
.task-view.task-view .description .task-section-title::after {
	content: none;
	display: none;
}

.task-view.task-view .description .task-section-title {
	display: flex;
	align-items: center;
}

.task-view.task-view .vox-desc-tools {
	display: inline-flex;
	align-items: center;
	gap: var(--vt-s1);
	margin-inline-start: var(--vt-s2);
	text-transform: none;   /* the heading is an uppercase label; the button text is not */
	letter-spacing: 0;
}

.task-view.task-view .vox-desc-tool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 28px;
	min-height: 28px;
	padding: 0 6px;
	border: 0;
	border-radius: var(--vt-radius);
	background: transparent;
	color: var(--vt-muted);
	font-family: var(--vt-font);
	font-size: var(--vt-fs-meta);
	font-weight: 400;
	cursor: pointer;
}

.task-view.task-view .vox-desc-tool:hover {
	background: color-mix(in srgb, var(--vt-ink) 6%, transparent);
	color: var(--vt-ink);
}

.task-view.task-view .vox-desc-tool:focus-visible {
	outline: 2px solid var(--vt-accent-ink);
	outline-offset: 1px;
}

.task-view.task-view .vox-desc-box {
	flex: none;
	width: 9px;
	height: 9px;
	border: 1.5px solid currentColor;
	border-radius: 2px;
}

@media (pointer: coarse) {
	.task-view.task-view .vox-desc-tool {
		min-width: 44px;
		min-height: 44px;
	}
}

/* «Змінити» (pencil + label) is always drawn (#988: editing is only on purpose, no double-click or tap opens it). DESIGN.md: quiet button 13/400, 32px on a
   desktop, 44px on touch / a narrow screen, in v2 as in v3 */
.task-view.task-view .vox-desc-lbl {
	display: inline;
}

.task-view.task-view .vox-desc-edit {
	min-height: 32px;
	padding: 0 10px;
	font-size: var(--vt-fs-body);
	font-weight: 400;
}

@media (pointer: coarse), (max-width: 769px) {
	.task-view.task-view .vox-desc-edit {
		min-height: var(--vt-tap);
		padding: 0 12px;
	}
}

/* links in the description, read mode only (vox-ui.js linksStep, #988). Fragile: `.ProseMirror[contenteditable="false"]` (Vikunja's read mode), classes set by us */
.task-view.task-view .tiptap__task-description .ProseMirror[contenteditable="false"] a.vox-link-in {
	padding-block: 10px;   /* a bigger hit area; an inline box's vertical padding does not change the line height */
	margin-block: -10px;
}

.task-view.task-view .tiptap__task-description .ProseMirror[contenteditable="false"] a.vox-link-row {
	display: block;
	position: relative;
	box-sizing: border-box;
	min-height: var(--vt-tap);
	margin-block: 8px;
	padding: 10px 36px 10px 10px;
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	background: color-mix(in srgb, var(--vt-ink) 4%, var(--vt-surface));
	word-break: break-all;
	text-decoration: none;
}

.task-view.task-view .tiptap__task-description .ProseMirror[contenteditable="false"] a.vox-link-row::after {
	content: "";
	position: absolute;
	inset-inline-end: 10px;
	top: 50%;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	background: var(--vt-muted);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4 10 14'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%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' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4 10 14'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.task-view.task-view .tiptap__task-description .ProseMirror[contenteditable="false"] br.vox-link-br {
	display: none;   /* the line break after a row would draw an empty line under the block */
}

/* only an empty description opens on a tap (vox-ui.js descClicks, #988): say so with the cursor there, nowhere else */
.task-view.task-view .tiptap__task-description .tiptap__editor:not(.tiptap__editor-is-edit-enabled):has(.ProseMirror p.is-editor-empty) {
	cursor: text;
}

.task-view.task-view .tiptap__task-description:not(:focus-within) .tiptap__editor:not(.tiptap__editor-is-edit-enabled):hover {
	border-color: var(--vt-muted) !important;
}

/* the empty description (Vikunja keeps it in edit mode with a placeholder): a dashed field «Додати опис…» instead of the plain «Опису
   немає» of #890; a click anywhere in it reaches Vikunja's own focus handler on the editor box. Fragile: `p.is-editor-empty`. */
.task-view.task-view .tiptap__task-description:not(:focus-within) .tiptap__editor:has(.ProseMirror p.is-editor-empty:only-child) {
	box-sizing: border-box;
	max-width: 64ch;
	min-height: 40px !important;
	padding: 9px 14px !important;
	border: 1px dashed color-mix(in srgb, var(--vt-muted) 45%, transparent) !important;   /* --vt-line alone is too faint on the white modal */
	background-color: transparent !important;
	cursor: text;
}

.task-view.task-view .tiptap__task-description:not(:focus-within) .tiptap__editor:has(.ProseMirror p.is-editor-empty:only-child):hover {
	border-color: var(--vt-muted) !important;
}

.task-view.task-view .tiptap__task-description:not(:focus-within) .ProseMirror p.is-editor-empty:only-child::before {
	content: "Додати опис…" !important;
	color: var(--vt-muted);
}

.task-view.task-view .tiptap__task-description:not(:focus-within) .tiptap__editor:has(.ProseMirror p.is-editor-empty:only-child):hover .ProseMirror p.is-editor-empty::before {
	color: var(--vt-ink);
}

@media (pointer: coarse) {
	.task-view.task-view .tiptap__task-description:not(:focus-within) .tiptap__editor:has(.ProseMirror p.is-editor-empty:only-child) {
		min-height: 44px !important;
	}
}


/* ==========================================================================
 * 14. TASK DETAIL v3 (#904, docs/ui-v2/design/TASK-DETAIL.md "v3", mockup TaskV3.html). Every rule below hangs off `.vox-v3`, which vox-ui.js puts
 * on `.task-view` for the projects in V3_PROJECTS (or ?vox-v3=1); any other task is untouched.
 * ========================================================================== */

.task-view.task-view.vox-v3 {
	--vt-btn: #f1f1f1;
	--vt-btn-hover: #e6e6e6;
}

:root.dark .task-view.task-view.vox-v3 {
	--vt-btn: #2a2a2a;
	--vt-btn-hover: #353535;
}

/* ---- piece 1: the checklist block (vox-ui.js clStep). The task list stays in the description; while the block is drawn (`vox-cl-on`) the list is
   hidden there, and when it is all the description holds (`vox-cl-only`) the card shows as the empty field (piece 5). Without the class (an error, the editor open, a missing anchor)
   Vikunja's own list is shown. Fragile: `ul[data-type="taskList"]` and `.tiptap__task-description .tiptap__editor`. ---- */
.task-view.task-view.vox-v3.vox-cl-on .tiptap__task-description ul[data-type="taskList"] {
	display: none;
}

.task-view.task-view.vox-v3 .vox-cl {
	order: 7;   /* straight after the description (7, earlier in the DOM) */
	flex: 0 0 100%;
	box-sizing: border-box;
	min-width: 0;
	max-width: calc(64ch + 36px);
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	column-gap: 12px;
	row-gap: 10px;
	margin-top: 16px;
	font-size: var(--vt-fs-body);
}

.task-view.task-view.vox-v3 .vox-cl.is-busy {
	opacity: .7;
	pointer-events: none;
}

.task-view.task-view.vox-v3 .vox-cl-ic {
	width: 20px;
	height: 20px;
	margin-top: 4px;
	fill: none;
	stroke: var(--vt-ink);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.task-view.task-view.vox-v3 .vox-cl-head {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 28px;
}

.task-view.task-view.vox-v3 .vox-cl-title {
	margin: 0;
	font-family: var(--vt-font-display);
	font-size: var(--vt-fs-section);
	font-weight: 500;
	color: var(--vt-ink);
}

.task-view.task-view.vox-v3 .vox-cl-body {
	grid-column: 2;
	min-width: 0;
}

.task-view.task-view.vox-v3 .vox-cl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 32px;
	padding: 0 12px;
	border: 0;
	border-radius: var(--vt-radius);
	background: var(--vt-btn);
	color: var(--vt-ink);
	font: 500 var(--vt-fs-body) var(--vt-font);
	cursor: pointer;
}

.task-view.task-view.vox-v3 .vox-cl-btn:hover {
	background: var(--vt-btn-hover);
}

.task-view.task-view.vox-v3 .vox-cl-btn:focus-visible,
.task-view.task-view.vox-v3 .vox-cl-input:focus-visible,
.task-view.task-view.vox-v3 .vox-cl-tick input:focus-visible {
	outline: 2px solid var(--vt-ink);
	outline-offset: 2px;
}

.task-view.task-view.vox-v3 .vox-cl-primary {
	background: var(--vt-ink);
	color: var(--vt-surface);
}

.task-view.task-view.vox-v3 .vox-cl-primary:hover {
	background: var(--vt-accent-ink);
	color: var(--vt-on-accent);
}

.task-view.task-view.vox-v3 .vox-cl-ghost {
	background: transparent;
}

.task-view.task-view.vox-v3 .vox-cl-ghost:hover {
	background: var(--vt-btn);
}

.task-view.task-view.vox-v3 .vox-cl-progress {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}

.task-view.task-view.vox-v3 .vox-cl-pct {
	width: 34px;
	font: 500 var(--vt-fs-label) / 1 var(--vt-font-mono);
	color: var(--vt-muted);
}

.task-view.task-view.vox-v3 .vox-cl-bar {
	flex: 1;
	height: 8px;
	border-radius: 4px;
	background: color-mix(in srgb, var(--vt-muted) 22%, transparent);
	overflow: hidden;
}

.task-view.task-view.vox-v3 .vox-cl-bar i {
	display: block;
	height: 100%;
	background: var(--vt-up);
	transition: width .2s;
}

.task-view.task-view.vox-v3 .vox-cl-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.task-view.task-view.vox-v3 .vox-cl-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	min-height: 36px;
	margin: 0;
	padding: 6px 6px 6px 0;
	border-radius: var(--vt-radius);
}

.task-view.task-view.vox-v3 .vox-cl-item:hover {
	background: var(--vt-btn);
}

.task-view.task-view.vox-v3 .vox-cl-tick {
	display: inline-flex;
	align-items: flex-start;
	justify-content: center;
	flex: none;
	width: 20px;
	margin: 0;
	cursor: pointer;
}

.task-view.task-view.vox-v3 .vox-cl-tick input {
	width: 16px;
	height: 16px;
	margin: 3px 0 0;
	accent-color: var(--vt-ink);
	cursor: pointer;
}

.task-view.task-view.vox-v3 .vox-cl-txt {
	flex: 1;
	min-width: 0;
	overflow-wrap: anywhere;
	line-height: 1.5;
	color: var(--vt-desc-ink);
	cursor: text;
}

.task-view.task-view.vox-v3 .vox-cl-item.is-health .vox-cl-txt {
	cursor: default;
}

.task-view.task-view.vox-v3 .vox-cl-txt a {
	color: var(--vt-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.task-view.task-view.vox-v3 .vox-cl-item.is-done .vox-cl-txt {
	color: var(--vt-muted);
	text-decoration: line-through;
}

.task-view.task-view.vox-v3 .vox-cl-edit,
.task-view.task-view.vox-v3 .vox-cl-input {
	box-sizing: border-box;
	flex: 1;
	min-width: 0;
	height: 36px;
	padding: 0 10px;
	border: 2px solid var(--vt-ink);
	border-radius: var(--vt-radius);
	background: var(--vt-surface);
	color: var(--vt-ink);
	font: inherit;
	font-size: 14px;
}

.task-view.task-view.vox-v3 .vox-cl-edit {
	height: 32px;
}

.task-view.task-view.vox-v3 .vox-cl-x {
	flex: none;
	min-width: 24px;
	min-height: 24px;
	padding: 0;
	opacity: 0;
	background: transparent;
	color: var(--vt-muted);
	font-size: 16px;
	line-height: 1;
}

.task-view.task-view.vox-v3 .vox-cl-item:hover .vox-cl-x,
.task-view.task-view.vox-v3 .vox-cl-x:focus-visible {
	opacity: 1;
}

.task-view.task-view.vox-v3 .vox-cl-foot {
	margin-top: 6px;
}

.task-view.task-view.vox-v3 .vox-cl-foot .vox-cl-input {
	display: block;
	width: 100%;
}

.task-view.task-view.vox-v3 .vox-cl-row {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

.task-view.task-view.vox-v3 .vox-cl-pop {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 20;
	width: 260px;
	padding: 14px;
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	background: var(--vt-surface);
	box-shadow: var(--vt-popover-shadow);
}

.task-view.task-view.vox-v3 .vox-cl-pop-h {
	font-family: var(--vt-font-display);
	font-weight: 500;
	color: var(--vt-ink);
}

.task-view.task-view.vox-v3 .vox-cl-pop-p {
	margin: 6px 0 0;
	color: var(--vt-muted);
}

@media (pointer: coarse), (max-width: 769px) {
	.task-view.task-view.vox-v3 .vox-cl-btn {
		min-height: 44px;
	}

	.task-view.task-view.vox-v3 .vox-cl-item {
		min-height: 44px;
		align-items: center;
	}

	.task-view.task-view.vox-v3 .vox-cl-tick {
		width: 36px;
		min-height: 44px;
		align-items: center;
	}

	.task-view.task-view.vox-v3 .vox-cl-tick input {
		margin: 0;
	}

	.task-view.task-view.vox-v3 .vox-cl-x {
		min-width: 44px;
		min-height: 44px;
		opacity: 1;
	}

	.task-view.task-view.vox-v3 .vox-cl-edit,
	.task-view.task-view.vox-v3 .vox-cl-input {
		height: 44px;
	}
}

/* ---- piece 2: the top bar (vox-ui.js topStep). `.vox-top` (56px, border below) holds the proxies; Vikunja's own `.subtitle` (the column dropdown and the
   project name) is placed over its left half, so the column list is Vikunja's. Classes on the view say which replacement exists; the real control is hidden
   only then. Fragile: `.subtitle .bucket-name`, its `.change-indicator` pencil, `.subtitle > a` (the project), the modal's `button.close`, `.back-button`. ---- */
.task-view.task-view.vox-v3.vox-top-on {
	position: relative;
	padding-top: calc(56px + var(--vt-s4));
}

.task-view.task-view.vox-v3 .vox-top {
	position: absolute;
	inset: 0 0 auto 0;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 2px;
	height: 56px;
	padding: 0 12px;
	border-bottom: 1px solid var(--vt-line);
}

.task-view.task-view.vox-v3 .vox-top-fill {
	flex: 1 1 auto;
}

.task-view.task-view.vox-v3 .vox-top-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 36px;
	height: 36px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: var(--vt-radius);
	color: var(--vt-ink);
	cursor: pointer;
}

.task-view.task-view.vox-v3 .vox-top-btn:hover,
.task-view.task-view.vox-v3 .vox-top-btn[aria-pressed="true"],
.task-view.task-view.vox-v3 .vox-top-btn[aria-expanded="true"] {
	background: var(--vt-btn);
}

.task-view.task-view.vox-v3 .vox-top-btn:disabled {
	opacity: .5;
	cursor: default;
}

.task-view.task-view.vox-v3 .vox-top-btn svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.task-view.task-view.vox-v3 .vox-top-back {
	display: none;
}

/* the column button and the project, over the left half of the bar */
.task-view.task-view.vox-v3.vox-top-on .subtitle {
	position: absolute;
	top: 0;
	left: 20px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 8px;
	height: 56px;
	min-width: 0;
	max-width: calc(100% - 200px);
}

.task-view.task-view.vox-v3.vox-top-on .subtitle .dropdown {
	order: 0;
	flex: none;
}

.task-view.task-view.vox-v3.vox-top-on .subtitle > a {
	display: block !important;
	order: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
	text-decoration: none;
}

.task-view.task-view.vox-v3.vox-top-on .bucket-name {
	gap: 6px;
	min-height: 32px;
	padding: 0 10px;
	background: var(--vt-btn);
	border: 0;
	font-weight: 500;
}

.task-view.task-view.vox-v3.vox-top-on .bucket-name:hover {
	background: var(--vt-btn-hover);
}

.task-view.task-view.vox-v3.vox-top-on .bucket-name::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #7793ae;
}

.task-view.task-view.vox-v3.vox-top-on .bucket-name::after {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%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' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.task-view.task-view.vox-v3.vox-top-on .bucket-name .change-indicator {
	display: none;
}

/* the real controls the bar replaces */
.task-view.task-view.vox-v3.vox-top-leave .back-button,
.task-detail-view-modal:has(.task-view.vox-v3.vox-top-leave) button.close,
.task-view.task-view.vox-v3.vox-top-more-on .action-buttons .vox-more,
.task-view.task-view.vox-v3.vox-top-watch-on .vox-menu-watch {
	display: none !important;
}

/* the «⋯» popover opens under the bar's button */
.task-view.task-view.vox-v3.vox-top-more-on .action-buttons {
	position: static;
}

.task-view.task-view.vox-v3.vox-top-more-on .action-buttons.vox-more-open .vox-menu {
	top: 52px;
	right: 12px;
	left: auto;
}

@media (max-width: 769px) {
	.task-view.task-view.vox-v3.vox-top-on {
		padding-top: calc(52px + var(--vt-s3));
	}

	.task-view.task-view.vox-v3 .vox-top,
	.task-view.task-view.vox-v3.vox-top-on .subtitle {
		height: 52px;
	}

	.task-view.task-view.vox-v3 .vox-top-back {
		display: inline-flex;
	}

	.task-view.task-view.vox-v3 .vox-top-close,
	.task-view.task-view.vox-v3 .vox-top-watch,
	.task-view.task-view.vox-v3.vox-top-on .subtitle > a {
		display: none !important;   /* the phone bar is back · column · «⋯»; «Стежити» is a row of the «⋯» menu */
	}

	.task-view.task-view.vox-v3.vox-top-leave .subtitle {
		left: 60px;
	}

	.task-view.task-view.vox-v3.vox-top-more-on .action-buttons.vox-more-open .vox-menu {
		top: 48px;
	}

	.task-view.task-view.vox-v3.vox-top-watch-on .vox-menu-watch {
		display: flex !important;
	}
}

@media (pointer: coarse), (max-width: 769px) {
	.task-view.task-view.vox-v3 .vox-top-btn {
		width: 44px;
		height: 44px;
	}

	.task-view.task-view.vox-v3.vox-top-on .bucket-name {
		min-height: 44px;
	}
}

/* ---- piece 3: the title with the done circle (vox-ui.js doneStep). `.vox-done` is a proxy for Vikunja's «Виконати» button, which is hidden only while
   the circle is drawn (`vox-done-on`); `vox-done-is` = the task is done. Fragile: `.button--mark-done` and its `is-pending` class, `.heading h1.title`. ---- */
.task-view.task-view.vox-v3 .vox-done {
	order: 1;
	flex: none;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0 4px 0 0;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.task-view.task-view.vox-v3 .vox-done-c {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 24px;
	height: 24px;
	border: 2px solid var(--vt-muted);
	border-radius: 50%;
	color: transparent;
}

.task-view.task-view.vox-v3 .vox-done:hover .vox-done-c {
	border-color: var(--vt-ink);
	box-shadow: inset 0 0 0 4px var(--vt-btn);
}

.task-view.task-view.vox-v3 .vox-done[aria-pressed="true"] .vox-done-c {
	background: var(--vt-ink);
	border-color: var(--vt-ink);
	color: var(--vt-surface);
	box-shadow: none;
}

.task-view.task-view.vox-v3 .vox-done-c svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.task-view.task-view.vox-v3.vox-done-on .heading h1.title {
	flex: 0 0 calc(100% - 46px);   /* the row is full: circle (32 + 4, 44 - 8 on touch) + the flex gap + the title */
	min-width: 0;
}

.task-view.task-view.vox-v3.vox-done-is .heading h1.title {
	color: var(--vt-muted);
}

.task-view.task-view.vox-v3.vox-done-on .action-buttons .button--mark-done {
	display: none !important;
}

@media (pointer: coarse), (max-width: 769px) {
	.task-view.task-view.vox-v3 .vox-done {
		width: 44px;
		height: 44px;
		margin: -6px 0 0 -8px;
	}

	.task-view.task-view.vox-v3 .vox-done-c {
		width: 28px;
		height: 28px;
	}
}

/* ---- piece 4: the action row and the labelled groups (vox-ui.js actsStep). `.vox-acts` proxies Vikunja's own action buttons; the groups are Vikunja's own
   fields (and our labels field) restyled: a caps label above, no box. The empty-field chips go away only for the entry points the row has (`vox-acts-assign`,
   `-due`, `-labels`). Fragile: `.columns.details .column` (the assignee / date / other fields), `.detail-title`, `.assignees-list`, `.datepicker > button`,
   and the action buttons found by icon (users, tags, sitemap, circle-exclamation, calendar, paperclip). Order: title 1, row 2, assignees 3, labels 4, the other
   fields 5, documents 6, description 7. ---- */
.task-view.task-view.vox-v3 .vox-acts {
	order: 2;
	flex: 0 0 100%;
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.task-view.task-view.vox-v3 .vox-act {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 34px;
	padding: 0 12px;
	background: var(--vt-surface);
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	font: inherit;
	font-size: var(--vt-fs-body);
	font-weight: 500;
	color: var(--vt-ink);
	white-space: nowrap;
	cursor: pointer;
}

.task-view.task-view.vox-v3 .vox-act svg {
	flex: none;
	width: 16px;
	height: 16px;
	fill: none;
	stroke: var(--vt-muted);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.task-view.task-view.vox-v3 .vox-act:hover,
.task-view.task-view.vox-v3 .vox-act[aria-expanded="true"] {
	background: var(--vt-btn);
	border-color: var(--vt-muted);
}

.task-view.task-view.vox-v3 .vox-act:focus-visible,
.task-view.task-view.vox-v3 .vox-acts-menu .vox-menu-row:focus-visible {
	outline: 2px solid var(--vt-ink);
	outline-offset: 2px;
}

.task-view.task-view.vox-v3 .vox-acts-menu {
	position: absolute;
	top: 38px;
	left: 0;
	z-index: 40;
	display: flex;
	flex-direction: column;
	min-width: 220px;
	padding: 4px;
	background: var(--vt-surface);
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	box-shadow: var(--vt-popover-shadow);
}

/* the chips of empty fields give way to the row's «+ Додати» / «Термін»; the labels field is drawn only when there are labels */
.task-view.task-view.vox-v3.vox-acts-assign .vox-field-assign,
.task-view.task-view.vox-v3.vox-acts-due .vox-field-due,
.task-view.task-view.vox-v3.vox-acts-labels .vox-lwrap.vox-lbl-empty:not(.vox-lopen) {
	display: none;
}

/* the groups */
.task-view.task-view.vox-v3 .columns.details .column.assignees {
	order: 3;
}

.task-view.task-view.vox-v3 .vox-lwrap {
	order: 4;
}

.task-view.task-view.vox-v3 .columns.details .column {
	order: 5;
}

.task-view.task-view.vox-v3 .vox-docs {
	order: 6;
}

.task-view.task-view.vox-v3 .columns.details .column,
.task-view.task-view.vox-v3 .vox-lwrap {
	margin: 12px 20px 0 0;
}

.task-view.task-view.vox-v3 .columns.details .column {
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	min-height: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.task-view.task-view.vox-v3 .columns.details .detail-title,
.task-view.task-view.vox-v3 .vox-field-labels .vox-field-label {
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--vt-muted);
}

.task-view.task-view.vox-v3 .columns.details .detail-title svg {
	display: none;
}

/* assignees: 32 px avatars (names are in the tooltip) and a dashed «+» that opens the picker (a click anywhere in the field does, vox-ui.js) */
.task-view.task-view.vox-v3 .columns.details .column.assignees .multiselect,
.task-view.task-view.vox-v3 .columns.details .column.assignees .control,
.task-view.task-view.vox-v3 .columns.details .column.assignees .input-wrapper {
	height: 32px;
}

.task-view.task-view.vox-v3 .columns.details .column.assignees .assignees-list {
	gap: 6px;
}

.task-view.task-view.vox-v3 .columns.details .column.assignees .assignees-list .user,
.task-view.task-view.vox-v3 .columns.details .column.assignees .assignees-list .avatar-wrapper,
.task-view.task-view.vox-v3 .columns.details .column.assignees .assignees-list .assignee {
	--avatar-size: 32px;
	width: 32px;
	height: 32px;
}

.task-view.task-view.vox-v3 .columns.details .column.assignees .assignees-list .avatar {
	width: 32px !important;
	height: 32px !important;
}

.task-view.task-view.vox-v3 .columns.details .column.assignees .assignees-list .username {
	display: none;
}

.task-view.task-view.vox-v3 .columns.details .column.assignees .multiselect.has-assignees .input-wrapper::after,
.task-view.task-view.vox-v3 .vox-field-labels .vox-field-val::after {
	content: "+";
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 32px;
	height: 32px;
	margin-inline-start: 6px;
	border: 1px dashed var(--vt-muted);
	border-radius: 50%;
	font-size: 18px;
	line-height: 1;
	color: var(--vt-muted);
}

.task-view.task-view.vox-v3 .vox-field-labels .vox-field-val::after {
	margin-inline-start: 2px;
	border-radius: var(--vt-radius);
}

.task-view.task-view.vox-v3 .columns.details .column.assignees:hover .input-wrapper::after,
.task-view.task-view.vox-v3 .vox-field-labels:hover .vox-field-val::after {
	border-style: solid;
	border-color: var(--vt-ink);
	color: var(--vt-ink);
}

/* labels: the field button becomes a group (label above, pills, «+») */
.task-view.task-view.vox-v3 .vox-field-labels {
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	min-height: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.task-view.task-view.vox-v3 .vox-field-labels .vox-field-val {
	gap: 6px;
	flex-wrap: wrap;
	min-height: 32px;
}

.task-view.task-view.vox-v3 .vox-field-labels .vox-lchip {
	height: 28px;
	min-height: 28px;
	padding: 0 10px;
	font-size: 12px;
	font-weight: 500;
	line-height: 28px;
}

/* due: a bordered 32 px button with the overdue tag in accent ink */
.task-view.task-view.vox-v3 .columns.details .column .date-input {
	display: flex;
	align-items: center;
	gap: 6px;
}

.task-view.task-view.vox-v3 .columns.details .column .datepicker > button.simple-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	height: 32px;
	padding: 0 10px;
	background: var(--vt-surface);
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
}

.task-view.task-view.vox-v3 .columns.details .column .datepicker > button.simple-button:hover {
	background: var(--vt-btn);
}

.task-view.task-view.vox-v3 .datepicker > button.simple-button[data-vox-late]::before {
	content: "прострочено";
	order: 2;
	padding: 1px 6px;
	border-radius: var(--vt-radius);
	background: var(--vt-accent-ink);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	color: #fff;
}

/* the old «Виконати» row is empty once the circle and the bar are drawn: it must not leave a gap */
.task-view.task-view.vox-v3.vox-done-on.vox-top-more-on .action-buttons {
	height: 0;
	min-height: 0;
}

@media (max-width: 769px) {
	.task-view.task-view.vox-v3 .vox-acts {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin: 0 calc(-1 * var(--vt-s4));
		padding: 0 var(--vt-s4) 2px;
		scrollbar-width: none;
	}

	.task-view.task-view.vox-v3 .vox-acts::-webkit-scrollbar {
		display: none;
	}

	.task-view.task-view.vox-v3 .vox-acts-menu {
		position: fixed;
		top: auto;
		left: var(--vt-s4);
		right: var(--vt-s4);
		bottom: var(--vt-s4);
	}
}

@media (pointer: coarse), (max-width: 769px) {
	.task-view.task-view.vox-v3 .vox-act {
		height: 44px;
	}

	.task-view.task-view.vox-v3 .vox-acts-menu .vox-menu-row {
		min-height: 44px;
	}
}

/* ---- piece 5: the description and related-task sections (vox-ui.js descStep adds the «Змінити» label; the rest is CSS). Section = icon column 24 px, heading
   15/500, a grey button on the right, the body under the heading in the column of the text, like the checklist block. The empty description (and one that
   holds only the checklist, which the block draws) is a 3-line bordered field «Додати детальніший опис…»; a click anywhere in it edits (descClicks).
   Fragile: `.description .task-section-title` and its `.icon`, `p.is-editor-empty`, `.content.details:has(> .task-relations)` with `.related-tasks .title`, `.task`. ---- */
.task-view.task-view.vox-v3 .description,
.task-view.task-view.vox-v3 .detail-content > .content.details:has(> .task-relations) {
	box-sizing: border-box;
	max-width: calc(64ch + 36px);
	margin-top: 16px;
	margin-bottom: 0;
}

.task-view.task-view.vox-v3 .description .task-section-title,
.task-view.task-view.vox-v3 .detail-content > .content.details:has(> .task-relations) > .task-section-title {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 28px;
	margin: 0 0 10px;
	padding-inline-start: 36px;
	font-family: var(--vt-font-display) !important;   /* the older rule "section titles are labels" is important */
	font-size: var(--vt-fs-section) !important;
	font-weight: 500 !important;
	letter-spacing: 0;
	text-transform: none;
	color: var(--vt-ink);
}

.task-view.task-view.vox-v3 .description .task-section-title > .icon,
.task-view.task-view.vox-v3 .detail-content > .content.details:has(> .task-relations) > .task-section-title > .icon {
	position: absolute;
	inset-inline-start: 2px;
	top: 4px;
	width: 20px;
	height: 20px;
	color: var(--vt-ink);
}

.task-view.task-view.vox-v3 .description .tiptap__task-description {
	margin-inline-start: 36px;
}

/* «Змінити»: the pencil button turns into a grey text button at the right of the heading; «Чекліст» is the action row's now */
.task-view.task-view.vox-v3 .description .vox-desc-tools {
	margin-inline-start: auto;
}

.task-view.task-view.vox-v3 .description .vox-desc-check,
.task-view.task-view.vox-v3 .description .vox-desc-edit svg,
.task-view.task-view.vox-v3 .description:has(.tiptap__editor-is-edit-enabled) .vox-desc-edit,   /* not :focus-within: pressing the button itself would hide it before the click */
.task-view.task-view.vox-v3 .description:has(.ProseMirror p.is-editor-empty) .vox-desc-edit,
.task-view.task-view.vox-v3.vox-cl-only .description .vox-desc-edit {
	display: none;
}

.task-view.task-view.vox-v3 .description .vox-desc-edit {
	padding: 0 12px;
	background: var(--vt-btn);
	color: var(--vt-ink);
}

.task-view.task-view.vox-v3 .description .vox-desc-edit:hover {
	background: var(--vt-btn-hover);
}

/* the card: the hover border is the mockup's #9A9A9A */
.task-view.task-view.vox-v3 .tiptap__task-description:not(:focus-within) .tiptap__editor:not(.tiptap__editor-is-edit-enabled):hover {
	border-color: var(--vt-muted) !important;
}

/* the empty field: 3 lines, solid border, no card padding trick of the earlier dashed one */
.task-view.task-view.vox-v3 .tiptap__task-description:not(:focus-within) .tiptap__editor:has(.ProseMirror p.is-editor-empty:only-child),
.task-view.task-view.vox-v3.vox-cl-only .tiptap__task-description:not(:focus-within) .tiptap__editor:not(.tiptap__editor-is-edit-enabled) {
	box-sizing: border-box;
	min-height: 76px !important;
	padding: 10px 14px !important;
	background-color: var(--vt-surface) !important;
	border: 1px solid color-mix(in srgb, var(--vt-muted) 60%, transparent) !important;
	cursor: text;
}

.task-view.task-view.vox-v3 .tiptap__task-description:not(:focus-within) .tiptap__editor:has(.ProseMirror p.is-editor-empty:only-child):hover,
.task-view.task-view.vox-v3.vox-cl-only .tiptap__task-description:not(:focus-within) .tiptap__editor:not(.tiptap__editor-is-edit-enabled):hover {
	border-color: var(--vt-ink) !important;
}

.task-view.task-view.vox-v3 .tiptap__task-description:not(:focus-within) .ProseMirror p.is-editor-empty:only-child::before {
	content: "Додати детальніший опис…" !important;
}

.task-view.task-view.vox-v3.vox-cl-only .tiptap__task-description:not(:focus-within) .tiptap__editor:not(.tiptap__editor-is-edit-enabled)::before {
	content: "Додати детальніший опис…";
	color: var(--vt-muted);
}

.task-view.task-view.vox-v3.vox-cl-only .tiptap__task-description:not(:focus-within) .tiptap__editor:not(.tiptap__editor-is-edit-enabled):hover::before {
	color: var(--vt-ink);
}

.task-view.task-view.vox-v3.vox-cl-only .tiptap__task-description:not(:focus-within) .tiptap__editor:not(.tiptap__editor-is-edit-enabled) .ProseMirror {
	display: none;
}

/* related tasks: «Додати» is a grey button on the heading line; rows = box, title (the kind is a muted caption above its rows) */
.task-view.task-view.vox-v3 .task-relations {
	position: static;   /* the «Додати» button is placed against the section (its heading line), not against the rows */
	margin-inline-start: 36px;
}

.task-view.task-view.vox-v3 .related-tasks .tasks {
	margin: 0;
	padding: 0;
}

.task-view.task-view.vox-v3 .task-relations > .button {
	top: 0;
	margin: 0;   /* Vikunja pulls it up with a negative margin */
	height: 32px;
	padding: 0 12px;
	background: var(--vt-btn);
	border: 0;
	border-radius: var(--vt-radius);
	box-shadow: none;
	color: var(--vt-ink);
	font-size: var(--vt-fs-body);
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

.task-view.task-view.vox-v3 .task-relations > .button svg {
	display: none;
}

.task-view.task-view.vox-v3 .task-relations > .button::after {
	content: "Додати";
}

.task-view.task-view.vox-v3 .task-relations > .button:hover {
	background: var(--vt-btn-hover);
}

.task-view.task-view.vox-v3 .related-tasks .title {
	display: block;
	margin: 0 0 2px;
	font-size: 12px;
	font-weight: 400;
	color: var(--vt-muted);
}

.task-view.task-view.vox-v3 .related-tasks .task {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 34px;
	border-bottom: 1px solid var(--vt-line);
}

.task-view.task-view.vox-v3 .related-tasks .task:last-child {
	border-bottom: 0;
}

.task-view.task-view.vox-v3 .related-tasks .task a {
	color: inherit;
}

@media (pointer: coarse), (max-width: 769px) {
	.task-view.task-view.vox-v3 .description .vox-desc-edit,
	.task-view.task-view.vox-v3 .task-relations > .button {
		min-height: 44px;
	}

	.task-view.task-view.vox-v3 .related-tasks .task {
		min-height: 44px;
	}
}

/* ---- piece 6: the comments pane (vox-ui.js commentsV3Step). Desktop: `.comments-container` is a 380 px pane at the right, under the top bar, full height of the
   view, scrolling on its own; the modal grows to 1080 px. Phone: it follows the content in the same column. Heading + order toggle, the compose field on
   top, then comments newest first: 32 px avatar, name + time, a white bubble, text actions that are always visible. Fragile: `.comments-container`,
   `.comments-heading`, `.comment-sort-button`, `.comment` (and its `.media-left`, `.comment-info`, `.tiptap__editor`, `ul.tiptap__editor-actions`), the new-comment
   form `.comment > .media-content > .form`. ---- */
.task-view.task-view.vox-v3 {
	--vt-pane: #f6f6f6;
}

:root.dark .task-view.task-view.vox-v3 {
	--vt-pane: #1a1a1a;
}

.task-view.task-view.vox-v3 .comments-container {
	box-sizing: border-box;
	display: flex;
	flex: 0 0 100%;
	flex-direction: column;
	flex-wrap: nowrap;   /* the base `.task-view` wraps; with the fixed height of the desktop pane a long comment would start a second COLUMN (heading left, list right) */
	min-width: 0;
	gap: 14px;
	flex: 0 0 calc(100% + 2 * var(--vt-s4));
	margin: 16px calc(-1 * var(--vt-s4)) calc(-1 * var(--vt-s4));
	padding: 16px var(--vt-s4);
	background: var(--vt-pane);
	border-top: 1px solid var(--vt-line);
}

.task-view.task-view.vox-v3 .comments-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 28px;
	margin: 0;
	font-family: var(--vt-font-display) !important;
	font-size: var(--vt-fs-section) !important;
	font-weight: 500 !important;
	letter-spacing: 0;
	text-transform: none;
	color: var(--vt-ink);
}

.task-view.task-view.vox-v3 .comments-heading > span {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.task-view.task-view.vox-v3 .comments-heading .icon {
	width: 20px;
	height: 20px;
	color: var(--vt-ink);
}

.task-view.task-view.vox-v3.vox-cmt-ord-on .comment-sort-button {
	display: none;
}

.task-view.task-view.vox-v3 .vox-cmt-order {
	height: 28px;
	padding: 0 8px;
	border: 0;
	border-radius: var(--vt-radius);
	background: transparent;
	font: inherit;
	font-size: 12px;
	font-weight: 400;
	color: var(--vt-muted);
	cursor: pointer;
}

.task-view.task-view.vox-v3 .vox-cmt-order:hover {
	background: var(--vt-btn-hover);
	color: var(--vt-ink);
}

.task-view.task-view.vox-v3 .comments {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.task-view.task-view.vox-v3 .comments .comment {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	column-gap: 10px;
	margin: 0;
	padding: 0;
	border: 0;
}

.task-view.task-view.vox-v3 .comments .comment > .media-content {
	width: 100%;
	max-width: none;   /* Vikunja caps it at 75% */
}

/* the compose field goes on top; no avatar */
.task-view.task-view.vox-v3 .comments .comment:has(> .media-content > .form) {
	order: -1;
	grid-template-columns: minmax(0, 1fr);
	padding: 0;
	border: 0;
}

.task-view.task-view.vox-v3 .comments .comment:has(> .media-content > .form) > .media-left {
	display: none !important;
}

.task-view.task-view.vox-v3 .comments .comment > .media-left {
	display: block !important;
	width: 32px;
	height: 32px;
	margin: 0;
}

.task-view.task-view.vox-v3 .comments .comment > .media-left .image.is-avatar {
	width: 32px !important;
	height: 32px !important;
}

.task-view.task-view.vox-v3 .comments .comment-info {
	padding-inline-end: 0;
	min-height: 20px;
	gap: 8px;
}

.task-view.task-view.vox-v3 .comments .comment-info > img,
.task-view.task-view.vox-v3 .comments .comment-info .comment-permalink {
	display: none;
}

.task-view.task-view.vox-v3 .comments .comment-info > strong,
.task-view.task-view.vox-v3 .comments .vox-cmt-who strong {
	font-size: 13px;
}

.task-view.task-view.vox-v3 .comments .comment-info > span,
.task-view.task-view.vox-v3 .comments .vox-cmt-who .vox-cmt-when {
	font-size: 12px;
	color: var(--vt-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.task-view.task-view.vox-v3 .comments .comment.vox-cmt-imp .vox-cmt-when::after {
	content: " · з Asana";
	text-decoration: none;
	display: inline-block;
}

/* the bubble */
.task-view.task-view.vox-v3 .comments .comment:not(:has(> .media-content > .form)) .tiptap__editor {
	margin-top: 4px;
	padding: 10px 12px;
	background: var(--vt-surface);
	border: 1px solid var(--vt-card-line);
	border-radius: var(--vt-radius);
	font-size: var(--vt-fs-body);
	line-height: 1.5;
	overflow-wrap: anywhere;
}

/* the actions: text buttons under the bubble, always visible, «Відповісти • Змінити • Видалити» */
.task-view.task-view.vox-v3 .comments .comment .tiptap:not(:has(> .tiptap__wrapper-is-editing)) > .tiptap__editor-actions {
	position: static;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 4px;
	height: auto;
	margin: 2px 0 0;
	opacity: 1 !important;
}

.task-view.task-view.vox-v3 .comments .comment .tiptap:not(:has(> .tiptap__wrapper-is-editing)) > .tiptap__editor-actions li[data-vox-role="reply"] {
	order: 0;
}

.task-view.task-view.vox-v3 .comments .comment .tiptap:not(:has(> .tiptap__wrapper-is-editing)) > .tiptap__editor-actions li[data-vox-role="edit"] {
	order: 1;
}

.task-view.task-view.vox-v3 .comments .comment .tiptap:not(:has(> .tiptap__wrapper-is-editing)) > .tiptap__editor-actions li[data-vox-role="del"] {
	order: 2;
}

.task-view.task-view.vox-v3 .comments .comment .tiptap:not(:has(> .tiptap__wrapper-is-editing)) > .tiptap__editor-actions li[data-vox-role="edit"]::before,
.task-view.task-view.vox-v3 .comments .comment .tiptap:not(:has(> .tiptap__wrapper-is-editing)) > .tiptap__editor-actions li[data-vox-role="del"]::before {
	content: "•";
	margin-inline-end: 4px;
	font-size: 12px;
	color: var(--vt-muted);
	user-select: none;
}

.task-view.task-view.vox-v3 .comments .comment .tiptap:not(:has(> .tiptap__wrapper-is-editing)) > .tiptap__editor-actions li {
	display: inline-flex;
	align-items: center;
}

.task-view.task-view.vox-v3 .comments .comment .tiptap:not(:has(> .tiptap__wrapper-is-editing)) > .tiptap__editor-actions {
	padding: 0;
}

.task-view.task-view.vox-v3 .comments .comment .tiptap:not(:has(> .tiptap__wrapper-is-editing)) > .tiptap__editor-actions li::after {
	content: none !important;   /* Vikunja's own separator; ours is the «•» before the second and third */
}

.task-view.task-view.vox-v3 .comments .comment .tiptap:not(:has(> .tiptap__wrapper-is-editing)) > .tiptap__editor-actions button {
	height: 28px;
	padding: 0 4px;
	font-size: 12px;
	color: var(--vt-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.task-view.task-view.vox-v3 .comments .comment .tiptap:not(:has(> .tiptap__wrapper-is-editing)) > .tiptap__editor-actions button:hover {
	color: var(--vt-ink);
}

/* the compose field: a one-line box that opens to the editor; «Зберегти» and «Скасувати» only then */
.task-view.task-view.vox-v3 .comments .form .tiptap__editor {
	background: var(--vt-surface);
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.task-view.task-view.vox-v3 .comments .form:not(:focus-within):has(.ProseMirror p.is-editor-empty:only-child) .tiptap__editor {
	min-height: 40px !important;
	padding: 10px 12px !important;
}

.task-view.task-view.vox-v3 .comments .form:not(:focus-within):has(.ProseMirror p.is-editor-empty:only-child) .tiptap__editor:hover {
	border-color: var(--vt-muted);
}

.task-view.task-view.vox-v3 .comments .form .ProseMirror p.is-editor-empty:first-child::before {
	content: "Написати коментар…" !important;
}

.task-view.task-view.vox-v3 .comments .form .field:has(> button.is-primary) {
	display: flex;
	align-items: center;
	gap: 8px;
}

.task-view.task-view.vox-v3 .comments .form:not(:focus-within):has(.ProseMirror p.is-editor-empty:only-child) .field:has(> button.is-primary) {
	display: none;
}

.task-view.task-view.vox-v3 .vox-cmt-cancel {
	height: 32px;
	padding: 0 12px;
	border: 0;
	border-radius: var(--vt-radius);
	background: transparent;
	font: inherit;
	font-weight: 500;
	color: var(--vt-ink);
	cursor: pointer;
}

.task-view.task-view.vox-v3 .vox-cmt-cancel:hover {
	background: var(--vt-btn);
}

/* nothing in a comment may widen the pane: every box in the chain can shrink, long strings break, media fits, the toolbar wraps */
.task-view.task-view.vox-v3 .comments-container > *,
.task-view.task-view.vox-v3 .comments .comment,
.task-view.task-view.vox-v3 .comments .comment > .media-content,
.task-view.task-view.vox-v3 .comments .form,
.task-view.task-view.vox-v3 .comments .tiptap,
.task-view.task-view.vox-v3 .comments .tiptap__editor,
.task-view.task-view.vox-v3 .comments .ProseMirror {
	min-width: 0;
	max-width: 100%;
}

.task-view.task-view.vox-v3 .comments-container > * {
	flex-shrink: 0;   /* the pane scrolls vertically; a child never squeezes into the height */
}

.task-view.task-view.vox-v3 .comments .ProseMirror,
.task-view.task-view.vox-v3 .comments .ProseMirror blockquote,
.task-view.task-view.vox-v3 .comments .ProseMirror a {
	overflow-wrap: anywhere;
}

.task-view.task-view.vox-v3 .comments .ProseMirror img,
.task-view.task-view.vox-v3 .comments .ProseMirror table,
.task-view.task-view.vox-v3 .comments .ProseMirror pre {
	max-width: 100%;
}

.task-view.task-view.vox-v3 .comments .ProseMirror img {
	height: auto;
}

.task-view.task-view.vox-v3 .comments .ProseMirror table,
.task-view.task-view.vox-v3 .comments .ProseMirror pre {
	display: block;
	overflow-x: auto;   /* a wide table or code block scrolls inside its comment */
}

.task-view.task-view.vox-v3 .comments-container .editor-toolbar {
	flex-wrap: wrap;
	max-width: 100%;
}

@media (min-width: 770px) {
	.task-detail-view-modal .modal-content:has(.task-view.vox-v3),
	.task-view-container.is-modal:has(.task-view.vox-v3),
	html.vox-v3-modal .task-detail-view-modal .modal-content,
	html.vox-v3-modal .task-view-container.is-modal {
		max-width: 1080px !important;   /* `vox-v3-modal` (vox-ui.js v3ModalStep) = the same box from the first frame to the end of the fade */
	}

	html.vox-v3-modal .task-detail-view-modal .modal-content {
		min-height: 676px;   /* the loaded view's own height (min-height 640 + paddings), so the box does not grow while the task loads */
	}

	.task-view.task-view.vox-v3 {
		max-width: 1080px;
		min-height: 640px;
		padding-inline-end: calc(380px + var(--vt-s5)) !important;   /* Vikunja's later-loading `.is-modal .task-view[data-v]` (padding 13px) beat this in the modal, so the title and the fields ran under the pane */
	}

	.task-view.task-view.vox-v3 .comments-container {
		position: absolute;
		top: 56px;
		inset-inline-end: 0;
		bottom: 0;
		flex: none;
		width: 380px;
		margin: 0;
		padding: 20px;
		border-top: 0;
		border-inline-start: 1px solid var(--vt-line);
		overflow-y: auto;
	}
}

@media (max-width: 769px) {
	/* full-bleed = exactly the screen. It was the view's content width + 2 x --vt-s4, but the view is narrower than the screen (the page's own side
	   padding) and its padding is Vikunja's 0.5rem, not --vt-s4 (its later-loading `.task-view[data-v]` rule wins), so the block ended 2 px past the
	   screen edge and the page scrolled sideways (#990). The view is centred, so `50% - 50vw` is its distance to the screen edge. */
	.task-view.task-view.vox-v3 .comments-container {
		flex: 0 0 100vw;
		margin-inline: calc(50% - 50vw);
	}
}

@media (pointer: coarse), (max-width: 769px) {
	.task-view.task-view.vox-v3 .vox-cmt-order,
	.task-view.task-view.vox-v3 .vox-cmt-cancel {
		min-height: 44px;
	}

	.task-view.task-view.vox-v3 .comments .comment .tiptap:not(:has(> .tiptap__wrapper-is-editing)) > .tiptap__editor-actions button {
		height: 44px;
		padding: 0 6px;
	}
}


/* ==========================================================================
 * 14. LANDINGS (#918, vox-landings.js, docs/landings.md "Landings buttons"): the «Сторінка» block above the description on cards of «Лендинги»
 * and the settings window. The block sits where «Документи» sits (never both: different projects); the windows reuse .vox-wp-* above.
 * ========================================================================== */

.task-view.task-view .vox-landings {
	order: 5;   /* as .vox-docs: after the action row, before the description */
	flex: 0 0 100%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: var(--vt-s2);
	margin-top: var(--vt-s3);
}

.task-view.task-view.vox-v3 .vox-landings {
	order: 6;
}

.vox-land {
	display: flex;
	flex-direction: column;
	gap: var(--vt-s2);
	padding: var(--vt-s3) 14px;
	background: var(--vt-surface);
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
}

.vox-land-top,
.vox-land-meta,
.vox-land-links,
.vox-land-acts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--vt-s2);
	min-width: 0;
}

.vox-land-meta {
	column-gap: var(--vt-s3);
}

.vox-land-addr {
	min-width: 0;
	overflow-wrap: anywhere;
	font-weight: 500;
	color: var(--vt-ink);
}

.vox-land-addr.is-empty {
	font-weight: 400;
	color: var(--vt-muted);
}

.vox-land-links a,
.vox-land-msg a {
	color: var(--vt-ink);
	text-decoration: underline;
	overflow-wrap: anywhere;
}

.vox-pill-review {
	background: var(--vt-warn-bg);   /* «На перевірці»: waiting for the owner */
	color: var(--vt-accent-ink);
}

.vox-land-acts {
	margin-top: var(--vt-s1);
}

.vox-land-acts .vox-sec:disabled {
	color: var(--vt-muted);
	cursor: not-allowed;
}

.vox-land-work {
	display: flex;
	align-items: center;
	gap: var(--vt-s3);
	color: var(--vt-muted);
}

.vox-land-msg {
	color: var(--vt-pub-ink);
	overflow-wrap: anywhere;
}

.vox-land-msg.is-err {
	color: var(--vt-accent-ink);
}

.vox-land-input {
	box-sizing: border-box;
	width: 100%;
	min-height: 40px;
	padding: 0 var(--vt-s3);
	background: var(--vt-surface);
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	color: var(--vt-ink);
	font: inherit;
}

.vox-land-input:focus {
	outline: 2px solid var(--vt-ink);
	outline-offset: 1px;
}

.vox-land-confirm-addr {
	overflow-wrap: anywhere;
	font-weight: 500;
}

@media (max-width: 769px) {
	.vox-land-acts .vox-go,
	.vox-land-acts .vox-sec {
		min-height: var(--vt-tap);
	}
}

/* 14b. Landings: an address that is not set up yet (#918, docs/landings.md section 13): a plain-words note and the checklist, shown to the whole team */
.vox-land-wait {
	margin: var(--vt-s2) 0 0;
	padding: var(--vt-s2) var(--vt-s3);
	border-radius: var(--vt-radius);
	background: var(--vt-surface);
	border: 1px solid var(--vt-line);
	color: var(--vt-ink);
	font-size: var(--vt-fs-meta);
	line-height: var(--vt-lh);
}

.vox-land-check {
	margin: var(--vt-s1) 0 0;
	padding: 0;
	list-style: none;
}

.vox-land-check .is-done {
	color: var(--vt-muted);
}

.vox-land-tick {
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--vt-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.vox-land-tick:hover {
	color: var(--vt-accent-ink);
}

.vox-land-reason {
	margin: var(--vt-s1) 0 0;
	color: var(--vt-ink);
	font-weight: 600;
}

/* Social preview mock (vox-landings.js, docs/landings.md section 11): how the page looks when shared. Stable hooks: .vox-land-mock*, data-file. */
.vox-land-mocks {
	display: flex;
	flex-wrap: wrap;
	gap: var(--vt-s3);
}

.vox-land-mock {
	box-sizing: border-box;
	flex: 0 1 360px;
	min-width: 0;
	overflow: hidden;
	background: var(--vt-surface);
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
}

.vox-land-mock-img {
	aspect-ratio: 1200 / 630;
	background: var(--vt-pane);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--vt-muted);
	font-size: var(--vt-fs-meta);
}

.vox-land-mock-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vox-land-mock-body {
	display: flex;
	flex-direction: column;
	gap: var(--vt-s1);
	padding: var(--vt-s2) var(--vt-s3);
}

.vox-land-mock-host {
	color: var(--vt-muted);
	font-size: var(--vt-fs-meta);
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.vox-land-mock-title {
	font-weight: 600;
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.vox-land-mock-desc {
	color: var(--vt-muted);
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.vox-land-mock-title.is-empty,
.vox-land-mock-desc.is-empty {
	font-weight: 400;
	font-style: italic;
}

/* the per-file fields in the settings window */
.vox-land-file {
	display: flex;
	flex-direction: column;
	gap: var(--vt-s2);
	margin: var(--vt-s3) 0 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.vox-land-area {
	min-height: 72px;
	padding: var(--vt-s2) var(--vt-s3);
	resize: vertical;
}

select.vox-land-input {
	padding-right: var(--vt-s2);
}

/* «Цей файл замінює:» (vox-landings.js, docs/landings.md section 19): an upload that waits for the person. Stable hooks: .vox-land-ask*, data-att, data-target. */
.vox-land-ask {
	display: flex;
	flex-direction: column;
	gap: var(--vt-s2);
	padding: var(--vt-s3);
	background: var(--vt-warn-bg);
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
}

.vox-land-ask-title {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.vox-land-ask-lead {
	color: var(--vt-muted);
}

.vox-land-ask-btns {
	display: flex;
	flex-wrap: wrap;
	gap: var(--vt-s2);
}

.vox-land-ask-btns .vox-sec {
	min-height: var(--vt-tap);
	overflow-wrap: anywhere;
}

/* «Повернути попередню версію» under the social mock (vox-landings.js). Stable hook: .vox-land-undo, data-undo. */
.vox-land-mock-body .vox-land-undo {
	align-self: flex-start;
	margin-top: var(--vt-s1);
	min-height: var(--vt-tap);
}


/* ==========================================================================
   Task modal: one open / close transition (#1012). Vikunja's Modal is a <dialog> that fades AS A WHOLE (its own `background: #000c`, `opacity` .15s on
   `[open]:not([data-closing])`); `data-closing` is set for 150 ms before the dialog goes. Two things flickered: our old 220 ms fade on `.modal-content` ran
   on top of the dialog's (two opacities multiplied, a see-through card, different end times), and the task view is unmounted the moment the route
   leaves, so the empty slot showed Vikunja's fallback («Cancel» + «Do it!») in an empty card. Now the dialog never fades; the backdrop is its `::before`
   and the card is `.modal-container` (the card and the × together), both on the same keyframes: 160 ms ease-out in, 120 ms ease-in out (inside
   Vikunja's 150 ms). The unmounted view is put back, inert, by vox-ui.js `modalGhostStep` until the dialog goes. Fragile: `dialog.modal-dialog` with
   `[open]` / `[data-closing]`, `.modal-container`, `.modal-content > .modal-header|.content|.actions` (the slot fallback), `.vox-modal-wait` (vox-ui.js).
   ========================================================================== */
dialog.task-detail-view-modal.task-detail-view-modal {
	background: transparent !important;   /* the dark layer is ::before, so it fades on its own */
	opacity: 1 !important;   /* the dialog itself never fades: a faded dialog is a see-through card */
	transition: none !important;
}

dialog.task-detail-view-modal::before {
	content: "";
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .8);   /* Vikunja's #000c */
	pointer-events: none;
}

@keyframes vox-modal-lock { from, to { overflow-y: hidden; } }
@keyframes vox-modal-in-backdrop { from { opacity: 0; overflow-y: hidden; } to { opacity: 1; overflow-y: hidden; } }
@keyframes vox-modal-out-backdrop { from { opacity: 1; overflow-y: hidden; } to { opacity: 0; overflow-y: hidden; } }
/* `overflow-y: hidden` in both keyframes (a discrete property) = no scrollbar while the card moves; the scroll container's overflow is its own again afterwards */
@keyframes vox-modal-in-card { from { opacity: 0; transform: translateY(8px); overflow-y: hidden; } to { opacity: 1; transform: none; overflow-y: hidden; } }
@keyframes vox-modal-out-card { from { opacity: 1; transform: none; overflow-y: hidden; } to { opacity: 0; transform: translateY(8px); overflow-y: hidden; } }

dialog.task-detail-view-modal[open]:not([data-closing]) {
	animation: vox-modal-lock 160ms;   /* the dialog is a scroll container too (desktop): the card's 8px rise would make it scroll for a moment */
}

dialog.task-detail-view-modal[data-closing] {
	animation: vox-modal-lock 120ms forwards;   /* held until the dialog goes: the card's end state (8px down) would make it scroll */
}

dialog.task-detail-view-modal[open]:not([data-closing])::before {
	animation: vox-modal-in-backdrop 160ms ease-out backwards;
}

dialog.task-detail-view-modal[open]:not([data-closing]) .modal-container {
	animation: vox-modal-in-card 160ms ease-out backwards;   /* `backwards`: the first frame is already the "from" frame */
}

dialog.task-detail-view-modal[data-closing]::before {
	animation: vox-modal-out-backdrop 120ms ease-in forwards;
}

dialog.task-detail-view-modal[data-closing] .modal-container {
	animation: vox-modal-out-card 120ms ease-in forwards;
}

/* a v3 task: the backdrop fades in at once, the card stays invisible until its layout is built (vox-ui.js v3ModalStep clears `vox-modal-wait`, 900 ms at
   most); its animation starts then. After 300 ms of waiting a quiet «Завантаження…» shows on the backdrop (it goes when the wait ends). */
html.vox-modal-wait dialog.task-detail-view-modal:not([data-closing]) .modal-container {
	animation: none;
	opacity: 0;
}

html.vox-modal-wait dialog.task-detail-view-modal:not([data-closing]) {
	animation: none;
	overflow-y: hidden !important;   /* the dialog's own scrollbar would show over the board while the card is invisible; the lock animation then takes over at the same moment as the card's */
}

@keyframes vox-modal-loading { from { opacity: 0; } to { opacity: 1; } }

html.vox-modal-wait dialog.task-detail-view-modal:not([data-closing])::after {
	content: "Завантаження…";
	position: fixed;
	inset: 50% 0 auto;
	text-align: center;
	font-size: 12px;
	font-weight: 400;
	color: rgba(255, 255, 255, .7);   /* "muted" on the dark layer; --vt-muted is for light surfaces */
	pointer-events: none;
	animation: vox-modal-loading 160ms ease-out 300ms backwards;
}

/* the empty slot's fallback (Vikunja's stock confirm), also what shows if the view is gone before the ghost is put back */
.task-detail-view-modal .modal-content > .modal-header,
.task-detail-view-modal .modal-content > .content,
.task-detail-view-modal .modal-content > .actions {
	display: none !important;
}

/* the view that Vikunja unmounted, kept for the fade-out (vox-ui.js modalGhostStep) */
.task-detail-view-modal .vox-modal-ghost {
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	@keyframes vox-modal-in-card { from { opacity: 0; overflow-y: hidden; } to { opacity: 1; overflow-y: hidden; } }
	@keyframes vox-modal-out-card { from { opacity: 1; overflow-y: hidden; } to { opacity: 0; overflow-y: hidden; } }

	dialog.task-detail-view-modal[open]:not([data-closing]),
	dialog.task-detail-view-modal[data-closing],
	dialog.task-detail-view-modal[open]:not([data-closing])::before,
	dialog.task-detail-view-modal[open]:not([data-closing]) .modal-container,
	dialog.task-detail-view-modal[data-closing]::before,
	dialog.task-detail-view-modal[data-closing] .modal-container {
		animation-duration: 80ms;
		animation-timing-function: linear;
	}
}

/* ==========================================================================
 * 15. «ОПУБЛІКОВАНО · додає Єнот» (TaskLinks.dc.html, #1028, piece E, vox-docs.js `groupNode`). Under `.vox-v3` only; colours are tokens (--vt-btn, --vt-line,
 * --vt-up, --vt-accent-ink), so the dark theme follows; the dots are the data colours of DESIGN.md (set inline by the script).
 * ========================================================================== */

.task-view.vox-v3 .vox-pub {
	display: flex;
	flex-direction: column;
	gap: var(--vt-s2);
	margin-top: var(--vt-s3);
}

.task-view.vox-v3 .vox-pub-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 28px;
}

.task-view.vox-v3 .vox-pub-label {
	font-size: var(--vt-fs-label);
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--vt-muted);
}

.task-view.vox-v3 .vox-pub-by {
	letter-spacing: 0;
	text-transform: none;
}

.task-view.vox-v3 .vox-pub-all {
	display: inline-grid;     /* the three labels share one cell: the button keeps the width of the longest, the text never jumps */
	align-items: center;
	min-height: 28px;
	padding: 0 8px;
	background: transparent;
	border: 0;
	border-radius: var(--vt-radius);
	color: var(--vt-muted);
	font: inherit;
	font-size: 12px;
	cursor: pointer;
}

.task-view.vox-v3 .vox-pub-all-t {
	grid-area: 1 / 1;
	visibility: hidden;
	text-align: right;
	white-space: nowrap;
}

.task-view.vox-v3 .vox-pub-all[data-state="idle"] .vox-pub-all-t[data-s="idle"],
.task-view.vox-v3 .vox-pub-all[data-state="done"] .vox-pub-all-t[data-s="done"],
.task-view.vox-v3 .vox-pub-all[data-state="fail"] .vox-pub-all-t[data-s="fail"] {
	visibility: visible;
}

.task-view.vox-v3 .vox-pub-all[data-state="done"] .vox-pub-all-t[data-s="done"] {
	color: var(--vt-up);
}

.task-view.vox-v3 .vox-pub-all[data-state="done"] .vox-pub-all-t[data-s="done"]::before {
	content: "✓ ";
}

.task-view.vox-v3 .vox-pub-all[data-state="fail"] .vox-pub-all-t[data-s="fail"] {
	color: var(--vt-accent-ink);
}

.task-view.vox-v3 .vox-pub-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.task-view.vox-v3 .vox-chip {
	display: inline-flex;
	align-items: stretch;
	height: 32px;
	background: var(--vt-btn);
	border-radius: var(--vt-radius);
	overflow: hidden;
}

.task-view.vox-v3 .vox-chip-open {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 10px;
	color: var(--vt-ink);
	font-size: 13px;
	text-decoration: none;
	white-space: nowrap;
}

.task-view.vox-v3 .vox-chip-dot {
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.task-view.vox-v3 .vox-chip-lang {
	font-family: var(--vt-font-mono);
	font-size: 11px;
	color: var(--vt-muted);
}

.task-view.vox-v3 .vox-chip-date {
	font-size: 12px;
	color: var(--vt-muted);
}

.task-view.vox-v3 .vox-chip-open svg {
	flex: none;
	color: var(--vt-muted);
}

.task-view.vox-v3 .vox-chip-copy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 32px;                /* fixed: the tick and the cross take the icon's place, the chip never changes width */
	padding: 0;
	background: transparent;
	border: 0;
	border-left: 1px solid var(--vt-line);
	color: var(--vt-muted);
	cursor: pointer;
}

.task-view.vox-v3 .vox-chip-copy[data-state="done"] {
	color: var(--vt-up);
}

.task-view.vox-v3 .vox-chip-copy[data-state="fail"] {
	color: var(--vt-accent-ink);
}

@media (hover: hover) {
	.task-view.vox-v3 .vox-pub-all:hover,
	.task-view.vox-v3 .vox-chip-open:hover,
	.task-view.vox-v3 .vox-chip-copy:hover {
		background: var(--vt-btn-hover);
	}
}

@media (max-width: 769px) {
	.task-view.vox-v3 .vox-chip {
		height: var(--vt-tap);
	}

	.task-view.vox-v3 .vox-chip-copy {
		width: var(--vt-tap);
	}

	.task-view.vox-v3 .vox-pub-all {
		min-height: var(--vt-tap);
	}
}

/* ==========================================================================
 * NEW TASK ON THE BOARD (vox-board-add.js, docs/vikunja-theme.md "New task on the board"): «+ Додати» under the column header, and the draft
 * card it opens in its place, where the new card lands (Vikunja puts a new task first in its column). The draft is drawn like a card (13/400
 * title, the avatar slot top right, the date slot in the meta row) so it reads as the card it becomes. Vikunja's own footer is hidden only once
 * the script has found the query client (`.vox-add-on`); without it the stock «+ Додати» stays. Our own classes; fragile: `.bucket-footer`.
 * ========================================================================== */
.kanban.vox-add-on .bucket-footer {
	display: none !important;   /* Vikunja's scoped rule shows it as flex */
}

.kanban.vox-add-on .bucket > .bucket-header,
.kanban .bucket > .vox-add,
.kanban .bucket .vox-draft {   /* under «+ Додати», or among the cards (in .tasks) */
	flex-shrink: 0;   /* the column is a fixed-height flex box: only the card list (.tasks) gives way when the draft opens */
}

.kanban .bucket > .vox-add {
	display: flex;
	align-items: center;
	gap: 6px;
	box-sizing: border-box;
	width: calc(100% - 13px);
	min-height: var(--vt-tap);
	margin: 2px 6.5px 0;   /* the cards' own inset (li.task-item padding 6.5px) */
	padding: 0 8px;
	border: 0;
	border-radius: var(--vt-radius);
	background: transparent;
	font: inherit;
	font-size: var(--vt-fs-body);
	color: var(--vt-muted);
	cursor: pointer;
	text-align: left;
}

.kanban .bucket > .vox-add[hidden] {
	display: none;
}

.kanban .bucket > .vox-add:disabled {
	opacity: .45;
	cursor: default;
	pointer-events: none;
}

@media (hover: hover) {
	.kanban .bucket > .vox-add:hover {
		background: var(--vt-line);
		color: var(--vt-ink);
	}
}

.kanban .bucket > .vox-add:focus-visible {
	outline: 2px solid var(--vt-ink);
	outline-offset: -2px;
}

.kanban .bucket .vox-draft {   /* under «+ Додати», or among the cards (in .tasks) */
	position: relative;
	z-index: 3;   /* its picker opens over the cards below */
	box-sizing: border-box;
	width: calc(100% - 13px);
	margin: 6.5px 6.5px 3.25px;
	padding: 8px 10px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	background: var(--vt-surface);
	border: 1px solid var(--vt-ink);   /* a card in the making: the only card with a dark edge (Asana's idea, our line) */
	border-radius: 4px;   /* what the cards really render (Vikunja's scoped radius wins over --vt-radius on .kanban-card) */
	color: var(--vt-ink);
}

.vox-draft .vox-draft-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.vox-draft .vox-draft-title {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	height: auto;
	margin: 0;
	padding: 1.5px 0 0;   /* the text starts where the card's h3 text does */
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline: 0;
	resize: none;
	overflow: hidden;
	font: inherit;
	font-size: var(--vt-fs-body);
	font-weight: 400;
	line-height: var(--vt-lh);
	color: var(--vt-ink);
}

.vox-draft .vox-draft-title::placeholder {
	color: var(--vt-muted);
	opacity: 1;
}

/* the avatar slot: where the card's avatar sits; empty = a dashed circle */
.vox-draft .vox-draft-who {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	margin: 0 6.5px 0 0;   /* the card's avatar sits 17.5px from its right edge */
	padding: 0;
	border: 1px dashed color-mix(in srgb, var(--vt-muted) 70%, transparent);
	border-radius: 11px;
	background: transparent;
	color: var(--vt-muted);
	cursor: pointer;
}

.vox-draft .vox-draft-who.is-set {
	border: 0;
}

.vox-draft .vox-draft-who .vox-draft-av + .vox-draft-av {
	margin-left: -6px;
	box-shadow: 0 0 0 2px var(--vt-surface);
}

.vox-draft .vox-draft-av,
.vox-dpop .vox-draft-av {
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
}

.vox-draft .vox-draft-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 22px;
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
}

/* the date slot: where the card's «до ДД.ММ.РРРР» sits; empty = a dashed pill */
.vox-draft .vox-draft-due {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 22px;
	margin-left: -6px;
	padding: 0 7px 0 6px;
	border: 1px dashed color-mix(in srgb, var(--vt-muted) 70%, transparent);
	border-radius: 11px;
	background: transparent;
	font: inherit;
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
	cursor: pointer;
}

.vox-draft .vox-draft-due.is-set {
	border-color: transparent;   /* then it reads exactly like the card's date: Plex 12, muted */
}

.vox-draft .vox-draft-due.is-late {
	color: var(--vt-accent-ink);
}

@media (hover: hover) {
	.vox-draft .vox-draft-who:hover,
	.vox-draft .vox-draft-due:hover {
		border-color: var(--vt-ink);
		border-style: solid;
		color: var(--vt-ink);
	}

	.vox-draft .vox-draft-who.is-set:hover {
		box-shadow: 0 0 0 1px var(--vt-ink);
	}
}

.vox-draft .vox-draft-who:focus-visible,
.vox-draft .vox-draft-due:focus-visible,
.vox-draft .vox-draft-go:focus-visible {
	outline: 2px solid var(--vt-ink);
	outline-offset: 1px;
}

.vox-draft .vox-draft-who[aria-expanded="true"],
.vox-draft .vox-draft-due[aria-expanded="true"] {
	border-style: solid;
	border-color: var(--vt-ink);
	color: var(--vt-ink);
}

.vox-draft .vox-draft-sp {
	flex: 1 1 auto;
}

/* «Enter — створити» once there is a title (a keyboard); «Створити» instead on a touch screen */
.vox-draft .vox-draft-hint,
.vox-draft .vox-draft-go {
	display: none;
}

.vox-draft.has-text .vox-draft-hint {
	display: inline;
	font-size: var(--vt-fs-label);
	white-space: nowrap;
}

.vox-draft .vox-draft-go {
	height: 28px;
	padding: 0 10px;
	border: 0;
	border-radius: var(--vt-radius);
	background: var(--vt-ink);
	font: inherit;
	font-size: var(--vt-fs-meta);
	color: var(--vt-surface);
	cursor: pointer;
}

@media (pointer: coarse) {
	.vox-draft.has-text .vox-draft-hint {
		display: none;
	}

	.vox-draft.has-text .vox-draft-go {
		display: inline-block;
	}
}

.vox-draft.is-busy {
	opacity: .6;
}

.vox-draft .vox-draft-note:empty {
	display: none;
}

.vox-draft .vox-draft-note {
	font-size: var(--vt-fs-meta);
	color: var(--vt-accent-ink);
}

/* the pickers: the labels popover's look (.vox-lpop), under the draft, as wide as the card */
.vox-dpop {
	position: absolute;
	top: calc(100% + 4px);
	left: -1px;
	right: -1px;
	z-index: 30;
	display: flex;
	flex-direction: column;
	max-height: 340px;
	background: var(--vt-surface);
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	box-shadow: var(--vt-popover-shadow);
	color: var(--vt-ink);
	font-size: var(--vt-fs-body);
}

.vox-dpop.is-due {
	max-height: none;
}

.vox-dpop .vox-dsearch {
	flex: none;
	box-sizing: border-box;
	width: 100%;
	height: 36px;
	padding: 0 10px;
	background: var(--vt-surface);
	border: 0;
	border-bottom: 1px solid var(--vt-line);
	border-radius: var(--vt-radius) var(--vt-radius) 0 0;
	box-shadow: none;
	font: inherit;
	color: var(--vt-ink);
	outline: 0;
}

.vox-dpop .vox-dsearch::placeholder {
	color: var(--vt-muted);
}

.vox-dpop .vox-dlist {
	flex: 1 1 auto;
	margin: 0;
	padding: 4px;
	overflow-y: auto;
	list-style: none;
}

.vox-dpop .vox-drow {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	margin: 0;
	padding: 0 8px;
	border-radius: var(--vt-radius);
	cursor: pointer;
}

.vox-dpop .vox-drow.is-active {
	background: color-mix(in srgb, var(--vt-ink) 6%, transparent);
	outline: 1px solid var(--vt-line);
	outline-offset: -1px;
}

@media (hover: hover) {
	.vox-dpop .vox-drow:hover {
		background: color-mix(in srgb, var(--vt-ink) 6%, transparent);
	}
}

.vox-dpop .vox-dcheck {
	flex: none;
	position: relative;
	box-sizing: border-box;
	width: 14px;
	height: 14px;
	border: 1px solid var(--vt-muted);
	border-radius: var(--vt-radius);
}

.vox-dpop .vox-drow[aria-selected="true"] .vox-dcheck {
	background: var(--vt-ink);
	border-color: var(--vt-ink);
}

.vox-dpop .vox-drow[aria-selected="true"] .vox-dcheck::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 3px;
	height: 7px;
	border: solid var(--vt-surface);
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg);
}

.vox-dpop .vox-dname {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vox-dpop .vox-dme {
	color: var(--vt-muted);
}

.vox-dpop .vox-dempty {
	padding: 8px;
	color: var(--vt-muted);
	list-style: none;
}

.vox-dpop .vox-dquick {
	display: flex;
	flex-direction: column;
	padding: 4px;
	border-bottom: 1px solid var(--vt-line);
}

.vox-dpop .vox-dq,
.vox-dpop .vox-dclear {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 32px;
	padding: 0 8px;
	border: 0;
	border-radius: var(--vt-radius);
	background: transparent;
	font: inherit;
	color: var(--vt-ink);
	text-align: left;
	cursor: pointer;
}

.vox-dpop .vox-dq.is-on {
	font-weight: 500;
}

.vox-dpop .vox-dqdate {
	font-family: var(--vt-font-mono);
	font-variant-numeric: tabular-nums;
	font-size: var(--vt-fs-meta);
	color: var(--vt-muted);
}

@media (hover: hover) {
	.vox-dpop .vox-dq:hover,
	.vox-dpop .vox-dclear:hover {
		background: color-mix(in srgb, var(--vt-ink) 6%, transparent);
	}
}

.vox-dpop .vox-dq:focus,
.vox-dpop .vox-dclear:focus,
.vox-dpop:focus {
	outline: 0;
	box-shadow: none;   /* Vikunja's own focus ring on buttons */
}

.vox-dpop .vox-dq:focus-visible,
.vox-dpop .vox-dclear:focus-visible {   /* the keyboard row, like the labels popover's active row */
	background: color-mix(in srgb, var(--vt-ink) 6%, transparent);
	outline: 1px solid var(--vt-line);
	outline-offset: -1px;
}

.vox-dpop .vox-h2-cal.vox-dcal {   /* the home page's month grid, inline in the popover instead of floating */
	position: static;
	width: auto;
	border: 0;
	box-shadow: none;
	background: transparent;
}

.vox-dpop .vox-dcal .vox-h2-calday {
	min-height: 32px;
}

.vox-dpop .vox-dclear {
	margin: 0 4px 4px;
	color: var(--vt-accent-ink);
}

/* a phone: 44px targets; the slots keep their look, their hit area grows */
@media (max-width: 769px) {
	.kanban .bucket > .vox-add {
		min-height: var(--vt-tap);
	}

	.vox-draft .vox-draft-row,
	.vox-draft .vox-draft-meta {
		min-height: 30px;
	}

	.vox-draft .vox-draft-who,
	.vox-draft .vox-draft-due {
		position: relative;
	}

	.vox-draft .vox-draft-who::before,
	.vox-draft .vox-draft-due::before {
		content: "";
		position: absolute;
		inset: -11px -8px;
	}

	.vox-draft .vox-draft-go {
		height: 36px;
	}

	.vox-dpop .vox-drow,
	.vox-dpop .vox-dq,
	.vox-dpop .vox-dclear,
	.vox-dpop .vox-dsearch {
		min-height: var(--vt-tap);
	}

	.vox-dpop .vox-dcal .vox-h2-calday {
		min-height: 40px;
	}
}

/* «+ Додати сюди» in a gap between cards (a mouse only; vox-board-add.js draws one fixed bar for the whole board). The line is only a hint and
   takes no clicks; the button at its right end, «+» right next to the words, is the only thing that opens a draft there. */
.vox-gapbar {
	position: fixed;
	z-index: 20;
	height: 0;
	pointer-events: none;
}

.vox-gapbar[hidden] {
	display: none;
}

/* it does not blink in: a short pause (the mouse is only passing by), then a soft fade; moving on to the next gap keeps it on screen, leaving a gap
   hides it at once and the next one waits again */
.vox-gapbar:not([hidden]) {
	animation: vox-gap-in 240ms ease-out 180ms backwards;
}

@keyframes vox-gap-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vox-gapbar:not([hidden]) {
		animation: none;
	}
}

.vox-gapbar .vox-gapline {
	position: absolute;
	left: 0;
	right: 0;
	top: -1px;
	height: 2px;
	border-radius: 1px;
	background: var(--vt-ink);
}

.vox-gapbar .vox-gapbtn {
	position: absolute;
	right: 0;
	top: -11px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 22px;
	padding: 0 9px 0 3px;
	border: 0;
	border-radius: 11px;
	background: var(--vt-ink);
	font: inherit;
	font-size: var(--vt-fs-meta);
	color: var(--vt-surface);
	cursor: pointer;
	pointer-events: auto;
	white-space: nowrap;
}

.vox-gapbar .vox-gapplus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--vt-surface);
	color: var(--vt-ink);
}

.vox-gapbar .vox-gapplus svg {
	stroke-width: 2.5;
}

.vox-gapbar .vox-gapbtn:hover {
	background: var(--vt-accent-ink);
}

.vox-gapbar .vox-gapbtn:hover .vox-gapplus {
	color: var(--vt-accent-ink);
}

/* ---- assigned checklist items (docs/checklist-assign.md): the row's slot (person-plus icon / date + avatar) and the picker ---- */
.task-view.task-view.vox-v3 .vox-cl {
	position: relative;
}

.task-view.task-view.vox-v3 .vox-cla-slot {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	min-height: 24px;
	padding: 0 4px;
	border: 0;
	border-radius: var(--vt-radius);
	background: transparent;
	color: var(--vt-muted);
	font: inherit;
	font-size: 12px;
	cursor: pointer;
}

.task-view.task-view.vox-v3 .vox-cla-slot:hover {
	background: var(--vt-btn-hover);
}

.task-view.task-view.vox-v3 .vox-cla-slot.is-empty {
	opacity: 0;
}

.task-view.task-view.vox-v3 .vox-cl-item:hover .vox-cla-slot.is-empty,
.task-view.task-view.vox-v3 .vox-cla-slot.is-empty:focus-visible {
	opacity: .6;
}

.task-view.task-view.vox-v3 .vox-cla-ic {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.task-view.task-view.vox-v3 .vox-cla-due.is-late {
	color: var(--vt-accent-ink);
}

.task-view.task-view.vox-v3 .vox-cl-item.is-done .vox-cla-slot:not(.is-empty) {
	opacity: .45;
}

.task-view.task-view.vox-v3 .vox-cla-av {
	display: block;
	width: 22px;
	height: 22px;
	flex: none;
	border-radius: 50%;
	object-fit: cover;
}

.task-view.task-view.vox-v3 .vox-cla-avs {
	display: inline-flex;
	align-items: center;
}

.task-view.task-view.vox-v3 .vox-cla-avs > * + * {
	margin-left: -8px;
}

.task-view.task-view.vox-v3 .vox-cla-avs .vox-cla-av {
	box-shadow: 0 0 0 2px var(--vt-surface, #fff);
}

.task-view.task-view.vox-v3 .vox-cla-plus {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin-left: 2px;
	border: 1px dashed var(--vt-muted);
	border-radius: 50%;
	font-size: 14px;
	line-height: 1;
	color: var(--vt-muted);
}

.task-view.task-view.vox-v3 .vox-cla-slot:hover .vox-cla-plus {
	color: var(--vt-text, currentColor);
	border-color: currentColor;
}

.task-view.task-view.vox-v3 .vox-cla-more {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 4px;
	border-radius: 11px;
	font-size: 11px;
	background: var(--vt-bg, #efefef);
	box-shadow: 0 0 0 2px var(--vt-surface, #fff);
}

.task-view.task-view.vox-v3 .vox-cla-pop {
	position: absolute;
	right: 0;
	z-index: 20;
	display: flex;
	flex-direction: column;
	width: 280px;
	max-width: calc(100% - 8px);
	box-sizing: border-box;
	background: var(--vt-surface);
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.task-view.task-view.vox-v3 .vox-cla-top {
	padding: 8px;
}

.task-view.task-view.vox-v3 .vox-cla-lbl {
	display: block;
	margin-bottom: 4px;
	color: var(--vt-muted);
	font-size: 12px;
}

.task-view.task-view.vox-v3 .vox-cla-q,
.task-view.task-view.vox-v3 .vox-cla-due-in {
	box-sizing: border-box;
	width: 100%;
	min-height: 32px;
	padding: 0 10px;
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	background: var(--vt-surface);
	color: var(--vt-ink);
	font: inherit;
}

.task-view.task-view.vox-v3 .vox-cla-pick {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 36px;
	padding: 0 10px;
	border: 0;
	background: transparent;
	color: var(--vt-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.task-view.task-view.vox-v3 .vox-cla-pick:hover,
.task-view.task-view.vox-v3 .vox-cla-pick:focus-visible {
	background: var(--vt-btn);
}

.task-view.task-view.vox-v3 .vox-cla-pick[aria-pressed="true"] .vox-cla-name {
	font-weight: 500;
}

.task-view.task-view.vox-v3 .vox-cla-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.task-view.task-view.vox-v3 .vox-cla-ck svg {
	display: block;
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.task-view.task-view.vox-v3 .vox-cla-due-row {
	padding: 8px;
	border-top: 1px solid var(--vt-line);
}

.task-view.task-view.vox-v3 .vox-cla-foot {
	padding: 4px 8px;
	border-top: 1px solid var(--vt-line);
}

.task-view.task-view.vox-v3 .vox-cla-off {
	min-height: var(--vt-tap);
	padding: 0 2px;
	border: 0;
	background: transparent;
	color: var(--vt-accent-ink);
	font: inherit;
	cursor: pointer;
}

.task-view.task-view.vox-v3 .vox-cla-note {
	padding: 8px 10px;
	color: var(--vt-muted);
}

.task-view.task-view.vox-v3 .vox-cla-note.is-err {
	color: var(--vt-accent-ink);
}

@media (pointer: coarse), (max-width: 769px) {
	.task-view.task-view.vox-v3 .vox-cla-slot {
		min-width: 44px;
		min-height: 44px;
		justify-content: center;
	}

	.task-view.task-view.vox-v3 .vox-cla-slot.is-empty {
		opacity: .6;
	}

	.task-view.task-view.vox-v3 .vox-cla-pick {
		min-height: 44px;
	}

	.task-view.task-view.vox-v3 .vox-cla-q,
	.task-view.task-view.vox-v3 .vox-cla-due-in {
		min-height: 44px;
	}
}

/* the assigned-item marker (docs/checklist-assign.md) is a link in the stored description; wherever the block does not draw the checklist (v2 task page,
   a viewer without v3, the editor) it must read as plain item text, not as a link */
.task-view.task-view a[href^="#vox-cl-"],
.task-view.task-view .tiptap__editor a[href^="#vox-cl-"] {
	color: inherit;
	text-decoration: none;
	cursor: inherit;
	pointer-events: none;
}

/* «Пов’язані задачі»: our assignee cards are not listed and the block is hidden unless something else is in it; «Виконано» lists the solved cards whose
   item is gone (vox-ui.js claRelStep) */
.task-view.task-view.vox-v3 .related-tasks .task.vox-cla-hidden,
.task-view.task-view.vox-v3 .related-tasks.vox-cla-hidden,
.task-view.task-view.vox-v3 .detail-content > .content.details.vox-cla-hidden {
	display: none;
}

.task-view.task-view.vox-v3 .vox-cla-done {
	order: 8;
	flex: 0 0 100%;
	box-sizing: border-box;
	max-width: calc(64ch + 36px);
	margin-top: 16px;
	padding-left: 36px;
	font-size: var(--vt-fs-body);
}

.task-view.task-view.vox-v3 .vox-cla-done-title {
	margin: 0 0 6px;
	font-family: var(--vt-font-display);
	font-size: var(--vt-fs-section);
	font-weight: 500;
	color: var(--vt-ink);
}

.task-view.task-view.vox-v3 .vox-cla-done-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.task-view.task-view.vox-v3 .vox-cla-done-row {
	min-height: var(--vt-tap);
	display: flex;
	align-items: center;
	color: var(--vt-muted);
}

.task-view.task-view.vox-v3 .vox-cla-done-tick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 20px;
	min-height: var(--vt-tap);
	margin: 0 8px 0 0;
	cursor: pointer;
}

.task-view.task-view.vox-v3 .vox-cla-done-tick input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--vt-ink);
	cursor: pointer;
}

.task-view.task-view.vox-v3 .vox-cla-done-row a {
	color: var(--vt-muted);
	text-decoration: line-through;
}

.task-view.task-view.vox-v3 .vox-cla-done-row a:hover {
	color: var(--vt-accent-ink);
}

/* The «Медіа» link in the sidebar (#1141): vox-media.js puts it before the project list. The page itself is standalone (deploy/media-web/page). */
.vox-md-sidelink {
	display: block;
	margin: 0 var(--vt-s2) var(--vt-s1);
	padding: 6px var(--vt-s2);
	border-radius: var(--vt-radius);
	font-size: var(--vt-fs-body);
	color: var(--vt-ink);
	text-decoration: none;
}

.vox-md-sidelink:hover {
	background: var(--vt-surface);
}
