* {
	box-sizing: border-box;
}

:root {
	--flow-blue: #1976d2;
	--flow-text: #25313c;
	--flow-muted: #6f7c87;
	--flow-border: #dfe4e8;
	--flow-background: #f5f7f9;
	--flow-white: #ffffff;
	--flow-hover: #f7f9fb;

	--radius: 6px;
}

html,
body {
	margin: 0;
	min-height: 100%;
}

body {
	font-family: Arial, Helvetica, sans-serif;
	color: var(--flow-text);
	background: var(--flow-background);
}

button,
input,
select,
textarea {
	font: inherit;
}


/* ---------------------------------------------------------
   Prototype landing screen
--------------------------------------------------------- */

.prototype {
	max-width: 1100px;
	margin: 0 auto;
	padding: 60px 30px;
}

.prototype-header {
	margin-bottom: 35px;
}

.prototype-header h1 {
	margin: 0 0 8px;
	font-size: 28px;
	font-weight: 600;
}

.prototype-header p {
	margin: 0;
	color: var(--flow-muted);
	font-size: 15px;
}


/* ---------------------------------------------------------
   Scenario list
--------------------------------------------------------- */

.scenario-list {
	background: var(--flow-white);
	border: 1px solid var(--flow-border);
	border-radius: 8px;
	overflow: hidden;
}

