.tlwdh {
	--tlwdh-orange: #fb3d01;
	--tlwdh-row: #e9e9e9;
	--tlwdh-neutral: #f7f7f7;
	--tlwdh-green: #28c96f;
	--tlwdh-priority-orange: #ff9f43;
	--tlwdh-red: #ef2434;
	--tlwdh-blue: #7da7ef;
	--tlwdh-ink: #111111;
	--tlwdh-muted: #777777;
	--tlwdh-border: #dedede;
	--tlwdh-shadow: 0 18px 55px rgba(0, 0, 0, 0.17);
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.35;
	color: var(--tlwdh-ink);
}

.tlwdh *,
.tlwdh *::before,
.tlwdh *::after {
	box-sizing: border-box;
}

.tlwdh button,
.tlwdh input {
	font: inherit;
}

.tlwdh button {
	-webkit-tap-highlight-color: transparent;
}

.tlwdh__screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.tlwdh__scroller {
	width: 100%;
	overflow-x: auto;
	overflow-y: visible;
	padding: 1px 1px 7px;
	scrollbar-width: thin;
	scrollbar-color: #b7b7b7 transparent;
}

.tlwdh__scroller:focus-visible {
	outline: 3px solid rgba(251, 61, 1, 0.28);
	outline-offset: 3px;
}

.tlwdh__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(190px, 1fr));
	gap: clamp(14px, 1.7vw, 28px);
	min-width: 980px;
}

.tlwdh__day {
	min-width: 0;
	margin: 0;
}

.tlwdh__day-title {
	margin: 0;
	padding: 4px 8px 5px;
	background: var(--tlwdh-orange);
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	font-size: clamp(18px, 1.55vw, 27px);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.025em;
	text-transform: uppercase;
}

.tlwdh__rows {
	display: grid;
	gap: 9px;
	margin-top: 10px;
}

.tlwdh__task-row {
	display: grid;
	grid-template-columns: 21px minmax(0, 1fr);
	gap: 5px;
	min-width: 0;
}

.tlwdh__color-trigger,
.tlwdh__task-trigger {
	min-width: 0;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
}

.tlwdh__color-trigger {
	position: relative;
	background: var(--tlwdh-neutral);
	border: 1px solid #f0f0f0;
}

.tlwdh__color-trigger::after {
	content: "";
	position: absolute;
	inset: 2px;
	background: var(--tlwdh-neutral);
}

.tlwdh__color-trigger[data-color="green"]::after,
.tlwdh__color-option[data-color="green"] > span {
	background: var(--tlwdh-green);
}

.tlwdh__color-trigger[data-color="orange"]::after,
.tlwdh__color-option[data-color="orange"] > span {
	background: var(--tlwdh-priority-orange);
}

.tlwdh__color-trigger[data-color="red"]::after,
.tlwdh__color-option[data-color="red"] > span {
	background: var(--tlwdh-red);
}

.tlwdh__color-trigger[data-color="blue"]::after,
.tlwdh__color-option[data-color="blue"] > span {
	background: var(--tlwdh-blue);
}

.tlwdh__color-trigger[data-color="neutral"]::after,
.tlwdh__color-option[data-color="neutral"] > span {
	background: var(--tlwdh-neutral);
	border: 1px solid #ededed;
}

.tlwdh__task-trigger {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: 0 7px;
	background: var(--tlwdh-row);
	color: var(--tlwdh-ink);
	text-align: left;
	overflow: hidden;
}

.tlwdh__task-trigger:hover {
	filter: brightness(0.97);
}

.tlwdh__task-trigger.has-content {
	font-size: 12px;
}


.tlwdh__task-title {
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.tlwdh__color-trigger:focus-visible,
.tlwdh__task-trigger:focus-visible,
.tlwdh__button:focus-visible,
.tlwdh__color-option:focus-visible,
.tlwdh__modal-close:focus-visible,
.tlwdh input:focus-visible {
	outline: 3px solid rgba(0, 96, 223, 0.38);
	outline-offset: 2px;
}

.tlwdh__actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 14px;
}

.tlwdh__button {
	min-height: 34px;
	padding: 7px 13px;
	border: 1px solid transparent;
	border-radius: 4px;
	background: #a6a6a6;
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: transform 120ms ease, filter 120ms ease, opacity 120ms ease;
}

.tlwdh__button:hover {
	filter: brightness(0.94);
}

.tlwdh__button:active {
	transform: translateY(1px);
}

.tlwdh__button--clean,
.tlwdh__button--cancel {
	border-color: #ededed;
	background: #ffffff;
	color: #8a8a8a;
}

.tlwdh__button--delete {
	border-color: #f2c7cb;
	background: #ffffff;
	color: #bc1d2a;
}

.tlwdh__button--submit {
	background: #9e9e9e;
}

