:root {
	color-scheme: light;
	font-family: 'Inter', system-ui, sans-serif;
	background: #f6f1e7;
	color: #333;
}
* {
	box-sizing: border-box;
}
html, body {
	min-height: 100%;
	margin: 0;
}
body {
	display: grid;
	place-items: center;
	padding: 2rem;
	/* * /
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
	background-image: linear-gradient(rgba(0, 56, 112, 0.14) 1px, transparent 1px);
	background-size: 100% 32px, 32px 100%;
    /* */
}
header {
	margin: 3px 0px 0px 0px;
}
.page-shell {
	width: min(980px, 100%);
	max-width: 980px;
	padding: 1rem;
	margin: 0 auto;
}
.notebook-paper {
	position: relative;
	background: #fcfbf2;
	background-image: linear-gradient(rgba(0, 56, 112, 0.14) 1px, transparent 1px);
	background-size: 100% 2.8rem;
	background-position: 0 2rem;
	border: 1px solid rgba(0, 0, 0, 0.05);
	border-radius: 24px;
	padding: 0.2rem 2rem 2rem 5rem;
	box-shadow: 0 35px 90px rgb(80 70 50 / 26%);
	overflow: hidden;
	height: 90vh;
}
.page-date {
	position: absolute;
	top: 2.1rem;
	right: 2rem;
	text-align: right;
	color: #7f6a4f;
	font-size: 0.9rem;
	line-height: 1.4;
}
.page-date::before {
	content: 'Today';
	display: block;
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #c48a56;
	margin-bottom: 0.35rem;
}
.notebook-paper::before {
	content: '';
	position: absolute;
	left: 4rem;
	top: 0.5rem;
	bottom: 0.5rem;
	width: 1px;
	background: rgba(236, 98, 32, 0.35);
}
.notebook-paper::after {
	content: '';
	position: absolute;
	left: 1rem;
	top: 2rem;
	width: 0.9rem;
	height: calc(100% - 4rem);
	background-image: radial-gradient(circle, rgba(0, 0, 0, 0.18) 18%, transparent 19%);
	background-size: 0.9rem 2.4rem;
	opacity: 0.35;
}
.eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.78rem;
	color: #8d7a5d;
	margin: 0;
}
h1 {
	margin: 6px 0px 0px 0px;
	font-size: clamp(2rem, 3.5vw, 3rem);
	line-height: 1.05;
}
h1 img {
	width: 36px;
	margin-right: 5px;
}
.subtitle {
	color: #5a5346;
	max-width: 35rem;
    margin: 10px 0px 0px 0px;
}
.progress-panel {
	margin: 1.0rem 0rem 1.5rem 0rem;
	padding: 1rem 1.1rem;
	border-radius: 18px;
	background: #fff8e8;
	border: 1px solid rgba(217, 173, 112, 0.3);
}
.progress-labels {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.95rem;
	margin-bottom: 0.8rem;
}
.progress-bar {
	background: rgba(222, 178, 103, 0.15);
	border-radius: 999px;
	height: 16px;
	overflow: hidden;
}
.progress-fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #f2b46f, #e58343);
	transition: width 0.35s ease;
}
.todo-form {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.75rem;
}
.todo-form input {
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: 14px;
	padding: 1rem 1.2rem;
	font-size: 1rem;
	background: rgba(255, 255, 255, 0.92);
	outline: none;
}
.todo-form input:focus {
	border-color: #e8b37f;
	box-shadow: 0 0 0 4px rgba(232, 179, 127, 0.16);
}
.todo-form button {
	border: none;
	border-radius: 14px;
	background: #f49a38;
	color: white;
	padding: 1rem 1.25rem;
	cursor: pointer;
	font-weight: 600;
}
.todo-form button:hover {
	background: #e7882c;
}
.controls {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.65rem;
	align-items: center;
	margin: 0.3rem 0 0.3rem 0rem;
	overflow-x: auto;
}
.controls button, .import-label {
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: white;
	border-radius: 999px;
	padding: 0.3rem 1rem;
	cursor: pointer;
	font-size: 0.88rem;
	transition: transform 0.2s ease, background 0.2s ease;
	white-space: nowrap;
}
.controls button:hover, .import-label:hover {
	transform: translateY(-1px);
	background: #fff7e7;
}
.import-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}
.import-label input {
	display: none;
}
.todo-list {
	list-style: none;
	padding: 0;
	margin: 15px 0px 0px 0px;
	display: grid;
	gap: 0px;
	height: 52.5vh;
	overflow-y: auto;
	background: #f6f1e7;
	border-radius: 6px;
}
.todo-item {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 1rem;
	align-items: center;
	margin: 3px 0px 4px 0px;
	/* * /
	border-radius: 18px;
	border: 1px solid rgba(0,0,0,0.08);
	background: rgba(255,255,255,0.85);
  	padding: 1rem 1.2rem;
	/* */
}
.task-content {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.task-edit-input {
	width: 100%;
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: 12px;
	padding: 0.2rem 1rem;
	font-size: 1rem;
	background: rgba(255, 255, 255, 0.95);
	outline: none;
}
.task-edit-input:focus {
	border-color: #e8b37f;
	box-shadow: 0 0 0 4px rgba(232, 179, 127, 0.16);
}
.task-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	justify-content: flex-end;
}

.drag-handle {
	cursor: grab;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.2rem 0.5rem;
	font-size: 1rem;
	color: #7a5a3a;
	user-select: none;
}
.drag-handle:active {
	cursor: grabbing;
}
.todo-item.dragging {
	opacity: 0.5;
	transform: scale(0.995);
}
.task-button {
	border: none;
	background: transparent;
	color: #5f4f3a;
	font-size: 0.95rem;
	padding: 0.45rem 0.7rem;
	border-radius: 14px;
	cursor: pointer;
}
.task-button:hover:not(:disabled) {
	background: rgba(244, 154, 56, 0.12);
}
.task-button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
.todo-item input[type='checkbox'] {
	width: 1.15rem;
	height: 1.15rem;
	accent-color: #e68a34;
}
.task-text {
	margin: 0;
	font-size: 1rem;
	color: #302a22;
	word-break: break-word;
}
.task-text.completed {
	text-decoration: line-through;
	color: #8d7a5d;
	opacity: 0.8;
}
.delete-button {
	border: none;
	background: transparent;
	color: #b34c25;
	font-size: 1.1rem;
	cursor: pointer;
}
.footer-note {
	margin: 0;
	color: #6e5f4d;
	font-size: 0.95rem;
}