.scenario-list-header {
	display: grid;
	grid-template-columns: minmax(280px, 1fr) 1fr 30px;
	gap: 25px;

	padding: 12px 20px;

	background: #f1f3f5;
	border-bottom: 1px solid var(--flow-border);

	color: var(--flow-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.scenario-row {
	width: 100%;

	display: grid;
	grid-template-columns: minmax(280px, 1fr) 1fr 30px;
	align-items: center;
	gap: 25px;

	padding: 18px 20px;

	border: 0;
	border-bottom: 1px solid var(--flow-border);

	background: var(--flow-white);
	color: inherit;

	text-align: left;
	cursor: pointer;

	transition:
		background .15s ease,
		box-shadow .15s ease;
}

.scenario-row:last-child {
	border-bottom: 0;
}

.scenario-row:hover {
	background: var(--flow-hover);
	box-shadow: inset 3px 0 0 var(--flow-blue);
}

.scenario-info {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.scenario-info strong {
	font-size: 15px;
	font-weight: 600;
}

.scenario-info span {
	color: var(--flow-muted);
	font-size: 13px;
	line-height: 1.4;
}

.scenario-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.scenario-tags span {
	display: inline-flex;
	align-items: center;

	padding: 4px 8px;

	background: #eef2f5;
	border-radius: 4px;

	color: #56636e;
	font-size: 11px;
	font-weight: 600;
}

.scenario-row > .mdi {
	justify-self: end;

	color: #9aa4ad;
	font-size: 22px;
}

.scenario-row:hover > .mdi {
	color: var(--flow-blue);
}


/* ---------------------------------------------------------
   Modal placeholder
--------------------------------------------------------- */

.story-modal {
	position: fixed;
	inset: 0;

	display: flex;
	flex-direction: column;

	height: 100vh;

	background: #f6f7f9;

	overflow: hidden;
}

.story-header,
.story-meta-summary,
.assignment-tabs {
	flex: 0 0 auto;
}

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

@media (max-width: 750px) {

	.prototype {
		padding: 30px 15px;
	}

	.scenario-list-header {
		display: none;
	}

	.scenario-row {
		grid-template-columns: 1fr 25px;
		gap: 15px;
	}

	.scenario-tags {
		grid-column: 1;
	}

	.scenario-row > .mdi {
		grid-column: 2;
		grid-row: 1 / span 2;
	}

}

/* ---------------------------------------------------------
   Full-screen story modal
--------------------------------------------------------- */

.story-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;

	display: flex;
	flex-direction: column;

	background: #f6f7f9;
	overflow: hidden;
}

.story-modal[hidden] {
	display: none;
}


/* ---------------------------------------------------------
   Story header
--------------------------------------------------------- */

.story-header {
	flex: 0 0 auto;

	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;

	min-height: 76px;
	padding: 14px 24px;

	background: #fff;
	border-bottom: 1px solid var(--flow-border);
}

.story-header-title {
	min-width: 0;
}

.story-title-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.story-title-row h1 {
	margin: 0;

	font-size: 21px;
	font-weight: 600;
	line-height: 1.2;
}

.story-status {
	display: inline-flex;
	align-items: center;

	padding: 4px 8px;

	border-radius: 4px;
	background: #edf2f6;

	color: #56636e;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
}


.story-header-actions {
	display: flex;
	align-items: center;
	gap: 7px;
}


/* ---------------------------------------------------------
   Buttons
--------------------------------------------------------- */

.action-button,
.icon-button {
	border: 1px solid var(--flow-border);
	background: #fff;
	color: #44515c;

	cursor: pointer;
}

.action-button {
	display: inline-flex;
	align-items: center;
	gap: 7px;

	height: 36px;
	padding: 0 12px;

	border-radius: 5px;

	font-size: 15px;
	font-weight: 600;
}

.action-button:hover,
.icon-button:hover {
	background: #f5f7f9;
	border-color: #cbd2d8;
}

.action-button-primary {
	background: var(--flow-blue);
	border-color: var(--flow-blue);
	color: #fff;
}

.action-button-primary:hover {
	background: #1565b5;
	border-color: #1565b5;
}

.icon-button {
	position: relative;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 36px;
	height: 36px;
	padding: 0;

	border-radius: 5px;

	font-size: 19px;
}

.icon-count {
	position: absolute;
	top: -6px;
	right: -6px;

	display: flex;
	align-items: center;
	justify-content: center;

	min-width: 17px;
	height: 17px;
	padding: 0 4px;

	border-radius: 9px;
	background: var(--flow-blue);
	color: #fff;

	font-size: 9px;
	font-weight: 700;
}

.modal-close {
	margin-left: 4px;
	border-color: transparent;
	font-size: 23px;
}


/* ---------------------------------------------------------
   Story metadata summary
--------------------------------------------------------- */

.story-meta-summary {
	flex: 0 0 auto;

	width: 100%;

	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;

	padding: 12px 24px;

	border: 0;
	border-bottom: 1px solid var(--flow-border);

	background: #fff;
	color: inherit;

	text-align: left;
	cursor: pointer;

	transition: background .15s ease;
}

.story-meta-summary:hover {
	background: #f8fafb;
}

.story-meta-content {
	display: flex;
	align-items: center;
	gap: 24px;

	min-width: 0;
}

.story-meta-values {
	display: flex;
	align-items: center;
	gap: 22px;

	min-width: 0;
}

.meta-primary,
.meta-fields {
	display: flex;
	align-items: center;
	gap: 10px;
}

.meta-item {
	font-size: 15px;
	color: #56636e;
}

.meta-item strong {
	margin-right: 4px;
	color: #313d47;
}

.meta-chip {
	display: inline-flex;
	align-items: center;

	padding: 6px 10px;

	background: #eaf2f9;
	border-radius: 4px;

	color: #355b79;
	font-size: 15px;
}

.meta-tags {
	color: #68747e;
	font-size: 15px;
}

.meta-tags strong {
	margin-right: 5px;
	color: #45515b;
}

.story-meta-open {
	flex: 0 0 auto;

	display: flex;
	align-items: center;
	gap: 3px;

	color: var(--flow-blue);
	font-size: 15px;
	font-weight: 600;
}

.story-meta-open .mdi {
	font-size: 18px;
}


/* ---------------------------------------------------------
   Assignment tabs
--------------------------------------------------------- */

.assignment-tabs {
	flex: 0 0 auto;

	display: flex;
	align-items: stretch;
	justify-content: space-between;

	height: 55px;
	padding: 0 24px;

	background: #fff;
	border-bottom: 1px solid var(--flow-border);
}

.assignment-tab-list {
	display: flex;
	align-items: stretch;
	gap: 4px;
}

.assignment-tab {
	position: relative;

	min-width: 105px;
	padding: 0 28px;

	border: 0;
	background: transparent;

	color: #66737e;
	font-size: 17px;
	font-weight: 600;

	cursor: pointer;
}

.assignment-tab:hover {
	color: var(--flow-blue);
}

.assignment-tab.active {
	color: var(--flow-blue);
}

.assignment-tab.active::after {
	content: "";

	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 0;

	height: 3px;

	background: var(--flow-blue);
	border-radius: 3px 3px 0 0;
}

.add-assignment {
	display: flex;
	align-items: center;
	gap: 5px;

	border: 0;
	background: transparent;

	color: var(--flow-blue);
	font-size: 11px;
	font-weight: 600;

	cursor: pointer;
}

.add-assignment .mdi {
	font-size: 18px;
}


/* ---------------------------------------------------------
   Assignment workspace
--------------------------------------------------------- */

.assignment-workspace {
	flex: 1 1 auto;
	min-height: 0;

	padding: 20px 28px;

	overflow: hidden;
}

.assignment-heading {
	max-width: 1500px;
	margin: 0 auto 15px;
}

.assignment-eyebrow {
	display: block;
	margin-bottom: 3px;

	color: #8a959e;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.assignment-heading h2 {
	margin: 0;

	font-size: 22px;
	font-weight: 600;
}

.workspace-grid {
	display: grid;
	grid-template-columns:
		minmax(340px, 1fr)
		minmax(340px, 1fr)
		minmax(260px, .8fr);

	gap: 18px;

	max-width: 1500px;
	margin: 0 auto;
	height: 100%;
	min-height: 0;
}

.workspace-card {

	background: #fff;
	border: 1px solid var(--flow-border);
	border-radius: var(--radius);

	display: flex;
	flex-direction: column;

	height: 100%;
	min-height: 0;

	overflow: hidden;
}
.workspace-card-header {
	display: flex;
	flex: 0 0 auto;

	align-items: center;
	justify-content: space-between;

	height: 47px;
	padding: 0 18px;

	border-bottom: 1px solid var(--flow-border);
}

.workspace-card-content {
	flex: 1 1 auto;
	min-height: 0;

	overflow-y: auto;
}

.workspace-card-header h3 {
	margin: 0;

	font-size: 16px;
	font-weight: 600;
}

.placeholder-content {
	padding: 25px 18px;

	color: #929ca4;
	font-size: 12px;
}


/* ---------------------------------------------------------
   Notes
--------------------------------------------------------- */

.notes-content {
	height: calc(100% - 47px);
	padding: 14px;
}

.notes-textarea {
	width: 100%;
	height: 100%;
	min-height: 250px;

	padding: 11px 12px;

	border: 1px solid var(--flow-border);
	border-radius: 4px;
	outline: none;

	resize: vertical;

	color: var(--flow-text);
	background: #fff;

	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
}

.notes-textarea:focus {
	border-color: var(--flow-blue);
	box-shadow: 0 0 0 2px rgba(25, 118, 210, .08);
}

/* ---------------------------------------------------------
   Modal responsiveness
--------------------------------------------------------- */

@media (max-width: 1150px) {

	.workspace-grid {
		grid-template-columns: 1fr 1fr;
	}

	.notes-card {
		grid-column: 1 / -1;
	}

}

@media (max-width: 750px) {

	.workspace-grid {
		grid-template-columns: 1fr;
	}

	.notes-card {
		grid-column: auto;
	}

}

.media-button .mdi {
	font-size: 18px;
}

.media-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-width: 19px;
	height: 19px;
	padding: 0 5px;

	border-radius: 10px;
	background: #edf2f6;

	color: #53616c;
	font-size: 10px;
	font-weight: 700;
}

.no-assignments-state {
	flex: 1 1 auto;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	padding: 60px 30px;

	text-align: center;
}

.no-assignments-state[hidden] {
	display: none;
}

.empty-state-icon {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 58px;
	height: 58px;
	margin-bottom: 18px;

	border-radius: 50%;
	background: #edf3f8;

	color: var(--flow-blue);
	font-size: 28px;
}

.no-assignments-state h2 {
	margin: 0 0 8px;

	font-size: 18px;
	font-weight: 600;
}

.no-assignments-state p {
	margin: 0 0 20px;

	color: var(--flow-muted);
	font-size: 13px;
}

.empty-state-action .mdi {
	font-size: 17px;
}
.assignment-tabs[hidden] {
	display: none;
}

.meta-primary {
	display: flex;
	align-items: stretch;
	gap: 8px;
}

.meta-item {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;

	min-width: 105px;
	padding: 6px 10px;

	background: #f3f6f8;
	border-radius: 5px;

	color: #25313c;
	font-size: 13px;
	font-weight: 600;
}

.meta-item strong {
	margin: 0;

	color: #7b8790;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.status-value {
	display: flex;
	align-items: center;
	gap: 6px;
}

.status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #1976d2;
}

