/* Ported from the Next.js app's feedback.module.css. */
.feedback__page {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
}

.feedback__muted {
	margin: 0;
	color: var(--text-tertiary);
	font-size: var(--font-size-sm);
	max-width: 62ch;
}

/* The narrative is the page. It gets the size and the space to say so. */
/*
 * The narrative is the page, so it is set large on its own surface rather than marked out
 * with a bar down its side. A four pixel stripe is the one decoration this app bans, and
 * it was doing nothing here that the size and the space were not already doing.
 */
.feedback__narrative {
	padding: var(--space-6);
	border: var(--border-1) solid var(--app-rule);
	border-radius: var(--app-sheet-radius);
	background: var(--background-surface);
	font-size: var(--font-size-lg);
	line-height: var(--font-line-height-lg);
	color: var(--text-primary);
	white-space: pre-wrap;
}

.feedback__panel {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	padding: var(--space-5);
	border: var(--border-1) solid var(--border-default);
	border-radius: var(--radius-xl);
	background: var(--background-surface);
}

.feedback__panel-title {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin: 0;
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-semibold);
	color: var(--text-primary);
}

/* The checkbox, and under it who asked for the point. */
.feedback__agenda li {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.feedback__raised-by {
	padding-left: calc(var(--space-6) + var(--space-1));
	font-size: var(--font-size-xs);
	color: var(--text-tertiary);
}

/*
 * The scores given, one chip per person. Plain figures rather than the coloured score
 * badge: the badge belongs to the final score, and six coloured squares under it would
 * make the decision look like one vote among seven.
 */
.feedback__given {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

.feedback__given li {
	display: inline-flex;
	align-items: baseline;
	gap: var(--space-2);
	padding: 2px var(--space-2);
	border: var(--border-1) solid var(--border-subtle);
	border-radius: var(--radius-sm);
	font-size: var(--font-size-xs);
}

.feedback__given-name {
	color: var(--text-tertiary);
}

.feedback__given-score {
	font-weight: var(--font-weight-semibold);
	font-variant-numeric: tabular-nums;
	color: var(--text-primary);
}

.feedback__agenda,
.feedback__lines,
.feedback__history {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.feedback__line {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	padding-bottom: var(--space-3);
	border-bottom: var(--border-1) solid var(--border-subtle);
}

.feedback__lines li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.feedback__line-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
}

.feedback__line-name {
	font-weight: var(--font-weight-medium);
	color: var(--text-primary);
}

/* The scale's own wording: upright, at reading size, the same as in the form you filled in. */
.feedback__anchor {
	margin: 0;
	font-size: var(--font-size-base);
	line-height: var(--font-line-height-base);
	color: var(--text-secondary);
}

.feedback__notes {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.feedback__history {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: var(--space-3);
}

/* The whole card is the link. The label is the name of the half; there is no score. */
.feedback__cycle-card {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	min-height: 44px;
	padding: var(--space-3) var(--space-4);
	border: var(--border-1) solid var(--border-default);
	border-radius: var(--radius-md);
	background: var(--background-surface);
	color: var(--text-primary);
	text-decoration: none;
}

.feedback__cycle-card:hover {
	border-color: var(--border-strong);
}

.feedback__cycle-card:focus-visible {
	outline: var(--border-2) solid var(--border-focus);
	outline-offset: 2px;
}

.feedback__cycle-card[aria-current='page'] {
	border: var(--border-2) solid var(--text-primary);
}

.feedback__cycle-label {
	font-size: var(--font-size-lg);
	font-weight: var(--font-weight-semibold);
}

.feedback__cycle-meta {
	font-size: var(--font-size-xs);
	color: var(--text-tertiary);
}

.feedback__cycle-action {
	font-size: var(--font-size-xs);
	font-weight: var(--font-weight-medium);
	color: var(--text-link);
}

.feedback__cycle-card[aria-current='page'] .feedback__cycle-action {
	color: var(--text-secondary);
}

/* A past cycle's 1:1: what was raised and whether it was covered, never a checkbox. */
.feedback__record {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.feedback__record li {
	display: flex;
	align-items: baseline;
	gap: var(--space-3);
}

/*
 * An open ring for "not ticked off", a filled dot for "discussed". Said in words beside
 * it too, so the state never rests on the mark alone.
 */
.feedback__record-mark {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: var(--radius-full);
	border: 1.5px solid var(--text-tertiary);
}

.feedback__record-mark[data-done] {
	background: var(--text-primary);
	border-color: var(--text-primary);
}

.feedback__raised-by-inline {
	font-size: var(--font-size-xs);
	color: var(--text-tertiary);
}

.feedback__past-note {
	margin: 0;
	padding: var(--space-3) var(--space-4);
	border: var(--border-1) solid var(--border-default);
	border-radius: var(--radius-md);
	background: var(--background-surface);
	font-size: var(--font-size-sm);
	color: var(--text-secondary);
}