.tlwdh__quick-palette {
	z-index: 100000;
	display: flex;
	gap: 7px;
	padding: 8px;
	border: 1px solid var(--tlwdh-border);
	border-radius: 5px;
	background: #ffffff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.tlwdh__quick-palette[hidden] {
	display: none !important;
}

.tlwdh__color-option {
	position: relative;
	width: 28px;
	height: 28px;
	padding: 3px;
	border: 2px solid transparent;
	border-radius: 3px;
	background: transparent;
	cursor: pointer;
}

.tlwdh__color-option > span {
	display: block;
	width: 100%;
	height: 100%;
}

.tlwdh__color-option:hover {
	background: #f4f4f4;
}

.tlwdh__color-option.is-selected {
	border-color: #222222;
}

.tlwdh__modal-layer {
	position: fixed;
	z-index: 99999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: clamp(14px, 2.2vw, 32px);
	overflow-y: auto;
	opacity: 0;
	transition: opacity 160ms ease;
}

.tlwdh__modal-layer[hidden] {
	display: none !important;
}

.tlwdh__modal-layer.is-open {
	opacity: 1;
}

.tlwdh__modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(1px);
}

.tlwdh__modal {
	position: relative;
	z-index: 1;
	width: min(96vw, 1340px);
	height: min(670px, calc(100vh - 48px));
	max-height: calc(100vh - 48px);
	padding: clamp(38px, 4.6vw, 68px);
	overflow-y: auto;
	border: 1px solid #d8d8d8;
	border-radius: 0;
	background: #f8f8f8;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
	transform: translateY(8px) scale(0.985);
	transition: transform 160ms ease;
}

.tlwdh__modal-layer.is-open .tlwdh__modal {
	transform: translateY(0) scale(1);
}

.tlwdh__form {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0;
}

.tlwdh__modal-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: clamp(38px, 4.8vw, 66px);
}

.tlwdh h3.tlwdh__modal-title {
	margin: 0 !important;
	padding: 0 !important;
	color: #000000 !important;
	-webkit-text-fill-color: #000000 !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: clamp(40px, 4.1vw, 62px) !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	letter-spacing: -0.035em !important;
	text-transform: none !important;
}

.tlwdh__modal-close {
	display: grid !important;
	place-items: center;
	flex: 0 0 auto;
	width: clamp(42px, 4vw, 56px) !important;
	height: clamp(42px, 4vw, 56px) !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: -8px -9px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #606060 !important;
	-webkit-text-fill-color: #606060 !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: clamp(42px, 4vw, 58px) !important;
	font-weight: 300 !important;
	line-height: 1 !important;
	cursor: pointer;
}

.tlwdh__modal-close:hover {
	color: #111111 !important;
	-webkit-text-fill-color: #111111 !important;
	background: transparent !important;
}

.tlwdh__input-row {
	display: block;
	width: 100%;
	border: 1px solid #d2d2d2;
	background: #ffffff;
}

.tlwdh__input-row input.tlwdh__title-input {
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
	height: clamp(74px, 7.1vw, 102px) !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 clamp(20px, 2.6vw, 34px) !important;
	border: 0 !important;
	border-radius: 0 !important;
	outline: 0;
	background: #ffffff !important;
	box-shadow: none !important;
	color: #111111 !important;
	-webkit-text-fill-color: #111111 !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: clamp(24px, 2.7vw, 38px) !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	letter-spacing: -0.02em !important;
	appearance: none;
}

.tlwdh__title-input::placeholder {
	color: #bdbdbd !important;
	-webkit-text-fill-color: #bdbdbd !important;
	opacity: 1 !important;
}

.tlwdh__color-fieldset {
	min-width: 0;
	margin: clamp(34px, 4.2vw, 52px) 0 0;
	padding: 0 0 0 clamp(4px, 1vw, 14px);
	border: 0;
}

.tlwdh__modal-palette {
	display: flex;
	align-items: center;
	gap: clamp(14px, 1.8vw, 25px);
}

.tlwdh__modal-palette .tlwdh__color-option {
	position: relative;
	flex: 0 0 auto;
	width: clamp(46px, 4.8vw, 64px) !important;
	height: clamp(46px, 4.8vw, 64px) !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid rgba(0, 0, 0, 0.08) !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: transform 120ms ease, outline-color 120ms ease;
}

.tlwdh__modal-palette .tlwdh__color-option > span {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.tlwdh__modal-palette .tlwdh__color-option:hover {
	background: transparent !important;
	transform: translateY(-2px);
}

.tlwdh__modal-palette .tlwdh__color-option.is-selected {
	border-color: transparent !important;
	outline: 3px solid #111111;
	outline-offset: 4px;
}

.tlwdh__modal-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: clamp(16px, 2.2vw, 30px);
	margin-top: auto;
	padding-top: clamp(34px, 4vw, 52px);
}