.publish-value {
	display: flex;
	align-items: center;
	gap: 5px;
}

.publish-value .mdi {
	color: #77838d;
	font-size: 14px;
}

/* ---------------------------------------------------------
   People & Workflow
--------------------------------------------------------- */

.workflow-content {
	padding: 17px 18px 18px;
}


/* Workflow heading */

.workflow-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;

	padding-bottom: 15px;
	margin-bottom: 5px;

	border-bottom: 1px solid #edf0f2;
}

.workflow-heading > div:first-child {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.workflow-label {
	color: #8a959e;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.workflow-heading strong {
	font-size: 15px;
	font-weight: 600;
}


/* Workflow menu */

.workflow-menu-wrapper {
	position: relative;
}

.workflow-menu-button {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 30px;
	height: 30px;

	padding: 0;
	border: 0;
	border-radius: 4px;

	background: transparent;
	color: #77838d;

	cursor: pointer;
}

.workflow-menu-button:hover {
	background: #f1f4f6;
	color: #34414b;
}

.workflow-menu-button .mdi {
	font-size: 19px;
}

.workflow-menu {
	position: absolute;
	top: 34px;
	right: 0;
	z-index: 20;

	width: 175px;

	padding: 5px;

	background: #fff;
	border: 1px solid var(--flow-border);
	border-radius: 5px;

	box-shadow: 0 5px 18px rgba(0, 0, 0, .12);
}

.workflow-menu[hidden] {
	display: none;
}

.workflow-menu button {
	display: flex;
	align-items: center;
	gap: 8px;

	width: 100%;

	padding: 8px 9px;

	border: 0;
	border-radius: 3px;

	background: transparent;
	color: #45515b;

	text-align: left;
	font-size: 11px;

	cursor: pointer;
}

.workflow-menu button:hover {
	background: #f4f6f8;
}

.workflow-menu button .mdi {
	font-size: 15px;
}


/* ---------------------------------------------------------
   Vertical stepper
--------------------------------------------------------- */

.workflow-stepper {
	padding-top: 15px;
}

.workflow-step {
	position: relative;

	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	column-gap: 11px;

	min-height: 70px;
}

.step-marker {
	position: relative;
	z-index: 2;

	grid-column: 1;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 24px;
	height: 24px;
	margin-left: 4px;

	border: 2px solid #c7cfd5;
	border-radius: 50%;

	background: #fff;
	color: #fff;

	font-size: 13px;
}

.step-line {
	position: absolute;
	z-index: 1;

	top: 23px;
	bottom: -1px;
	left: 15px;

	width: 2px;

	background: #dce1e5;
}

.step-content {
	grid-column: 2;

	min-width: 0;
	padding: 2px 0 18px;
}


/* Ownership */

.ownership-step {
	min-height: 88px;
}

.ownership-marker {
	border-color: var(--flow-blue);
	background: var(--flow-blue);

	font-size: 14px;
}

.ownership-step .step-line {
	background: #a9cce8;
}


/* Completed */

.workflow-step.completed .step-marker {
	border-color: #4f9b68;
	background: #4f9b68;
}

.workflow-step.completed .step-line {
	background: #8fc3a0;
}


/* Current */

.workflow-step.current .step-marker {
	border: 5px solid var(--flow-blue);
	background: #fff;
}

.workflow-step.current .step-line {
	background: #dce1e5;
}


/* Future */

.workflow-step.future .step-marker {
	background: #fff;
	border-color: #c9d0d6;
}


/* Text */

.step-title {
	color: #303c46;
	font-size: 14px;
	font-weight: 600;
}

.ownership-step .step-title {
	margin-bottom: 8px;

	color: #707c86;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.step-person {
	margin-top: 3px;

	color: #7b8790;
	font-size: 14px;
}

.step-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

/* Current state */

.current-badge {
	display: inline-flex;
	align-items: center;

	padding: 3px 6px;

	border-radius: 3px;
	background: var(--flow-blue);

	color: #fff;

	font-size: 10px;
}

.current-step-actions {
	margin-top: 8px;
}

.workflow-secondary-action {
	padding: 4px 8px;

	border: 1px solid #d6dce1;
	border-radius: 4px;

	background: #fff;
	color: #68747e;

	font-size: 10px;
	font-weight: 600;

	cursor: pointer;
}

.workflow-secondary-action:hover {
	background: #f5f7f8;
}


/* ---------------------------------------------------------
   Assignees
--------------------------------------------------------- */

.assignee-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;

	margin-bottom: 6px;
}

.person-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;

	height: 30px;
	padding: 0 5px 0 4px;

	border: 1px solid #dbe1e5;
	border-radius: 15px;

	background: #fff;

	color: #3e4a54;
	font-size: 11px;
	font-weight: 600;
}

.person-avatar {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 22px;
	height: 22px;

	border-radius: 50%;
	background: #e5eef5;

	color: #42627b;

	font-size: 8px;
	font-weight: 700;
}

.person-remove {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 18px;
	height: 18px;

	padding: 0;
	border: 0;
	border-radius: 50%;

	background: transparent;
	color: #929ca4;

	cursor: pointer;
}

.person-remove:hover {
	background: #edf0f2;
	color: #48545e;
}

.person-remove .mdi {
	font-size: 13px;
}

.inline-action {
	display: inline-flex;
	align-items: center;
	gap: 3px;

	padding: 2px 0;

	border: 0;
	background: transparent;

	color: var(--flow-blue);
	font-size: 13px;
	font-weight: 600;

	cursor: pointer;
}

.inline-action .mdi {
	font-size: 14px;
}


