/*
 * Pactwise's interface as a Mac window: the base colors (in Pactwise's
 * palette, for menus outside the app's root), the top
 * bar next to the window buttons, and native-looking controls.
 */
:root {
	color-scheme: light dark;
	--color-main-background: #ffffff;
	--color-background-hover: #f1effa;
	--color-main-text: #24223a;
	--color-text-maxcontrast: #6c6987;
	--color-border: #e6e3f3;
	--color-border-dark: #d4cfec;
	--color-primary-element: #6c5ce7;
	--color-primary-element-hover: #5a4bd6;
	--color-primary-element-text: #ffffff;
	--color-primary-element-light: #ece9fd;
	--color-primary-element-light-text: #4b3cc4;
	--color-error: #c62828;
	--color-text-error: #b3261e;
	--color-warning: #b77900;
	--color-success-text: #2a7a3b;
	--border-radius-element: 14px;
	--border-radius-large: 24px;
	--body-container-radius: 0;
}
@media (prefers-color-scheme: dark) {
	:root {
		--color-main-background: #1e1b2b;
		--color-background-hover: #2a2639;
		--color-main-text: #eceaf6;
		--color-text-maxcontrast: #a29ebb;
		--color-border: #332f47;
		--color-border-dark: #4a4563;
		--color-primary-element: #8b7cf6;
		--color-primary-element-hover: #9d90f8;
		--color-primary-element-light: #2e2850;
		--color-primary-element-light-text: #cfc8ff;
		--color-error: #ff6b6b;
		--color-text-error: #ff8a80;
		--color-warning: #e0a526;
		--color-success-text: #5cc675;
	}
}

html,
body.desktop {
	height: 100%;
	margin: 0;
	overflow: hidden;
	background: #f6f5fb;
	color: var(--color-main-text);
	font: 13px/1.45 Poppins, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
	-webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
	html,
	body.desktop {
		background: #14121d;
	}
}
*,
*::before,
*::after {
	box-sizing: border-box;
}
body.desktop #pactwise-app {
	height: 100%;
}
button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}
a {
	color: inherit;
}

/* --- window chrome: the top bar starts after the window buttons and drags the window */

body.desktop .imp-layout {
	border-radius: 0;
}
/* The window buttons need 88px on the left: the same margin on both sides of the
 * page, so the tabs and every page share one column at any window size */
body.desktop #pactwise-app {
	--imp-content: 1300px;
	--imp-side: 88px;
}
body.desktop .imp-nav {
	padding: 12px var(--imp-nav-side) 4px;
	-webkit-app-region: drag;
	user-select: none;
}
body.desktop .imp-nav a,
body.desktop .imp-nav button {
	-webkit-app-region: no-drag;
}
body.desktop .imp-nav a svg {
	width: 17px;
	height: 17px;
}
/* The logo sits in the top right corner; the commitments get their own row below */
body.desktop .imp-nav .imp-nav__main {
	order: 1;
}
body.desktop .imp-nav .imp-nav__logo {
	order: 2;
	width: 38px;
	height: 38px;
	margin-left: auto;
	border-radius: 12px;
}
body.desktop .imp-nav::after {
	content: "";
	order: 3;
	flex-basis: 100%;
	height: 0;
}
body.desktop .imp-nav .imp-nav__commitments {
	order: 4;
}
body.desktop .imp-nav .imp-nav__logo svg {
	width: 24px;
	height: 24px;
}
body.desktop .imp-page {
	padding-top: 18px;
}

/* --- controls ----------------------------------------------------------------- */

body.desktop input[type="text"],
body.desktop input[type="number"],
body.desktop select,
body.desktop textarea {
	min-height: 32px;
	padding: 4px 10px;
	border: 1.5px solid var(--color-border-dark);
	border-radius: 12px;
	background: var(--color-main-background);
	outline: none;
}
body.desktop textarea {
	padding: 6px 10px;
}
body.desktop input[type="text"]:focus,
body.desktop input[type="number"]:focus,
body.desktop select:focus,
body.desktop textarea:focus {
	border-color: var(--color-primary-element);
	box-shadow: 0 0 0 3px var(--color-primary-element-light);
}
body.desktop input[type="color"] {
	height: 32px;
}
/* No visible scrollbars: content still scrolls with trackpad, wheel and keyboard */
body.desktop,
body.desktop * {
	scrollbar-width: none;
}
body.desktop ::-webkit-scrollbar {
	display: none;
}

/* --- toast ---------------------------------------------------------------------- */

.toast {
	position: fixed;
	z-index: 100;
	bottom: 18px;
	left: 50%;
	max-width: 480px;
	padding: 10px 16px;
	border-radius: 14px;
	background: rgba(36, 34, 58, 0.94);
	color: #fff;
	font-weight: 700;
	box-shadow: 0 10px 30px rgba(60, 50, 140, 0.25);
	transform: translateX(-50%);
}
.toast.is-error {
	background: #b3261e;
}

/* --- a narrower window (fitNav): icons only in the bar, every commitment in its list
   (labels stay for VoiceOver; links have tooltips) */

body.desktop .imp-nav--compact .imp-nav__main a span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
body.desktop .imp-nav--compact .imp-nav__main a {
	padding: 0 11px;
}
body.desktop .imp-nav--compact .imp-nav__more:not(.is-plus) {
	gap: 6px;
	padding: 0 8px 0 10px;
}
@media (max-width: 520px) {
	body.desktop .imp-timer__clock {
		font-size: 30px;
	}
}

/* ================================================================================================
 * The redesign, on the computer (as on the phone): Now's top card follows the moment, tasks as one
 * rounded list in the commitment's colour, Notes as a journal, Progress (Done and Time together).
 * The phone's rules below read Material color roles (--md-*): here they are the Timeline look's.
 * ============================================================================================== */
body.desktop #pactwise-app {
	--md-primary: var(--tl-accent);
	--md-onPrimary: #ffffff;
	--md-primaryContainer: var(--tl-accent-soft);
	--md-secondaryContainer: var(--tl-accent-soft);
	--md-onSecondaryContainer: var(--color-primary-element-light-text);
	--md-surface: var(--tl-page);
	--md-surfaceContainerLowest: var(--tl-card);
	--md-surfaceContainerLow: var(--tl-card);
	--md-surfaceContainer: var(--tl-pill);
	--md-surfaceContainerHigh: var(--tl-pill);
	--md-surfaceContainerHighest: color-mix(in srgb, var(--tl-pill) 80%, var(--imp-text));
	--md-onSurface: var(--imp-text);
	--md-onSurfaceVariant: var(--imp-muted);
	--md-outline: var(--color-border-maxcontrast);
	--md-outlineVariant: var(--imp-line);
	--md-inverseSurface: var(--imp-text);
	--md-inverseOnSurface: var(--tl-card);
	--md-inversePrimary: var(--tl-accent-soft);
	--md-error: #ba1a1a;
	--md-warning: #8a5300;
	--md-success: #2e6b2f;
	--md-elev-1: var(--tl-shadow);
	--md-elev-2: var(--tl-shadow);
	--md-elev-3: 0 12px 40px rgba(20, 16, 50, 0.22);
	--md-ease: cubic-bezier(0.2, 0, 0, 1);
}
html:not([data-imp-theme="light"]) body.desktop[data-themes*="dark"] #pactwise-app,
html[data-imp-theme="dark"] body.desktop #pactwise-app {
	--md-error: #ffb4ab;
	--md-warning: #ffb95c;
	--md-success: #8fd88a;
}
@media (prefers-color-scheme: dark) {
	html:not([data-imp-theme]) body.desktop:not([data-themes*="light"]):not([data-themes*="dark"]) #pactwise-app {
		--md-error: #ffb4ab;
		--md-warning: #ffb95c;
		--md-success: #8fd88a;
	}
}

/* (from the phone) Section headings and cards */
body.desktop .imp-psec__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}
body.desktop .imp-psec__head .imp-muted {
	font-size: 12px;
	font-weight: 600;
}
body.desktop .imp-page :is(.imp-pweek, .imp-ptoday, .imp-pcard) h2 {
	margin: 0;
	font-size: 15px;
	font-weight: 800;
}
body.desktop :is(.imp-pweek, .imp-pcard) {
	margin: 0 0 12px;
	border-radius: 24px;
	background: var(--md-surfaceContainerLow);
	box-shadow: 0 6px 18px rgba(60, 50, 140, 0.05);
}
body.desktop .imp-pcard {
	padding: 16px 18px;
}
body.desktop .imp-pnow .imp-timer {
	margin-bottom: 12px;
}

