/**
 * UC任务台 前台样式（平面化风格）
 *
 * 设计原则：
 * 1. 平面化：纯色块 + 1px 细线，不使用渐变、内阴影与高饱和装饰
 * 2. 语义色只服务一个目的：让「已逾期 / 落后 / 领先」一眼可辨
 * 3. 操作便捷：按钮高度统一、主次分明，删除等危险操作弱化但可辨识
 * 4. 作用域：.uct / .uct-overlay / .uct-toast，命名统一 uct- 前缀，避免与主题冲突
 * 5. 移动端：所有弹性容器允许换行，375px 宽度下不产生横向滚动
 */

.uct,
.uct-overlay,
.uct-toast {
	--uct-ink: #1a1d21;
	--uct-muted: #7b838d;
	--uct-line: #e6e9ed;
	--uct-line-strong: #d6dbe1;
	--uct-bg: #ffffff;
	--uct-soft: #f6f7f9;
	--uct-accent: #FF6600;
	--uct-accent-hover: #E65C00;
	--uct-accent-soft: #FFF3EB;
	--uct-danger: #b4443c;
	--uct-danger-soft: #fbf1f0;
	--uct-warn: #a8701f;
	--uct-warn-soft: #fbf5ea;
	--uct-ok: #2f6f63;
	--uct-ok-soft: #eef5f3;
	--uct-radius: 6px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: var(--uct-ink);
	-webkit-font-smoothing: antialiased;
}

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

.uct {
	margin: 20px 0 40px;
	overflow-x: hidden;
}

.uct h1,
.uct h2,
.uct h3,
.uct p,
.uct ul {
	margin: 0;
	font-weight: inherit;
}

.uct ul {
	padding: 0;
	list-style: none;
}

.uct button {
	font-family: inherit;
	font-size: inherit;
	cursor: pointer;
}

.uct-loading {
	padding: 48px 0;
	text-align: center;
	color: var(--uct-muted);
}

.uct-noscript {
	padding: 16px;
	border: 1px solid var(--uct-line);
	border-radius: var(--uct-radius);
	background: var(--uct-soft);
}

/* ---------------- 顶部 ---------------- */

.uct-top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 14px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--uct-line);
}

.uct-top__title {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.uct-top__name {
	font-size: 19px;
	font-weight: 600;
	letter-spacing: .01em;
}

.uct-top__sub {
	color: var(--uct-muted);
	font-size: 12px;
}

.uct-top__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* ---------------- 按钮 ---------------- */

.uct-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	padding: 0 14px;
	border: 1px solid var(--uct-line-strong);
	border-radius: 4px;
	background: var(--uct-bg);
	color: var(--uct-ink);
	font-size: 13px;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.uct-btn:hover {
	border-color: var(--uct-muted);
}

.uct-btn--primary {
	border-color: var(--uct-accent);
	background: var(--uct-accent);
	color: #fff;
}

.uct-btn--primary:hover {
	border-color: var(--uct-accent-hover);
	background: var(--uct-accent-hover);
}

.uct-btn--danger {
	border-color: var(--uct-danger);
	background: var(--uct-danger);
	color: #fff;
}

.uct-btn--ghost {
	border-color: transparent;
	background: transparent;
	color: var(--uct-muted);
}

.uct-btn--sm {
	height: 30px;
	padding: 0 10px;
	font-size: 12px;
}

.uct-btn:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.uct-linkbtn {
	padding: 0;
	border: 0;
	background: none;
	color: var(--uct-muted);
	font-size: 12px;
	line-height: 1.6;
}

.uct-linkbtn:hover {
	color: var(--uct-ink);
}

.uct-linkbtn.is-primary {
	color: var(--uct-accent);
}

.uct-linkbtn.is-danger {
	color: var(--uct-danger);
}

.uct-iconbtn {
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid var(--uct-line);
	border-radius: 4px;
	background: var(--uct-bg);
	color: var(--uct-muted);
	font-size: 16px;
	line-height: 1;
}

.uct-iconbtn:hover {
	border-color: var(--uct-danger);
	color: var(--uct-danger);
}

/* ---------------- 提示条 ---------------- */

.uct-banners {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 12px;
}

.uct-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--uct-line);
	border-radius: var(--uct-radius);
	background: var(--uct-soft);
	font-size: 12px;
	color: var(--uct-muted);
}

