/* ==========================================================================
   Vinum Team Tasks — frontend
   ========================================================================== */

.vtt-wrap {
	--vtt-accent: #8e2440;
	--vtt-accent-dark: #6f1c33;
	--vtt-accent-soft: rgba(142, 36, 64, 0.08);
	--vtt-bg: #f6f7f9;
	--vtt-card: #ffffff;
	--vtt-border: #e4e7ec;
	--vtt-text: #1f2937;
	--vtt-muted: #6b7280;
	--vtt-danger: #dc2626;
	--vtt-ok: #16a34a;
	--vtt-radius: 12px;
	--vtt-shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--vtt-text);
	font-size: 14px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}

.vtt-wrap *,
.vtt-wrap *::before,
.vtt-wrap *::after {
	box-sizing: border-box;
}

.vtt-wrap [hidden] {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Controles básicos
   -------------------------------------------------------------------------- */

.vtt-wrap .vtt-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid var(--vtt-border);
	border-radius: 8px;
	background: var(--vtt-card);
	color: var(--vtt-text);
	font-size: 13.5px;
	font-weight: 600;
	font-family: inherit;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
	white-space: nowrap;
}

.vtt-wrap .vtt-btn:hover {
	border-color: #cdd2da;
	background: #f9fafb;
}

.vtt-wrap .vtt-btn:focus-visible {
	outline: 2px solid var(--vtt-accent);
	outline-offset: 2px;
}

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

.vtt-wrap .vtt-btn-primary:hover {
	background: var(--vtt-accent-dark);
	border-color: var(--vtt-accent-dark);
	color: #fff;
}

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

.vtt-wrap .vtt-btn-danger:hover {
	background: #fef2f2;
	border-color: var(--vtt-danger);
}

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

.vtt-wrap .vtt-btn-ghost:hover {
	background: rgba(0, 0, 0, 0.05);
	color: var(--vtt-text);
}

.vtt-wrap .vtt-btn-block {
	width: 100%;
	justify-content: center;
}

.vtt-wrap .vtt-btn[disabled] {
	opacity: 0.55;
	cursor: default;
	pointer-events: none;
}

.vtt-wrap .vtt-input,
.vtt-wrap input[type="text"],
.vtt-wrap input[type="password"],
.vtt-wrap input[type="search"],
.vtt-wrap input[type="number"],
.vtt-wrap input[type="date"],
.vtt-wrap select,
.vtt-wrap textarea {
	padding: 8px 10px;
	border: 1px solid var(--vtt-border);
	border-radius: 8px;
	background: #fff;
	color: var(--vtt-text);
	font-size: 13.5px;
	font-family: inherit;
	line-height: 1.3;
	max-width: 100%;
}

.vtt-wrap select {
	cursor: pointer;
}

.vtt-wrap .vtt-input:focus,
.vtt-wrap input:focus,
.vtt-wrap select:focus,
.vtt-wrap textarea:focus {
	outline: 2px solid var(--vtt-accent-soft);
	border-color: var(--vtt-accent);
}

.vtt-wrap textarea {
	width: 100%;
	resize: vertical;
}

.vtt-wrap input[disabled],
.vtt-wrap select[disabled],
.vtt-wrap textarea[disabled] {
	background: #f3f4f6;
	color: var(--vtt-muted);
	cursor: not-allowed;
}

.vtt-field {
	margin-bottom: 12px;
}

.vtt-field label {
	display: block;
	font-weight: 600;
	font-size: 12.5px;
	margin-bottom: 4px;
	color: var(--vtt-text);
}

.vtt-field input,
.vtt-field select {
	width: 100%;
}

/* --------------------------------------------------------------------------
   Login
   -------------------------------------------------------------------------- */

.vtt-login-wrap {
	display: flex;
	justify-content: center;
	padding: 48px 16px;
	background: transparent;
}