/* ---------------------------------------------------------
   Submission action
--------------------------------------------------------- */

.workflow-primary-action {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;

	margin-top: 4px;
	padding: 12px 13px;

	border: 1px solid #dce5ec;
	border-radius: 5px;

	background: #f7fafc;
}

.submission-next {
	display: flex;
	flex-direction: column;
	gap: 2px;

	min-width: 0;
}

.submission-next span {
	color: #88939c;

	font-size: 10px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.submission-next strong {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;

	color: #36434d;
	font-size: 12px;
	font-weight: 600;
}

.submit-button {
	flex: 0 0 auto;

	display: flex;
	align-items: center;
	gap: 5px;

	height: 32px;
	padding: 0 11px;

	border: 0;
	border-radius: 4px;

	background: var(--flow-blue);
	color: #fff;

	font-size: 12px;
	font-weight: 600;

	cursor: pointer;
}

.submit-button:hover {
	background: #1565b5;
}

.submit-button .mdi {
	font-size: 14px;
}

.current-step-panel {
	margin: -7px 0 12px -10px;
	padding: 9px 11px;

	border: 1px solid #c9ddeb;
	border-radius: 5px;

	background: #f4f9fc;
}

.workflow-step.current .step-marker {
	border: 5px solid var(--flow-blue);
	background: #fff;

	box-shadow: 0 0 0 3px #e7f1f8;
}

.workflow-step.current .step-title {
	color: #234f70;
}

.workflow-step.current .step-person {
	color: #526b7d;
}

/* ---------------------------------------------------------
   Deadlines & Tasks
--------------------------------------------------------- */

.deadlines-content {
	padding: 17px 18px 20px;
}

.assignment-section + .assignment-section {
	margin-top: 25px;
	padding-top: 20px;
	border-top: 1px solid #edf0f2;
}

.assignment-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;

	margin-bottom: 10px;

	color: #7b8790;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.section-action {
	display: flex;
	align-items: center;
	gap: 2px;

	padding: 3px 5px;

	border: 0;
	background: transparent;

	color: var(--flow-blue);
	font-size: 9px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;

	cursor: pointer;
}

.section-action .mdi {
	font-size: 13px;
}


/* Deadlines */

.deadline-list {
	display: flex;
	flex-direction: column;
}

.deadline-row {
	display: grid;
	grid-template-columns: 25px minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;

	min-height: 40px;

	border-bottom: 1px solid #f0f2f4;
}

.deadline-row:last-child {
	border-bottom: 0;
}

.deadline-check,
.task-check {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 24px;
	height: 24px;

	padding: 0;

	border: 1.5px solid #bfc8cf;
	border-radius: 50%;

	background: #fff;
	color: #fff;

	cursor: pointer;
}

.deadline-check .mdi,
.task-check .mdi {
	font-size: 18px;
}

.deadline-row.completed .deadline-check {
	border-color: #4f9b68;
	background: #4f9b68;
}

.deadline-info,
.task-info {
	display: flex;
	flex-direction: column;
	gap: 2px;

	min-width: 0;
}

.deadline-info strong,
.task-info strong {
	color: #36434d;
	font-size: 14px;
	font-weight: 600;
}

.deadline-info span,
.task-info span {
	color: #929ca4;
	font-size: 10px;
}

.deadline-row.completed .deadline-info strong {
	color: #78848d;
	text-decoration: line-through;
}

.deadline-date {
	padding: 5px 7px;

	border: 0;
	border-radius: 4px;

	background: transparent;
	color: #52616c;

	font-size: 14px;
	font-weight: 600;

	cursor: pointer;
}

.deadline-date:hover {
	background: #f1f4f6;
}


/* Tasks */

.task-list {
	display: flex;
	flex-direction: column;
}

.task-row {
	display: grid;
	grid-template-columns: 25px minmax(0, 1fr) auto 26px;
	align-items: center;
	gap: 8px;

	min-height: 40px;

	border-bottom: 1px solid #f0f2f4;
}

.task-date {
	padding: 5px 7px;

	border: 0;
	border-radius: 4px;

	background: transparent;
	color: #52616c;

	font-size: 14px;
	font-weight: 600;

	cursor: pointer;
}

.task-date:hover {
	background: #f1f4f6;
}

.task-check.completed {
	border-color: #4f9b68;
	background: #4f9b68;
}

.row-menu {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 26px;
	height: 26px;

	padding: 0;
	border: 0;
	border-radius: 4px;

	background: transparent;
	color: #929ca4;

	cursor: pointer;
}

.row-menu:hover {
	background: #f1f4f6;
	color: #56636e;
}

.row-menu .mdi {
	font-size: 17px;
}

.add-task {
	display: inline-flex;
	align-items: center;
	gap: 4px;

	margin-top: 10px;
	padding: 4px 0;

	border: 0;
	background: transparent;

	color: var(--flow-blue);
	font-size: 13px;
	font-weight: 600;

	cursor: pointer;
}

.add-task .mdi {
	font-size: 14px;
}

/* ---------------------------------------------------------
   Scenario-driven states
--------------------------------------------------------- */

.empty-helper {
	padding: 8px 0;

	color: #929ca4;
	font-size: 14px;
	line-height: 1.45;
}


/* Volunteers */

.volunteer-heading {
	margin: 12px 0 6px;

	color: #7b8790;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.volunteer-list {
	margin-bottom: 8px;
}

.volunteer-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;

	min-height: 37px;
	padding: 4px 0;
}

.volunteer-person {
	display: flex;
	align-items: center;
	gap: 7px;

	color: #3e4a54;
	font-size: 11px;
	font-weight: 600;
}

.assign-volunteer {
	padding: 4px 8px;

	border: 1px solid #cddbe6;
	border-radius: 4px;

	background: #fff;
	color: var(--flow-blue);

	font-size: 9px;
	font-weight: 600;

	cursor: pointer;
}

.assign-volunteer:hover {
	background: #f3f8fc;
}


/* Key Editors / no workflow */

.key-editor-section {
	padding: 8px 0 0 0px;
}