.uct-banner.is-guest {
	border-color: #e3d9c4;
	background: var(--uct-warn-soft);
	color: #6f5423;
}

.uct-banner.is-merge {
	border-color: rgba(255, 102, 0, .28);
	background: var(--uct-accent-soft);
	color: var(--uct-accent);
}

.uct-banner.is-settle {
	border-color: #d8dde3;
	background: #f3f5f7;
	color: var(--uct-ink);
}

/* ---------------- 概览 ---------------- */

.uct-summary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 14px;
}

.uct-summary__item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid var(--uct-line);
	border-radius: var(--uct-radius);
	background: var(--uct-bg);
}

.uct-summary__label {
	color: var(--uct-muted);
	font-size: 12px;
}

.uct-summary__value {
	font-size: 20px;
	font-weight: 600;
	letter-spacing: .01em;
	font-variant-numeric: tabular-nums;
}

.uct-summary__hint {
	color: var(--uct-muted);
	font-size: 11px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.uct-summary__item.is-danger .uct-summary__value {
	color: var(--uct-danger);
}

.uct-summary__item.is-ok .uct-summary__value {
	color: var(--uct-ok);
}

/* ---------------- 聚合信息 ---------------- */

.uct-aggregate {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}

.uct-aggregate__box {
	flex: 1 1 260px;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--uct-line);
	border-radius: var(--uct-radius);
	background: var(--uct-soft);
}

.uct-aggregate__label {
	display: block;
	margin-bottom: 6px;
	color: var(--uct-muted);
	font-size: 11px;
}

