/**
 * Oneplant Clinical Support — the request form, My Clinical Cases and the
 * Clinical Desk.
 *
 * Colours follow the portal: deep navy #0F2744, medical teal #0D9488.
 */

/* ---------- shared page frame ---------- */

/* The theme prints its own page title above these two screens; the hero below
   carries the heading, so the duplicate is hidden. */
body.ocs-support-page .entry-header .page-title,
body.ocs-desk-page .entry-header .page-title {
	display: none;
}

/* …and the empty hero band the theme prints around it. */
body.ocs-support-page .hero-section,
body.ocs-desk-page .hero-section {
	display: none;
}

/* The menu item is two words: keep it on one line in the header nav. */

.ocs-page,
.ocs-desk {
	--ocs-navy: #0f2744;
	--ocs-navy-soft: #1b3a5c;
	--ocs-teal: #0d9488;
	--ocs-teal-dark: #0b7d73;
	--ocs-ink: #1b2a3d;
	--ocs-body: #3c4c5f;
	--ocs-muted: #6b7c90;
	--ocs-line: #e3e9f0;
	--ocs-bg: #f6f9fc;
	--ocs-amber: #b45309;
	--ocs-red: #b92c3e;
}

.ocs-page .ngbs-inner,
.ocs-desk .ngbs-inner {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.ocs-small {
	margin: 8px 0 0;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--ocs-muted);
}

/* ---------- tabs above the page ---------- */

.ocs-tabbar {
	background: #ffffff;
	border-bottom: 1px solid var(--ocs-line);
}

.ocs-viewtabs {
	display: flex;
	gap: 6px;
	padding: 10px 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.ocs-viewtab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid var(--ocs-line);
	background: #ffffff;
	color: var(--ocs-body);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.ocs-viewtab:hover,
.ocs-viewtab.is-active {
	background: var(--ocs-navy);
	border-color: var(--ocs-navy);
	color: #ffffff;
}

.ocs-viewtab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	border-radius: 999px;
	background: rgba(13, 148, 136, .12);
	color: var(--ocs-teal-dark);
	font-size: 11.5px;
	font-weight: 700;
}

.ocs-viewtab.is-active .ocs-viewtab-count,
.ocs-viewtab:hover .ocs-viewtab-count {
	background: rgba(255, 255, 255, .18);
	color: #ffffff;
}

/* ---------- intro ---------- */

.ocs-intro {
	padding: 44px 0 8px;
	background: linear-gradient(180deg, #f6f9fc 0%, #ffffff 100%);
}

.ocs-intro-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: 36px;
	align-items: start;
}

.ocs-intro .ngbs-prose h2 {
	margin: 6px 0 12px;
	font-size: 34px;
	line-height: 1.2;
	color: var(--ocs-navy);
}

.ocs-intro .ngbs-prose p {
	margin: 0 0 18px;
	max-width: 62ch;
	font-size: 15px;
	line-height: 1.7;
	color: var(--ocs-body);
}

.ocs-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ocs-chips li {
	padding: 7px 12px;
	border: 1px solid var(--ocs-line);
	border-radius: 999px;
	background: #ffffff;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ocs-navy-soft);
}

.ocs-intro-card {
	padding: 22px 22px 18px;
	border: 1px solid var(--ocs-line);
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 10px 30px rgba(15, 39, 68, .06);
}

.ocs-intro-card h3 {
	margin: 0 0 12px;
	font-size: 15px;
	letter-spacing: .02em;
	color: var(--ocs-navy);
}

/* ---------- body and two-column layout ---------- */

.ocs-body {
	padding: 26px 0 56px;
	background: #ffffff;
}

.ocs-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 30px;
	align-items: start;
}

.ocs-main {
	min-width: 0;
}

/* ---------- gate ---------- */

.ocs-gate {
	padding: 28px;
	border: 1px solid var(--ocs-line);
	border-radius: 16px;
	background: var(--ocs-bg);
}

.ocs-gate h3 {
	margin: 0 0 10px;
	font-size: 20px;
	color: var(--ocs-navy);
}

