:root {
	--c-grey-100: #f4f6f8;
	--c-grey-200: #e3e3e3;

	--c-grey-300: #b2b2b2;
	--c-grey-400: #7b7b7b;
	--c-grey-500: #3d3d3d;

	--c-blue-500: #688afd;
}

.link {
    text-decoration: underline;
    color: #688afd;
}

ol li::before{
    content: '';
}

.timeline {
	width: 85%;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
	display: flex;
	flex-direction: column;
	padding: 32px 0 32px 32px;
	border-left: 2px solid var(--c-grey-200);
	font-size: 1.125rem;
}

.timeline-item {
	display: flex;
	gap: 24px;
	& + * {
		margin-top: 24px;
	}
	& + .extra-space {
		margin-top: 48px;
	}
}

.new-comment {
	width: 100%;
	input {
		border: 1px solid var(--c-grey-200);
		border-radius: 6px;
		height: 48px;
		padding: 0 16px;
		width: 100%;
		&::placeholder {
			color: var(--c-grey-300);
		}

		&:focus {
			border-color: var(--c-grey-300);
			outline: 0;
			box-shadow: 0 0 0 4px var(--c-grey-100);
		}
	}

    textarea{
        border: 1px solid var(--c-grey-200);
		border-radius: 6px;
		padding: 10px 16px;
		width: 100%;
		&::placeholder {
			color: var(--c-grey-300);
		}

		&:focus {
			border-color: var(--c-grey-300);
			outline: 0;
			box-shadow: 0 0 0 4px var(--c-grey-100);
		}
    }
}

.timeline-item-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	margin-left: -5.5rem;
	flex-shrink: 0;
	overflow: hidden;
	box-shadow: 0 0 0 6px #fff;
	svg {
		width: 30px;
		height: 30px;
	}

	&.faded-icon {
		background-color: var(--c-grey-100);
		color: var(--c-grey-400);
	}

	&.filled-icon {
		background-color: var(--c-blue-500);
		color: #fff;
	}
}

.timeline-item-description {
	display: flex;
	padding-top: 6px;
	gap: 8px;
	color: var(--c-grey-400);

	img {
		flex-shrink: 0;
	}
	a {
		color: var(--c-grey-500);
		font-weight: 500;
		text-decoration: none;
		&:hover,
		&:focus {
			outline: 0;
			color: var(--c-blue-500);
		}
	}
}

.avatar {
    background-color: var(--indigo-700);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	&.small {
		width: 25px;
		height: 25px;
	}

	img {
		object-fit: cover;
	}
}

.comment {
	margin-top: 12px;
	color: var(--c-grey-500);
	border: 1px solid var(--c-grey-200);
	box-shadow: 0 4px 4px 0 var(--c-grey-100);
	border-radius: 6px;
	padding: 16px;
	font-size: 1rem;
}

.show-replies {
	color: var(--c-grey-300);
	background-color: transparent;
	border: 0;
	padding: 0;
	margin-top: 16px;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 1rem;
	cursor: pointer;
	svg {
		flex-shrink: 0;
		width: 24px;
		height: 24px;
	}

	&:hover,
	&:focus {
		color: var(--c-grey-500);
	}
}

.avatar-list {
	display: flex;
	align-items: center;
	& > * {
		position: relative;
		box-shadow: 0 0 0 2px #fff;
		margin-right: -8px;
	}
}


.flex-products-cards {
	width: 100%;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

/* Release notes — match the deep-sea theme */
.dx-notes .timeline {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.35rem 0 0;
    border-left: 0;
    color: #e7f0ff;
    font-size: 1rem;
}

.dx-notes .timeline-item {
    display: grid;
    grid-template-columns: 2.6rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.dx-notes .timeline-item-icon {
    margin-left: 0;
    width: 2.6rem;
    height: 2.6rem;
    box-shadow: 0 0 0 4px rgba(7, 20, 40, 0.85);
    background: linear-gradient(160deg, #1e40af, #3b82f6);
}

.dx-notes .timeline-item-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.dx-notes .timeline-item-wrapper {
    min-width: 0;
}

.dx-notes .timeline-item-description {
    color: #93c5fd;
    padding-top: 0.35rem;
    align-items: center;
}

.dx-notes .timeline-item-description a,
.dx-notes .timeline-item-description span,
.dx-notes .timeline-item-description time {
    color: #dbeafe;
}

.dx-notes .avatar.small {
    width: 1.35rem;
    height: 1.35rem;
    background: #1e3a8a;
    box-shadow: none;
}

.dx-notes .comment {
    margin-top: 0.7rem;
    color: #e7f0ff;
    background: rgba(7, 20, 40, 0.45);
    border: 1px solid rgba(147, 197, 253, 0.32);
    box-shadow: none;
    border-radius: 0.95rem;
    padding: 1rem 1.15rem;
}

.dx-notes .comment p,
.dx-notes .comment li {
    color: #e7f0ff;
    margin: 0 0 0.7rem;
    line-height: 1.65;
    font-size: 0.98rem;
}

.dx-notes .comment p:last-child,
.dx-notes .comment li:last-child {
    margin-bottom: 0;
}

.dx-notes .comment a {
    color: #93c5fd;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.dx-notes .comment a:hover {
    color: #dbeafe;
}

.dx-notes .comment code {
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.28);
    border-radius: 0.35rem;
    padding: 0.08rem 0.4rem;
    font-size: 0.9em;
}

.dx-notes .comment strong {
    color: #ffffff;
}

.dx-panel.dx-notes {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: rgba(14, 34, 68, 0.85);
    border: 1px solid rgba(147, 197, 253, 0.28);
    border-radius: 1.35rem;
    padding: 1.75rem 1.5rem;
}

.dx-notes-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(147, 197, 253, 0.18);
    padding-bottom: 1rem;
}

.dx-notes-head h2 {
    margin: 0.35rem 0 0;
    text-align: left;
    font-size: clamp(1.45rem, 4.2vw, 2rem);
    line-height: 1.25;
}

.dx-notes-head .dx-muted {
    margin: 0;
    max-width: 22rem;
    font-size: 0.9rem;
}

.dx-notes .timeline,
.dx-notes .timeline-item,
.dx-notes .timeline-item-wrapper,
.dx-notes .comment {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.dx-notes ol.timeline > li.timeline-item {
    margin: 0 0 0.5rem !important;
    padding: 0 !important;
}

.dx-notes .comment p,
.dx-notes .comment li,
.dx-notes .comment a,
.dx-notes .comment code {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dx-notes .timeline-item-description {
    flex-wrap: wrap;
    min-width: 0;
}

@media (max-width: 700px) {
    .dx-panel.dx-notes {
        padding: 1.15rem 1rem;
        border-radius: 1.05rem;
    }

    .dx-notes-head {
        flex-direction: column;
        align-items: stretch;
    }

    .dx-notes-head .dx-muted {
        max-width: none;
    }

    .dx-notes .timeline-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.65rem;
    }

    .dx-notes .timeline-item-description {
        padding-top: 0;
    }
}