.key-editor-heading {
	margin-bottom: 7px;

	color: #7b8790;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.key-editor-row {
	display: grid;
	grid-template-columns: 27px minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;

	min-height: 48px;

	border-bottom: 1px solid #edf0f2;
}

.key-editor-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.key-editor-info strong {
	color: #36434d;
	font-size: 11px;
	font-weight: 600;
}

.key-editor-info span {
	color: #929ca4;
	font-size: 9px;
}

.key-editor-submit {
	padding: 5px 8px;

	border: 1px solid #cddbe6;
	border-radius: 4px;

	background: #fff;
	color: var(--flow-blue);

	font-size: 9px;
	font-weight: 600;

	cursor: pointer;
}

.key-editor-submit:hover {
	background: #f3f8fc;
}

.key-editors-empty {
	padding: 10px 0 0 43px;
}

.volunteer-action {
	display: inline-flex;
	align-items: center;
	gap: 6px;

	margin-top: 5px;
	padding: 7px 10px;

	border: 1px solid var(--flow-blue);
	border-radius: 4px;

	background: #fff;
	color: var(--flow-blue);

	font-size: 10px;
	font-weight: 600;

	cursor: pointer;
}

.volunteer-action:hover {
	background: #f3f8fc;
}

.volunteer-action .mdi {
	font-size: 15px;
}

.submission-actions {
	display: flex;
	align-items: center;
	gap: 7px;
}

.submit-other-button {
	height: 32px;
	padding: 0 10px;

	border: 1px solid #cbd5dc;
	border-radius: 4px;

	background: #fff;
	color: #52616c;

	font-size: 12px;
	font-weight: 600;

	cursor: pointer;
}

.submit-other-button:hover {
	background: #f3f6f8;
	border-color: #b8c5ce;
}
.key-editor-other {
	padding-top: 12px;
}

.notification-button.active {
	color: var(--flow-blue);
	background: #edf5fb;
}

/* ---------------------------------------------------------
   Story Details Drawer
--------------------------------------------------------- */

.drawer-backdrop {
	position: absolute;
	inset: 0;
	z-index: 100;

	background: rgba(25, 35, 45, .24);
}

.drawer-backdrop[hidden] {
	display: none;
}


.story-details-drawer {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 101;

	display: flex;
	flex-direction: column;

	width: min(440px, 92vw);

	background: #fff;

	box-shadow: -8px 0 24px rgba(30, 45, 55, .14);
}

.story-details-drawer[hidden] {
	display: none;
}


.drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;

	flex: 0 0 auto;

	min-height: 74px;
	padding: 16px 20px;

	border-bottom: 1px solid var(--flow-border);
}

.drawer-header h2 {
	margin: 0 0 3px;

	color: var(--flow-text);

	font-size: 17px;
	font-weight: 600;
}

.drawer-header p {
	margin: 0;

	color: var(--flow-muted);

	font-size: 10px;
}


.drawer-content {
	flex: 1 1 auto;

	padding: 20px;

	overflow-y: auto;
}


.drawer-section + .drawer-section {
	margin-top: 25px;
	padding-top: 22px;

	border-top: 1px solid #edf0f2;
}

.drawer-section-title {
	margin-bottom: 13px;

	color: #7b8790;

	font-size: 9px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
}


.drawer-field {
	margin-bottom: 16px;
}

.drawer-field:last-child {
	margin-bottom: 0;
}

.drawer-field label {
	display: block;

	margin-bottom: 6px;

	color: #46535d;

	font-size: 10px;
	font-weight: 600;
}

.drawer-field select,
.drawer-field input[type="text"],
.drawer-field input[type="date"] {
	box-sizing: border-box;

	width: 100%;
	height: 36px;

	padding: 0 10px;

	border: 1px solid #ccd4da;
	border-radius: 4px;

	background: #fff;
	color: #34414b;

	font-family: inherit;
	font-size: 11px;
}

.drawer-field select:focus,
.drawer-field input:focus {
	outline: none;

	border-color: var(--flow-blue);

	box-shadow: 0 0 0 2px rgba(25, 118, 210, .08);
}


.drawer-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;

	min-height: 30px;

	color: #46535d;

	font-size: 11px;
	cursor: pointer;
}

.drawer-checkbox input {
	margin: 0;
}


.drawer-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;

	margin-bottom: 9px;
}

.drawer-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;

	padding: 5px 7px;

	border-radius: 4px;

	background: #f0f3f5;
	color: #52616c;

	font-size: 10px;
}

.drawer-tag button {
	display: flex;
	align-items: center;
	justify-content: center;

	padding: 0;

	border: 0;

	background: transparent;
	color: #87929a;

	cursor: pointer;
}

.drawer-tag button .mdi {
	font-size: 13px;
}


.drawer-add-tag {
	display: flex;
	gap: 6px;
}

.drawer-add-tag input {
	flex: 1 1 auto;
}

.drawer-add-button {
	padding: 0 10px;

	border: 1px solid #ccd4da;
	border-radius: 4px;

	background: #fff;
	color: var(--flow-blue);

	font-size: 10px;
	font-weight: 600;

	cursor: pointer;
}


.drawer-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;

	flex: 0 0 auto;

	padding: 13px 20px;

	border-top: 1px solid var(--flow-border);

	background: #fff;
}

.drawer-secondary-button,
.drawer-save-button {
	height: 34px;
	padding: 0 13px;

	border-radius: 4px;

	font-family: inherit;
	font-size: 10px;
	font-weight: 600;

	cursor: pointer;
}

.drawer-secondary-button {
	border: 1px solid #cbd3d9;

	background: #fff;
	color: #52616c;
}

.drawer-save-button {
	border: 1px solid var(--flow-blue);

	background: var(--flow-blue);
	color: #fff;
}


/* Story-level secondary actions */

.story-management-action {
	display: flex;
	align-items: center;
	gap: 8px;

	width: 100%;

	padding: 9px 10px;

	border: 1px solid #dce2e6;
	border-radius: 4px;

	background: #fff;
	color: #52616c;

	font-size: 10px;
	font-weight: 600;
	text-align: left;

	cursor: pointer;
}

.story-management-action + .story-management-action {
	margin-top: 7px;
}

.story-management-action .mdi {
	font-size: 16px;
}

