@charset "UTF-8";
/* =========================================================
   작업목록 페이지 (1024x768 터치 기준)
   ========================================================= */

.page { display: flex; flex-direction: column; height: 100vh; padding: 10px 14px 0; }

/* ---------- 헤더 ---------- */
.tk-head { flex: none; display: flex; align-items: center; gap: 14px; height: 60px; }
.btn-back {
	width: 44px; height: 44px; border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	font-size: 34px; line-height: 1; padding-bottom: 4px;
	background: var(--panel); border: 1px solid var(--line); color: var(--text-2);
}
.btn-back:active { background: var(--panel-2); }
.tk-head h1 { display: flex; align-items: center; gap: 9px; font-size: 22px; font-weight: 700; white-space: nowrap; }
.tk-head .ico { display: inline-block; width: 6px; height: 20px; border-radius: 3px; background: var(--memo); }

.tk-tabs { display: flex; gap: 4px; padding: 4px; margin-left: 10px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.tk-tab { height: 40px; padding: 0 18px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.tk-tab em { font-style: normal; font-size: 13px; margin-left: 3px; font-variant-numeric: tabular-nums; }
.tk-tab.is-on { background: rgba(252, 211, 77, .15); color: var(--memo); }
.btn-new { margin-left: auto; height: 46px; padding: 0 20px; font-size: 16px; }

.tk-hint { flex: none; font-size: 12px; color: var(--text-3); padding: 4px 4px 8px; }
.tk-hint b { color: var(--text-2); }

/* ---------- 목록 ---------- */
.tk-scroll { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tk-scroll::-webkit-scrollbar { display: none; }

.tk-item {
	display: flex; align-items: stretch;
	min-height: 64px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-left: 4px solid rgba(252, 211, 77, .7);
	border-radius: 12px;
	overflow: hidden;
}
.tk-item + .tk-item,
.tk-ph + .tk-item,
.tk-item + .tk-ph { margin-top: 8px; }

.tk-handle {
	flex: none; width: 54px;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
	color: var(--text-3);
	touch-action: none;          /* 핸들에서는 스크롤 대신 드래그 */
	cursor: grab;
}
.tk-handle .rank { font-size: 13px; font-weight: 800; color: var(--memo); font-variant-numeric: tabular-nums; }
.tk-handle .grip { font-size: 20px; line-height: 1; }
.tk-handle:active { background: var(--panel-2); }

.tk-chk {
	flex: none; width: 56px;
	display: flex; align-items: center; justify-content: center;
}
.tk-chk span {
	width: 28px; height: 28px; border-radius: 8px;
	border: 2px solid rgba(252, 211, 77, .65);
	position: relative;
}
.tk-body { flex: 1; min-width: 0; padding: 11px 16px 11px 2px; cursor: pointer; }
.tk-title { font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-content {
	margin-top: 3px; font-size: 14px; color: var(--text-2); white-space: pre-line;
	overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.tk-date { flex: none; align-self: center; padding-right: 16px; font-size: 12px; color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 완료 */
.tk-item.is-done { border-left-color: var(--line); background: transparent; }
.tk-item.is-done .tk-handle { cursor: default; }
.tk-item.is-done .tk-title { color: var(--text-3); text-decoration: line-through; }
.tk-item.is-done .tk-content { color: var(--text-3); }
.tk-item.is-done .tk-chk span { background: var(--memo); border-color: var(--memo); }
.tk-item.is-done .tk-chk span::after {
	content: ""; position: absolute; left: 8px; top: 2px;
	width: 7px; height: 14px;
	border: solid #1a1405; border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}

/* 드래그 중 */
.tk-item.is-drag {
	position: fixed; z-index: 30; margin: 0 !important;
	background: var(--panel-2);
	border-color: var(--memo);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .6);
	opacity: .96;
	pointer-events: none;
}
.tk-ph { border: 2px dashed rgba(252, 211, 77, .4); border-radius: 12px; background: rgba(252, 211, 77, .04); }
body.is-dragging { cursor: grabbing; }

.tk-empty { padding: 80px 0; text-align: center; color: var(--text-3); font-size: 16px; }
.tk-sep { margin: 18px 4px 8px; font-size: 13px; font-weight: 700; color: var(--text-3); }