.ocs-gate p {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.7;
	color: var(--ocs-body);
}

.ocs-gate-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 18px 0 0 !important;
}

/* ---------- form ---------- */

.ocs-form {
	display: block;
}

.ocs-block {
	margin: 0 0 22px;
	padding: 22px 22px 20px;
	border: 1px solid var(--ocs-line);
	border-radius: 16px;
	background: #FCFDFF;
}

.ocs-block-title {
	padding: 0;
	margin: 0 0 4px;
	font-size: 15.5px;
	font-weight: 800;
	color: var(--ocs-navy);
}

.ocs-block-hint {
	margin: 0 0 16px;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--ocs-muted);
}

.ocs-grid2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 16px;
}

.ocs-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.ocs-field--wide,
.ocs-field--grow {
	grid-column: 1 / -1;
}

.ocs-field--grow {
	flex: 1 1 auto;
}

.ocs-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--ocs-navy-soft);
}

.ocs-label em {
	color: var(--ocs-teal-dark);
	font-style: normal;
}

.ocs-field input[type="text"],
.ocs-field input[type="tel"],
.ocs-field input[type="email"],
.ocs-field input[type="date"],
.ocs-field select,
.ocs-field textarea,
.ocs-upload input[type="file"] {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 12px;
	border: 1px solid #d5dee8;
	border-radius: 10px;
	background: #ffffff;
	color: var(--ocs-ink);
	font-size: 14px;
	line-height: 1.5;
	font-family: inherit;
}

.ocs-field textarea {
	resize: vertical;
	min-height: 96px;
}

.ocs-field input:focus,
.ocs-field select:focus,
.ocs-field textarea:focus,
.ocs-upload input[type="file"]:focus {
	outline: 2px solid rgba(13, 148, 136, .35);
	outline-offset: 1px;
	border-color: var(--ocs-teal);
}

/* mentoring format cards */

.ocs-formats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.ocs-format {
	position: relative;
	display: block;
	padding: 16px 16px 14px;
	border: 1px solid #d5dee8;
	border-radius: 14px;
	background: #ffffff;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.ocs-format input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.ocs-format:hover {
	border-color: #b7c6d6;
}

.ocs-format.is-checked {
	border-color: var(--ocs-teal);
	background: #F2FBF9;
	box-shadow: 0 0 0 1px var(--ocs-teal) inset;
}

.ocs-format-title {
	display: block;
	margin-bottom: 8px;
	font-size: 13.5px;
	font-weight: 800;
	line-height: 1.45;
	color: var(--ocs-navy);
}

.ocs-format.is-checked .ocs-format-title {
	color: var(--ocs-teal-dark);
}

.ocs-format-desc {
	display: block;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--ocs-body);
}

/* uploads */