.vtt-login-card {
	width: 100%;
	max-width: 380px;
	background: var(--vtt-card);
	border: 1px solid var(--vtt-border);
	border-radius: var(--vtt-radius);
	box-shadow: var(--vtt-shadow);
	padding: 32px 28px;
	text-align: center;
}

.vtt-login-logo {
	width: 48px;
	height: 48px;
	margin: 0 auto 12px;
	border-radius: 12px;
	background: var(--vtt-accent);
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vtt-login-title {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 700;
	color: var(--vtt-text);
}

.vtt-login-sub {
	margin: 0 0 20px;
	color: var(--vtt-muted);
	font-size: 13.5px;
}

.vtt-login-card form {
	text-align: left;
}

.vtt-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0 14px;
	font-size: 13px;
	color: var(--vtt-muted);
	cursor: pointer;
}

.vtt-login-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 13px;
	margin-bottom: 12px;
}

.vtt-login-help {
	margin: 16px 0 0;
	font-size: 12.5px;
	color: var(--vtt-muted);
}

.vtt-login-card.vtt-shake {
	animation: vtt-shake 0.4s ease;
}

@keyframes vtt-shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-6px); }
	75% { transform: translateX(6px); }
}

/* --------------------------------------------------------------------------
   Aplicación
   -------------------------------------------------------------------------- */

.vtt-app {
	background: var(--vtt-bg);
	border: 1px solid var(--vtt-border);
	border-radius: var(--vtt-radius);
	padding: 16px;
	position: relative;
	min-height: 320px;
}

.vtt-topbar {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.vtt-brand h2 {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	color: var(--vtt-text);
	line-height: 1.2;
}

.vtt-stats {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.vtt-stat {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: var(--vtt-card);
	border: 1px solid var(--vtt-border);
	border-radius: 20px;
	padding: 3px 10px;
	font-size: 12px;
	color: var(--vtt-muted);
}

.vtt-stat strong {
	color: var(--vtt-text);
	font-size: 12.5px;
}

.vtt-stat.is-overdue strong {
	color: var(--vtt-danger);
}

.vtt-topbar-right {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.vtt-views {
	display: inline-flex;
	background: var(--vtt-card);
	border: 1px solid var(--vtt-border);
	border-radius: 9px;
	padding: 3px;
	gap: 2px;
}

.vtt-view-btn {
	border: 0;
	background: transparent;
	padding: 6px 12px;
	border-radius: 7px;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	color: var(--vtt-muted);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.vtt-view-btn.is-active {
	background: var(--vtt-accent);
	color: #fff;
}

.vtt-userbox {
	display: flex;
	align-items: center;
	gap: 8px;
}

.vtt-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	flex: none;
	text-transform: uppercase;
}

.vtt-avatar-sm {
	width: 24px;
	height: 24px;
	font-size: 11px;
}

.vtt-username {
	font-weight: 600;
	font-size: 13.5px;
}

/* Toolbar */

.vtt-toolbar {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.vtt-search {
	min-width: 180px;
	flex: 0 1 220px;
}

.vtt-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--vtt-muted);
	cursor: pointer;
	white-space: nowrap;
	padding: 0 4px;
}

.vtt-toolbar-spacer {
	flex: 1;
}

.vtt-gantt-controls {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* --------------------------------------------------------------------------
   Vista de lista
   -------------------------------------------------------------------------- */

.vtt-table-wrap {
	background: var(--vtt-card);
	border: 1px solid var(--vtt-border);
	border-radius: var(--vtt-radius);
	box-shadow: var(--vtt-shadow);
	overflow-x: auto;
}

table.vtt-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
	margin: 0;
}

.vtt-table thead th {
	text-align: left;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--vtt-muted);
	background: #fafbfc;
	padding: 10px 12px;
	border-bottom: 1px solid var(--vtt-border);
	white-space: nowrap;
	user-select: none;
}

.vtt-table th.vtt-sortable {
	cursor: pointer;
}

.vtt-table th.vtt-sortable:hover {
	color: var(--vtt-text);
}

.vtt-table th .vtt-sort-arrow {
	font-size: 10px;
	margin-left: 3px;
}

.vtt-table tbody td {
	padding: 10px 12px;
	border-bottom: 1px solid #eef0f3;
	vertical-align: middle;
	background: transparent;
}

.vtt-table tbody tr:last-child td {
	border-bottom: 0;
}

.vtt-row {
	cursor: pointer;
	transition: background 0.12s ease;
}

.vtt-row:hover {
	background: #f8f9fb;
}

.vtt-row.is-done .vtt-title-text {
	text-decoration: line-through;
	color: var(--vtt-muted);
}

.vtt-cell-title {
	min-width: 220px;
}

.vtt-title-text {
	font-weight: 600;
	display: block;
}

.vtt-title-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 3px;
	flex-wrap: wrap;
}

