.office-flow-task-actions {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	min-width: 54px;
	margin-inline: 7px 3px;
	padding: 3px 5px;
	vertical-align: 1px;
	border: 1px solid color-mix(in srgb, #ff9bc7 54%, var(--background-modifier-border));
	border-radius: 999px;
	background: color-mix(in srgb, #fff0f7 68%, var(--background-primary) 32%);
	box-shadow:
		inset 0 1px 0 color-mix(in srgb, #ffffff 58%, transparent),
		0 1px 2px color-mix(in srgb, #ff8fbd 12%, transparent),
		0 5px 14px color-mix(in srgb, var(--background-modifier-box-shadow) 10%, transparent);
	backdrop-filter: blur(12px) saturate(1.16);
	-webkit-backdrop-filter: blur(12px) saturate(1.16);
}

.office-flow-task-action-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: color-mix(in srgb, var(--background-primary) 48%, transparent);
	color: color-mix(in srgb, var(--text-muted) 78%, #d94b87 22%);
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.02em;
	cursor: pointer;
	transition:
		background-color 120ms ease,
		color 120ms ease,
		transform 120ms ease,
		box-shadow 120ms ease;
}

.office-flow-task-action-button:hover {
	background: color-mix(in srgb, #ffffff 64%, #ffd6e8 36%);
	color: color-mix(in srgb, var(--text-normal) 68%, #cf3f7c 32%);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, #ff9bc7 32%, transparent);
}

.office-flow-task-action-button:active {
	transform: scale(0.92);
	background: color-mix(in srgb, #ffc2dc 48%, #ffffff 52%);
	color: var(--text-normal);
	transition-duration: 60ms;
}

.office-flow-task-action-button:focus-visible {
	outline: 2px solid color-mix(in srgb, #ff7eb6 78%, var(--interactive-accent));
	outline-offset: 1px;
}

.office-flow-task-action-pen {
	color: color-mix(in srgb, #d94b87 70%, var(--text-muted) 30%);
	font-size: 14px;
	font-weight: 700;
}

.office-flow-task-action-pen:hover {
	color: color-mix(in srgb, #c93e79 72%, var(--text-normal) 28%);
}

.office-flow-task-category-picker {
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.office-flow-task-category-trigger {
	background: color-mix(in srgb, #fff7fb 78%, var(--background-primary) 22%);
	box-shadow:
		inset 0 0 0 1px color-mix(in srgb, #f5b7d0 42%, transparent),
		0 1px 3px color-mix(in srgb, #ffb8d5 12%, transparent);
}

.office-flow-task-category-trigger:hover {
	background: color-mix(in srgb, #fff0f7 72%, var(--background-primary) 28%);
	box-shadow:
		inset 0 0 0 1px color-mix(in srgb, #f0a5c4 54%, transparent),
		0 1px 5px color-mix(in srgb, #ffb8d5 16%, transparent);
}

.office-flow-task-category-icon {
	width: 8px;
	height: 8px;
	border: 1.5px solid color-mix(in srgb, #d94b87 54%, var(--text-muted) 46%);
	border-radius: 2px;
	background: transparent;
}

.office-flow-task-category-options {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	max-width: 0;
	overflow: hidden;
	opacity: 0;
	transform: translateX(-3px) scale(0.96);
	transform-origin: left center;
	pointer-events: none;
	transition:
		max-width 160ms ease,
		opacity 120ms ease,
		transform 160ms ease;
}

.office-flow-task-category-picker:hover .office-flow-task-category-options,
.office-flow-task-category-picker:focus-within .office-flow-task-category-options {
	max-width: 160px;
	opacity: 1;
	transform: translateX(0) scale(1);
	pointer-events: auto;
}

.office-flow-task-category-option {
	width: auto;
	min-width: 32px;
	padding: 0 7px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0;
}

.office-flow-task-category-option-1 {
	background: color-mix(in srgb, #ffe4c7 62%, var(--background-primary) 38%);
	color: color-mix(in srgb, var(--text-normal) 70%, #b66a24 30%);
}

.office-flow-task-category-option-2 {
	background: color-mix(in srgb, #e8ddff 62%, var(--background-primary) 38%);
	color: color-mix(in srgb, var(--text-normal) 70%, #7458c8 30%);
}

.office-flow-task-category-option-3 {
	background: color-mix(in srgb, #ffd9eb 64%, var(--background-primary) 36%);
	color: color-mix(in srgb, var(--text-normal) 70%, #c84f89 30%);
}

.office-flow-task-category-option-4 {
	background: color-mix(in srgb, #dff6ec 62%, var(--background-primary) 38%);
	color: color-mix(in srgb, var(--text-normal) 70%, #308466 30%);
}

/* Pink sidebar, switched on by a body class. The class is repeated so the
   rules outrank theme sidebar backgrounds by specificity alone. */
body.office-flow-pink-sidebar.office-flow-pink-sidebar.office-flow-pink-sidebar .workspace-split.mod-left-split,
body.office-flow-pink-sidebar.office-flow-pink-sidebar.office-flow-pink-sidebar .workspace-sidebar-container.mod-left,
body.office-flow-pink-sidebar.office-flow-pink-sidebar.office-flow-pink-sidebar .is-left .workspace-tabs,
body.office-flow-pink-sidebar.office-flow-pink-sidebar.office-flow-pink-sidebar .workspace-split.mod-right-split,
body.office-flow-pink-sidebar.office-flow-pink-sidebar.office-flow-pink-sidebar .workspace-sidebar-container.mod-right,
body.office-flow-pink-sidebar.office-flow-pink-sidebar.office-flow-pink-sidebar .is-right .workspace-tabs,
body.office-flow-pink-sidebar.office-flow-pink-sidebar.office-flow-pink-sidebar .workspace-split.mod-horizontal .workspace-leaf:nth-child(1) .workspace-leaf-content,
body.office-flow-pink-sidebar.office-flow-pink-sidebar.office-flow-pink-sidebar .workspace-split.mod-horizontal .workspace-leaf:nth-child(3) .workspace-leaf-content,
body.office-flow-pink-sidebar.office-flow-pink-sidebar.office-flow-pink-sidebar .workspace-split.mod-left-split .view-content,
body.office-flow-pink-sidebar.office-flow-pink-sidebar.office-flow-pink-sidebar .workspace-split.mod-right-split .view-content {
	background: #ffe6f2;
}

body.office-flow-pink-sidebar.office-flow-pink-sidebar.office-flow-pink-sidebar .workspace-ribbon.mod-left,
body.office-flow-pink-sidebar.office-flow-pink-sidebar.office-flow-pink-sidebar .workspace-ribbon.mod-right {
	background: #ffd6ec;
}

body.office-flow-pink-sidebar.office-flow-pink-sidebar.office-flow-pink-sidebar .workspace-leaf-resize-handle {
	background: #f9cbe0;
}

.office-flow-home-action {
	color: var(--text-muted);
}

.office-flow-home-action:hover {
	color: var(--text-normal);
}

.office-flow-favorite-action:hover {
	color: #d94b87;
}

.office-flow-progress {
	display: grid;
	gap: 10px;
	margin: 12px 0;
}

.office-flow-progress-card {
	padding: 12px 14px;
	border: 1px solid color-mix(in srgb, #ff9bc7 42%, var(--background-modifier-border));
	border-radius: 16px;
	background: linear-gradient(
		135deg,
		color-mix(in srgb, #fff0f7 70%, var(--background-primary) 30%),
		color-mix(in srgb, #ffffff 76%, var(--background-primary) 24%)
	);
	box-shadow:
		inset 0 1px 0 color-mix(in srgb, #ffffff 64%, transparent),
		0 8px 24px color-mix(in srgb, var(--background-modifier-box-shadow) 10%, transparent);
}

.office-flow-progress-card-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 4px;
}

.office-flow-progress-title {
	color: var(--text-normal);
	font-size: 14px;
	font-weight: 650;
	letter-spacing: -0.01em;
}

.office-flow-progress-note-link {
	min-width: 56px;
	margin: 0 3px 0 0;
	padding: 3px 10px;
	border: 1px solid color-mix(in srgb, #ff9bc7 38%, var(--background-modifier-border));
	border-radius: 10px;
	background: color-mix(in srgb, #ffe8f3 68%, var(--background-primary) 32%);
	color: color-mix(in srgb, var(--text-normal) 70%, #cf3f7c 30%);
	font: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	line-height: 1.2;
	cursor: pointer;
	box-shadow:
		inset 0 1px 0 color-mix(in srgb, #ffffff 52%, transparent),
		0 1px 4px color-mix(in srgb, #ff8fbd 12%, transparent);
}

.office-flow-progress-note-link:hover {
	background: color-mix(in srgb, #ffd6e8 70%, var(--background-primary) 30%);
	color: color-mix(in srgb, var(--text-normal) 58%, #cf3f7c 42%);
	text-decoration: none;
}

.office-flow-progress-percent {
	color: color-mix(in srgb, var(--text-normal) 72%, #cf3f7c 28%);
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* Percent badge that doubles as the archive / restore control.
   At rest it is the plain percent text (negative margins cancel the padding,
   so it sits exactly where the old percent label sat); the pill shows on hover. */
.office-flow-progress-badge {
	--office-flow-badge-accent: #d94b87;
	--office-flow-badge-soft: #ffe8f3;
	--office-flow-badge-border: #ff9bc7;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	box-sizing: border-box;
	height: auto;
	min-height: 0;
	min-width: 0;
	margin: -3px -8px;
	padding: 3px 8px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	font-family: inherit;
	line-height: inherit;
	cursor: pointer;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
	transition: background 120ms ease;
}

.office-flow-progress-badge-restore {
	--office-flow-badge-accent: #3f86c9;
	--office-flow-badge-soft: #e6f1fb;
	--office-flow-badge-border: #8fc0ea;
}

.office-flow-progress-badge:hover {
	background: color-mix(in srgb, var(--office-flow-badge-soft) 68%, var(--background-primary) 32%);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--office-flow-badge-border) 38%, var(--background-modifier-border));
}

.office-flow-progress-badge:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--office-flow-badge-accent) 50%, transparent);
	outline-offset: 2px;
}

.office-flow-progress-badge-icon {
	display: none;
	width: 14px;
	height: 14px;
	color: var(--office-flow-badge-accent);
}

.office-flow-progress-badge-icon svg {
	width: 14px;
	height: 14px;
}

.office-flow-progress-badge.is-armed {
	align-self: center;
	width: 26px;
	height: 26px;
	margin: -6px 0;
	padding: 0;
	background: color-mix(in srgb, var(--office-flow-badge-soft) 80%, var(--background-primary) 20%);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--office-flow-badge-border) 48%, var(--background-modifier-border));
}

.office-flow-progress-badge.is-armed .office-flow-progress-badge-label {
	display: none;
}

.office-flow-progress-badge.is-armed .office-flow-progress-badge-icon {
	display: inline-flex;
}

.office-flow-progress-ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
	pointer-events: none;
	opacity: 0;
	transition: opacity 120ms ease;
}

.office-flow-progress-badge.is-armed .office-flow-progress-ring {
	opacity: 1;
}

.office-flow-progress-ring-track {
	fill: none;
	stroke: color-mix(in srgb, var(--office-flow-badge-soft) 55%, var(--background-modifier-border) 45%);
	stroke-width: 3;
}

.office-flow-progress-ring-fill {
	fill: none;
	stroke: var(--office-flow-badge-accent);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-dasharray: 97.4;
	stroke-dashoffset: 97.4;
	transition: stroke-dashoffset 150ms ease;
}

.office-flow-progress-badge.is-holding .office-flow-progress-ring-fill {
	stroke-dashoffset: 0;
	/* Keep in sync with ARCHIVE_HOLD_MS in main.ts. */
	transition: stroke-dashoffset 2000ms linear;
}

.office-flow-progress-badge.is-busy {
	opacity: 0.6;
	cursor: progress;
}

.office-flow-progress-badge.is-busy .office-flow-progress-ring {
	opacity: 1;
}

.office-flow-progress-badge.is-busy .office-flow-progress-ring-fill {
	stroke-dashoffset: 0;
	transition: none;
}

.office-flow-progress-meta {
	margin-bottom: 9px;
	color: var(--text-muted);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.office-flow-progress-track {
	height: 10px;
	overflow: hidden;
	border-radius: 999px;
	background: color-mix(in srgb, #ffd6e8 42%, var(--background-modifier-border) 58%);
	box-shadow: inset 0 1px 2px color-mix(in srgb, var(--background-modifier-box-shadow) 16%, transparent);
}

.office-flow-progress-fill {
	width: var(--office-flow-progress, 0%);
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #ff8fbd, #d94b87);
	box-shadow: 0 0 10px color-mix(in srgb, #ff8fbd 28%, transparent);
	transition: width 180ms ease;
}

.office-flow-progress-card-empty .office-flow-progress-fill {
	background: transparent;
	box-shadow: none;
}

.office-flow-progress-empty-message {
	padding: 10px 12px;
	border: 1px dashed color-mix(in srgb, #ff9bc7 42%, var(--background-modifier-border));
	border-radius: 12px;
	background: color-mix(in srgb, #fff0f7 44%, var(--background-primary) 56%);
	color: var(--text-muted);
	font-size: 13px;
}