.story-management-action.archive:hover {
	background: #f5f7f8;
}

.story-management-action.delete {
	color: #b64b4b;
}

.story-management-action.delete:hover {
	border-color: #e3c5c5;
	background: #fdf6f6;
}
#story-meta-summary {
	cursor: pointer;
}

/* ---------------------------------------------------------
   Add Assignment Menu
--------------------------------------------------------- */

.add-assignment-wrapper {
	position: relative;
	margin-left: auto;
}

.add-assignment-button {
	display: flex;
	align-items: center;
	gap: 4px;

	height: 100%;
	padding: 0 12px;

	border: 0;
	border-radius: 0;

	background: transparent;
	color: var(--flow-blue);

	font-family: inherit;
	font-size: 15px;
	font-weight: 600;

	cursor: pointer;
}

.add-assignment-button:hover {
	background: #f3f7fa;
}

.add-assignment-button .mdi {
	font-size: 15px;
}
.add-assignment-menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 80;

	width: 285px;

	padding: 7px;

	border: 1px solid #d9e0e5;
	border-radius: 6px;

	background: #fff;

	box-shadow: 0 8px 24px rgba(32, 45, 55, .14);
}

.add-assignment-menu[hidden] {
	display: none;
}

.add-assignment-menu-label {
	padding: 7px 9px 8px;

	color: #7b8790;

	font-size: 9px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.assignment-type-option {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	align-items: center;
	gap: 8px;

	width: 100%;
	padding: 8px 9px;

	border: 0;
	border-radius: 4px;

	background: transparent;
	color: #36434d;

	text-align: left;

	cursor: pointer;
}

.assignment-type-option:hover {
	background: #f3f6f8;
}

.assignment-type-option > .mdi {
	color: #64737e;
	font-size: 19px;
}

.assignment-type-option span {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.assignment-type-option strong {
	font-size: 11px;
	font-weight: 600;
}

.assignment-type-option small {
	color: #8a959d;

	font-size: 9px;
	font-weight: 400;
}

.add-assignment-menu-footer {
	margin-top: 6px;
	padding-top: 6px;

	border-top: 1px solid #edf0f2;
}

.manage-assignment-types {
	display: flex;
	align-items: center;
	gap: 7px;

	width: 100%;
	padding: 8px 9px;

	border: 0;
	border-radius: 4px;

	background: transparent;
	color: #65737e;

	font-size: 10px;
	font-weight: 600;
	text-align: left;

	cursor: pointer;
}

.manage-assignment-types:hover {
	background: #f3f6f8;
	color: var(--flow-blue);
}

.manage-assignment-types .mdi {
	font-size: 16px;
}

.empty-add-assignment-wrapper {
	position: relative;
}

.empty-add-assignment-menu {
	top: calc(100% + 8px);
	right: 50%;

	transform: translateX(50%);

	text-align: left;
}

/* ---------------------------------------------------------
   General Dialog
--------------------------------------------------------- */

.dialog-backdrop {
	position: absolute;
	inset: 0;
	z-index: 120;

	background: rgba(25, 35, 45, .32);
}

.dialog-backdrop[hidden] {
	display: none;
}

.flow-dialog {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 121;

	display: flex;
	flex-direction: column;

	width: min(430px, calc(100vw - 40px));
	height: 520px;
	max-height: calc(100vh - 80px);

	transform: translate(-50%, -50%);

	border-radius: 7px;

	background: #fff;

	box-shadow: 0 16px 45px rgba(25, 35, 45, .22);
}

.flow-dialog[hidden] {
	display: none;
}

.flow-dialog-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;

	padding: 16px 18px;

	border-bottom: 1px solid var(--flow-border);
}

.flow-dialog-header h2 {
	margin: 0 0 3px;

	color: var(--flow-text);

	font-size: 16px;
	font-weight: 600;
}

.flow-dialog-header p {
	margin: 0;

	color: var(--flow-muted);

	font-size: 10px;
}

.flow-dialog-content {
	flex: 1 1 auto;
	min-height: 0;

	padding: 18px;

	overflow-y: auto;
}

.flow-dialog-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;

	padding: 12px 18px;

	border-top: 1px solid var(--flow-border);
}


/* ---------------------------------------------------------
   Recipient Picker
--------------------------------------------------------- */

.recipient-search-wrapper {
	position: relative;
}

.recipient-search-wrapper > .mdi {
	position: absolute;
	top: 50%;
	left: 10px;

	transform: translateY(-50%);

	color: #87939c;
	font-size: 17px;
}

.recipient-search-wrapper input {
	box-sizing: border-box;

	width: 100%;
	height: 38px;

	padding: 0 10px 0 34px;

	border: 1px solid #cbd4da;
	border-radius: 5px;

	background: #fff;
	color: #34414b;

	font-family: inherit;
	font-size: 11px;
}

.recipient-search-wrapper input:focus {
	outline: none;

	border-color: var(--flow-blue);

	box-shadow: 0 0 0 2px rgba(25, 118, 210, .08);
}


.recipient-section {
	margin-top: 17px;
}

.recipient-section-label {
	margin-bottom: 7px;

	color: #7b8790;

	font-size: 9px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.recipient-list {
	display: flex;
	flex-direction: column;
}

.recipient-option {
	display: grid;
	grid-template-columns: 31px minmax(0, 1fr) 20px;
	align-items: center;
	gap: 9px;

	width: 100%;
	min-height: 48px;
	padding: 5px 7px;

	border: 0;
	border-bottom: 1px solid #edf0f2;

	background: transparent;

	text-align: left;

	cursor: pointer;
}

.recipient-option:hover {
	background: #f5f8fa;
}

.recipient-option.selected {
	background: #edf5fb;
}

.recipient-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.recipient-info strong {
	color: #36434d;

	font-size: 11px;
	font-weight: 600;
}

.recipient-info span {
	color: #8a959d;

	font-size: 9px;
}

.recipient-selected-icon {
	color: var(--flow-blue);

	font-size: 17px;
}

.selected-recipient {
	margin-top: 15px;
	padding: 9px 10px;

	border: 1px solid #cbdfea;
	border-radius: 5px;

	background: #f4f9fc;

	color: #52616c;

	font-size: 10px;
}

.selected-recipient strong {
	color: #34414b;
}


#submit-other-confirm:disabled {
	opacity: .45;
	cursor: default;
}