.ocs-uploads {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.ocs-upload {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px;
	border: 1px dashed #c6d3e0;
	border-radius: 12px;
	background: #ffffff;
}

.ocs-upload input[type="file"] {
	padding: 8px;
	font-size: 12.5px;
	border-style: solid;
}

.ocs-upload input[type="file"]::file-selector-button {
	margin-right: 8px;
	padding: 6px 10px;
	border: 0;
	border-radius: 8px;
	background: var(--ocs-navy);
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.ocs-upload-hint {
	font-size: 11.5px;
	line-height: 1.5;
	color: var(--ocs-muted);
}

/* errors and submit */

.ocs-errors {
	margin: 0 0 18px;
	padding: 14px 18px;
	border: 1px solid #f3c8ce;
	border-left: 4px solid var(--ocs-red);
	border-radius: 12px;
	background: #FEF4F5;
	color: var(--ocs-red);
	font-size: 13.5px;
	line-height: 1.6;
}

.ocs-errors ul {
	margin: 8px 0 0;
	padding-left: 20px;
	list-style: disc;
}

.ocs-submit {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin-top: 4px;
}

.ocs-submit-btn {
	min-height: 46px;
	padding: 0 24px;
	font-size: 14.5px;
}

/* ---------- aside ---------- */

.ocs-aside {
	display: flex;
	flex-direction: column;
	gap: 14px;
	position: sticky;
	top: 24px;
}

.ocs-aside-card {
	padding: 20px;
	border: 1px solid var(--ocs-line);
	border-radius: 16px;
	background: #ffffff;
}

.ocs-aside-card h3 {
	margin: 0 0 10px;
	font-size: 14.5px;
	color: var(--ocs-navy);
}

.ocs-aside-card p {
	margin: 0;
	font-size: 13px;
	line-height: 1.65;
	color: var(--ocs-body);
}

.ocs-aside-card a {
	color: var(--ocs-teal-dark);
}

.ocs-steps {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: ocs-step;
}

.ocs-steps li {
	position: relative;
	margin: 0 0 12px;
	padding-left: 30px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--ocs-body);
}

.ocs-steps li:last-child {
	margin-bottom: 0;
}

.ocs-steps li::before {
	counter-increment: ocs-step;
	content: counter(ocs-step);
	position: absolute;
	left: 0;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 999px;
	background: rgba(13, 148, 136, .12);
	color: var(--ocs-teal-dark);
	font-size: 11px;
	font-weight: 800;
}

.ocs-steps strong {
	color: var(--ocs-navy);
}

.ocs-aside-alumni {
	border-color: #BFE6DF;
	background: #F2FBF9;
}

.ocs-aside-alumni p {
	margin-top: 10px;
}

/* ---------- case cards ---------- */

.ocs-cases-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 18px;
}

.ocs-cases-head h2 {
	margin: 4px 0 6px;
	font-size: 28px;
	line-height: 1.2;
	color: var(--ocs-navy);
}

.ocs-cases-head p {
	margin: 0;
	max-width: 62ch;
	font-size: 14px;
	line-height: 1.65;
	color: var(--ocs-body);
}

.ocs-case-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.ocs-case {
	padding: 22px;
	border: 1px solid var(--ocs-line);
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 8px 24px rgba(15, 39, 68, .05);
	scroll-margin-top: 90px;
}

.ocs-case-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding-bottom: 12px;
	border-bottom: 1px solid #eef2f7;
}

.ocs-case-id {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.ocs-case-ref {
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .02em;
	color: var(--ocs-navy);
}

.ocs-case-when {
	font-size: 12px;
	color: var(--ocs-muted);
}

/* The read button and the received time, kept together at the end of the head. */
.ocs-case-head-side {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.ocs-markread {
	margin: 0;
}

.ocs-markread-btn {
	min-height: 32px;
	padding: 0 14px;
	font-size: 12.5px;
	border-radius: 999px;
}

.ocs-markread-tick {
	margin-right: 5px;
	font-weight: 800;
}

/* Read receipts under the conversation */
.ocs-readbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
}

.ocs-read {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 5px;
	padding: 5px 11px;
	border: 1px solid #c7e9e2;
	border-radius: 999px;
	background: #f2fbf9;
	font-size: 11.5px;
	line-height: 1.4;
	color: #0d4f48;
}

.ocs-read-tick {
	font-weight: 800;
	color: var(--ocs-teal-dark);
}

.ocs-read strong {
	font-weight: 800;
	color: #0b3b36;
}

.ocs-read-when {
	color: var(--ocs-muted);
}

.ocs-read-when::before {
	content: "·";
	margin-right: 5px;
}

.ocs-case-format {
	margin: 12px 0 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ocs-navy-soft);
}