/* Now: this week's rings, today's blocks */
body.desktop .imp-pweek {
	padding: 14px 0 10px;
}
/* (from the phone) Today: a timeline */
/* Today: a timeline (time, colour, what, how long) */
body.desktop .imp-prow {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	padding: 6px 16px 6px 14px;
}
body.desktop .imp-prow + .imp-prow {
	box-shadow: inset 0 1px 0 color-mix(in srgb, var(--md-outlineVariant) 55%, transparent);
}
body.desktop .imp-prow__time {
	flex: 0 0 auto;
	min-width: 44px;
	white-space: nowrap;
	color: var(--md-onSurfaceVariant);
	font-size: 13px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-align: right;
}
body.desktop .imp-prow__dot {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 4px;
	background: var(--c);
}
body.desktop .imp-prow.is-now {
	margin: 2px 6px;
	padding: 6px 10px 6px 8px;
	border-radius: 18px;
	background: color-mix(in srgb, var(--c) 10%, var(--md-surfaceContainerLow));
	box-shadow: inset 0 0 0 2px var(--c);
}
body.desktop .imp-prow.is-now + .imp-prow,
body.desktop .imp-prow__line + .imp-prow {
	box-shadow: none;
}
body.desktop .imp-prow.is-past :is(.imp-prow__text, .imp-prow__dot, .imp-prow__len, .imp-prow__time) {
	opacity: 0.55;
}
body.desktop .imp-prow__text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	color: var(--md-onSurface);
	text-decoration: none;
}
body.desktop .imp-prow__text strong {
	overflow: hidden;
	font-size: 15px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}
body.desktop .imp-prow__text .imp-muted {
	font-size: 12px;
	font-weight: 600;
}
body.desktop :is(.imp-prow__now, .imp-prow__len) {
	flex: 0 0 auto;
	padding: 3px 10px;
	border-radius: 10px;
	background: var(--md-surfaceContainerHigh);
	color: var(--md-onSurfaceVariant);
	font-size: 12px;
	font-weight: 700;
}
body.desktop .imp-prow__now {
	background: var(--c);
	color: var(--on-c);
}
/* now, between past and coming blocks */
body.desktop .imp-prow__line {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 2px 16px 2px 14px;
	color: var(--md-error);
	font-size: 11px;
	font-weight: 700;
}
body.desktop .imp-prow__line span {
	flex: 0 0 auto;
	min-width: 44px;
	white-space: nowrap;
	text-align: right;
}
body.desktop .imp-prow__line::after {
	content: "";
	flex: 1;
	height: 2px;
	border-radius: 1px;
	background: currentColor;
}
body.desktop .imp-pempty {
	margin: 0 4px;
}

/* Placeholders while a page is built */
body.desktop .imp-prow--sk {
	pointer-events: none;
}
body.desktop .imp-prow--sk .imp-skrow__text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 8px;
}

/* (from the phone) the legend under the days */
body.desktop :is(.imp-pday__planned, .imp-pday__tracked, .imp-plegend__planned, .imp-plegend__tracked) {
	display: block;
	width: 9px;
	border-radius: 4px;
}
body.desktop :is(.imp-pday__planned, .imp-plegend__planned) {
	background: color-mix(in srgb, var(--md-primary) 26%, transparent);
}
body.desktop :is(.imp-pday__tracked, .imp-plegend__tracked) {
	background: var(--md-primary);
}
body.desktop .imp-pday__letter {
	font-size: 12px;
	font-weight: 700;
}
body.desktop .imp-pday__num {
	color: var(--md-onSurfaceVariant);
	font-size: 11px;
	font-weight: 600;
}
body.desktop .imp-pday.is-today .imp-pday__letter {
	color: var(--md-primary);
}
body.desktop .imp-plegend {
	display: flex;
	gap: 16px;
	color: var(--md-onSurfaceVariant);
	font-size: 12px;
	font-weight: 600;
}
body.desktop .imp-plegend > span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
body.desktop :is(.imp-plegend__planned, .imp-plegend__tracked) {
	width: 10px;
	height: 10px;
	border-radius: 3px;
}

/* (from the phone) Bars against a plan */
/* Bars against a plan or a goal (Done's day, Time's goals) */
body.desktop .imp-pbars {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 12px 0;
	padding: 0;
	list-style: none;
}
body.desktop .imp-pbars li {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
body.desktop .imp-pbars__label {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
}
body.desktop .imp-pbars__label > :first-child {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	color: var(--md-onSurface);
}
body.desktop .imp-pbars__label .imp-muted {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 600;
}
body.desktop .imp-pbars__label strong {
	color: var(--md-onSurface);
	font-weight: 800;
}
body.desktop .imp-pbars__track {
	height: 10px;
	overflow: hidden;
	border-radius: 99px;
	background: color-mix(in srgb, var(--c) 20%, transparent);
}
body.desktop .imp-pbars__track span {
	display: block;
	height: 100%;
	border-radius: 99px;
	background: var(--c);
}
body.desktop .imp-pbars__note {
	color: var(--md-onSurfaceVariant);
	font-size: 12px;
	font-weight: 600;
}
body.desktop .imp-pbars__note.is-short {
	color: var(--md-warning);
}
body.desktop .imp-pnogoal {
	margin: 0;
	padding-top: 10px;
	border-top: 1px solid var(--md-outlineVariant);
	font-size: 13px;
}

/* (from the phone) Now: the top card */
/* --- Now: the top card follows the moment ------------------------------------------------ */
body.desktop .imp-hero {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0 0 18px;
	padding: 20px;
	border-radius: 28px;
	background: var(--md-surfaceContainerLow);
	box-shadow: 0 6px 18px rgba(60, 50, 140, 0.05);
}
body.desktop .imp-hero--tracking {
	background: color-mix(in srgb, var(--c) 14%, var(--md-surfaceContainerLow));
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent);
}
body.desktop .imp-hero--block {
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent);
}
body.desktop .imp-hero__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
body.desktop .imp-hero__label {
	display: flex;
	align-items: center;
	gap: 8px;
	color: color-mix(in srgb, var(--c, var(--md-primary)) 70%, var(--md-onSurface));
	font-size: 13px;
	font-weight: 700;
}
body.desktop .imp-hero__label--soft {
	gap: 0;
	white-space: pre;
}
body.desktop :is(.imp-hero__pulse, .imp-hero__dot) {
	width: 10px;
	height: 10px;
	border-radius: 4px;
	background: var(--c, var(--md-primary));
}
body.desktop .imp-hero__pulse {
	border-radius: 50%;
	animation: imp-hero-pulse 1.6s ease-in-out infinite;
}
@keyframes imp-hero-pulse {
	50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c, var(--md-primary)) 25%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
	body.desktop .imp-hero__pulse { animation: none; }
}
body.desktop .imp-hero__range {
	color: var(--md-onSurfaceVariant);
	font-size: 13px;
	font-weight: 600;
}
body.desktop .imp-hero__clock {
	color: var(--md-onSurface);
	font-size: 54px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -1px;
	font-variant-numeric: tabular-nums;
}
body.desktop .imp-hero__big {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: 42px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -1px;
}
body.desktop .imp-hero__unit {
	color: var(--md-onSurfaceVariant);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0;
}
body.desktop .imp-hero__progress {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
body.desktop .imp-hero__bar {
	height: 8px;
	overflow: hidden;
	border-radius: 4px;
	background: color-mix(in srgb, var(--c) 22%, transparent);
}
body.desktop .imp-hero__bar span {
	display: block;
	width: var(--p);
	height: 100%;
	border-radius: 4px;
	background: var(--c);
	transition: width 1s linear;
}
body.desktop .imp-hero__sub {
	margin: 0;
	color: var(--md-onSurfaceVariant);
	font-size: 13px;
	font-weight: 600;
}
body.desktop .imp-hero__pomo {
	color: var(--md-onSurfaceVariant);
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
body.desktop .imp-hero__tasks {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
body.desktop .imp-hero--tracking .imp-hero__tasks {
	padding: 4px 14px;
	border-radius: 18px;
	background: color-mix(in srgb, var(--c) 10%, var(--md-surfaceContainerLow));
}
body.desktop .imp-hero__caption {
	color: var(--md-onSurfaceVariant);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
}
body.desktop .imp-hero__task {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	font-size: 15px;
	font-weight: 600;
}
body.desktop .imp-hero__task input {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--c);
}
body.desktop .imp-hero__task > span:first-of-type {
	flex: 1;
	min-width: 0;
}
body.desktop .imp-hero__task .imp-muted {
	font-weight: 500;
}
body.desktop .imp-hero__est {
	padding: 2px 9px;
	border-radius: 9px;
	box-shadow: inset 0 0 0 1px var(--md-outlineVariant);
	color: var(--md-onSurfaceVariant);
	font-size: 12px;
	font-weight: 600;
}
body.desktop .imp-hero__actions {
	display: flex;
	gap: 10px;
}
body.desktop #pactwise-app .imp-hero__btn {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 14px;
	border: none;
	border-radius: 18px;
	background: var(--md-surfaceContainerHigh);
	color: var(--md-onSurface);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}
body.desktop #pactwise-app .imp-hero__btn--main {
	background: var(--c, var(--md-primary));
	color: var(--on-c, var(--md-onPrimary));
}
body.desktop #pactwise-app .imp-hero__btn--tint {
	background: color-mix(in srgb, var(--c) 18%, var(--md-surfaceContainerLow));
	color: color-mix(in srgb, var(--c) 55%, var(--md-onSurface));
}
body.desktop #pactwise-app .imp-hero__btn--wide {
	flex: none;
	min-height: 56px;
	font-size: 17px;
}
body.desktop #pactwise-app .imp-hero__other {
	align-self: center;
	font-size: 14px;
	font-weight: 600;
}
body.desktop .imp-hero__who {
	display: flex;
	align-items: center;
	gap: 14px;
}
body.desktop .imp-hero__who .imp-tile {
	width: 52px;
	height: 52px;
	border-radius: 16px;
	font-size: 22px;
}
body.desktop .imp-hero__who div {
	display: flex;
	flex-direction: column;
}
body.desktop .imp-hero__who strong {
	font-size: 24px;
	font-weight: 800;
	line-height: 1.15;
}
body.desktop .imp-hero__who .imp-muted {
	font-size: 14px;
	font-weight: 600;
}
body.desktop .imp-hero--free {
	flex-direction: row;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
}
body.desktop .imp-hero__moon {
	display: grid;
	flex: none;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 14px;
	background: var(--md-surfaceContainerHigh);
	color: var(--md-onSurfaceVariant);
}
body.desktop .imp-hero--free strong {
	font-size: 15px;
	font-weight: 700;
}
body.desktop .imp-hero__links {
	display: flex;
	gap: 16px;
	margin-top: 2px;
	font-size: 14px;
	font-weight: 600;
}
body.desktop #pactwise-app .imp-hero__links .imp-link {
	padding: 0;
	font-size: 14px;
}
body.desktop .imp-ring--other .imp-ring__tile {
	background: var(--md-surfaceContainerHigh);
	color: var(--md-onSurfaceVariant);
}
body.desktop #pactwise-app .imp-hero__links :is(a, .imp-link) {
	color: var(--md-primary);
	font-weight: 600;
	text-decoration: none;
}
body.desktop .imp-pseg__count {
	margin-left: 6px;
	color: var(--md-onSurfaceVariant);
	font-weight: 600;
}
/* (from the phone) Notes: a journal */
/* --- Notes on the phone: a journal ---------------------------------------------------------- */
body.desktop .imp-pchip--all {
	padding: 0 16px;
	--c: var(--md-primary);
}
body.desktop .imp-journal {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-bottom: 12px;
}
body.desktop .imp-jcap {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px 12px 10px 16px;
	border-radius: 22px;
	background: var(--md-surfaceContainerLow);
	box-shadow: inset 0 0 0 1px var(--md-outlineVariant);
	transition: box-shadow 0.18s var(--md-ease);
}
body.desktop .imp-jcap:focus-within {
	box-shadow: 0 0 0 1px var(--md-primary), 0 0 0 5px color-mix(in srgb, var(--md-primary) 20%, transparent);
}
body.desktop #pactwise-app .imp-jcap__field,
body.desktop #pactwise-app .imp-jcap__field:is(:focus, :focus-visible) {
	min-height: 28px;
	padding: 4px 0;
	border: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--md-onSurface);
	font-size: 16px;
	line-height: 1.5;
	resize: none;
}
body.desktop .imp-jcap__bar {
	display: flex;
	align-items: center;
	gap: 8px;
}
body.desktop #pactwise-app .imp-jcap__who {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	height: 42px;
	padding: 0 12px 0 5px;
	border: none;
	border-radius: 14px;
	background: color-mix(in srgb, var(--c) 10%, var(--md-surfaceContainerLow));
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 28%, transparent);
	color: var(--md-onSurface);
	text-align: left;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}