/* ---------------------------------------------------------
   Grade Story
--------------------------------------------------------- */

.grade-story-dialog {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 121;

	display: flex;
	flex-direction: column;

	width: min(900px, calc(100vw - 60px));
	height: min(700px, calc(100vh - 60px));

	transform: translate(-50%, -50%);

	border-radius: 7px;

	background: #fff;

	box-shadow: 0 16px 45px rgba(25, 35, 45, .24);

	overflow: hidden;
}

.grade-story-dialog[hidden] {
	display: none;
}


.grade-dialog-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;

	flex: 0 0 auto;

	padding: 16px 20px;

	border-bottom: 1px solid var(--flow-border);
}

.grade-dialog-header h2 {
	margin: 0 0 3px;

	color: var(--flow-text);

	font-size: 17px;
	font-weight: 600;
}

.grade-dialog-header p {
	margin: 0;

	color: var(--flow-muted);

	font-size: 10px;
}


.grade-dialog-body {
	display: grid;
	grid-template-columns: 225px minmax(0, 1fr);

	flex: 1 1 auto;
	min-height: 0;
}


/* Student navigation */

.grade-student-panel {
	padding: 18px 12px;

	border-right: 1px solid var(--flow-border);

	background: #f8f9fa;

	overflow-y: auto;
}

.grade-panel-label {
	margin-bottom: 10px;

	color: #7b8790;

	font-size: 9px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.grade-assignment-group + .grade-assignment-group {
	margin-top: 20px;
}

.grade-assignment-label {
	margin: 0 7px 6px;

	color: #697680;

	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
}

.grade-student-option {
	display: grid;
	grid-template-columns: 29px minmax(0, 1fr);
	align-items: center;
	gap: 8px;

	width: 100%;
	padding: 8px 7px;

	border: 0;
	border-radius: 5px;

	background: transparent;

	text-align: left;

	cursor: pointer;
}

.grade-student-option:hover {
	background: #eef2f4;
}

.grade-student-option.active {
	background: #e8f2f9;
}

.grade-student-info {
	display: flex;
	flex-direction: column;
	gap: 2px;

	min-width: 0;
}

.grade-student-info strong {
	overflow: hidden;

	color: #36434d;

	font-size: 10px;
	font-weight: 600;

	text-overflow: ellipsis;
	white-space: nowrap;
}

.grade-student-info span {
	color: #929ca4;

	font-size: 9px;
}

.grade-student-option.graded .grade-student-info span {
	color: #4f8d65;
	font-weight: 600;
}


/* Main grading workspace */

.grade-workspace {
	min-width: 0;

	padding: 20px 22px 30px;

	overflow-y: auto;
}

.grade-workspace-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 30px;

	padding-bottom: 18px;

	border-bottom: 1px solid #edf0f2;
}

.grade-student-name {
	color: var(--flow-text);

	font-size: 16px;
	font-weight: 600;
}

.grade-assignment-name {
	margin-top: 3px;

	color: var(--flow-muted);

	font-size: 10px;
}

.grade-period-field {
	width: 170px;
}

.grade-period-field label,
.grade-rubric-field label,
.holistic-field label {
	display: block;

	margin-bottom: 5px;

	color: #7b8790;

	font-size: 9px;
	font-weight: 600;
}

.grade-period-field select,
.grade-rubric-field select,
.holistic-field input {
	box-sizing: border-box;

	width: 100%;
	height: 34px;

	padding: 0 9px;

	border: 1px solid #ccd4da;
	border-radius: 4px;

	background: #fff;
	color: #36434d;

	font-family: inherit;
	font-size: 10px;
}


/* Grading method */

.grading-method {
	margin-top: 18px;
}

.grading-method-toggle {
	display: inline-flex;

	padding: 2px;

	border: 1px solid #d7dfe4;
	border-radius: 5px;

	background: #f3f5f6;
}

.grading-method-button {
	min-width: 82px;
	height: 29px;

	padding: 0 12px;

	border: 0;
	border-radius: 3px;

	background: transparent;
	color: #68757f;

	font-family: inherit;
	font-size: 10px;
	font-weight: 600;

	cursor: pointer;
}

.grading-method-button.active {
	background: #fff;
	color: var(--flow-blue);

	box-shadow: 0 1px 3px rgba(30, 45, 55, .12);
}


.grade-method-content {
	margin-top: 20px;
}


/* Holistic */

.holistic-grade {
	max-width: 390px;
}

.holistic-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

.holistic-field input {
	font-size: 14px;
}


/* Rubric */

.grade-rubric-field {
	width: 260px;
	margin-bottom: 22px;
}

.rubric-section + .rubric-section {
	margin-top: 22px;
}

.rubric-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;

	padding: 7px 10px;

	border-radius: 4px;

	background: #f1f3f5;
}

.rubric-section-header strong {
	color: #52616c;

	font-size: 10px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.rubric-section-header span {
	color: #65737e;

	font-size: 10px;
	font-weight: 600;
}

.rubric-criterion {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 75px;
	align-items: center;
	gap: 20px;

	min-height: 54px;
	padding: 4px 10px;

	border-bottom: 1px solid #edf0f2;
}

.rubric-criterion-name {
	color: #36434d;

	font-size: 11px;
}

.rubric-score {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 5px;

	color: #7b8790;

	font-size: 10px;
}

.rubric-score input {
	box-sizing: border-box;

	width: 38px;
	height: 29px;

	padding: 0 4px;

	border: 1px solid #cbd4da;
	border-radius: 4px;

	background: #fff;
	color: #36434d;

	font-family: inherit;
	font-size: 11px;
	text-align: center;
}

.rubric-score input:focus {
	outline: none;

	border-color: var(--flow-blue);

	box-shadow: 0 0 0 2px rgba(25, 118, 210, .08);
}


/* Footer */

.grade-dialog-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;

	flex: 0 0 auto;

	min-height: 62px;
	padding: 0 20px;

	border-top: 1px solid var(--flow-border);

	background: #fff;
}