.tlwdh__modal-spacer {
	flex: 1 1 auto;
}

.tlwdh__modal-actions .tlwdh__button[hidden] {
	display: none !important;
}

.tlwdh__modal-actions .tlwdh__button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: clamp(175px, 18vw, 250px) !important;
	min-height: clamp(64px, 7vw, 94px) !important;
	margin: 0 !important;
	padding: 14px 28px !important;
	border-radius: 12px !important;
	box-shadow: none !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: clamp(22px, 2.5vw, 36px) !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	text-transform: none !important;
	text-decoration: none !important;
}

.tlwdh__modal-actions .tlwdh__button--cancel {
	border: 1px solid #ededed !important;
	background: #ffffff !important;
	color: #000000 !important;
	-webkit-text-fill-color: #000000 !important;
}

.tlwdh__modal-actions .tlwdh__button--submit {
	border: 1px solid #9d9b99 !important;
	background: #9d9b99 !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

.tlwdh__modal-actions .tlwdh__button--delete {
	min-width: 0 !important;
	border: 1px solid #e6b9be !important;
	background: #ffffff !important;
	color: #b91f2b !important;
	-webkit-text-fill-color: #b91f2b !important;
	font-size: clamp(17px, 1.7vw, 23px) !important;
}

.tlwdh__toast {
	position: fixed;
	z-index: 100001;
	right: 20px;
	bottom: 20px;
	max-width: min(360px, calc(100vw - 40px));
	padding: 11px 15px;
	border-radius: 5px;
	background: #1f1f1f;
	color: #ffffff;
	font-size: 14px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 180ms ease, transform 180ms ease;
}

.tlwdh__toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

body.tlwdh-modal-open {
	overflow: hidden;
}

.tlwdh-editor {
	padding: 18px;
	border: 1px dashed #aaaaaa;
	background: #ffffff;
}

.tlwdh-editor__name {
	display: block;
	margin-bottom: 14px;
	font-size: 16px;
}

.tlwdh-editor__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(110px, 1fr));
	gap: 10px;
	overflow-x: auto;
}

.tlwdh-editor__day {
	min-width: 110px;
}

.tlwdh-editor__day-title {
	display: block;
	padding: 4px 6px;
	background: var(--tlwdh-orange);
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	font-size: 12px;
}

.tlwdh-editor__row {
	display: grid;
	grid-template-columns: 12px 1fr;
	gap: 3px;
	margin-top: 5px;
}

.tlwdh-editor__color,
.tlwdh-editor__task {
	display: block;
	height: 13px;
	background: var(--tlwdh-row);
}

.tlwdh-editor__color {
	background: var(--tlwdh-neutral);
}

.tlwdh-editor__hint {
	margin: 14px 0 0;
	color: #666666;
	font-size: 13px;
}

@media (max-width: 782px) {
	.tlwdh__grid {
		grid-template-columns: repeat(5, 190px);
		min-width: max-content;
		gap: 14px;
	}

	.tlwdh__day-title {
		font-size: 20px;
	}

	.tlwdh__modal-layer {
		padding: 10px;
	}

	.tlwdh__modal {
		width: 100%;
		height: auto;
		min-height: 0;
		max-height: calc(100vh - 20px);
		padding: 27px 22px 24px;
	}

	.tlwdh__form {
		height: auto;
	}

	.tlwdh__modal-header {
		margin-bottom: 28px;
	}

	.tlwdh h3.tlwdh__modal-title {
		font-size: clamp(32px, 9vw, 42px) !important;
	}

	.tlwdh__modal-close {
		width: 42px !important;
		height: 42px !important;
		margin: -8px -8px 0 0 !important;
		font-size: 44px !important;
	}

	.tlwdh__input-row input.tlwdh__title-input {
		height: 66px !important;
		padding: 0 16px !important;
		font-size: clamp(19px, 5.5vw, 25px) !important;
	}

	.tlwdh__color-fieldset {
		margin-top: 28px;
		padding-left: 2px;
	}

	.tlwdh__modal-palette {
		gap: 14px;
	}

	.tlwdh__modal-palette .tlwdh__color-option {
		width: 44px !important;
		height: 44px !important;
	}

	.tlwdh__modal-actions {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 12px;
		margin-top: 38px;
		padding-top: 0;
	}

	.tlwdh__modal-spacer {
		display: none;
	}

	.tlwdh__modal-actions .tlwdh__button {
		width: 100% !important;
		min-width: 0 !important;
		min-height: 58px !important;
		padding: 12px 14px !important;
		border-radius: 9px !important;
		font-size: 20px !important;
	}

	.tlwdh__modal-actions .tlwdh__button--delete {
		grid-column: 1 / -1;
		font-size: 18px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tlwdh *,
	.tlwdh *::before,
	.tlwdh *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