body.desktop #pactwise-app .imp-jcap__who:hover,
body.desktop #pactwise-app .imp-jcap__who[aria-expanded="true"] {
	background: color-mix(in srgb, var(--c) 17%, var(--md-surfaceContainerLow));
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent);
}
body.desktop #pactwise-app .imp-jcap__who:focus-visible {
	outline: 2px solid var(--c);
	outline-offset: 2px;
}
body.desktop .imp-jcap__tile {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	flex: none;
	border-radius: 10px;
	background: var(--c);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
}
body.desktop .imp-jcap__whotext {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}
body.desktop .imp-jcap__whotext small {
	color: var(--md-onSurfaceVariant, var(--imp-muted));
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
body.desktop .imp-jcap__whotext span {
	max-width: 220px;
	overflow: hidden;
	font-size: 13.5px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}
body.desktop #pactwise-app .imp-jcap__who svg {
	margin-left: 2px;
	color: var(--md-onSurfaceVariant, var(--imp-muted));
}
body.desktop .imp-jnote__edithead {
	display: flex;
	margin-bottom: 8px;
}
body.desktop .imp-jcap__saved {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--md-success, #2e9b5f);
	font-size: 12px;
	font-weight: 600;
}
body.desktop #pactwise-app .imp-jcap__add {
	margin-left: auto;
	height: 38px;
	padding: 0 18px;
	border: none;
	border-radius: 14px;
	background: var(--md-primary);
	color: var(--md-onPrimary);
	font-size: 14px;
	font-weight: 700;
}
body.desktop #pactwise-app .imp-jcap__add:disabled {
	opacity: 0.4;
}
body.desktop .imp-journal__empty {
	margin: 4px 8px;
}
/* the timeline: a line down the left, a dot per day */
body.desktop .imp-journal__list {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 0 8px;
	padding: 0 0 0 22px;
	list-style: none;
}
body.desktop .imp-journal__list::before {
	content: "";
	position: absolute;
	top: 10px;
	bottom: 6px;
	left: 5px;
	width: 2px;
	border-radius: 1px;
	background: var(--md-outlineVariant);
}
body.desktop .imp-journal__day {
	position: relative;
	margin-top: 4px;
	color: color-mix(in srgb, var(--c) 70%, var(--md-onSurface));
	font-size: 13px;
	font-weight: 700;
}
body.desktop .imp-journal__day::before {
	content: "";
	position: absolute;
	top: 4px;
	left: -22px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--c);
	box-shadow: 0 0 0 4px var(--md-surface);
}
body.desktop .imp-jnote {
	position: relative;
	border-radius: 18px;
	background: color-mix(in srgb, var(--md-success, #2e9b5f) 75%, #000);
	touch-action: pan-y;
}
body.desktop .imp-jnote__under {
	position: absolute;
	top: 50%;
	left: 16px;
	display: flex;
	align-items: center;
	gap: 6px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	transform: translateY(-50%);
}
body.desktop .imp-jnote__card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 12px 12px 14px;
	border-radius: 18px;
	background: var(--md-surfaceContainerLow);
	transition: transform 0.18s var(--md-ease);
}
body.desktop .imp-jnote.is-armed .imp-jnote__card {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
body.desktop .imp-jnote__head {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 28px;
	color: var(--md-onSurfaceVariant);
	font-size: 12px;
	font-weight: 700;
}
body.desktop .imp-jnote__who {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: color-mix(in srgb, var(--c) 65%, var(--md-onSurface));
}
body.desktop .imp-jnote__who + .imp-jnote__time::before {
	content: "· ";
}
body.desktop #pactwise-app .imp-jnote__tick {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	min-height: 0;
	margin: -2px -2px -2px auto;
	padding: 0;
	border: 2px solid color-mix(in srgb, var(--c) 60%, var(--md-outlineVariant));
	border-radius: 50%;
	background: transparent;
	color: var(--on-c, #fff);
}
body.desktop #pactwise-app .imp-jnote__tick.is-done {
	border-color: var(--c);
	background: var(--c);
	color: #fff;
}
body.desktop .imp-jnote h3 {
	margin: 0;
	padding-right: 4px;
	color: var(--md-onSurface);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}
body.desktop .imp-jnote__body {
	color: var(--md-onSurfaceVariant);
	font-size: 14px;
	line-height: 1.5;
}
body.desktop .imp-jnote__body > :first-child {
	margin-top: 0;
}
body.desktop .imp-jnote__body > :last-child {
	margin-bottom: 0;
}
body.desktop .imp-journal__list.is-done .imp-jnote__card {
	opacity: 0.6;
}
body.desktop .imp-journal__list.is-done h3 {
	text-decoration: line-through;
}
body.desktop .imp-jnote.is-editing {
	background: none;
}
body.desktop #pactwise-app .imp-journal__done {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	margin-left: 30px;
	padding: 0 14px;
	border: 1px dashed var(--md-outlineVariant);
	border-radius: 16px;
	background: transparent;
	color: var(--md-onSurfaceVariant);
	font-size: 14px;
	font-weight: 600;
}
body.desktop #pactwise-app .imp-journal__done > span {
	margin-left: auto;
}