.grade-total {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.grade-total span {
	color: #7b8790;

	font-size: 9px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.grade-total strong {
	color: var(--flow-text);

	font-size: 16px;
	font-weight: 600;
}

.grade-footer-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.assignment-workspace.assignment-changing {
	animation: assignment-change .18s ease-out;
}

@keyframes assignment-change {
	from {
		opacity: .55;
		transform: translateY(2px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.notes-conversation-card {
	display: flex;
	flex-direction: column;

	min-height: 0;
}

.notes-conversation-content {
	display: flex;
	flex-direction: column;

	flex: 1 1 auto;
	min-height: 0;
	padding: 14px;
}

.notes-conversation-label {
	margin-bottom: 7px;

	color: #7b8790;

	font-size: 9px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}


/* Notes */

.assignment-notes-section {
	flex: 0 0 auto;

	padding-bottom: 15px;

	border-bottom: 1px solid #edf0f2;
}

.assignment-notes-section .notes-textarea {
	box-sizing: border-box;

	display: block;

	width: 100%;
	height: 120px;
	min-height: 120px;
	padding: 9px 10px;

	border: 1px solid #d5dce1;
	border-radius: 5px;

	background: #fff;
	color: #36434d;

	font-family: inherit;
	line-height: 1.45;

	resize: vertical;
}

.assignment-notes-section .notes-textarea:focus {
	outline: none;

	border-color: #a9c8df;

	box-shadow: 0 0 0 2px rgba(25, 118, 210, .06);
}


/* Conversation */

.conversation-section {
	display: flex;
	flex-direction: column;

	flex: 1 1 auto;
	min-height: 0;
	padding-top: 15px;
}


.conversation-message {
	display: flex;
	align-items: flex-start;
	gap: 8px;

	margin-bottom: 15px;
}

.conversation-message.mine {
	flex-direction: row-reverse;
}

.conversation-message .person-avatar {
	flex: 0 0 auto;
}

.conversation-message-body {
	min-width: 0;
	max-width: calc(100% - 38px);
}

.conversation-message.mine .conversation-message-body {
	text-align: right;
}

.conversation-message-author {
	margin-bottom: 2px;

	color: #53616c;

	font-size: 10px;
	font-weight: 600;
}

.conversation-message-text {
	display: inline-block;

	padding: 7px 9px;

	border-radius: 5px;

	background: #f1f3f5;
	color: #36434d;

	font-size: 12px;
	line-height: 1.4;

	text-align: left;
}

.conversation-message.mine .conversation-message-text {
	background: #e8f2f9;
}

.conversation-message-time {
	margin-top: 3px;

	color: #9aa3aa;

	font-size: 10px;
}


/* Message composer */

.conversation-compose {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 32px;
	align-items: end;
	gap: 6px;

	flex: 0 0 auto;

	padding-top: 10px;

	border-top: 1px solid #edf0f2;
}

.conversation-compose textarea {
	box-sizing: border-box;

	width: 100%;
	min-height: 34px;
	max-height: 80px;
	padding: 8px 9px;

	border: 1px solid #d5dce1;
	border-radius: 5px;

	background: #fff;
	color: #36434d;

	font-family: inherit;
	font-size: 10px;
	line-height: 1.35;

	resize: none;
}

.conversation-compose textarea:focus {
	outline: none;
	border-color: #a9c8df;
}

.conversation-send {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 32px;
	height: 32px;

	border: 0;
	border-radius: 5px;

	background: var(--flow-blue);
	color: #fff;

	cursor: pointer;
}

.conversation-send:hover {
	opacity: .9;
}

.conversation-send .mdi {
	font-size: 15px;
}

.notes-conversation-content {
	display: flex;
	flex-direction: column;

	flex: 1 1 auto;
	min-height: 0;

	padding: 14px;

	overflow: hidden;
}

.assignment-notes-section {
	flex: 0 0 auto;
}

.conversation-section {
	display: flex;
	flex-direction: column;

	flex: 1 1 auto;
	min-height: 0;
}


.conversation-compose {
	flex: 0 0 auto;
}

.notes-conversation-card {
	display: flex;
	flex-direction: column;

	height: 100%;
	min-height: 0;

	overflow: hidden;
}

.notes-conversation-content {
	display: flex;
	flex-direction: column;

	flex: 1 1 auto;
	min-height: 0;

	padding: 14px;

	overflow: hidden;
}


/* Notes always stays visible */

.assignment-notes-section {
	flex: 0 0 auto;

	padding-bottom: 15px;

	border-bottom: 1px solid #edf0f2;
}


/* Conversation takes all remaining space */

.conversation-section {
	display: flex;
	flex-direction: column;

	flex: 1 1 auto;
	min-height: 0;

	padding-top: 15px;

	overflow: hidden;
}


/* This is the ONLY scrolling element */

.conversation-messages {
	flex: 1 1 auto;
	min-height: 0;

	overflow-y: auto;
}


/* Composer stays pinned to bottom */

.conversation-compose {
	flex: 0 0 auto;

	padding-top: 10px;

	border-top: 1px solid #edf0f2;
}
.notes-conversation-card .workspace-card-content {
	overflow: hidden;
}

.notes-conversation-card {
	display: flex;
	flex-direction: column;

	height: 100%;
	min-height: 0;

	overflow: hidden;
}

.notes-conversation-card .workspace-card-header {
	flex: 0 0 auto;
}

.notes-conversation-card .workspace-card-content {
	display: flex;
	flex-direction: column;

	flex: 1 1 auto;
	min-height: 0;

	overflow: hidden;
}


/* Fixed at top */

.assignment-notes-section {
	flex: 0 0 auto;
}


/* Fills everything below Notes */

.conversation-section {
	display: flex;
	flex-direction: column;

	flex: 1 1 auto;
	min-height: 0;

	overflow: hidden;
}


/* Fixed conversation heading */

.conversation-section .notes-conversation-label {
	flex: 0 0 auto;
}


/* ONLY THIS SCROLLS */

.conversation-messages {
	flex: 1 1 auto;
	min-height: 0;

	overflow-y: auto;
}


/* Fixed at bottom */

.conversation-compose {
	flex: 0 0 auto;
}