/* Mobile responsiveness */
@media (max-width: 768px) {
	html {
		font-size: 100%;
	}

	body {
		padding: 0;
		-webkit-text-size-adjust: 100%;
		background: var(--bg-primary);
	}

	/* Prevent body scroll when task is expanded */
	body:has(.task-card.expanded) {
		overflow: hidden !important;
		position: fixed !important;
		width: 100% !important;
		height: 100vh !important;
		height: 100dvh !important;
	}

	/* Keep connection status fixed but lower z-index */
	#connection-status {
		position: fixed !important;
		top: 10px !important;
		left: 10px !important;
		z-index: 999 !important; /* Below expanded task (10000) */
	}

	/* Hide connection status when task is expanded to avoid clutter */
	body:has(.task-card.expanded) #connection-status {
		display: none !important;
	}

	/* User bar inline layout adjustments for mobile */
	.subtitle-with-user {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}

	#user-bar {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 8px 12px;
		margin: 12px 0 0 0;
		background: var(--bg-primary);
		border-radius: 12px;
		border: 1px solid var(--border-primary);
		box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
	}

	#user-email {
		flex: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		font-size: 0.9rem;
		font-weight: 500;
		color: var(--text-primary);
	}

	#signout-btn {
		padding: 6px 14px !important;
		font-size: 0.85rem !important;
		min-height: 32px !important;
		border-radius: 8px !important;
		background: var(--red-500) !important;
		color: white !important;
		border: none !important;
		font-weight: 700 !important;
		flex-shrink: 0;
		margin-left: 12px;
		box-shadow: 0 1px 4px rgba(239, 68, 68, 0.3) !important;
	}

	#signout-btn:active {
		transform: scale(0.96);
		opacity: 0.9;
	}

	.app-shell {
		padding: 0;
		max-width: 100vw;
		overflow-x: hidden;
	}

	header {
		padding: 12px 40px 16px 40px;
		margin: 0;
		background: var(--bg-secondary);
		border-bottom: 1px solid var(--border-primary);
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	}

	.header-title {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		margin: 40px 12px 40px 12px;
		padding: 0;
	}

	.header-title p {
		font-size: 0.75rem;
		line-height: 1.3;
		display: none;
		min-width: 100%;
	}

	header h1 {
		font-size: 2rem;
		font-weight: 800;
		letter-spacing: -0.03em;
		margin: 0;
		padding: 0;
		color: var(--text-primary);
		margin-left: 0;
	}

	.statistics-bar {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		padding: 12px;
		margin: 12px 16px 12px 16px;
		border-radius: 12px;
		background: var(--bg-secondary);
		box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
		border: 1px solid var(--border-primary);
	}

	.stats-group {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 10px;
		flex-wrap: wrap;
		width: 100%;
	}

	.stat-item {
		gap: 6px;
		white-space: nowrap;
		display: flex;
		align-items: center;
	}

	.stat-label {
		font-size: 0.75rem;
		font-weight: 500;
		color: var(--text-secondary);
	}

	.stat-value {
		font-size: 0.95rem;
		font-weight: 700;
		color: var(--text-primary);
	}

	.stat-badge {
		font-size: 0.7rem;
		padding: 3px 8px;
		margin-left: 4px;
		border-radius: 6px;
		font-weight: 700;
	}

	.sort-controls {
		gap: 8px;
		display: flex;
		align-items: center;
		width: 100%;
		margin-top: 0;
		padding-top: 8px;
		border-top: 1px solid var(--border-primary);
	}

	.sort-controls label {
		font-size: 0.85rem;
		white-space: nowrap;
		font-weight: 600;
		color: var(--text-primary);
	}

	.sort-controls select {
		padding: 8px 12px;
		font-size: 0.9rem;
		font-weight: 500;
		flex: 1;
		min-height: 40px;
		border-radius: 8px;
		border: 2px solid var(--border-primary);
		background: var(--bg-primary);
		color: var(--text-primary);
	}

	.filters {
		gap: 8px;
		margin: 12px 16px;
		padding: 0 0 12px 0;
		flex-wrap: wrap;
		border-bottom: 1px solid var(--border-primary);
	}

	.filters button, .filter-chip {
		padding: 10px 16px;
		font-size: 0.9rem;
		font-weight: 600;
		border-radius: 8px;
		min-height: 40px;
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
		transition: all 0.2s ease;
		border: 2px solid var(--border-primary);
		background: var(--bg-primary);
		color: var(--text-primary);
	}

	.filters button:active, .filter-chip:active {
		transform: scale(0.96);
	}

	.filters button.active, .filter-chip.active {
		background: var(--blue-500);
		color: white;
		border-color: var(--blue-500);
		box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
	}

	.filter-chip-dot {
		width: 12px;
		height: 12px;
		border-radius: 50%;
		flex-shrink: 0;
	}

	.filter-chip-label {
		font-size: 0.9rem;
		font-weight: 600;
	}

	.filter-chip-share {
		font-size: 0.7rem;
		padding: 2px 6px;
		border-radius: 4px;
		background: rgba(255, 255, 255, 0.2);
		font-weight: 600;
	}

	.board {
		display: flex;
		flex-direction: row;
		gap: 8px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding: 12px 16px;
		-webkit-overflow-scrolling: touch;
	}

	.column {
		flex: 0 0 calc(50% - 4px);
		min-width: calc(50% - 4px);
		scroll-snap-align: start;
		padding: 12px;
		gap: 12px;
		border-radius: 12px;
		background: var(--bg-secondary);
		box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
		border: 2px solid var(--border-primary);
	}

	.column header {
		padding: 0 0 8px 0;
		margin: 0 0 8px 0;
		border-bottom: 1px solid var(--border-primary);
	}

	.column header h2 {
		font-size: 1rem;
		font-weight: 700;
		color: var(--text-primary);
	}

	.column header span {
		font-size: 0.8rem;
		color: var(--text-secondary);
		font-weight: 500;
	}

	.task-dropzone {
		gap: 12px;
	}

	.task-card {
		padding: 12px;
		gap: 12px;
		font-size: 0.9rem;
		border-radius: 12px;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
		background: var(--bg-primary);
		border: 2px solid var(--border-primary);
		transition: all 0.2s ease;
		touch-action: none; /* Disable default touch actions for drag */
	}

	.task-card:active {
		transform: scale(0.98);
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	}

	.task-card.overdue {
		border-left: 4px solid var(--red-500);
	}

	.task-card h3 {
		font-size: 1rem;
		line-height: 1.5;
		margin: 0;
		font-weight: 600;
		color: var(--text-primary);
	}

	.task-card .task-meta {
		font-size: 0.85rem;
		line-height: 1.5;
		opacity: 0.85;
	}

	.task-card .task-actions button {
		font-size: 0.9rem;
		padding: 8px 12px;
		min-height: 38px;
		border-radius: 8px;
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
		transition: all 0.2s ease;
	}

	.task-card .task-actions button:active {
		transform: scale(0.95);
	}

	.task-card.expanded {
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		width: 100vw !important;
		height: 100vh !important;
		height: 100dvh !important;
		margin: 0 !important;
		padding: 16px;
		padding-top: max(16px, env(safe-area-inset-top));
		padding-bottom: 200px !important; /* Large bottom padding for scrolling */
		border-radius: 0;
		z-index: 10000;
		overflow-y: scroll !important;
		overflow-x: hidden !important;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: none !important; /* Prevent any overscroll */
		box-shadow: none;
		background: rgba(15, 20, 25, 0.4) !important;
		backdrop-filter: blur(15px) brightness(0.9);
		-webkit-backdrop-filter: blur(15px) brightness(0.9);
		border: none;
		cursor: default !important;
		touch-action: pan-y !important;
		user-select: text !important;
		display: block !important;
	}

	/* Frosted glass backdrop behind expanded task */
	.task-card.expanded::before {
		content: '';
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.15);
		backdrop-filter: blur(8px);
		-webkit-backdrop-filter: blur(8px);
		z-index: -1;
	}

	/* Hide form and other UI elements when any task is expanded on mobile */
	body:has(.task-card.expanded) #task-form,
	body:has(.task-card.expanded) .filters,
	body:has(.task-card.expanded) .statistics-bar,
	body:has(.task-card.expanded) .json-controls,
	body:has(.task-card.expanded) .completed-panel,
	body:has(.task-card.expanded) .category-manager {
		display: none !important;
	}

	.task-card.expanded .task-title,
	.task-card.expanded h3,
	.task-card.expanded.has-deadline-color .task-title {
		color: var(--text-primary) !important;
		font-weight: 700 !important;
		font-size: 1.1rem;
		line-height: 1.4;
	}

	/* Hide redundant read-only info on mobile */
	.task-card.expanded .due-display,
	.task-card.expanded .priority-display,
	.task-card.expanded .length-display,
	.task-card.expanded .repeat-display {
		display: none !important;
	}

	.task-card.expanded .task-description,
	.task-card.expanded.has-deadline-color .task-description {
		color: var(--text-primary) !important;
		opacity: 0.9;
		font-size: 0.9rem;
		line-height: 1.5;
		margin: 12px 0;
		padding: 0;
	}

	.task-card.expanded .task-meta,
	.task-card.expanded .task-meta strong,
	.task-card.expanded label,
	.task-card.expanded.has-deadline-color .task-meta {
		color: var(--text-primary) !important;
	}

	.task-card.expanded .task-compact-info {
		color: var(--text-secondary) !important;
	}

	.task-card.expanded .task-meta {
		display: flex;
		flex-direction: column;
		gap: 12px;
		font-size: 0.9rem;
		opacity: 1;
		margin-top: 12px;
		margin-bottom: 16px;
		flex-shrink: 0; /* Prevent compression */
	}

	.task-card.expanded .task-meta > span,
	.task-card.expanded .task-meta > label,
	.task-card.expanded .task-meta > div {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 8px;
		width: 100%;
	}

	.task-card.expanded .task-meta strong {
		min-width: 60px;
		flex-shrink: 0;
		font-size: 0.8rem;
		font-weight: 700;
		text-transform: uppercase;
		opacity: 0.8;
	}

	.task-card.expanded select,
	.task-card.expanded input[type="date"],
	.task-card.expanded input[type="text"] {
		flex: 1;
		padding: 8px 10px;
		font-size: 0.9rem;
		border-radius: 6px;
		border: 2px solid var(--border-primary);
		background: var(--bg-secondary);
		min-height: 38px;
		-webkit-appearance: none;
		appearance: none;
	}

	.task-card.expanded select {
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: right 12px center;
		padding-right: 36px;
	}

	.task-card.expanded .task-actions {
		display: flex;
		flex-direction: column;
		gap: 12px;
		width: 100%;
		margin-top: 16px;
		padding-bottom: 20px;
		margin-bottom: 0;
		flex-shrink: 0;
	}

	/* Repeat section */
	.task-card.expanded .repeat-edit {
		display: flex;
		flex-direction: column;
		gap: 8px;
		margin: 0;
		padding: 0;
	}

	.task-card.expanded .repeat-edit > span {
		font-size: 0.8rem;
		font-weight: 700;
		text-transform: uppercase;
		opacity: 0.8;
		margin: 0;
	}

	.task-card.expanded .repeat-checkboxes {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 6px;
		padding: 0;
	}

	.task-card.expanded .repeat-checkboxes label {
		font-size: 0.75rem;
		padding: 8px 4px;
		text-align: center;
		background: var(--bg-secondary);
		border: 2px solid var(--border-primary);
		border-radius: 6px;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 4px;
		min-height: 36px;
		cursor: pointer;
	}

	.task-card.expanded .repeat-checkboxes input[type="checkbox"] {
		width: 14px;
		height: 14px;
	}

	.task-card.expanded .repeat-checkboxes label:has(input:checked) {
		background: var(--blue-500);
		color: white;
		border-color: var(--blue-500);
	}

	/* Move lane button - secondary style */
	.task-card.expanded .flip-lane,
	.task-card.expanded .share-task-btn {
		width: 100%;
		font-size: 0.9rem;
		padding: 11px 14px;
		min-height: 42px;
		border-radius: 8px;
		font-weight: 700;
		background: var(--bg-primary);
		color: var(--text-primary);
		border: 2px solid var(--border-primary);
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
		transition: all 0.2s ease;
	}

	.task-card.expanded .flip-lane:active,
	.task-card.expanded .share-task-btn:active {
		background: var(--bg-tertiary);
		transform: scale(0.97);
	}

	/* Delete button - red style */
	.task-card.expanded .delete-task {
		width: 100%;
		font-size: 0.9rem;
		padding: 11px 14px;
		min-height: 42px;
		border-radius: 8px;
		font-weight: 700;
		background: var(--red-500);
		color: white;
		border: none;
		box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
		transition: all 0.2s ease;
	}

	.task-card.expanded .delete-task:active {
		transform: scale(0.97);
		box-shadow: 0 1px 3px rgba(239, 68, 68, 0.3);
	}

	/* Top section - just title on mobile */
	.task-card.expanded .task-top {
		margin-bottom: 12px;
	}

	.task-card.expanded .title-group {
		width: 100%;
	}

	/* Hide desktop buttons on mobile */
	.task-card.expanded .task-top .task-actions {
		display: none !important;
	}

	/* DONE button - green success style (mobile) */
	.task-card.expanded .mark-done-btn {
		width: 100%;
		font-size: 0.9rem;
		padding: 11px 14px;
		min-height: 42px;
		border-radius: 8px;
		font-weight: 700;
		background: var(--green-500, #10b981);
		color: white;
		border: none;
		box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
		transition: all 0.2s ease;
	}

	.task-card.expanded .mark-done-btn:active {
		transform: scale(0.97);
		box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
	}

	/* Copy button - secondary style */
	.task-card.expanded .copy-task-btn {
		width: 100%;
		font-size: 0.9rem;
		padding: 11px 14px;
		min-height: 42px;
		border-radius: 8px;
		font-weight: 700;
		background: var(--bg-primary);
		color: var(--text-primary);
		border: 2px solid var(--border-primary);
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
		transition: all 0.2s ease;
	}

	.task-card.expanded .copy-task-btn:active {
		background: var(--bg-tertiary);
		transform: scale(0.97);
	}

	.task-card.expanded .subtasks-section {
		padding: 12px;
		border-radius: 8px;
		gap: 8px;
		background: var(--bg-secondary);
		margin: 12px 0;
		flex-shrink: 0; /* Prevent compression */
	}

	.task-card.expanded .subtasks-section h4 {
		font-size: 0.8rem;
		font-weight: 700;
		text-transform: uppercase;
		opacity: 0.8;
		margin: 0 0 8px 0;
	}

	.task-card.expanded .subtask-add-form {
		gap: 6px;
		display: flex;
		flex-direction: row;
	}

	.task-card.expanded .subtask-add-form input {
		padding: 8px 10px;
		font-size: 0.85rem;
		border-radius: 6px;
		min-height: 36px;
		flex: 1;
	}

	.task-card.expanded .subtask-add-form button {
		padding: 8px 14px;
		font-size: 0.85rem;
		font-weight: 700;
		min-height: 38px;
		border-radius: 6px;
		flex-shrink: 0;
		background: var(--blue-500);
		color: white;
		border: none;
		box-shadow: 0 1px 4px rgba(59, 130, 246, 0.3);
		transition: all 0.2s ease;
	}

	.task-card.expanded .subtask-add-form button:active {
		transform: scale(0.96);
		box-shadow: 0 1px 2px rgba(59, 130, 246, 0.3);
	}

	.task-card.expanded .clear-date-btn,
	.clear-date-btn {
		width: 36px !important;
		height: 36px !important;
		min-width: 36px !important;
		min-height: 36px !important;
		max-width: 36px !important;
		max-height: 36px !important;
		flex-shrink: 0 !important;
		border-radius: 6px !important;
		padding: 0 !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		font-size: 16px !important;
		background: var(--red-500) !important;
		color: white !important;
		border: none !important;
		font-weight: 600 !important;
	}

	.form-date-field,
	.task-date-field {
		display: flex !important;
		align-items: center !important;
		gap: 8px !important;
	}

	.form-date-field input[type="date"],
	.task-date-field input[type="date"] {
		flex: 1 !important;
	}

	form {
		padding: 12px;
		gap: 12px;
		margin: 12px 16px;
		background: var(--bg-primary);
		border-radius: 12px;
		box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
		border: 2px solid var(--border-primary);
	}

	.field {
		flex: 1 1 100%;
		gap: 8px;
	}

	label {
		font-size: 0.75rem;
		margin-bottom: 0;
		font-weight: 700;
		color: var(--text-secondary);
		letter-spacing: 0;
		text-transform: uppercase;
		opacity: 0.8;
	}

	input[type="text"],
	textarea,
	select,
	input[type="date"] {
		padding: 10px 12px;
		font-size: 0.9rem;
		border-radius: 8px;
		border: 2px solid var(--border-primary);
		background: var(--bg-secondary);
		min-height: 44px;
		-webkit-appearance: none;
		appearance: none;
		transition: all 0.2s ease;
		box-shadow: none;
		color: var(--text-primary);
		font-weight: 500;
	}

	input[type="text"]:focus,
	textarea:focus,
	select:focus,
	input[type="date"]:focus {
		border-color: var(--blue-500);
		background: var(--bg-primary);
		box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
		outline: none;
	}

	select {
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: right 12px center;
		padding-right: 36px;
		cursor: pointer;
	}

	input[type="date"] {
		padding-right: 44px;
	}

	textarea {
		min-height: 90px;
		resize: vertical;
		line-height: 1.6;
	}

	button {
		padding: 10px 16px;
		font-size: 0.9rem;
		font-weight: 600;
		border-radius: 8px;
		min-height: 40px;
		transition: all 0.2s ease;
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
		border: 2px solid var(--border-primary);
		background: var(--bg-primary);
		color: var(--text-primary);
		cursor: pointer;
	}

	button:active {
		transform: scale(0.96);
	}

	.actions {
		padding-top: 12px;
		width: 100%;
		display: flex;
		flex-direction: column;
		gap: 8px;
	}

	.actions button {
		width: 100%;
		font-size: 0.9rem;
		padding: 12px;
		font-weight: 700;
		min-height: 44px;
		background: var(--blue-500);
		box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
		border-radius: 8px;
		color: white;
		letter-spacing: 0;
		border: none;
		transition: all 0.2s ease;
	}

	.actions button:active {
		transform: scale(0.97);
		box-shadow: 0 1px 4px rgba(59, 130, 246, 0.3);
	}

	.repeat-days {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 8px;
		margin: 0;
	}

	.repeat-days label {
		font-size: 0.85rem;
		padding: 10px 6px;
		text-align: center;
		min-height: 40px;
		display: flex;
		align-items: center;
		justify-content: center;
		background: var(--bg-primary);
		border: 2px solid var(--border-primary);
		border-radius: 8px;
		transition: all 0.2s ease;
		font-weight: 600;
		text-transform: none;
		opacity: 1;
		color: var(--text-primary);
		cursor: pointer;
	}

	.repeat-days input[type="checkbox"] {
		min-height: auto;
	}

	.repeat-days label:has(input:checked) {
		background: var(--blue-500);
		color: white;
		border-color: var(--blue-500);
		box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
	}

	.json-controls {
		padding: 12px;
		margin: 4px 16px 16px 16px;
		background: var(--bg-primary);
		border-radius: 12px;
		box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
		border: 2px solid var(--border-primary);
	}

	.json-controls summary {
		font-size: 1rem;
		padding: 8px 0;
		font-weight: 700;
		letter-spacing: 0;
		cursor: pointer;
		transition: color 0.2s ease;
	}

	.json-controls summary:hover {
		color: var(--blue-500);
	}

	.io-controls {
		gap: 8px;
		flex-direction: column;
		display: flex;
	}

	.io-controls button {
		font-size: 0.85rem;
		font-weight: 600;
		padding: 10px 12px;
		min-height: 40px;
		background: var(--bg-primary);
		color: var(--text-primary);
		border: 2px solid var(--border-primary);
		border-radius: 8px;
		transition: all 0.2s ease;
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	}

	.io-controls button:active {
		background: var(--bg-tertiary);
		transform: scale(0.97);
	}

	.manual-json textarea {
		font-size: 0.8rem;
		min-height: 100px;
		padding: 10px;
		line-height: 1.5;
		color: var(--text-secondary);
	}

	.manual-actions {
		gap: 8px;
		display: flex;
		flex-wrap: wrap;
	}

	.manual-actions button {
		font-size: 0.85rem;
		font-weight: 600;
		padding: 10px 12px;
		min-height: 40px;
		flex: 1;
		background: var(--bg-primary);
		color: var(--text-primary);
		border: 2px solid var(--border-primary);
		border-radius: 8px;
		transition: all 0.2s ease;
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	}

	.manual-actions button:active {
		background: var(--bg-tertiary);
		transform: scale(0.97);
	}

	.completed-panel {
		padding: 12px;
		margin: 12px 16px 4px 16px;
		background: var(--bg-primary);
		border-radius: 12px;
		box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
		border: 2px solid var(--border-primary);
	}

	.completed-panel summary {
		padding: 8px 0;
		font-size: 1rem;
		font-weight: 700;
		letter-spacing: 0;
		cursor: pointer;
		transition: color 0.2s ease;
	}

	.completed-panel summary:hover {
		color: var(--blue-500);
	}

	.category-manager {
		padding: 12px;
		margin: 4px 16px 4px 16px;
		background: var(--bg-primary);
		border-radius: 12px;
		box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
		border: 2px solid var(--border-primary);
	}

	.category-manager summary {
		font-size: 1rem;
		padding: 8px 0;
		font-weight: 700;
		letter-spacing: 0;
		cursor: pointer;
		transition: color 0.2s ease;
	}

	.category-manager summary:hover {
		color: var(--blue-500);
	}

	.category-info {
		font-size: 0.85rem;
		padding: 12px;
		margin: 12px 0;
		line-height: 1.5;
		background: var(--bg-secondary);
		border-radius: 8px;
		border: 1px solid var(--border-primary);
		color: var(--text-secondary);
	}

	.category-item {
		padding: 12px;
		gap: 12px;
		background: var(--bg-secondary);
		border-radius: 8px;
		box-shadow: none;
		border: 2px solid var(--border-primary);
		transition: all 0.2s ease;
	}

	.category-item:active {
		transform: scale(0.99);
	}

	.category-preview {
		width: 40px;
		height: 40px;
		font-size: 1.4rem;
		border-radius: 8px;
		box-shadow: none;
		transition: transform 0.2s ease;
	}

	.category-preview:active {
		transform: scale(0.97);
	}

	.category-label-input,
	.category-icon-input,
	.category-time-limit-input {
		font-size: 0.9rem;
		padding: 10px 12px;
		min-height: 44px;
		border-radius: 8px;
		border: 2px solid var(--border-primary);
		background: var(--bg-primary);
		transition: all 0.2s ease;
		box-shadow: none;
	}

	.category-label-input:focus,
	.category-icon-input:focus,
	.category-time-limit-input:focus {
		border-color: var(--blue-500);
		box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
		outline: none;
	}

	.add-category-form {
		gap: 12px;
	}

	.add-category-form input {
		font-size: 0.9rem;
		padding: 10px 12px;
		min-height: 44px;
		border-radius: 8px;
		border: 2px solid var(--border-primary);
		background: var(--bg-primary);
		transition: all 0.2s ease;
		box-shadow: none;
	}

	.add-category-form input:focus {
		border-color: var(--blue-500);
		box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
		outline: none;
	}

	.add-category-form button {
		padding: 12px 16px;
		min-height: 44px;
		font-size: 0.9rem;
		font-weight: 700;
		border-radius: 8px;
		background: var(--blue-500);
		box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
		transition: all 0.2s ease;
		letter-spacing: 0;
		color: white;
		border: none;
	}

	.add-category-form button:active {
		transform: scale(0.97);
		box-shadow: 0 1px 4px rgba(59, 130, 246, 0.3);
	}

	.category-save-btn,
	.category-delete-btn {
		min-height: 40px;
		font-size: 0.9rem;
		padding: 10px 14px;
		border-radius: 8px;
		font-weight: 700;
		transition: all 0.2s ease;
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
		border: none;
	}

	.category-save-btn {
		background: var(--blue-500);
		color: white;
	}

	.category-delete-btn {
		background: var(--red-500);
		color: white;
	}

	.category-save-btn:active,
	.category-delete-btn:active {
		transform: scale(0.96);
		box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
	}
}