/* A message at the bottom, with Undo */
.imp-snack {
	position: fixed;
	right: 16px;
	bottom: calc(var(--inset-bottom, 0px) + 112px);
	left: 16px;
	z-index: 60;
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 8px 0 18px;
	border-radius: 18px;
	background: var(--md-inverseSurface, #2b2840);
	color: var(--md-inverseOnSurface, #f3f1fb);
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	animation: imp-snack-in 0.18s ease-out;
}
.imp-snack span {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
#pactwise-app ~ .imp-snack button,
.imp-snack button {
	height: 40px;
	padding: 0 14px;
	border: none;
	border-radius: 12px;
	background: transparent;
	color: var(--md-inversePrimary, #b9adff);
	font: inherit;
	font-weight: 700;
}
@keyframes imp-snack-in {
	from { opacity: 0; transform: translateY(12px); }
}

/* (from the phone) Progress */
/* --- Progress: three numbers, goal bars, days by commitment, done, trend --------------------- */
body.desktop .imp-pkpis {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 0 0 12px;
}
body.desktop .imp-pkpi {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 12px;
	border-radius: 20px;
	background: var(--md-surfaceContainerLow);
}
body.desktop .imp-pkpi strong {
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.3px;
}
body.desktop .imp-pkpi span {
	color: var(--md-onSurfaceVariant);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
}
body.desktop .imp-pgoal {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 12px 0 4px;
	padding: 0;
	list-style: none;
}
body.desktop .imp-pgoal li {
	display: flex;
	flex-direction: column;
	gap: 7px;
}
body.desktop .imp-pgoal__label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
}
body.desktop .imp-pgoal__label a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--md-onSurface);
	text-decoration: none;
}
body.desktop .imp-pgoal__label .imp-muted {
	font-size: 13px;
	font-weight: 600;
}
body.desktop .imp-pgoal__track {
	position: relative;
	height: 14px;
	border-radius: 7px;
	background: var(--md-surfaceContainerHigh);
}
body.desktop .imp-pgoal__done {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	border-radius: 7px;
	background: var(--c);
}
body.desktop .imp-pgoal__plan {
	position: absolute;
	top: 2px;
	bottom: 2px;
	border-radius: 0 6px 6px 0;
	background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 60%, transparent) 0 4px, transparent 4px 8px);
}
body.desktop .imp-pgoal__tick {
	position: absolute;
	top: -5px;
	bottom: -5px;
	width: 3px;
	margin-left: -1.5px;
	border-radius: 2px;
	background: var(--md-onSurface);
}
body.desktop .imp-pgoal__note {
	font-size: 12px;
	font-weight: 600;
}
body.desktop .imp-pgoal__note.is-ok {
	color: var(--md-success, #2e9b5f);
}
body.desktop .imp-pgoal__note.is-short {
	color: var(--md-warning, #c76b16);
}
body.desktop .imp-pdays2__row {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
	margin: 12px 0 10px;
}
body.desktop #pactwise-app .imp-pday2 {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	min-height: 0;
	padding: 8px 0 6px;
	border: none;
	border-radius: 16px;
	background: transparent;
	color: var(--md-onSurface);
}
body.desktop #pactwise-app .imp-pday2.is-today {
	background: var(--md-surfaceContainerHigh);
}
body.desktop #pactwise-app .imp-pday2.is-open {
	box-shadow: inset 0 0 0 2px var(--md-primary);
}
body.desktop .imp-pday2__chart {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 100%;
}
body.desktop .imp-pday2__plan {
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 28px;
	border: 1.5px dashed var(--md-outline);
	border-radius: 7px;
	box-sizing: border-box;
	transform: translateX(-50%);
}
body.desktop .imp-pday2__stack {
	position: relative;
	display: flex;
	flex-direction: column-reverse;
	gap: 2px;
	width: 20px;
}
body.desktop .imp-pday2__stack span {
	display: block;
	border-radius: 4px;
}
body.desktop .imp-pday2__wd {
	font-size: 12px;
	font-weight: 700;
}
body.desktop .imp-pday2__h {
	color: var(--md-onSurfaceVariant);
	font-size: 11px;
	font-weight: 600;
}
body.desktop .imp-plegend__planned--outline {
	border: 1.5px dashed var(--md-outline);
	background: transparent !important;
}
body.desktop .imp-pchecked details {
	border-bottom: 1px solid var(--md-outlineVariant);
}
body.desktop .imp-pchecked details:last-of-type {
	border-bottom: none;
}
body.desktop .imp-pchecked summary {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	font-size: 15px;
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}
body.desktop .imp-pchecked summary::-webkit-details-marker {
	display: none;
}
body.desktop .imp-pchecked summary .imp-muted {
	margin-left: auto;
	font-size: 13px;
}
body.desktop .imp-pchecked ul {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 0 12px;
	padding: 0 0 0 18px;
	list-style: none;
	font-size: 14px;
}
body.desktop .imp-pchecked li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}
body.desktop .imp-pchecked li .imp-muted {
	flex: none;
	font-size: 12px;
}
body.desktop .imp-ptrend__chart {
	display: block;
	width: 100%;
	height: auto;
	margin-top: 10px;
}
body.desktop .imp-ptrend__axis {
	stroke: var(--md-outlineVariant);
}
body.desktop .imp-ptrend__grid {
	stroke: var(--md-outlineVariant);
	stroke-dasharray: 3 4;
}
body.desktop .imp-ptrend__axislabels {
	display: flex;
	justify-content: space-between;
	margin-top: 4px;
	color: var(--md-onSurfaceVariant);
	font-size: 11px;
	font-weight: 600;
}
body.desktop .imp-ptrend__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin-top: 10px;
	font-size: 13px;
	font-weight: 600;
}
body.desktop .imp-ptrend__legend > span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
/* A day, tapped: a sheet from the bottom */
body.desktop .imp-psheet__wrap {
	position: fixed;
	inset: 0;
	z-index: 40;
}
body.desktop .imp-psheet__scrim {
	position: absolute;
	inset: 0;
	background: rgba(5, 4, 12, 0.5);
	animation: imp-fade-in 0.18s ease-out;
}
body.desktop .imp-psheet {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-height: 80vh;
	overflow-y: auto;
	padding: 10px 20px calc(var(--inset-bottom, 0px) + 24px);
	border-radius: 32px 32px 0 0;
	background: var(--md-surfaceContainerLow);
	outline: none;
	animation: imp-sheet-up 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes imp-sheet-up {
	from { transform: translateY(40%); opacity: 0.4; }
}
@keyframes imp-fade-in {
	from { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	body.desktop :is(.imp-psheet, .imp-psheet__scrim) { animation: none; }
}
body.desktop .imp-psheet__grip {
	align-self: center;
	width: 40px;
	height: 5px;
	border-radius: 3px;
	background: var(--md-outlineVariant);
}
body.desktop .imp-psheet__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}
body.desktop .imp-psheet__head h2 {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
}
body.desktop .imp-psheet__head p {
	margin: 2px 0 0;
	font-weight: 600;
}
body.desktop .imp-psheet__caption {
	color: var(--md-onSurfaceVariant);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
}
body.desktop .imp-psheet__sessions ul {
	display: flex;
	flex-direction: column;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}
body.desktop .imp-psheet__sessions li {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	border-bottom: 1px solid var(--md-outlineVariant);
	font-size: 14px;
}
body.desktop .imp-psheet__sessions li > span:nth-child(2) {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}
body.desktop .imp-psheet__sessions li .imp-muted {
	font-size: 12px;
	font-weight: 600;
}
body.desktop .imp-psheet__bar {
	flex: none;
	width: 8px;
	height: 26px;
	border-radius: 4px;
}

/* --- the computer's own arrangement -------------------------------------------------------- */

/* Now: the top card above the block's tasks, in the right column */
body.desktop .imp-now__main > .imp-hero {
	margin: 0;
	padding: 22px 24px;
	border-radius: var(--imp-radius);
	box-shadow: var(--tl-shadow);
}
body.desktop .imp-now__main > .imp-hero--tracking {
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent), var(--tl-shadow);
}
body.desktop .imp-now__main > .imp-hero--block,
body.desktop .imp-now__main > .imp-hero--next {
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), var(--tl-shadow);
}
body.desktop .imp-hero__clock {
	font-size: 48px;
}
body.desktop .imp-hero__big {
	font-size: 40px;
}
body.desktop #pactwise-app .imp-hero__btn {
	min-height: 44px;
	border-radius: 14px;
	font-size: 14px;
	cursor: pointer;
}
body.desktop #pactwise-app .imp-hero__btn--wide {
	min-height: 48px;
	font-size: 15px;
}
body.desktop #pactwise-app .imp-hero__btn:hover {
	filter: brightness(0.97);
}
body.desktop #pactwise-app .imp-hero__btn--main:hover {
	filter: brightness(1.08);
}
/* (in a block: the card is one row on a wide window: what, how long, Start) */
@media (min-width: 900px) {
	body.desktop .imp-now__main > .imp-hero--block {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
		column-gap: 20px;
		row-gap: 8px;
	}
	body.desktop .imp-now__main > .imp-hero--block .imp-hero__label,
	body.desktop .imp-now__main > .imp-hero--block .imp-hero__big {
		grid-column: 1;
	}
	body.desktop .imp-now__main > .imp-hero--block .imp-hero__btn--wide {
		grid-column: 2;
		grid-row: 1 / span 2;
		padding: 0 24px;
	}
	body.desktop .imp-now__main > .imp-hero--block .imp-hero__other {
		grid-column: 2;
	}
}

body.desktop #pactwise-app .imp-tcol .imp-tq input[type="checkbox"],
body.desktop #pactwise-app .imp-inblock input[type="checkbox"],
body.desktop #pactwise-app .imp-hero__task input[type="checkbox"] {
	width: 20px;
	height: 20px !important;
	min-width: 0;
	min-height: 0;
	padding: 0;
	appearance: none;
	-webkit-appearance: none;
	display: inline-grid;
	place-content: center;
	flex: none;
	border: 2px solid var(--c, var(--md-primary));
	border-radius: 7px;
	background: transparent;
	cursor: pointer;
	transition: background-color 0.15s var(--md-ease);
}
body.desktop #pactwise-app .imp-tcol .imp-tq input[type="checkbox"]:checked,
body.desktop #pactwise-app .imp-inblock input[type="checkbox"]:checked,
body.desktop #pactwise-app .imp-hero__task input[type="checkbox"]:checked {
	background: var(--c, var(--md-primary)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 70% no-repeat;
}
body.desktop #pactwise-app :is(.imp-tcol .imp-tq, .imp-inblock, .imp-hero__task) input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--c, var(--md-primary));
	outline-offset: 2px;
}

