.planner {
	display: flex;
	flex-direction: column;
}
.planhead,
.controls,
.weekline,
.lanes,
.todos header,
.placing {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.planhead {
	margin-bottom: 20px;
}
.monthlink,
.today,
.expand,
.more {
	color: var(--muted);
	font-size: 13px;
	padding: 3px 0;
}
.weekline {
	border-block: 1px solid var(--line);
	padding: 9px 0;
}
.week {
	display: flex;
	flex: 1;
}
.week button {
	flex: 1;
	display: grid;
	justify-items: center;
	gap: 3px;
}
.week b {
	width: 31px;
	line-height: 31px;
	font-size: 19px;
	font-weight: 500;
}
.week .chosen b {
	background: var(--ink);
	color: white;
	border-radius: 50%;
}
.prev,
.next {
	color: var(--muted);
	font-size: 24px;
}
.controls {
	padding: 13px 0;
}
.seg {
	display: flex;
	padding: 3px;
	background: var(--soft);
	border-radius: 8px;
}
.seg button {
	padding: 3px 16px;
	font-size: 13px;
}
.seg .sel {
	background: white;
	box-shadow: 0 1px 3px #1112;
	border-radius: 6px;
}
.lanes,
.todocols,
.columns {
	display: grid;
	grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
	padding-left: 48px;
}
.lane {
	padding: 6px 9px;
}
.lane b {
	font-weight: 550;
}
.lane i {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #978571;
	margin-right: 7px;
}
.his i {
	background: #798e98;
}
.todos {
	background: #f3f2ef;
	border-radius: 8px;
	padding: 6px 6px 5px 0;
	max-height: 23dvh;
	overflow: auto;
	flex-shrink: 0;
}
.todos header {
	padding-left: 12px;
}
.todocols > div {
	min-width: 0;
	padding: 0 6px;
}
.task,
.block {
	display: flex;
	align-items: center;
	gap: 5px;
}
.task {
	min-height: 31px;
}
.tick {
	border-radius: 50%;
	border: 1px solid #989b91;
	width: 16px;
	height: 16px;
	padding: 0;
	font-size: 11px;
	flex: none;
	position: relative;
}
.tick:after {
	content: "";
	position: absolute;
	inset: -6px;
}
.entryname {
	padding: 1px 2px;
	text-align: left;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.entryname small {
	display: block;
	font-size: 11px;
}
.done .entryname {
	text-decoration: line-through;
	color: var(--muted);
}
.place {
	margin-left: auto;
	min-width: 30px;
	height: 31px;
	touch-action: none;
	font-size: 18px;
}
.quick input {
	border: 0;
	background: none;
	padding: 5px 0;
}
.empty {
	font-size: 12px;
}
.timescroll {
	flex: 1;
	min-height: 80px;
	overflow: auto;
	overscroll-behavior: contain;
	margin-top: 10px;
	scrollbar-width: thin;
}
.grid {
	height: 1930px;
	position: relative;
	margin-top: 12px;
}
.hour {
	position: absolute;
	left: 48px;
	right: 0;
	border-top: 1px solid var(--line);
}
.hour:after {
	content: "";
	position: absolute;
	top: 39px;
	left: 0;
	right: 0;
	border-top: 1px dashed #e9e8e2;
}
.hour span,
.now em {
	position: absolute;
	right: calc(100% + 7px);
	transform: translateY(-50%);
	font-size: 11px;
	color: var(--muted);
}
.columns {
	position: absolute;
	inset: 0;
}
.column {
	position: relative;
	border-left: 1px solid var(--line);
}
.block,
.dropghost {
	position: absolute;
	border-radius: 5px;
	padding: 3px 8px;
	overflow: hidden;
	background: var(--warm);
	border-left: 3px solid #998a77;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
}
.his .block {
	background: var(--cool);
	border-color: #8b9da6;
}
.resize {
	position: absolute;
	bottom: 0;
	height: 8px;
	inset-inline: 12px;
	cursor: ns-resize;
	touch-action: none;
}
.task {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
}
.dropghost {
	width: 99%;
	font-size: 12px;
	background: #e2e7d8;
	border: 1px dashed #79806e;
	z-index: 4;
	pointer-events: none;
}
.now {
	position: absolute;
	left: 48px;
	right: 0;
	border-top: 1px solid #89937e;
	pointer-events: none;
}
.now em {
	background: var(--paper);
	color: #536049;
	font-style: normal;
}
.placing {
	background: #e6eadf;
	padding: 5px 10px;
	font-size: 13px;
}
.planner button {
	min-width: 0;
}
@media (max-width: 700px) {
	.planhead {
		margin-bottom: 10px;
	}
	.planhead .add {
		margin: 18px 0 0;
		font-size: 13px;
	}
	.weekline {
		padding: 4px 0;
	}
	.controls {
		padding: 7px 0;
	}
	.week b {
		font-size: 17px;
		line-height: 26px;
		width: 26px;
	}
	.week small {
		font-size: 10px;
	}
	.lanes,
	.todocols,
	.columns {
		padding-left: 37px;
	}
	.hour,
	.now {
		left: 37px;
	}
	.block {
		padding: 2px 3px;
		gap: 3px;
		font-size: 13px;
	}
	.lane {
		font-size: 13px;
	}
	.todo .entryname {
		font-size: 13px;
	}
	.task {
		gap: 3px;
	}
	.task .entryname {
		font-size: 13px;
	}
	.quick input {
		padding: 2px 0;
	}
	.timescroll {
		margin-top: 5px;
	}
	.todocols > div {
		padding: 0 3px;
	}
}
.seg {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	isolation: isolate;
}
.seg button {
	z-index: 1;
	min-width: 46px;
	padding: 4px 12px;
}
.seg .sel {
	background: transparent;
	box-shadow: none;
}
.seg-indicator {
	position: absolute;
	inset-block: 3px;
	left: 3px;
	width: calc((100% - 6px) / 3);
	border-radius: 6px;
	background: linear-gradient(#fff, #fcfcfb);
	box-shadow:
		0 1px 3px #27291e1c,
		inset 0 0 0 1px #fff9;
	pointer-events: none;
}
.planner {
	--tracks: minmax(0, 50%) minmax(0, 50%);
}
.planner[data-mode="me"] {
	--tracks: minmax(0, 100%) minmax(0, 0%);
}
.planner[data-mode="other"] {
	--tracks: minmax(0, 0%) minmax(0, 100%);
}
.planner :is(.lanes, .columns, .todocols) {
	grid-template-columns: var(--tracks);
	transition: grid-template-columns 320ms cubic-bezier(0.22, 0.72, 0.25, 1);
	overflow: clip;
}
.planner :is(.lanes, .columns, .todocols) > div {
	transition: opacity 200ms ease;
	clip-path: inset(0);
}
.planner :is(.lanes, .columns, .todocols) > [inert] {
	opacity: 0;
	pointer-events: none;
}
.seg-indicator {
	transition: transform 300ms cubic-bezier(0.23, 0.8, 0.32, 1.045);
}
.seg[data-selected="both"] .seg-indicator {
	transform: translateX(100%);
}
.seg[data-selected="other"] .seg-indicator {
	transform: translateX(200%);
}
@media (prefers-reduced-motion: reduce) {
	.planner :is(.lanes, .columns, .todocols),
	.planner :is(.lanes, .columns, .todocols) > div,
	.seg-indicator {
		transition: none;
	}
}
.lane,
.todocols > div,
.column {
	min-width: 0;
	overflow: hidden;
}
.lane {
	white-space: nowrap;
}
.block {
	container-type: inline-size;
}
@container (max-width: 90px) {
	.block > .entryname {
		font-size: 12px;
	}
	.block .entryname small {
		overflow: hidden;
		text-overflow: ellipsis;
	}
}
@media (max-width: 700px) {
	.planhead {
		align-items: center;
		padding: 3px 0 4px;
	}
	.planhead .add {
		margin: 0;
		min-height: 42px;
		padding: 8px 13px;
	}
	.planhead .monthlink {
		margin-bottom: 2px;
	}
}
.block {
	align-items: flex-start;
	z-index: 1;
	padding-top: 4px;
}
.block > .tick {
	margin-top: 3px;
}
@container (max-width: 90px) {
	.entryname .endtime {
		display: none;
	}
}

.todocols .empty,
.todocols .more {
	white-space: nowrap;
}
.date-context {
	font-size: 13px;
	color: var(--muted);
}
.planhead :is(.monthlink, .daylink) {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: inherit;
	font: inherit;
	font-weight: inherit;
	margin: 0;
	padding: 0;
	min-height: 42px;
	letter-spacing: inherit;
}

.planhead h1 {
	display: flex;
	align-items: center;
	gap: 4px;
}
.planhead h1 button {
	border-radius: 7px;
	transition:
		background 0.16s,
		color 0.16s;
}
.planhead h1 button[aria-expanded="true"] {
	background: var(--soft);
	color: #4c6248;
}
.picker-strip .week {
	display: grid;
	grid-template-columns: repeat(var(--slots), minmax(0, 1fr));
	align-items: center;
}
.weekline button:disabled {
	opacity: 0.24;
}
.picker-strip .week b {
	min-width: 32px;
	width: auto;
	padding-inline: 3px;
	font-size: 16px;
}
.planner.composing > :not(.planhead, .schedule-editor) {
	display: none;
}
.planner.composing .planhead {
	border-bottom: 1px solid var(--line);
	padding-bottom: 14px;
	margin-bottom: 0;
}
.planner.composing .planhead .add {
	visibility: hidden;
}
.schedule-editor {
	max-width: 38rem;
	width: 100%;
	overflow: auto;
	overscroll-behavior: contain;
}
.schedule-editor .sheet {
	padding: 18px 3px 24px;
	gap: 16px;
}
.schedule-editor header h2 {
	font-size: 18px;
}
.schedule-editor header button,
.editor-details summary,
.timing summary {
	color: var(--muted);
	font-size: 14px;
}
.schedule-editor [name="title"] {
	font-size: 21px;
	font-weight: 500;
	border: 0;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	background: transparent;
	padding: 8px 0 12px;
}
.schedule-editor summary {
	cursor: pointer;
	padding: 7px 0;
}
.schedule-editor details[open] > label,
.editor-details .choice-field {
	margin-top: 9px;
}
.schedule-editor .editor-error:empty {
	display: none;
}
.schedule-editor .editor-error {
	color: #975247;
}
@media (prefers-reduced-motion: no-preference) {
	.picker-strip .week,
	.schedule-editor .sheet {
		animation: field-in 0.2s cubic-bezier(0.2, 0.75, 0.3, 1);
	}
	@keyframes field-in {
		from {
			opacity: 0.55;
			transform: translateY(4px);
		}
		to {
			opacity: 1;
			transform: none;
		}
	}
}
.schedule-editor .sheet {
	grid-template-columns: minmax(0, 1fr);
}
.schedule-editor input {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}
.schedule-editor [name="title"] {
	padding: 11px 13px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 11px;
}
.schedule-editor details:not(.choices) > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	list-style: none;
	min-height: 40px;
	border-bottom: 1px solid var(--line);
}
.schedule-editor details:not(.choices) > summary::-webkit-details-marker {
	display: none;
}
.schedule-editor details:not(.choices) > summary::after {
	content: "";
	width: 6px;
	height: 6px;
	border: solid currentColor;
	border-width: 0 1px 1px 0;
	transform: rotate(45deg);
}
.schedule-editor details:not(.choices)[open] > summary::after {
	transform: rotate(225deg);
}
.date-context .yearlink,
.backlog {
	color: var(--muted);
	font: inherit;
	padding: 4px 0;
	border-radius: 5px;
}
.date-context .yearlink[aria-expanded="true"] {
	color: var(--ink);
	box-shadow: inset 0 -1px #838f7f;
}
.todos header .backlog {
	font-size: 12px;
	padding: 4px 8px;
}
.when {
	display: grid;
	gap: 10px;
}
.when-tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.when-tags button {
	min-height: 36px;
	border: 1px solid var(--line);
	background: var(--paper);
	padding: 5px 13px;
	color: var(--muted);
	border-radius: 18px;
	font-size: 14px;
}
.when-tags button[aria-expanded="true"] {
	background: #e9ede4;
	color: var(--ink);
	border-color: #c7cfc0;
}
.when-line {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	padding: 10px 0 4px;
}
.when-line label {
	flex: 1;
	min-width: 0;
}
.when-line button {
	font-size: 12px;
	color: var(--muted);
	height: 40px;
}
.schedule-editor header {
	margin-bottom: 4px;
}
.schedule-editor .sheet > label:has([name="title"]) {
	font-size: 0;
	gap: 0;
}

.block.compact {
	align-items: center;
	padding-block: 0;
}
.block.compact > .tick {
	margin-top: 0;
}
.block.compact .entryname {
	min-width: 0;
	padding-block: 0;
	line-height: 17px;
}
.block.compact .entryname small {
	line-height: 14px;
}

.compact .entry-title {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
}
@container (min-width: 150px) {
	.compact .entryname {
		display: flex;
		align-items: baseline;
		gap: 8px;
	}
	.compact .entryname small {
		flex: none;
	}
}