.uct-aggregate__line {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.uct-chip {
	display: inline-block;
	max-width: 100%;
	padding: 2px 8px;
	border: 1px solid var(--uct-line-strong);
	border-radius: 3px;
	background: var(--uct-bg);
	color: var(--uct-ink);
	font-size: 12px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.uct-chip.is-exam {
	border-color: #d9c9b4;
	color: #6f5423;
}

/* ---------------- 任务分组 ---------------- */

.uct-board {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.uct-group__head {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding-bottom: 8px;
	margin-bottom: 10px;
	border-bottom: 1px solid var(--uct-line);
}

.uct-group__head.is-toggleable {
	cursor: pointer;
}

.uct-group__title {
	font-size: 14px;
	font-weight: 600;
}

.uct-group__count {
	color: var(--uct-muted);
	font-size: 12px;
}

.uct-group.is-overdue .uct-group__title,
.uct-group.is-critical .uct-group__title {
	color: var(--uct-danger);
}

.uct-group.is-today .uct-group__title {
	color: var(--uct-warn);
}

.uct-group__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* ---------------- 任务卡 ---------------- */

.uct-card {
	position: relative;
	padding: 13px 15px 11px 18px;
	border: 1px solid var(--uct-line);
	border-radius: var(--uct-radius);
	background: var(--uct-bg);
}

.uct-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 12px;
	bottom: 12px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: var(--uct-task-color, var(--uct-accent));
}

.uct-card.is-overdue {
	border-color: rgba(180, 68, 60, .4);
	background: #fdfaf9;
}

.uct-card.is-done,
.uct-card.is-archived {
	opacity: .78;
}

.uct-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.uct-card__titlebox {
	min-width: 0;
}

.uct-card__title {
	font-size: 15px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
}

.uct-card__meta {
	margin-top: 2px;
	color: var(--uct-muted);
	font-size: 12px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.uct-badge {
	flex: 0 0 auto;
	padding: 2px 7px;
	border: 1px solid var(--uct-line-strong);
	border-radius: 3px;
	background: var(--uct-soft);
	color: var(--uct-muted);
	font-size: 11px;
	white-space: nowrap;
}

.uct-badge.is-danger {
	border-color: rgba(180, 68, 60, .35);
	background: var(--uct-danger-soft);
	color: var(--uct-danger);
}

.uct-badge.is-ok {
	border-color: rgba(47, 111, 99, .3);
	background: var(--uct-ok-soft);
	color: var(--uct-ok);
}

/* 分段进度条：每 10% 点亮一格 */
.uct-progress {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
}

.uct-bar {
	display: flex;
	flex: 1 1 auto;
	gap: 3px;
	min-width: 0;
}

.uct-bar__seg {
	flex: 1 1 0;
	height: 8px;
	border-radius: 2px;
	background: var(--uct-soft);
	transition: background-color .2s ease;
}

.uct-bar__seg.is-on {
	background: var(--uct-task-color, var(--uct-accent));
}

.uct-bar.is-danger .uct-bar__seg.is-on {
	background: var(--uct-danger);
}

.uct-progress__text {
	flex: 0 0 auto;
	color: var(--uct-muted);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.uct-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 10px;
}

.uct-card__detail {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed var(--uct-line);
}

.uct-card__empty {
	color: var(--uct-muted);
	font-size: 12px;
}

.uct-card__detailactions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px dashed var(--uct-line);
}

/* 子任务勾选 */
.uct-subtasks {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.uct-subtask__label {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 4px;
	border-radius: 4px;
	cursor: pointer;
}

.uct-subtask__label:hover {
	background: var(--uct-soft);
}

.uct-subtask__check {
	width: 16px;
	height: 16px;
	margin: 0;
	flex: 0 0 auto;
	accent-color: var(--uct-accent);
}

.uct-subtask__title {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.uct-subtask__time {
	flex: 0 0 auto;
	color: var(--uct-muted);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
}

.uct-subtask.is-done .uct-subtask__title {
	color: var(--uct-muted);
	text-decoration: line-through;
}

/* 完成时的一次性点亮动画 */
.uct-card.is-celebrate {
	animation: uct-pop .5s ease;
}

@keyframes uct-pop {
	0% { transform: scale(1); }
	35% { transform: scale(1.012); }
	100% { transform: scale(1); }
}

/* ---------------- 7 日轴 ---------------- */

.uct-week {
	margin-top: 22px;
	padding: 14px 14px 12px;
	border: 1px solid var(--uct-line);
	border-radius: var(--uct-radius);
	background: var(--uct-bg);
}

.uct-week__title {
	margin-bottom: 10px;
	font-size: 13px;
	font-weight: 600;
}

.uct-week__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 6px;
}

.uct-week__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	min-width: 0;
}

.uct-week__barwrap {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 100%;
	height: 64px;
	padding: 0 4px;
}

.uct-week__bar {
	width: 100%;
	max-width: 26px;
	height: 4px;
	border-radius: 2px;
	background: var(--uct-line);
}

.uct-week__bar.is-active {
	background: #c9a24a;
}

.uct-week__item.is-today .uct-week__bar.is-active {
	background: var(--uct-accent);
}

.uct-week__day {
	color: var(--uct-muted);
	font-size: 11px;
}

.uct-week__item.is-today .uct-week__day {
	color: var(--uct-ink);
	font-weight: 600;
}

.uct-week__mins {
	color: var(--uct-muted);
	font-size: 10px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* ---------------- 空状态 ---------------- */

.uct-empty {
	padding: 48px 20px;
	border: 1px dashed var(--uct-line-strong);
	border-radius: var(--uct-radius);
	background: var(--uct-soft);
	text-align: center;
}

.uct-empty__title {
	font-size: 16px;
	font-weight: 600;
}

.uct-empty__text {
	margin: 6px 0 16px;
	color: var(--uct-muted);
	font-size: 12px;
}

/* ---------------- 颜色标记 ---------------- */

.uct-color-1 { --uct-task-color: #2f6f63; }
.uct-color-2 { --uct-task-color: #3c6e9c; }
.uct-color-3 { --uct-task-color: #7a5ba6; }
.uct-color-4 { --uct-task-color: #a8701f; }
.uct-color-5 { --uct-task-color: #8a7a2a; }
.uct-color-6 { --uct-task-color: #6b7280; }

.uct-colors {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.uct-color {
	width: 24px;
	height: 24px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 50%;
	background: var(--uct-task-color, var(--uct-accent));
}

.uct-color.is-active {
	border-color: var(--uct-ink);
}

/* ---------------- 弹窗 ---------------- */

.uct-overlay {
	position: fixed;
	inset: 0;
	z-index: 9998;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(20, 24, 28, .42);
	overflow-y: auto;
}

.uct-dialog {
	width: 100%;
	max-width: 420px;
	padding: 20px;
	border-radius: 8px;
	background: var(--uct-bg);
}

.uct-dialog__title {
	font-size: 16px;
	font-weight: 600;
}

.uct-dialog__text {
	margin: 8px 0 18px;
	color: var(--uct-muted);
	font-size: 13px;
}

.uct-dialog__actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.uct-modal {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 620px;
	max-height: calc(100vh - 48px);
	border-radius: 8px;
	background: var(--uct-bg);
	overflow: hidden;
}

.uct-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px 12px;
	border-bottom: 1px solid var(--uct-line);
}

.uct-modal__title {
	font-size: 16px;
	font-weight: 600;
}

.uct-modal__close {
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: none;
	color: var(--uct-muted);
	font-size: 20px;
	line-height: 1;
}

.uct-modal__close:hover {
	background: var(--uct-soft);
	color: var(--uct-ink);
}

.uct-modal__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 16px 18px;
	overflow-y: auto;
}

.uct-modal__foot {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 12px 18px 16px;
	border-top: 1px solid var(--uct-line);
}

/* ---------------- 表单 ---------------- */

.uct-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.uct-field__label {
	color: var(--uct-muted);
	font-size: 12px;
}

.uct-fieldrow {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.uct-input {
	width: 100%;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--uct-line-strong);
	border-radius: 4px;
	background: var(--uct-bg);
	color: var(--uct-ink);
	font-family: inherit;
	font-size: 13px;
}

.uct-input:focus {
	border-color: var(--uct-accent);
	outline: none;
	box-shadow: 0 0 0 3px var(--uct-accent-soft);
}

.uct-hint {
	color: var(--uct-muted);
	font-size: 11px;
}

.uct-estimate {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.uct-estimate .uct-input {
	width: 92px;
	flex: 0 0 auto;
}

.uct-chipbtn {
	height: 30px;
	padding: 0 10px;
	border: 1px solid var(--uct-line-strong);
	border-radius: 4px;
	background: var(--uct-bg);
	color: var(--uct-ink);
	font-size: 12px;
	line-height: 1;
	white-space: nowrap;
}

.uct-chipbtn:hover {
	border-color: var(--uct-accent);
	color: var(--uct-accent);
}

.uct-templates {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* 子任务编辑区 */

.uct-subedit {
	padding: 12px;
	border: 1px solid var(--uct-line);
	border-radius: var(--uct-radius);
	background: var(--uct-soft);
}

.uct-subedit__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.uct-subedit__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.uct-subedit__list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 8px;
}

.uct-subedit__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 72px auto 28px;
	align-items: center;
	gap: 6px;
}

.uct-subedit__unit {
	color: var(--uct-muted);
	font-size: 11px;
}

/* ---------------- Toast ---------------- */

.uct-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 10000;
	max-width: calc(100vw - 32px);
	padding: 10px 16px;
	border-radius: 6px;
	background: #1a1d21;
	color: #fff;
	font-size: 13px;
	text-align: center;
	transform: translateX(-50%);
	opacity: 1;
	transition: opacity .2s ease;
	pointer-events: none;
}

.uct-toast.is-error {
	background: var(--uct-danger);
}

.uct-toast.is-out {
	opacity: 0;
}

/* ---------------- 提示页 ---------------- */

.uct-notice {
	max-width: 560px;
	margin: 40px auto;
	padding: 24px;
	border: 1px solid var(--uct-line);
	border-radius: var(--uct-radius);
	background: var(--uct-bg);
}

.uct-notice__title {
	font-size: 18px;
	font-weight: 600;
}

.uct-notice__text {
	margin: 8px 0 18px;
	color: var(--uct-muted);
	font-size: 13px;
}

.uct-notice__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 720px) {
	.uct-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.uct-summary__item:last-child {
		grid-column: span 2;
	}

	.uct-fieldrow {
		grid-template-columns: minmax(0, 1fr);
	}

	.uct-card__head {
		flex-wrap: wrap;
	}
}

@media (max-width: 420px) {
	.uct-top__name {
		font-size: 17px;
	}

	.uct-top__actions {
		width: 100%;
	}

	.uct-top__actions .uct-btn {
		flex: 1 1 auto;
	}

	.uct-summary {
		grid-template-columns: minmax(0, 1fr);
	}

	.uct-summary__item:last-child {
		grid-column: auto;
	}

	.uct-card {
		padding: 12px 12px 10px 15px;
	}

	.uct-subedit__row {
		grid-template-columns: minmax(0, 1fr) 64px 28px;
	}

	.uct-subedit__unit {
		display: none;
	}

	.uct-week {
		padding: 12px 8px 10px;
	}

	.uct-week__mins {
		font-size: 9px;
	}

	.uct-modal__body,
	.uct-modal__head,
	.uct-modal__foot {
		padding-left: 14px;
		padding-right: 14px;
	}
}

/* 尊重系统「减少动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
	.uct-card.is-celebrate {
		animation: none;
	}

	.uct-bar__seg,
	.uct-toast,
	.uct-btn {
		transition: none;
	}
}

/* ============================================================
   深色模式（与站点共用 html.dark）
   ------------------------------------------------------------
   站点通过 html.dark 切换深色，任务台使用独立的 --uct-* 变量，
   这里只重映射变量，并覆盖少数无法变量化的硬编码背景。
   主色保持站点主色 #FF6600，深底上仅将 hover 提亮一级。
   ============================================================ */

html.dark .uct,
html.dark .uct-overlay,
html.dark .uct-toast {
	--uct-ink: #E8EFF8;
	--uct-muted: #A9B8CC;
	--uct-line: #2A3448;
	--uct-line-strong: #3C4860;
	--uct-bg: #151F32;
	--uct-soft: #1B2740;
	--uct-accent: #FF6600;
	--uct-accent-hover: #FF7A1F;
	--uct-accent-soft: rgba(255, 102, 0, .16);
	--uct-danger: #E5736B;
	--uct-danger-soft: rgba(229, 115, 107, .12);
	--uct-warn: #E0A94A;
	--uct-warn-soft: rgba(224, 169, 74, .12);
	--uct-ok: #4FB39E;
	--uct-ok-soft: rgba(79, 179, 158, .12);
}

/* 卡片与容器 */
html.dark .uct-card.is-overdue {
	border-color: rgba(229, 115, 107, .42);
	background: #1F1A22;
}

html.dark .uct-week__bar {
	background: var(--uct-line);
}

html.dark .uct-week__bar.is-active {
	background: #B08A3A;
}

/* 提示条 */
html.dark .uct-banner.is-guest {
	border-color: rgba(224, 169, 74, .34);
	background: rgba(224, 169, 74, .10);
	color: #E0A94A;
}

html.dark .uct-banner.is-merge {
	border-color: rgba(255, 102, 0, .34);
	background: rgba(255, 102, 0, .12);
	color: #FFA45C;
}

html.dark .uct-banner.is-settle {
	border-color: var(--uct-line);
	background: var(--uct-soft);
	color: var(--uct-ink);
}

/* 标签 */
html.dark .uct-chip {
	border-color: var(--uct-line-strong);
	background: var(--uct-bg);
	color: var(--uct-ink);
}

html.dark .uct-chip.is-exam {
	border-color: rgba(224, 169, 74, .4);
	color: #E0A94A;
}

/* 弹层与表单 */
html.dark .uct-overlay {
	background: rgba(3, 8, 18, .66);
}

html.dark .uct-input {
	border-color: var(--uct-line-strong);
	background: #101A2C;
	color: var(--uct-ink);
}

html.dark .uct-toast {
	background: var(--uct-line);
	color: #E8EFF8;
}

/* 任务颜色在深底上提亮，保证左侧色条与色块可辨 */
html.dark .uct-color-1 { --uct-task-color: #4FB39E; }
html.dark .uct-color-2 { --uct-task-color: #6FA8DC; }
html.dark .uct-color-3 { --uct-task-color: #A98BE0; }
html.dark .uct-color-4 { --uct-task-color: #FF9447; }
html.dark .uct-color-5 { --uct-task-color: #D6C15A; }
html.dark .uct-color-6 { --uct-task-color: #9AA5B4; }