/* Notes: the journal in a column that reads well */
body.desktop .imp-notes .imp-journal {
	max-width: 760px;
}
body.desktop .imp-notes .imp-tabs button:not(:has(.imp-dot)) {
	padding-inline: 16px;
}
body.desktop .imp-jnote__card {
	cursor: text;
}
body.desktop #pactwise-app .imp-jnote__tick,
body.desktop #pactwise-app .imp-jcap__who,
body.desktop #pactwise-app .imp-jcap__add,
body.desktop #pactwise-app .imp-journal__done {
	cursor: pointer;
}

/* Progress: two columns of cards */
body.desktop .imp-pprogress {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--imp-gap);
	align-items: start;
}
body.desktop .imp-pprogress > :is(.imp-phead, .imp-pkpis, .imp-pmore, .imp-psheet__wrap) {
	grid-column: 1 / -1;
}
body.desktop .imp-pprogress > .imp-ptrend {
	order: 1;
}
body.desktop .imp-pprogress > :is(.imp-pchecked, .imp-pmore, .imp-psheet__wrap) {
	order: 2;
}
body.desktop .imp-pprogress .imp-pkpis {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
body.desktop .imp-pprogress .imp-pkpis {
	margin: 0;
	gap: var(--imp-gap);
}
body.desktop .imp-pprogress .imp-pkpi {
	padding: 18px 22px;
	border-radius: var(--imp-radius);
	box-shadow: var(--tl-shadow);
}
body.desktop .imp-pprogress .imp-pkpi strong {
	font-size: 28px;
}
body.desktop .imp-pprogress .imp-pkpi span {
	font-size: 13px;
}
body.desktop .imp-pprogress .imp-pcard {
	margin: 0;
	padding: 22px 24px;
	border-radius: var(--imp-radius);
	box-shadow: var(--tl-shadow);
}
body.desktop .imp-pweekline .imp-figure {
	margin: 0;
	padding: 0;
	box-shadow: none;
}
body.desktop #pactwise-app .imp-pday2 {
	cursor: pointer;
}
body.desktop #pactwise-app .imp-pday2:hover {
	background: var(--tl-pill);
}
body.desktop .imp-pmore > summary {
	cursor: pointer;
}
/* A day, clicked: a panel from the right */
body.desktop .imp-psheet {
	top: 0;
	right: 0;
	bottom: 0;
	left: auto;
	width: min(440px, 100%);
	max-height: none;
	padding: 24px 26px;
	border-radius: 28px 0 0 28px;
	box-shadow: var(--md-elev-3);
	animation: imp-sheet-left 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
body.desktop .imp-psheet__grip {
	display: none;
}
@keyframes imp-sheet-left {
	from { transform: translateX(40px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	body.desktop .imp-psheet { animation: none; }
}
@media (max-width: 760px) {
	body.desktop .imp-pprogress {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Undo, at the bottom of the window (outside the app's own colours) */
body.desktop .imp-snack {
	right: 0;
	bottom: 24px;
	left: 0;
	width: fit-content;
	max-width: min(520px, calc(100% - 32px));
	margin: 0 auto;
	background: #2c2a42;
	color: #f3f1fb;
}
body.desktop .imp-snack button {
	color: #c4bbff;
	cursor: pointer;
}
/* (no swipe with a mouse: the green under a note shows only while one is swiped on a touch screen) */
body.desktop .imp-jnote:not(.is-armed):not(:has(.imp-jnote__card[style*="translate"])) {
	background: transparent;
}
body.desktop .imp-jnote:not(.is-armed):not(:has(.imp-jnote__card[style*="translate"])) .imp-jnote__under {
	visibility: hidden;
}
body.desktop .imp-jnote__card {
	box-shadow: var(--tl-shadow);
}
body.desktop #pactwise-app .imp-jcap__field,
body.desktop #pactwise-app .imp-jcap__field:focus {
	border: none;
	outline: none;
	box-shadow: none;
	background: transparent;
}
/* One column (a narrow window): the moment first, then the day, then the block's tasks */
@media (max-width: 1000px) {
	body.desktop .imp-now__main {
		display: contents;
	}
	body.desktop .imp-now > .imp-now__side {
		order: 1;
	}
	body.desktop .imp-now__main > .imp-inblock {
		order: 2;
	}
}

/* --- the top bar: pages on the left, commitments on the right, then the logo -------------- */
body.desktop .imp-nav--bar {
	display: block;
	padding: 12px var(--imp-nav-side) 4px;
}
body.desktop .imp-nav--bar::after {
	content: none;
}
body.desktop .imp-nav__bar {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 56px;
	padding: 0 8px 0 5px;
	border-radius: 20px;
	background: var(--tl-card);
	box-shadow: 0 6px 20px rgba(60, 50, 140, 0.07);
}
body.desktop .imp-nav--bar .imp-nav__main {
	flex-wrap: nowrap;
	padding: 0;
	background: none;
	box-shadow: none;
}
body.desktop .imp-nav__fill {
	flex: 1;
	align-self: stretch;
}
body.desktop .imp-nav__sep {
	width: 1px;
	height: 26px;
	background: var(--imp-line);
}
/* The commitments get only the room the pages, + and the logo leave, and are clipped
   there: they can never run into + or the logo, whatever the browser or font. fitNav
   then moves those that don't fit whole into the list behind "+N". */
body.desktop .imp-nav__cms {
	display: flex;
	flex: 0 1 auto;
	flex-wrap: nowrap;
	gap: 2px;
	min-width: 0;
	overflow: hidden;
}
body.desktop .imp-nav--bar :is(.imp-nav__main, .imp-nav__sep, .imp-nav__more, .imp-nav__logo, .imp-nav__cms > li) {
	flex: none;
}
body.desktop .imp-nav--bar .imp-nav__fill {
	min-width: 0;
}
body.desktop .imp-nav__cm .imp-nav__name {
	display: inline-block;
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
body.desktop #pactwise-app .imp-nav__cm {
	min-height: 34px;
	padding: 0 12px;
	border-radius: 11px;
	background: transparent;
	color: var(--imp-text);
	font-weight: 600;
}
body.desktop #pactwise-app .imp-nav__cm:hover {
	background: var(--tl-pill);
}
body.desktop #pactwise-app .imp-nav__cm.active {
	background: color-mix(in srgb, var(--c) 16%, var(--tl-card));
}
body.desktop .imp-nav__more {
	display: flex;
	align-items: center;
	gap: 5px;
	min-width: 34px;
	height: 34px;
	box-sizing: border-box;
	padding: 0 10px;
	border: none;
	border-radius: 11px;
	background: var(--tl-accent-soft);
	color: var(--color-primary-element-light-text);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	-webkit-app-region: no-drag;
}
body.desktop .imp-nav__more.is-plus {
	justify-content: center;
	padding: 0;
	border: 1.5px dashed var(--color-border-dark);
	background: transparent;
	color: var(--imp-muted);
	font-size: 16px;
}
body.desktop .imp-nav__dots {
	display: flex;
}
body.desktop .imp-nav__dots span {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	box-shadow: 0 0 0 2px var(--tl-accent-soft);
}
body.desktop .imp-nav__dots span + span {
	margin-left: -3px;
}
body.desktop .imp-nav--bar .imp-nav__logo {
	width: 40px;
	height: 40px;
	margin-left: 4px;
	border-radius: 12px;
}
body.desktop .imp-menu__find {
	width: 100%;
	box-sizing: border-box;
	margin-bottom: 6px;
}
body.desktop .imp-menu__sep {
	height: 1px;
	margin: 4px 6px;
	background: var(--imp-line);
}
body.desktop .imp-nav--bar .imp-nav__bar > * {
	order: 0;
}

/* --- Tasks: each task its own card, subtasks on a rail, one line each -------------------- */
body.desktop .imp-tcol .imp-tq__item,
body.desktop .imp-tcol .imp-tq__item + .imp-tq__item {
	margin: 0 0 10px;
	padding: 12px 12px 8px 0;
	border-radius: 16px;
	background: var(--tl-card);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--imp-line) 85%, var(--c));
}
body.desktop .imp-tcol .imp-tq__item:hover,
body.desktop .imp-tcol .imp-tq__item:focus-within {
	background: var(--tl-card);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--imp-line) 55%, var(--c)), 0 6px 18px rgba(60, 50, 140, 0.06);
}
body.desktop .imp-tcol .imp-tq__title {
	font-size: 15px;
	font-weight: 700;
}
body.desktop .imp-tq__ring {
	flex: none;
	align-self: center;
}
body.desktop .imp-tq__ringbg {
	stroke: color-mix(in srgb, var(--c) 22%, transparent);
}
body.desktop .imp-tq__ringfg {
	stroke: var(--c);
}
body.desktop .imp-tcol .imp-tq__bar {
	display: none;
}
body.desktop .imp-tcol .imp-tq__head {
	align-items: center;
	gap: 10px;
}
body.desktop .imp-tcol .imp-tq__handle,
body.desktop .imp-tcol .imp-sub__handle {
	opacity: 0.35;
}
body.desktop .imp-tcol .imp-tq__item:hover > .imp-tq__handle,
body.desktop .imp-tcol .imp-tq__sub:hover .imp-sub__handle {
	opacity: 1;
}
/* (reorder by dragging; Alt+↑/↓ still moves a task) */
body.desktop .imp-tcol .imp-tq__actions > button:nth-child(2),
body.desktop .imp-tcol .imp-tq__actions > button:nth-child(3) {
	display: none;
}
body.desktop .imp-tcol .imp-tq__subs {
	margin: 6px 0 0 10px;
	padding-left: 16px;
	border-left: 2px solid color-mix(in srgb, var(--c) 25%, transparent);
}
body.desktop #pactwise-app .imp-tcol .imp-tq__sub {
	position: relative;
	gap: 10px;
	min-height: 36px;
}
body.desktop #pactwise-app .imp-tcol .imp-tq__sub input[type="checkbox"] {
	width: 18px;
	height: 18px !important;
	border-radius: 50%;
}
body.desktop .imp-tcol .imp-tq__subtitle {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-weight: 500;
}
body.desktop #pactwise-app .imp-tcol .imp-tq__sub .imp-chip {
	background: transparent;
	color: var(--imp-muted);
	font-weight: 600;
}
body.desktop #pactwise-app .imp-tcol .imp-tq__sub .imp-chip:hover {
	background: var(--tl-pill);
}
/* a subtask's window beside its column: the whole title to read, and to edit (pactwise.js subPopOpen) */
body.desktop .imp-tcol .imp-tq__sub.is-popped {
	border-radius: 10px;
	background: color-mix(in srgb, var(--c) 9%, transparent);
}
body.desktop .imp-tcol .imp-tq__sub.is-editing {
	background: color-mix(in srgb, var(--c) 15%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent);
}
body.desktop .imp-tcol.is-subediting .imp-tq__sub:not(.is-editing) {
	opacity: 0.55;
	pointer-events: none;
}
body.desktop .imp-subpop {
	position: fixed;
	z-index: 60;
	width: 300px;
	padding: 10px 14px 9px;
	border-radius: 14px;
	background: var(--tl-card);
	box-shadow:
		inset 0 0 0 1px color-mix(in srgb, var(--c, var(--tl-accent)) 30%, var(--imp-line)),
		0 2px 4px rgba(20, 16, 50, 0.06),
		0 16px 36px -8px rgba(20, 16, 50, 0.28);
	color: var(--imp-text);
	font-family: Poppins, system-ui, sans-serif;
	animation: imp-subpop 0.12s ease-out;
}
body.desktop .imp-subpop.is-editing {
	box-shadow:
		inset 0 0 0 2px var(--c, var(--tl-accent)),
		0 2px 4px rgba(20, 16, 50, 0.06),
		0 16px 36px -8px rgba(20, 16, 50, 0.28);
}
body.desktop .imp-subpop__arrow {
	position: absolute;
	width: 12px;
	height: 12px;
	background: var(--tl-card);
	transform: rotate(45deg);
}
body.desktop .imp-subpop[data-side="right"] .imp-subpop__arrow {
	top: calc(var(--arrow-y) - 6px);
	left: -6px;
	box-shadow: -1px 1px 0 0 color-mix(in srgb, var(--c, var(--tl-accent)) 30%, var(--imp-line));
}
body.desktop .imp-subpop[data-side="left"] .imp-subpop__arrow {
	top: calc(var(--arrow-y) - 6px);
	right: -6px;
	box-shadow: 1px -1px 0 0 color-mix(in srgb, var(--c, var(--tl-accent)) 30%, var(--imp-line));
}
body.desktop .imp-subpop[data-side="below"] .imp-subpop__arrow {
	top: -6px;
	left: calc(var(--arrow-x) - 6px);
	box-shadow: -1px -1px 0 0 color-mix(in srgb, var(--c, var(--tl-accent)) 30%, var(--imp-line));
}
body.desktop .imp-subpop.is-editing[data-side="right"] .imp-subpop__arrow { box-shadow: -2px 2px 0 0 var(--c, var(--tl-accent)); }
body.desktop .imp-subpop.is-editing[data-side="left"] .imp-subpop__arrow { box-shadow: 2px -2px 0 0 var(--c, var(--tl-accent)); }
body.desktop .imp-subpop.is-editing[data-side="below"] .imp-subpop__arrow { box-shadow: -2px -2px 0 0 var(--c, var(--tl-accent)); }
body.desktop #pactwise-app .imp-subpop__field,
body.desktop #pactwise-app .imp-subpop__field:is(:focus, :focus-visible) {
	position: relative;
	display: block;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: none;
	outline: none;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	resize: none;
	cursor: text;
}
body.desktop .imp-subpop__hint {
	display: none;
	gap: 12px;
	margin-top: 8px;
	padding-top: 7px;
	border-top: 1px solid var(--imp-line);
	color: var(--imp-muted);
	font-size: 11.5px;
	font-weight: 600;
}
body.desktop .imp-subpop.is-editing .imp-subpop__hint {
	display: flex;
}
body.desktop .imp-subpop__hint kbd {
	padding: 1px 5px;
	border-radius: 5px;
	background: var(--tl-pill);
	font: inherit;
	font-size: 11px;
}
@keyframes imp-subpop {
	from { opacity: 0; transform: translateY(2px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	body.desktop .imp-subpop { animation: none; }
}

/* --- Now: today as one timeline ------------------------------------------------------------ */
body.desktop .imp-nowb__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 18px;
}
body.desktop .imp-nowb__head h1 {
	margin: 0;
	font-size: 26px;
	font-weight: 800;
	text-transform: capitalize;
}
body.desktop .imp-nowb__head p {
	margin: 2px 0 0;
	color: var(--imp-muted);
	font-size: 14px;
	font-weight: 600;
}
body.desktop .imp-nowb__week {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	min-width: 0;
	max-width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
}
body.desktop #pactwise-app .imp-nowb__wk {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 7px 12px;
	border-radius: 12px;
	background: var(--tl-card);
	color: var(--imp-text);
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
}
body.desktop .imp-nowb__wk .imp-dot {
	margin: 0;
}
body.desktop .imp-nowb__wk small {
	color: var(--imp-muted);
	font-size: 12px;
	font-weight: 600;
}
body.desktop .imp-nowb__col {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 860px;
	margin: 0 auto;
}
body.desktop .imp-nowb__col > .imp-hero {
	margin: 0;
	padding: 22px 24px;
	border-radius: var(--imp-radius);
	box-shadow: var(--tl-shadow);
}
body.desktop .imp-nowb__col > .imp-hero--block,
body.desktop .imp-nowb__col > .imp-hero--next,
body.desktop .imp-nowb__col > .imp-hero--tracking {
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 42%, transparent), var(--tl-shadow);
}
body.desktop .imp-nowb__tl {
	margin: 0;
	padding: 0;
	list-style: none;
}
body.desktop .imp-nowb__row {
	position: relative;
	display: grid;
	grid-template-columns: 64px 22px minmax(0, 1fr);
	column-gap: 12px;
	align-items: start;
}
/* the line down the timeline */
body.desktop .imp-nowb__row::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 86px;
	width: 2px;
	background: var(--imp-line);
}
body.desktop .imp-nowb__row:first-child::before {
	top: 24px;
}
body.desktop .imp-nowb__row:last-child::before {
	bottom: calc(100% - 24px);
}
body.desktop .imp-nowb__time {
	padding-top: 17px;
	color: var(--imp-muted);
	font-size: 12px;
	font-weight: 700;
	text-align: right;
}
body.desktop .imp-nowb__row.is-now .imp-nowb__time {
	color: color-mix(in srgb, var(--c) 70%, var(--imp-text));
}
body.desktop .imp-nowb__dot {
	position: relative;
	justify-self: center;
	width: 12px;
	height: 12px;
	margin-top: 20px;
	border-radius: 50%;
	background: var(--c, var(--color-border-dark));
	box-shadow: 0 0 0 4px var(--tl-page);
}
body.desktop .imp-nowb__row.is-gap .imp-nowb__dot {
	width: 8px;
	height: 8px;
	margin-top: 22px;
	background: var(--color-border-dark);
}
body.desktop #pactwise-app .imp-nowb__blk {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 6px 0;
	padding: 12px 18px 12px 14px;
	border-radius: 18px;
	background: var(--tl-card);
	box-shadow: 0 6px 20px rgba(60, 50, 140, 0.06);
	color: var(--imp-text);
	text-decoration: none;
}
body.desktop #pactwise-app .imp-nowb__blk:hover {
	box-shadow: 0 6px 20px rgba(60, 50, 140, 0.12);
}
body.desktop .imp-nowb__bar {
	align-self: stretch;
	width: 6px;
	border-radius: 3px;
	background: var(--c);
}
body.desktop .imp-nowb__what {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}
body.desktop .imp-nowb__what strong {
	font-size: 15px;
}
body.desktop .imp-nowb__what small,
body.desktop .imp-nowb__n {
	overflow: hidden;
	color: var(--imp-muted);
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
	text-overflow: ellipsis;
}
body.desktop .imp-nowb__row.is-past .imp-nowb__blk {
	opacity: 0.6;
}
body.desktop .imp-nowb__free {
	display: flex;
	justify-content: space-between;
	margin: 6px 0;
	padding: 12px 18px;
	border: 1.5px dashed var(--color-border-dark);
	border-radius: 16px;
	color: var(--imp-muted);
	font-size: 13px;
	font-weight: 600;
}
body.desktop .imp-nowb__open {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 6px 0;
	padding: 18px 20px;
	border-radius: 22px;
	background: var(--tl-card);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 42%, transparent), 0 10px 30px rgba(60, 50, 140, 0.1);
}
body.desktop .imp-nowb__open > .imp-hero {
	margin: 0;
	padding: 0;
	background: none;
	box-shadow: none;
}
body.desktop .imp-tcol--inline {
	height: auto;
	padding: 0;
	background: none;
	box-shadow: none;
}
body.desktop .imp-tcol--inline .imp-tq__item:last-child {
	margin-bottom: 0;
}
body.desktop .imp-nowb__later {
	margin: 8px 0 0;
	font-size: 12.5px;
}

