body {
	margin: 0;
	font-family: Arial, sans-serif;
	background: #f4f6f8;
	color: #222;
}
.topbar {
	background: #172b4d;
	color: #fff;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.topbar h1 {
	margin: 0;
	font-size: 22px;
}
.topbar nav {
	display: flex;
	gap: 10px;
}
.topbar a {
	color: #fff;
	text-decoration: none;
	background: rgba(255,255,255,0.15);
	padding: 8px 12px;
	border-radius: 6px;
}
.main {
	padding: 24px;
}
.auth-wrapper {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}
.auth-card {
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 12px;
	padding: 28px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.08);
	box-sizing: border-box;
}
.auth-link {
	margin-top: 18px;
	text-align: center;
}
.auth-link a {
	color: #1f6feb;
	text-decoration: none;
}
.card,
.form-card,
.gantt-card,
.empty-state,
.project-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.06);
	box-sizing: border-box;
}
.card {
	padding: 24px;
}
.form-card {
	width: 100%;
	max-width: 680px;
	padding: 24px;
}
.auth-card h1 {
	margin: 0 0 20px;
	font-size: 28px;
}
h1,
h2,
h3 {
	color: inherit;
}
h2 {
	margin: 0 0 20px;
}
label {
	display: block;
	margin: 14px 0 6px;
	font-weight: bold;
}
input,
textarea,
select {
	width: 100%;
	padding: 12px;
	box-sizing: border-box;
	border: 1px solid #ccd3dc;
	border-radius: 8px;
	font-size: 16px;
	font-family: Arial, sans-serif;
}
textarea {
	min-height: 130px;
	resize: vertical;
}
button,
.button {
	display: inline-block;
	border: none;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 15px;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
}
button,
.button {
	background: #1f6feb;
	color: #fff;
}
button:hover,
.button:hover {
	background: #185abc;
}
.secondary-button {
	background: #e9edf3;
	color: #172b4d;
}
.secondary-button:hover {
	background: #d7dee9;
}
.message {
	margin: 12px 0;
	padding: 10px;
	border-radius: 8px;
}
.error {
	background: #fde8e8;
	color: #8a1f1f;
}
.success {
	background: #e6f4ea;
	color: #1f6b3a;
}
.notice {
	display: none;
	margin-bottom: 14px;
	padding: 10px;
	border-radius: 8px;
	background: #e6f4ea;
	color: #1f6b3a;
}
.notice.show {
	display: block;
}
.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.form-actions {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}
.page-header,
.board-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}
.page-header h2,
.board-header h2 {
	margin: 0 0 6px;
	font-size: 28px;
}
.page-header p,
.board-header p {
	margin: 0;
	color: #555;
}
.view-actions,
.board-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}
.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}
.project-card {
	padding: 20px;
}
.project-card h3 {
	margin: 0 0 10px;
	font-size: 22px;
}
.project-card p {
	margin: 0 0 16px;
	line-height: 1.45;
}
.project-meta {
	color: #666;
	font-size: 13px;
	margin-bottom: 16px;
}
.project-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.project-actions a,
.project-actions button {
	text-decoration: none;
	border: none;
	border-radius: 6px;
	padding: 8px 10px;
	font-size: 14px;
	cursor: pointer;
}
.open-link {
	background: #e6f0ff;
	color: #174ea6;
}
.edit-link {
	background: #fff7e6;
	color: #9a5b00;
}
.delete-button {
	background: #fde8e8;
	color: #8a1f1f;
}
.empty-state {
	padding: 28px;
}
.board-wrapper {
	overflow-x: auto;
	padding-bottom: 12px;
}
.board {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	min-width: 1000px;
}
.board-column {
	background: #e9edf3;
	border-radius: 12px;
	width: 280px;
	min-width: 280px;
	padding: 12px;
	box-sizing: border-box;
}
.column-title {
	font-weight: bold;
	font-size: 17px;
	margin: 0 0 12px;
	color: #172b4d;
}
.task-list {
	min-height: 80px;
}
.task-card {
	background: #fff;
	border-radius: 10px;
	padding: 14px;
	margin-bottom: 10px;
	box-shadow: 0 4px 14px rgba(0,0,0,0.08);
	cursor: grab;
}
.task-card:active {
	cursor: grabbing;
}
.task-card h3 {
	margin: 0 0 8px;
	font-size: 16px;
}
.task-card p {
	margin: 0 0 10px;
	color: #444;
	line-height: 1.35;
	font-size: 14px;
}
.task-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}
.badge {
	display: inline-block;
	background: #eef2ff;
	color: #253a7d;
	border-radius: 999px;
	padding: 4px 8px;
	font-size: 12px;
}
.badge.priority-high {
	background: #fde8e8;
	color: #8a1f1f;
}
.badge.priority-medium {
	background: #fff7e6;
	color: #9a5b00;
}
.badge.priority-low {
	background: #e6f4ea;
	color: #1f6b3a;
}
.task-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}
.task-actions a,
.task-actions button {
	border: none;
	border-radius: 6px;
	padding: 7px 9px;
	font-size: 13px;
	text-decoration: none;
	cursor: pointer;
}
.add-card-link {
	display: block;
	margin-top: 10px;
	color: #174ea6;
	text-decoration: none;
	font-size: 14px;
}
.sortable-ghost {
	opacity: 0.35;
}
.gantt-card {
	padding: 18px;
	overflow-x: auto;
}
#gantt {
	min-width: 900px;
}
.gantt .bar-wrapper.priority-high .bar {
	fill: #c0392b;
}
.gantt .bar-wrapper.priority-medium .bar {
	fill: #d68910;
}
.gantt .bar-wrapper.priority-low .bar {
	fill: #2874a6;
}
.gantt .bar-wrapper.priority-high .bar-progress,
.gantt .bar-wrapper.priority-medium .bar-progress,
.gantt .bar-wrapper.priority-low .bar-progress {
	fill: rgba(0,0,0,0.25);
}
@media (max-width: 760px) {
	.topbar,
	.page-header,
	.board-header,
	.view-actions,
	.board-actions {
		flex-direction: column;
		align-items: stretch;
	}
	.topbar nav {
		width: 100%;
		flex-direction: column;
	}
	.topbar a,
	.button {
		width: 100%;
		box-sizing: border-box;
		text-align: center;
	}
}
@media (max-width: 640px) {
	.form-actions {
		flex-direction: column;
		align-items: stretch;
	}
	.form-row {
		grid-template-columns: 1fr;
	}
	button,
	.button {
		width: 100%;
		text-align: center;
	}
}
.member-card {
	margin-top: 24px;
}
.member-list {
	display: grid;
	gap: 12px;
}
.member-row {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 12px;
	align-items: center;
	padding: 14px;
	border: 1px solid #d7dee9;
	border-radius: 10px;
	background: #fff;
}
.member-info {
	display: grid;
	gap: 4px;
}
.member-info span {
	color: #555;
	font-size: 14px;
}
.member-role-form {
	display: flex;
	gap: 8px;
	align-items: center;
}
.member-role-form select {
	min-width: 140px;
}
.member-row button,
.member-role-form button {
	white-space: nowrap;
}
@media (max-width: 760px) {
	.member-row {
		grid-template-columns: 1fr;
		align-items: stretch;
	}
	.member-role-form {
		flex-direction: column;
		align-items: stretch;
	}
}
.checkbox-list {
	display: grid;
	gap: 8px;
	margin-top: 8px;
}
.checkbox-item {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	padding: 8px;
	border: 1px solid #d7dee9;
	border-radius: 8px;
	background: #fff;
}
.checkbox-item input {
	width: auto;
	margin-top: 3px;
}
.checkbox-item label {
	margin: 0;
	font-weight: normal;
}
.dependency-note {
	color: #555;
	font-size: 14px;
	margin-top: 6px;
}
.comments-card {
    margin-top: 24px;
}
.comment-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}
.comment-item {
    border: 1px solid #d7dee9;
    border-radius: 10px;
    padding: 14px;
    background: #fff;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}
.comment-author {
    font-weight: bold;
    color: #222;
}
.comment-text {
    white-space: pre-wrap;
    line-height: 1.45;
}
.comment-actions {
    margin-top: 10px;
}
.comment-actions button {
    padding: 7px 9px;
    font-size: 13px;
}
.comment-form {
    margin-top: 18px;
}
.comment-form textarea {
    min-height: 100px;
}
@media (max-width: 640px) {
    .comment-header {
        flex-direction: column;
    }
}
.label-list {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}
.label-item {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border: 1px solid #d7dee9;
    border-radius: 8px;
    background: #fff;
}
.label-item input[type="checkbox"] {
    width: auto;
}
.label-item label {
    margin: 0;
    font-weight: normal;
}
.label-pill {
    display: inline-block;
    color: #fff;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    line-height: 1;
}
.label-row {
    display: grid;
    grid-template-columns: 1fr 130px auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 12px;
}
.label-color-input {
    height: 44px;
    padding: 4px;
}
.task-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 10px;
}
@media (max-width: 640px) {
    .label-row {
        grid-template-columns: 1fr;
    }
}
.task-edit-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
.task-edit-panel {
    width: 100%;
    max-width: none;
}
.comments-card {
    margin-top: 0;
}
@media (max-width: 900px) {
    .task-edit-layout {
        grid-template-columns: 1fr;
    }
}
.column-add-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    box-sizing: border-box;
}
.column-add-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
}
.column-title-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}
.column-title-input {
    font-weight: bold;
    font-size: 17px;
    color: #172b4d;
    background: #fff;
    border: 1px solid #ccd3dc;
    border-radius: 8px;
    padding: 8px;
}
.column-title-save {
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 8px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
@media (max-width: 640px) {
    .column-add-row,
    .column-title-form {
        grid-template-columns: 1fr;
    }
}