.ocs-status {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 10px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.ocs-status--submitted {
	background: #EEF2F7;
	color: #47586d;
}

.ocs-status--reviewing {
	background: #FEF3E2;
	color: #9A5B05;
}

.ocs-status--plan_ready {
	background: #E6F7F4;
	color: #0B7D73;
}

.ocs-status--scheduled {
	background: #E8F0FE;
	color: #1D4ED8;
}

.ocs-status--completed {
	background: #E8F5EC;
	color: #17693A;
}

.ocs-status--invoiced {
	background: #EFE9FB;
	color: #5B21B6;
}

.ocs-admin-status--invoiced {
	background: #EFE9FB;
	color: #5B21B6;
}

.ocs-newmsg {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 10px;
	border-radius: 999px;
	background: #FFF1E6;
	color: #B45309;
	font-size: 11.5px;
	font-weight: 800;
	white-space: nowrap;
}

.ocs-alumni-badge {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 10px;
	border-radius: 999px;
	background: linear-gradient(135deg, #FDF3D0 0%, #F7E3A1 100%);
	color: #7A5B00;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .02em;
	white-space: nowrap;
}

.ocs-facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px 16px;
	margin: 0 0 6px;
	padding: 0;
}

.ocs-facts div {
	min-width: 0;
}

.ocs-facts dt {
	margin-bottom: 2px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ocs-muted);
}

.ocs-facts dd {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--ocs-ink);
	overflow-wrap: anywhere;
}

.ocs-facts dd a {
	color: var(--ocs-teal-dark);
}

.ocs-notes {
	margin: 14px 0 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--ocs-bg);
}

.ocs-notes h4,
.ocs-files h4 {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ocs-muted);
}

.ocs-notes p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.65;
	color: var(--ocs-body);
}

.ocs-files {
	margin: 16px 0 0;
}

.ocs-files ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ocs-files li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
}

.ocs-file-slot {
	display: inline-flex;
	align-items: center;
	height: 20px;
	padding: 0 7px;
	border-radius: 6px;
	background: #EEF2F7;
	color: #47586d;
	font-size: 10.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.ocs-files a {
	color: var(--ocs-teal-dark);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ocs-file-size {
	font-size: 11.5px;
	color: var(--ocs-muted);
}

/* ---------- recommendation ---------- */

.ocs-plan {
	margin: 18px 0 0;
	padding: 16px 18px;
	border: 1px solid #BFE6DF;
	border-radius: 14px;
	background: #F7FDFB;
	scroll-margin-top: 90px;
}

.ocs-plan h4 {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ocs-teal-dark);
}

.ocs-plan-body p {
	margin: 0 0 6px;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--ocs-ink);
}

.ocs-plan-label {
	display: inline-block;
	min-width: 74px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ocs-muted);
}

.ocs-plan-note {
	margin-top: 8px !important;
	padding-top: 10px;
	border-top: 1px dashed #CFE9E3;
	color: var(--ocs-body) !important;
}

.ocs-plan-empty {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--ocs-muted);
}

.ocs-plan-form {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #DCEEE9;
}

.ocs-plan-form .ngbs-btn,
.ocs-plan-form button {
	margin-top: 12px;
}

.ocs-check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 12px;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--ocs-body);
	cursor: pointer;
}

.ocs-check input {
	margin-top: 2px;
}

/* ---------- status form ---------- */

.ocs-status-form {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #eef2f7;
}

.ocs-status-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
}

.ocs-status-row .ocs-field {
	flex: 0 0 190px;
}

.ocs-status-row .ocs-field--grow {
	flex: 1 1 260px;
}

/* ---------- conversation ---------- */

.ocs-thread {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid #eef2f7;
	scroll-margin-top: 90px;
}

.ocs-thread-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ocs-navy);
}

.ocs-thread-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: #EEF2F7;
	color: var(--ocs-muted);
	font-size: 11px;
}

.ocs-thread-note {
	margin: 0 0 14px;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--ocs-muted);
}

.ocs-thread-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.ocs-msg {
	max-width: 86%;
	padding: 12px 14px;
	border-radius: 14px;
	font-size: 13.5px;
	line-height: 1.65;
}

.ocs-msg--doctor {
	align-self: flex-start;
	background: #F1F5FA;
	border: 1px solid #E1E9F2;
	color: var(--ocs-ink);
}

.ocs-msg--mentor {
	align-self: flex-end;
	background: #E8F7F4;
	border: 1px solid #C7E9E2;
	color: #0d3b36;
}

.ocs-msg-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 4px;
}

.ocs-msg-who {
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--ocs-teal-dark);
}