@media (min-width: 900px) {
	body.desktop :is(.imp-nowb__open, .imp-nowb__col) > .imp-hero--block {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
		column-gap: 20px;
		row-gap: 8px;
	}
	body.desktop :is(.imp-nowb__open, .imp-nowb__col) > .imp-hero--block :is(.imp-hero__label, .imp-hero__big) {
		grid-column: 1;
	}
	body.desktop :is(.imp-nowb__open, .imp-nowb__col) > .imp-hero--block .imp-hero__btn--wide {
		grid-column: 2;
		grid-row: 1 / span 2;
		padding: 0 24px;
	}
	body.desktop :is(.imp-nowb__open, .imp-nowb__col) > .imp-hero--block .imp-hero__other {
		grid-column: 2;
	}
}
body.desktop .imp-pprogress .imp-ptrend__chart {
	display: block;
	width: 100%;
	height: 150px;
}

/* --- Calendar: planned and tracked, checked off, tasks to plan ------------------------------ */
body.desktop .imp-cv__wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 270px;
	gap: var(--imp-gap);
	align-items: start;
}
body.desktop .imp-cv--plan .imp-cv__wrap {
	flex: 1 1 auto;
	min-height: 0;
	align-items: stretch;
}
body.desktop .imp-cv__main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
}
body.desktop .imp-cv--plan .imp-cv__head {
	flex-wrap: nowrap;
	gap: 8px;
}
body.desktop .imp-cv--plan .imp-cv__head h1 {
	font-size: 1.35em;
	white-space: nowrap;
}
body.desktop .imp-cv--plan .imp-cv__planned {
	white-space: nowrap;
}
body.desktop #pactwise-app .imp-cv__new {
	width: 38px;
	min-width: 38px;
	padding: 0;
	font-size: 18px;
}
body.desktop .imp-cv__main > .imp-cv__legend {
	margin-top: 12px;
}
/* the title starts above the first day */
body.desktop .imp-cv--plan .imp-cv__head {
	padding-left: 60px;
}
body.desktop .imp-cv__daybar {
	display: block;
	width: 70%;
	height: 4px;
	margin-top: 2px;
	overflow: hidden;
	border-radius: 2px;
	background: var(--tl-pill);
}
body.desktop .imp-cv__daybar span {
	display: block;
	height: 100%;
	border-radius: 2px;
	background: var(--tl-accent);
}
body.desktop .imp-cv__trk {
	position: absolute;
	right: 1px;
	z-index: 3;
	width: 6px;
	border-radius: 3px;
	pointer-events: none;
	box-shadow: 0 0 0 1.5px var(--tl-card);
}
body.desktop .imp-cv__unpl {
	position: absolute;
	right: 10px;
	left: 1px;
	z-index: 1;
	box-sizing: border-box;
	padding: 5px 8px;
	overflow: hidden;
	border: 1.5px dashed var(--c);
	border-radius: 10px;
	background: color-mix(in srgb, var(--c) 8%, transparent);
	color: color-mix(in srgb, var(--c) 60%, var(--imp-text));
	font-size: 11px;
	font-weight: 700;
	pointer-events: none;
}
body.desktop .imp-cv__chk {
	position: absolute;
	left: -4px;
	z-index: 4;
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	min-height: 0;
	padding: 0;
	box-sizing: border-box;
	border: 2px solid var(--c);
	border-radius: 50%;
	background: var(--tl-card);
	color: var(--c);
	cursor: pointer;
}
body.desktop .imp-cv__chk.is-note {
	border-radius: 6px;
}
body.desktop .imp-cv__chk:hover,
body.desktop .imp-cv__chk[aria-expanded="true"] {
	background: var(--c);
	color: #ffffff;
}
body.desktop .imp-cv__chkinfo {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-width: 240px;
	padding: 6px 10px 8px;
}
body.desktop .imp-cv__chkinfo small {
	color: var(--imp-muted);
	font-size: 11.5px;
	font-weight: 600;
}
body.desktop .imp-cv__chkinfo strong {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
}
body.desktop .imp-cv__legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
	padding-left: 60px;
	color: var(--imp-muted);
	font-size: 12px;
	font-weight: 600;
}
body.desktop .imp-cv__legend > span {
	display: flex;
	align-items: center;
	gap: 6px;
}
body.desktop .imp-cv__legendhint {
	margin-left: auto;
}
body.desktop .imp-cv__key {
	display: inline-block;
	box-sizing: border-box;
}
body.desktop .imp-cv__key.is-planned {
	width: 14px;
	height: 12px;
	border-radius: 4px;
	background: var(--tl-accent);
	opacity: 0.55;
}
body.desktop .imp-cv__key.is-tracked {
	width: 6px;
	height: 14px;
	border-radius: 3px;
	background: var(--tl-accent);
}
body.desktop .imp-cv__key.is-unplanned {
	width: 14px;
	height: 12px;
	border: 1.5px dashed var(--imp-muted);
	border-radius: 4px;
}
body.desktop .imp-cv__key.is-checked {
	width: 12px;
	height: 12px;
	border: 2px solid var(--tl-accent);
	border-radius: 50%;
}
body.desktop .imp-cv__ghost {
	position: absolute;
	right: 2px;
	left: 2px;
	z-index: 6;
	height: 40px;
	box-sizing: border-box;
	padding: 4px 8px;
	border: 2px dashed var(--tl-accent);
	border-radius: 10px;
	background: color-mix(in srgb, var(--tl-accent) 10%, transparent);
	color: var(--color-primary-element-light-text);
	font-size: 11px;
	font-weight: 700;
	pointer-events: none;
}
body.desktop .imp-plan {
	align-self: start;
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 100%;
	box-sizing: border-box;
	overflow-y: auto;
	padding: 18px;
	border-radius: var(--imp-radius);
	background: var(--tl-card);
	box-shadow: var(--tl-shadow);
}
body.desktop .imp-plan h2 {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
}
body.desktop .imp-plan > p {
	margin: 0 0 4px;
	font-size: 12px;
	line-height: 1.45;
}
body.desktop .imp-plan__group h3 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px 2px 6px;
	font-size: 12.5px;
	font-weight: 700;
}
body.desktop .imp-plan__group h3 .imp-dot {
	margin: 0;
}
body.desktop .imp-plan__group h3 small {
	margin-left: auto;
	color: var(--imp-muted);
	font-weight: 600;
}
body.desktop .imp-plan__group ol {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
body.desktop .imp-plan__task {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 10px;
	border-radius: 12px;
	background: var(--tl-page);
	font-size: 13px;
	font-weight: 600;
	cursor: grab;
}
body.desktop .imp-plan__task:hover {
	box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 45%, transparent);
}
body.desktop .imp-plan__task.is-dragging {
	opacity: 0.45;
}
body.desktop .imp-plan__grip {
	color: var(--color-border-maxcontrast);
	letter-spacing: -2px;
}
body.desktop .imp-plan__title {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
body.desktop .imp-plan__task small {
	padding: 1px 7px;
	border-radius: 7px;
	background: var(--tl-card);
	color: var(--imp-muted);
	font-size: 11px;
	font-weight: 700;
}
@media (max-width: 1100px) {
	body.desktop .imp-cv__wrap {
		grid-template-columns: minmax(0, 1fr);
	}
	body.desktop .imp-plan {
		position: static;
		max-height: none;
	}
}
body.desktop .imp-cv--plan .imp-cv__head h1 {
	font-size: 1.2em;
}
body.desktop .imp-cv--plan .imp-cv__planned {
	font-size: 11.5px;
}
body.desktop #pactwise-app .imp-cv--plan .imp-cv__head .imp-button {
	min-height: 34px;
	padding: 0 10px;
	font-size: 12.5px;
}
body.desktop #pactwise-app .imp-cv--plan .imp-cv__views button {
	padding: 0 10px;
	font-size: 12.5px;
}
body.desktop #pactwise-app .imp-cv--plan .imp-cv__head .imp-cv__new {
	width: 34px;
	min-width: 34px;
	padding: 0;
	font-size: 18px;
}