.vtt-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 1px 8px;
	border-radius: 10px;
	font-size: 11.5px;
	font-weight: 600;
	white-space: nowrap;
}

.vtt-chip-project {
	color: #fff;
}

.vtt-cc {
	font-size: 11.5px;
	color: var(--vtt-muted);
}

.vtt-assignee {
	display: flex;
	align-items: center;
	gap: 7px;
	white-space: nowrap;
}

.vtt-assignee .vtt-unassigned {
	color: var(--vtt-muted);
	font-style: italic;
}

.vtt-date {
	white-space: nowrap;
	color: var(--vtt-text);
}

.vtt-date.is-overdue {
	color: var(--vtt-danger);
	font-weight: 600;
}

.vtt-date .vtt-overdue-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--vtt-danger);
	margin-right: 5px;
	vertical-align: 1px;
}

.vtt-hours {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

/* Prioridades */
.vtt-prio-low { background: #f1f5f9; color: #64748b; }
.vtt-prio-medium { background: #e0f2fe; color: #0369a1; }
.vtt-prio-high { background: #fef3c7; color: #b45309; }
.vtt-prio-urgent { background: #fee2e2; color: #b91c1c; }

/* Estados */
.vtt-st-pending { background: #f1f5f9; color: #475569; }
.vtt-st-in_progress { background: #dbeafe; color: #1d4ed8; }
.vtt-st-review { background: #fef3c7; color: #b45309; }
.vtt-st-done { background: #dcfce7; color: #15803d; }

.vtt-status-select {
	border-radius: 10px;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 6px;
	border: 1px solid transparent;
	cursor: pointer;
	font-family: inherit;
}

.vtt-status-select.vtt-st-pending { border-color: #e2e8f0; }
.vtt-status-select.vtt-st-in_progress { border-color: #bfdbfe; }
.vtt-status-select.vtt-st-review { border-color: #fde68a; }
.vtt-status-select.vtt-st-done { border-color: #bbf7d0; }

/* Barra de progreso */
.vtt-progress {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 110px;
}

.vtt-progress-bar {
	flex: 1;
	height: 6px;
	background: #eef0f3;
	border-radius: 4px;
	overflow: hidden;
	min-width: 60px;
}

.vtt-progress-bar i {
	display: block;
	height: 100%;
	background: var(--vtt-accent);
	border-radius: 4px;
	transition: width 0.2s ease;
}

.vtt-progress-num {
	font-size: 12px;
	color: var(--vtt-muted);
	font-variant-numeric: tabular-nums;
	width: 34px;
	text-align: right;
}

.vtt-empty {
	padding: 48px 16px;
	text-align: center;
	color: var(--vtt-muted);
	font-size: 14px;
}

.vtt-empty .vtt-empty-ico {
	font-size: 30px;
	display: block;
	margin-bottom: 8px;
	opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Gantt
   -------------------------------------------------------------------------- */

.vtt-gantt-box {
	display: flex;
	background: var(--vtt-card);
	border: 1px solid var(--vtt-border);
	border-radius: var(--vtt-radius);
	box-shadow: var(--vtt-shadow);
	overflow: hidden;
	max-height: 640px;
	overflow-y: auto;
	position: relative;
}

.vtt-gantt-side {
	flex: none;
	width: 280px;
	border-right: 1px solid var(--vtt-border);
	background: var(--vtt-card);
	position: sticky;
	left: 0;
	z-index: 3;
}

.vtt-gantt-side-head {
	height: 50px;
	display: flex;
	align-items: center;
	padding: 0 12px;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--vtt-muted);
	border-bottom: 1px solid var(--vtt-border);
	background: #fafbfc;
	position: sticky;
	top: 0;
	z-index: 2;
}

.vtt-g-siderow {
	height: 40px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 12px;
	border-bottom: 1px solid #eef0f3;
	font-size: 13px;
	cursor: pointer;
	overflow: hidden;
}

.vtt-g-siderow:hover {
	background: #f8f9fb;
}

.vtt-g-siderow .vtt-g-title {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: 500;
	flex: 1;
}

.vtt-g-siderow.is-project {
	background: #f4f5f7;
	font-weight: 700;
	font-size: 12.5px;
	cursor: default;
	color: var(--vtt-text);
}

.vtt-g-siderow.is-project:hover {
	background: #f4f5f7;
}

.vtt-g-siderow .vtt-g-title.is-done {
	text-decoration: line-through;
	color: var(--vtt-muted);
}

.vtt-g-dot {
	width: 9px;
	height: 9px;
	border-radius: 3px;
	flex: none;
}

.vtt-g-count {
	color: var(--vtt-muted);
	font-weight: 500;
}

.vtt-gantt-main {
	flex: 1;
	overflow-x: auto;
	position: relative;
}

.vtt-gantt-canvas {
	position: relative;
}

.vtt-gantt-head {
	position: sticky;
	top: 0;
	z-index: 2;
	background: #fafbfc;
	border-bottom: 1px solid var(--vtt-border);
	height: 50px;
}

.vtt-g-months,
.vtt-g-units {
	position: relative;
	height: 26px;
}

.vtt-g-units {
	height: 24px;
}

.vtt-g-month {
	position: absolute;
	top: 0;
	height: 100%;
	display: flex;
	align-items: center;
	padding-left: 8px;
	font-size: 11.5px;
	font-weight: 700;
	color: var(--vtt-text);
	border-left: 1px solid var(--vtt-border);
	white-space: nowrap;
	overflow: hidden;
	text-transform: capitalize;
}

.vtt-g-unit {
	position: absolute;
	top: 0;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10.5px;
	color: var(--vtt-muted);
	border-left: 1px solid #f0f2f5;
	overflow: hidden;
}

.vtt-g-unit.is-weekend {
	background: #f4f5f7;
}

.vtt-g-unit.is-today {
	background: var(--vtt-accent-soft);
	color: var(--vtt-accent);
	font-weight: 700;
}

.vtt-gantt-body {
	position: relative;
}

.vtt-g-bglayer {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.vtt-g-weekendcol {
	position: absolute;
	top: 0;
	bottom: 0;
	background: rgba(100, 116, 139, 0.06);
}

.vtt-g-todayline {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--vtt-accent);
	opacity: 0.75;
	z-index: 1;
}

.vtt-g-row {
	position: relative;
	height: 40px;
	border-bottom: 1px solid #eef0f3;
}

.vtt-g-row.is-project {
	background: #f4f5f7;
}

.vtt-g-bar {
	position: absolute;
	top: 7px;
	height: 26px;
	border-radius: 6px;
	color: #fff;
	font-size: 11.5px;
	font-weight: 600;
	display: flex;
	align-items: center;
	overflow: hidden;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.18);
	z-index: 1;
	user-select: none;
	-webkit-user-select: none;
	touch-action: none;
}

.vtt-g-bar.is-draggable {
	cursor: grab;
}

.vtt-g-bar.is-dragging {
	cursor: grabbing;
	opacity: 0.85;
	z-index: 5;
}

.vtt-g-bar.is-done {
	opacity: 0.55;
}

.vtt-g-bar-progress {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.22);
	pointer-events: none;
}

.vtt-g-bar-label {
	position: relative;
	padding: 0 8px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
}

.vtt-g-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 7px;
	cursor: ew-resize;
	z-index: 2;
}

.vtt-g-handle.vtt-g-h-l { left: 0; }
.vtt-g-handle.vtt-g-h-r { right: 0; }

.vtt-g-nodates {
	position: absolute;
	top: 8px;
	left: 8px;
	font-size: 11.5px;
	color: var(--vtt-muted);
	font-style: italic;
	padding: 4px 8px;
	background: #f4f5f7;
	border-radius: 6px;
	cursor: pointer;
}

/* Tooltip */
.vtt-gantt-tip {
	position: fixed;
	z-index: 100000;
	background: #111827;
	color: #f9fafb;
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 12px;
	max-width: 280px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	pointer-events: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	line-height: 1.4;
}

.vtt-gantt-tip .vtt-tip-title {
	font-weight: 700;
	margin-bottom: 3px;
}

.vtt-gantt-tip .vtt-tip-row {
	color: #d1d5db;
}

/* --------------------------------------------------------------------------
   Modales
   -------------------------------------------------------------------------- */

.vtt-modal {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 40px 16px;
	overflow-y: auto;
}

.vtt-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(17, 24, 39, 0.55);
}

.vtt-modal-box {
	position: relative;
	background: var(--vtt-card);
	border-radius: 14px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
	width: 100%;
	max-width: 640px;
	padding: 20px 22px;
	animation: vtt-pop 0.18s ease;
	font-family: inherit;
}

.vtt-modal-sm {
	max-width: 480px;
}

@keyframes vtt-pop {
	from { transform: translateY(8px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.vtt-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.vtt-modal-head h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: var(--vtt-text);
}

.vtt-modal-close {
	border: 0;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	color: var(--vtt-muted);
	cursor: pointer;
	padding: 2px 8px;
	border-radius: 6px;
}

.vtt-modal-close:hover {
	background: #f3f4f6;
	color: var(--vtt-text);
}

.vtt-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 14px;
}

.vtt-modal-foot {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
	padding-top: 14px;
	border-top: 1px solid var(--vtt-border);
}

.vtt-wrap output {
	font-weight: 600;
	color: var(--vtt-accent);
	margin-left: 4px;
}

.vtt-wrap input[type="range"] {
	width: 100%;
	accent-color: var(--vtt-accent);
	padding: 8px 0;
}

/* Comentarios */

.vtt-comments-wrap {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--vtt-border);
}

.vtt-comments-wrap h4 {
	margin: 0 0 10px;
	font-size: 13.5px;
	font-weight: 700;
}

.vtt-comments-wrap h4 span {
	color: var(--vtt-muted);
	font-weight: 500;
}

.vtt-comments {
	max-height: 260px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 12px;
}

.vtt-comment {
	display: flex;
	gap: 9px;
	align-items: flex-start;
}

.vtt-comment-body {
	background: #f6f7f9;
	border-radius: 10px;
	padding: 8px 11px;
	flex: 1;
	min-width: 0;
}

.vtt-comment-meta {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 2px;
}

.vtt-comment-author {
	font-weight: 700;
	font-size: 12.5px;
}

.vtt-comment-time {
	font-size: 11.5px;
	color: var(--vtt-muted);
}

.vtt-comment-delete {
	border: 0;
	background: transparent;
	color: var(--vtt-muted);
	cursor: pointer;
	font-size: 12px;
	margin-left: auto;
	padding: 0 2px;
	border-radius: 4px;
}

.vtt-comment-delete:hover {
	color: var(--vtt-danger);
}

.vtt-comment-text {
	font-size: 13px;
	white-space: pre-wrap;
	word-wrap: break-word;
}

.vtt-comments-empty {
	color: var(--vtt-muted);
	font-size: 13px;
	font-style: italic;
}

.vtt-comment-form {
	display: flex;
	gap: 8px;
	align-items: flex-end;
}

.vtt-comment-form textarea {
	flex: 1;
}

/* Confirmación */

.vtt-confirm-box {
	max-width: 420px;
	margin-top: 10vh;
}

.vtt-confirm-box p {
	margin: 4px 0 14px;
	font-size: 14px;
}

/* Proyectos */

.vtt-projects-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 14px;
	max-height: 320px;
	overflow-y: auto;
}

.vtt-project-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px;
	border: 1px solid var(--vtt-border);
	border-radius: 9px;
}

.vtt-project-row input[type="color"] {
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid var(--vtt-border);
	border-radius: 6px;
	cursor: pointer;
	background: #fff;
}

.vtt-project-row input[type="text"] {
	flex: 1;
	min-width: 0;
}

.vtt-project-row .vtt-project-count {
	font-size: 12px;
	color: var(--vtt-muted);
	white-space: nowrap;
}

.vtt-project-row.is-archived input[type="text"] {
	color: var(--vtt-muted);
	text-decoration: line-through;
}

.vtt-project-archive,
.vtt-project-delete {
	border: 0;
	background: transparent;
	cursor: pointer;
	font-size: 14px;
	color: var(--vtt-muted);
	padding: 4px 6px;
	border-radius: 6px;
}

.vtt-project-archive:hover {
	background: #f3f4f6;
	color: var(--vtt-text);
}

.vtt-project-delete:hover {
	background: #fef2f2;
	color: var(--vtt-danger);
}

.vtt-project-add {
	display: flex;
	gap: 8px;
	align-items: center;
}

.vtt-project-add input[type="color"] {
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid var(--vtt-border);
	border-radius: 8px;
	cursor: pointer;
	background: #fff;
	flex: none;
}

.vtt-project-add input[type="text"] {
	flex: 1;
	min-width: 0;
}

/* --------------------------------------------------------------------------
   Estados globales: carga, error, toasts
   -------------------------------------------------------------------------- */

.vtt-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 60px 0;
	color: var(--vtt-muted);
}

.vtt-spinner {
	width: 18px;
	height: 18px;
	border: 2.5px solid var(--vtt-border);
	border-top-color: var(--vtt-accent);
	border-radius: 50%;
	animation: vtt-spin 0.7s linear infinite;
}

@keyframes vtt-spin {
	to { transform: rotate(360deg); }
}

.vtt-fatal {
	text-align: center;
	padding: 50px 16px;
	color: var(--vtt-muted);
}

.vtt-fatal p {
	margin: 0 0 14px;
	font-size: 14.5px;
}

.vtt-toasts {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 100001;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-end;
}

.vtt-toast {
	background: #111827;
	color: #f9fafb;
	padding: 10px 16px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 500;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
	animation: vtt-toast-in 0.22s ease;
	max-width: 320px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.vtt-toast.is-error {
	background: #b91c1c;
}

@keyframes vtt-toast-in {
	from { transform: translateY(8px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.vtt-toast.is-leaving {
	transition: opacity 0.25s ease, transform 0.25s ease;
	opacity: 0;
	transform: translateY(6px);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
	.vtt-gantt-side {
		width: 170px;
	}

	.vtt-g-siderow {
		padding: 0 8px;
		font-size: 12px;
	}

	.vtt-form-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	.vtt-table thead {
		display: none;
	}

	.vtt-table,
	.vtt-table tbody,
	.vtt-table tr,
	.vtt-table td {
		display: block;
		width: 100%;
	}

	.vtt-row {
		border-bottom: 6px solid var(--vtt-bg);
		padding: 6px 0;
	}

	.vtt-table tbody td {
		border-bottom: 0;
		padding: 5px 14px;
		display: flex;
		align-items: center;
		gap: 10px;
	}

	.vtt-table td[data-label]::before {
		content: attr(data-label);
		font-size: 11px;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		color: var(--vtt-muted);
		min-width: 84px;
		flex: none;
	}

	.vtt-cell-title {
		min-width: 0;
	}

	.vtt-search {
		flex-basis: 100%;
	}
}