.ocs-msg--doctor .ocs-msg-who {
	color: var(--ocs-navy-soft);
}

.ocs-msg-when {
	font-size: 11px;
	color: var(--ocs-muted);
}

.ocs-msg-body {
	overflow-wrap: anywhere;
}

/* message attachments */

.ocs-msg-image {
	display: inline-block;
	margin-top: 10px;
	max-width: 100%;
	border-radius: 10px;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid rgba(15, 39, 68, .12);
	text-decoration: none;
}

.ocs-msg-image img {
	display: block;
	width: 180px;
	max-width: 100%;
	height: 132px;
	object-fit: cover;
}

.ocs-msg-image-name {
	display: block;
	padding: 6px 8px;
	font-size: 10.5px;
	line-height: 1.4;
	color: var(--ocs-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ocs-msg-file {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	padding: 8px 10px;
	border: 1px solid rgba(15, 39, 68, .12);
	border-radius: 10px;
	background: #ffffff;
	font-size: 12.5px;
	text-decoration: none;
	color: var(--ocs-ink);
}

.ocs-msg-file-tag {
	display: inline-flex;
	align-items: center;
	height: 20px;
	padding: 0 7px;
	border-radius: 6px;
	background: #FDECEE;
	color: #A32436;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .04em;
}

.ocs-msg-file-name {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.ocs-msg-file-size {
	font-size: 11px;
	color: var(--ocs-muted);
}

.ocs-reply-attach {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	border: 1px dashed #cfdae6;
	border-radius: 10px;
	background: #FCFDFF;
}

.ocs-attach-label {
	font-size: 12px;
	font-weight: 700;
	color: var(--ocs-navy-soft);
}

.ocs-attach-label span {
	display: block;
	margin-top: 2px;
	font-size: 10.5px;
	font-weight: 500;
	color: var(--ocs-muted);
}

.ocs-reply-attach input[type="file"] {
	flex: 1 1 240px;
	max-width: 100%;
	padding: 7px 8px;
	border: 1px solid #d5dee8;
	border-radius: 8px;
	background: #ffffff;
	font-size: 12px;
}

.ocs-reply-attach input[type="file"]::file-selector-button {
	margin-right: 8px;
	padding: 5px 9px;
	border: 0;
	border-radius: 6px;
	background: var(--ocs-navy);
	color: #ffffff;
	font-size: 11.5px;
	font-weight: 700;
	cursor: pointer;
}

@media (max-width: 640px) {
	.ocs-msg-image img {
		width: 100%;
		height: 160px;
	}
}

.ocs-thread-empty {
	margin: 0 0 16px;
	font-size: 13px;
	color: var(--ocs-muted);
}

.ocs-reply {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
}

.ocs-reply textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 12px;
	border: 1px solid #d5dee8;
	border-radius: 10px;
	font-family: inherit;
	font-size: 13.5px;
	line-height: 1.6;
	resize: vertical;
}

.ocs-reply textarea:focus {
	outline: 2px solid rgba(13, 148, 136, .35);
	outline-offset: 1px;
	border-color: var(--ocs-teal);
}

.ocs-reply-send {
	min-height: 40px;
	padding: 0 18px;
}

/* ---------- flash ---------- */

.ocs-flash {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin: 0 0 18px;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 13.5px;
	line-height: 1.55;
}

.ocs-flash strong {
	font-weight: 800;
}

.ocs-flash--ok {
	border: 1px solid #C7E9E2;
	border-left: 4px solid var(--ocs-teal);
	background: #F2FBF9;
	color: #0d4f48;
}

.ocs-flash--warn {
	border: 1px solid #F1DCC0;
	border-left: 4px solid var(--ocs-amber);
	background: #FFF9F1;
	color: #7a4a0a;
}

/* ---------- pager ---------- */

.ocs-pager {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 22px 0 0;
}

.ocs-pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--ocs-line);
	border-radius: 9px;
	background: #ffffff;
	color: var(--ocs-body);
	font-size: 13px;
	text-decoration: none;
}