/* --- Settings: sections in a sidebar --------------------------------------------------------- */
body.desktop .imp-sset {
	display: grid;
	grid-template-columns: 250px minmax(0, 760px);
	gap: 32px;
	align-items: start;
}
body.desktop .imp-sset__nav {
	position: sticky;
	top: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
body.desktop .imp-sset__nav h1 {
	margin: 0 0 14px 6px;
	font-size: 26px;
	font-weight: 800;
}
body.desktop #pactwise-app .imp-sset__item {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 42px;
	padding: 6px 12px;
	border: none;
	border-radius: 12px;
	background: transparent;
	color: var(--imp-text);
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}
body.desktop #pactwise-app .imp-sset__item:hover {
	background: var(--tl-pill);
}
body.desktop #pactwise-app .imp-sset__item.active {
	background: var(--tl-accent-soft);
}
body.desktop #pactwise-app .imp-sset__item.is-account {
	margin-bottom: 8px;
	padding: 10px 12px;
	background: var(--tl-card);
	box-shadow: 0 6px 20px rgba(60, 50, 140, 0.06);
}
body.desktop #pactwise-app .imp-sset__item.is-account.active {
	box-shadow: inset 0 0 0 2px var(--tl-accent), 0 6px 20px rgba(60, 50, 140, 0.06);
}
body.desktop .imp-sset__ico {
	display: grid;
	flex: none;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	color: #ffffff;
}
body.desktop .imp-sset__who {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
body.desktop .imp-sset__who small {
	overflow: hidden;
	color: var(--imp-muted);
	font-size: 11.5px;
	font-weight: 500;
	white-space: nowrap;
	text-overflow: ellipsis;
}
body.desktop .imp-sset__body {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 52px;
}
body.desktop .imp-sset__title {
	margin: 0 4px;
	font-size: 20px;
	font-weight: 800;
}
/* (the section's own heading: the title above says it) */
body.desktop .imp-sset__body > section > h2:first-child,
body.desktop .imp-sset__body > section > form > h2:first-child,
body.desktop .imp-sset__body > .imp-psync > h2:first-child {
	display: none;
}
body.desktop .imp-sset__body > section {
	margin: 0;
	padding: 22px 24px;
	border-radius: 20px;
	background: var(--tl-card);
	box-shadow: 0 6px 20px rgba(60, 50, 140, 0.06);
}
body.desktop .imp-sset__body--timer .imp-settings__save {
	display: none;
}
body.desktop .imp-sset__body--timer form > h2 {
	margin: 18px 0 8px;
	color: var(--imp-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}
@media (max-width: 860px) {
	body.desktop .imp-sset {
		grid-template-columns: minmax(0, 1fr);
	}
	body.desktop .imp-sset__nav {
		position: static;
	}
	body.desktop .imp-sset__body {
		padding-top: 0;
	}
}
body.desktop #pactwise-app .imp-sset__body--timer .imp-settings__save {
	display: none;
}
body.desktop .imp-sset__body > section > :is(p, .imp-muted):nth-child(2) {
	margin-top: 0;
}
body.desktop #pactwise-app .imp-cv__new {
	display: grid;
	place-items: center;
	padding: 0;
	line-height: 1;
}
body.desktop .imp-nowb__week::-webkit-scrollbar {
	display: none;
}
body.desktop #pactwise-app .imp-nowb__wk {
	flex: none;
}
/* the task's buttons, shown on hover, cover its count (not drawn over it) */
body.desktop .imp-tcol .imp-tq__actions {
	background: linear-gradient(to right, transparent, var(--tl-card) 14px);
}