.ocs-pager .page-numbers.current {
	background: var(--ocs-navy);
	border-color: var(--ocs-navy);
	color: #ffffff;
	font-weight: 700;
}

/* ---------- empty state ---------- */

.ocs-empty {
	padding: 26px;
	border: 1px solid var(--ocs-line);
	border-radius: 16px;
	background: var(--ocs-bg);
	text-align: left;
}

.ocs-empty h3 {
	margin: 0 0 8px;
	font-size: 17px;
	color: var(--ocs-navy);
}

.ocs-empty p {
	margin: 0 0 14px;
	font-size: 13.5px;
	line-height: 1.65;
	color: var(--ocs-body);
}

/* =====================================================================
 * Clinical Desk
 * ===================================================================== */

.ocs-desk-hero {
	padding: 26px 0 30px;
	background: linear-gradient(135deg, #0f2744 0%, #14375c 100%);
	color: #ffffff;
}

.ocs-desk-herobar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-bottom: 18px;
	margin-bottom: 22px;
	border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.ocs-desk-herobar-user {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	font-size: 12.5px;
	color: #C9D8E8;
}

.ocs-desk-herobar-dot {
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: #34D399;
	box-shadow: 0 0 0 3px rgba(52, 211, 153, .18);
}

.ocs-desk-herobar-lead {
	color: #93A9C0;
}

.ocs-desk-herobar-user strong {
	color: #ffffff;
}

.ocs-desk-logout {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 34px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 9px;
	color: #ffffff;
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s ease;
}

.ocs-desk-logout:hover {
	background: rgba(255, 255, 255, .1);
	color: #ffffff;
}

.ocs-desk-hero-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.ocs-eyebrow {
	display: inline-block;
	margin-bottom: 6px;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #5EEAD4;
}

.ocs-desk-hero-copy h1 {
	margin: 0 0 8px;
	font-size: 34px;
	line-height: 1.15;
	color: #ffffff;
}

.ocs-desk-hero-copy p {
	margin: 0;
	max-width: 54ch;
	font-size: 13.5px;
	line-height: 1.65;
	color: #C9D8E8;
}

.ocs-desk-tiles {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ocs-desk-tile {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 84px;
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 12px;
	background: rgba(255, 255, 255, .06);
	color: #ffffff;
	text-decoration: none;
	transition: background .15s ease, border-color .15s ease;
}

.ocs-desk-tile:hover,
.ocs-desk-tile.is-active {
	background: rgba(94, 234, 212, .14);
	border-color: rgba(94, 234, 212, .45);
	color: #ffffff;
}

.ocs-desk-tile span {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #9FB6CC;
}

.ocs-desk-tile.is-active span,
.ocs-desk-tile:hover span {
	color: #5EEAD4;
}

.ocs-desk-tile strong {
	font-size: 20px;
	line-height: 1.2;
}

.ocs-desk-tile--new {
	border-color: rgba(245, 158, 11, .55);
	background: rgba(245, 158, 11, .14);
}

.ocs-desk-tile--new span {
	color: #FCD34D;
}

.ocs-desk-tile--new strong {
	color: #FDE68A;
}

.ocs-desk-body {
	padding: 24px 0 56px;
	background: var(--ocs-bg);
}

.ocs-desk-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.ocs-desk-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ocs-desk-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 12px;
	border: 1px solid var(--ocs-line);
	border-radius: 999px;
	background: #ffffff;
	color: var(--ocs-body);
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
}

.ocs-desk-tab span {
	color: var(--ocs-muted);
	font-size: 11.5px;
}

.ocs-desk-tab:hover,
.ocs-desk-tab.is-active {
	background: var(--ocs-navy);
	border-color: var(--ocs-navy);
	color: #ffffff;
}

.ocs-desk-tab.is-active span,
.ocs-desk-tab:hover span {
	color: #BFE6DF;
}

.ocs-desk-search {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ocs-desk-search input[type="search"] {
	width: 280px;
	max-width: 100%;
	height: 38px;
	padding: 0 12px;
	border: 1px solid #d5dee8;
	border-radius: 10px;
	background: #ffffff;
	font-size: 13px;
}

.ocs-desk-search .ngbs-btn {
	min-height: 38px;
	padding: 0 14px;
}

.ocs-desk-clear {
	font-size: 12.5px;
	color: var(--ocs-muted);
}

/* ---------- admin status chip ---------- */

.ocs-admin-status {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	background: #EEF2F7;
	color: #47586d;
}

.ocs-admin-status--reviewing {
	background: #FEF3E2;
	color: #9A5B05;
}

.ocs-admin-status--plan_ready {
	background: #E6F7F4;
	color: #0B7D73;
}

.ocs-admin-status--scheduled {
	background: #E8F0FE;
	color: #1D4ED8;
}

.ocs-admin-status--completed {
	background: #E8F5EC;
	color: #17693A;
}

/* ---------- mentoring fee / invoice ---------- */

.ocs-fee-note {
	padding: 12px 14px;
	border-left: 3px solid var(--ocs-teal);
	border-radius: 0 10px 10px 0;
	background: #F2FBF9;
	font-size: 13.5px !important;
	color: #0d4f48 !important;
}

.ocs-invoice {
	margin: 18px 0 0;
	padding: 16px 18px;
	border: 1px solid #E3DDF6;
	border-radius: 14px;
	background: #FBFAFF;
	scroll-margin-top: 90px;
}

.ocs-invoice h4 {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #5B21B6;
}

.ocs-invoice-body p {
	margin: 0 0 6px;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--ocs-ink);
}

.ocs-invoice-body a {
	color: var(--ocs-teal-dark);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ocs-invoice-empty {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--ocs-body);
}

.ocs-invoice-error {
	color: var(--ocs-red) !important;
}

.ocs-invoice-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
	margin-top: 14px;
}