/* --- A commitment picked in the top bar: Notes, Tasks, Calendar's "To plan", Progress ------- */
body.desktop #pactwise-app button.imp-nav__cm {
	display: flex;
	align-items: center;
	gap: 7px;
	height: 34px;
	box-sizing: border-box;
	margin: 0;
	border: none;
	font: inherit;
	font-size: 13.5px;
	cursor: pointer;
}
body.desktop #pactwise-app .imp-nav__cm.active {
	box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent);
	color: color-mix(in srgb, var(--c) 60%, var(--imp-text));
}
body.desktop #pactwise-app .imp-focuspill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 36px;
	padding: 0 10px 0 13px;
	border: none;
	border-radius: 12px;
	background: color-mix(in srgb, var(--c) 14%, var(--tl-card));
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent);
	color: var(--imp-text);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
body.desktop #pactwise-app .imp-focuspill svg {
	color: var(--imp-muted);
}
body.desktop #pactwise-app .imp-focuspill:hover svg {
	color: var(--imp-text);
}
body.desktop .imp-plan__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
body.desktop .imp-plan__head h2 {
	margin: 0;
}
body.desktop #pactwise-app .imp-plan__head .imp-focuspill {
	height: 30px;
	font-size: 12px;
}
body.desktop #pactwise-app .imp-tcol__name,
body.desktop #pactwise-app .imp-pgoal__name {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: none;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
body.desktop #pactwise-app .imp-tcol__name:hover,
body.desktop #pactwise-app .imp-pgoal__name:not(:disabled):hover {
	text-decoration: underline;
	text-decoration-color: var(--c, currentColor);
	text-underline-offset: 3px;
}
body.desktop #pactwise-app .imp-pgoal__name:disabled {
	opacity: 1;
	cursor: default;
}

/* Tasks, one commitment: its queue wide, beside it the commitment, its numbers, blocks, forecast */
body.desktop .imp-tfocus {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 24px;
	align-items: start;
}
body.desktop #pactwise-app .imp-tfocus .imp-tcol {
	width: auto;
	max-width: none;
	flex: none;
}
body.desktop .imp-tfocus__side {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
body.desktop #pactwise-app .imp-tfocus__side .imp-cpage__head {
	gap: 12px 14px;
	padding: 18px;
	border-radius: 22px;
}
body.desktop #pactwise-app .imp-tfocus__side .imp-cpage__head .imp-tile {
	width: 48px;
	height: 48px;
	border-radius: 15px;
	font-size: 22px;
}
body.desktop #pactwise-app .imp-tfocus__side .imp-cpage__head h1 {
	font-size: 1.35em;
}
body.desktop #pactwise-app .imp-tfocus__side .imp-cpage__head p {
	font-size: 12.5px;
}
body.desktop #pactwise-app .imp-tfocus__side .imp-cpage__actions {
	display: flex;
	flex: 1 1 100%;
	gap: 8px;
}
body.desktop #pactwise-app .imp-tfocus__side .imp-cpage__actions > :first-child {
	display: none; /* (Tasks: already here) */
}
body.desktop #pactwise-app .imp-tfocus__side .imp-cpage__actions > * {
	flex: 1;
	justify-content: center;
}
body.desktop #pactwise-app .imp-tfocus__side .imp-cpage__stats {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
}
body.desktop #pactwise-app .imp-tfocus__side .imp-cpage__stats > div {
	padding: 12px 14px;
	border-radius: 16px;
}
body.desktop #pactwise-app .imp-tfocus__side .imp-cpage__stats dd {
	font-size: 1.3em;
}
body.desktop #pactwise-app .imp-tfocus__side .imp-cpage__section {
	margin: 0;
	padding: 16px 18px;
}
body.desktop #pactwise-app .imp-tfocus__side .imp-cpage__section h2 {
	font-size: 15px;
}
@media (max-width: 1080px) {
	body.desktop .imp-tfocus {
		grid-template-columns: minmax(0, 1fr);
	}
}
/* Progress, one commitment: its history under the week */
body.desktop .imp-pfocus {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--imp-gap, 20px);
	order: 3;
	grid-column: 1 / -1;
}
body.desktop .imp-pfocus > .imp-cpage__section:last-child {
	grid-column: 1 / -1;
}

/* Progress: ‹ the week › (the week's name back to this week) */
body.desktop #pactwise-app .imp-pager {
	gap: 2px;
}
body.desktop #pactwise-app .imp-pager .imp-icon-btn {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
}
body.desktop #pactwise-app .imp-pager__label {
	min-width: 112px;
	height: 34px;
	padding: 0 10px;
	border: none;
	border-radius: 10px;
	background: none;
	color: var(--imp-text);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
body.desktop #pactwise-app .imp-pager__label:not(:disabled):hover {
	background: var(--tl-pill);
}
body.desktop #pactwise-app .imp-pager__label:disabled {
	opacity: 1;
	cursor: default;
}

/* Calendar: ‹ the dates › at the start, the dates back to today */
body.desktop .imp-cv__head--nav .imp-cv__nav {
	align-items: center;
	gap: 2px;
	margin-left: 0;
	margin-right: auto;
}
body.desktop #pactwise-app .imp-cv__head--nav .imp-cv__arrow {
	display: grid;
	place-items: center;
	width: 34px;
	min-width: 34px;
	height: 34px;
	padding: 0;
}
body.desktop .imp-cv__head--nav h1 {
	margin: 0;
}
body.desktop #pactwise-app .imp-cv__title {
	padding: 4px 10px;
	border: none;
	border-radius: 10px;
	background: none;
	color: var(--imp-text);
	font: inherit;
	font-weight: 800;
	text-transform: capitalize;
	white-space: nowrap;
	cursor: pointer;
}
body.desktop #pactwise-app .imp-cv__title:hover {
	background: var(--tl-pill);
}
body.desktop #pactwise-app button.imp-nav__cm {
	font-weight: 600;
}
/* The weekly nudge: as wide as the day below it */
body.desktop .imp-nowb > .imp-nudge {
	max-width: 860px;
	margin: 0 auto 16px;
}