.ocs-field--fee {
	flex: 0 0 190px;
}

.ocs-invoice-btn {
	min-height: 42px;
	padding: 0 20px;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
	.ocs-intro-grid,
	.ocs-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.ocs-aside {
		position: static;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.ocs-formats,
	.ocs-uploads {
		grid-template-columns: minmax(0, 1fr);
	}

	.ocs-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ocs-page .ngbs-inner,
	.ocs-desk .ngbs-inner {
		padding: 0 16px;
	}

	.ocs-intro {
		padding: 28px 0 6px;
	}

	.ocs-intro .ngbs-prose h2 {
		font-size: 26px;
	}

	.ocs-body {
		padding: 18px 0 40px;
	}

	.ocs-block {
		padding: 18px 16px 16px;
	}

	.ocs-grid2 {
		grid-template-columns: minmax(0, 1fr);
	}

	.ocs-aside {
		grid-template-columns: minmax(0, 1fr);
	}

	.ocs-case {
		padding: 16px;
		border-radius: 14px;
	}

	.ocs-case-head {
		align-items: flex-start;
	}

	.ocs-case-head-side {
		width: 100%;
		justify-content: space-between;
	}

	.ocs-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ocs-msg {
		max-width: 100%;
	}

	.ocs-status-row .ocs-field,
	.ocs-status-row .ocs-field--grow {
		flex: 1 1 100%;
	}

	.ocs-status-row .ngbs-btn,
	.ocs-status-row button {
		width: 100%;
	}

	.ocs-cases-head h2 {
		font-size: 24px;
	}

	.ocs-desk-hero-copy h1 {
		font-size: 27px;
	}

	.ocs-desk-hero-inner {
		gap: 18px;
	}

	.ocs-desk-tiles {
		width: 100%;
	}

	.ocs-desk-tile {
		flex: 1 1 calc(33.333% - 8px);
		min-width: 0;
	}

	.ocs-desk-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.ocs-desk-search {
		flex-wrap: wrap;
	}

	.ocs-desk-search input[type="search"] {
		flex: 1 1 100%;
		width: 100%;
	}

	.ocs-desk-search .ngbs-btn {
		flex: 1 1 auto;
	}

	.ocs-submit-btn {
		width: 100%;
	}
}
