/* ==========================================================================
   Interpro HWCS — customer "My Orders" view (Outlook-style two-pane)
   Uses global site colour variables (with fallbacks).
   ========================================================================== */

.ihwcs-mo {
	color: var(--color-text, #374151);
	font-size: 16px;
	box-sizing: border-box;
}
.ihwcs-mo *, .ihwcs-mo *::before, .ihwcs-mo *::after { box-sizing: border-box; }

/* ---------- success flash (after placing an order) ---------- */
.ihwcs-mo-flash {
	display: flex;
	align-items: center;
	gap: .65rem;
	margin: 0 0 1rem;
	padding: .8rem 1rem;
	border: 1px solid #b6e2c6;
	border-radius: var(--border-radius, 12px);
	background: #e7f7ee;
	color: #14663b;
	font-size: .95rem;
	animation: ihwcs-mo-flash-in .35s ease both;
}
.ihwcs-mo-flash__icon { flex: 0 0 auto; font-size: 1.15rem; color: #1a9d57; }
.ihwcs-mo-flash__text { flex: 1 1 auto; }
.ihwcs-mo-flash__close {
	flex: 0 0 auto;
	background: transparent;
	border: 0;
	padding: .25rem;
	cursor: pointer;
	color: #14663b;
	opacity: .55;
	font-size: 1rem;
	line-height: 1;
}
.ihwcs-mo-flash__close:hover { opacity: 1; }
@keyframes ihwcs-mo-flash-in {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---------- tabs ---------- */
.ihwcs-mo-tabs {
	display: flex;
	gap: .25rem;
	border-bottom: 2px solid var(--color-border, #d8d8de);
	margin-bottom: .6rem;
}
.ihwcs-mo-tab {
	background: none;
	border: 0;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	padding: .65rem 1.1rem;
	font-size: 1rem;
	font-weight: 600;
	color: #6b7280;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: .5rem;
}
.ihwcs-mo-tab.is-active { color: var(--color-dark-blue, #112a78); border-bottom-color: var(--color-teal, #0872aa); }
.ihwcs-mo-tab__count {
	font-size: .75rem;
	background: var(--color-light-bg, #f7f7f7);
	color: #555;
	border-radius: 999px;
	padding: .05rem .5rem;
	font-weight: 700;
}
.ihwcs-mo-tab.is-active .ihwcs-mo-tab__count { background: var(--color-teal, #0872aa); color: #fff; }

/* ---------- toolbar: search + status filters ---------- */
.ihwcs-mo-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem .75rem;
	margin: 0 0 .6rem;
}
.ihwcs-mo-search {
	position: relative;
	flex: 1 1 240px;
	max-width: 280px;
	min-width: 0;
}
.ihwcs-mo-search__icon {
	position: absolute;
	right: .8rem;
	top: 50%;
	transform: translateY(-50%);
	color: #9aa0a6;
	pointer-events: none;
}
.ihwcs-mo-search__input {
	width: 100%;
	padding: .45rem 2.3rem .45rem .8rem;
	border: 1px solid var(--color-border, #d8d8de);
	border-radius: 8px;
	background: #fff;
	color: var(--color-text, #374151);
	font-size: .9rem;
}
.ihwcs-mo-search__input:focus {
	outline: none;
	border-color: var(--color-teal, #0872aa);
	box-shadow: 0 0 0 3px rgba(8, 114, 170, .15);
}
/* the native [type=search] clear "x" sits on the right; drop our icon once the field has text */
.ihwcs-mo-search:has( .ihwcs-mo-search__input:not(:placeholder-shown) ) .ihwcs-mo-search__icon { display: none; }
/* user dropdown (All Orders tab only): dressed like the search box; greyed-out
   while on "-- All Users --", teal once a user is chosen */
.ihwcs-mo-user {
	flex: 0 1 auto;
	min-width: 0;
	max-width: 200px;
	padding: .45rem 2rem .45rem .8rem;
	border: 1px solid var(--color-border, #d8d8de);
	border-radius: 8px;
	background: #fff;
	color: #9aa0a6;
	font-family: inherit;
	font-size: .9rem;
	line-height: normal;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239aa0a6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .7rem center;
}
.ihwcs-mo-user:focus {
	outline: none;
	border-color: var(--color-teal, #0872aa);
	box-shadow: 0 0 0 3px rgba(8, 114, 170, .15);
}
.ihwcs-mo-user.has-value {
	border-color: var(--color-teal, #0872aa);
	background-color: rgba(8, 114, 170, .06);
	color: var(--color-teal, #0872aa);
	font-weight: 600;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230872aa' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* the dropdown list itself should stay readable regardless of the trigger's grey/teal state */
.ihwcs-mo-user option { color: var(--color-text, #374151); font-weight: 400; }
.ihwcs-mo-filters { display: flex; flex-wrap: wrap; gap: .3rem; }
.ihwcs-mo-filter {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	background: var(--color-light-bg, #f7f7f7);
	border: 1px solid transparent;
	border-radius: 999px;
	padding: .3rem .7rem;
	font-size: .8rem;
	font-weight: 600;
	color: #4b5563;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.ihwcs-mo-filter:hover { background: #eef2f6; }
.ihwcs-mo-filter.is-active { background: var(--color-teal, #0872aa); color: #fff; }
/* greyed out when there's nothing in that bucket (the selected one stays readable) */
.ihwcs-mo-filter.is-empty { opacity: .4; cursor: default; }
.ihwcs-mo-filter.is-empty:hover { background: var(--color-light-bg, #f7f7f7); }
.ihwcs-mo-filter.is-active.is-empty { opacity: 1; }
.ihwcs-mo-filter__count {
	font-size: .68rem;
	font-weight: 700;
	background: rgba(0, 0, 0, .08);
	color: inherit;
	border-radius: 999px;
	padding: .02rem .4rem;
	min-width: 1.3em;
	text-align: center;
}
.ihwcs-mo-filter.is-active .ihwcs-mo-filter__count { background: rgba(255, 255, 255, .25); }

/* ---------- two-pane layout ---------- */
.ihwcs-mo-panes {
	display: flex;
	gap: 1rem;
	align-items: stretch;
	min-height: 480px;
}
.ihwcs-mo-list {
	flex: 0 0 320px;
	max-width: 320px;
	border: 1px solid var(--color-border, #d8d8de);
	border-radius: var(--border-radius, 12px);
	background: #fff;
}
.ihwcs-mo-detail-pane {
	flex: 1 1 auto;
	border: 1px solid var(--color-border, #d8d8de);
	border-radius: var(--border-radius, 12px);
	background: #fff;
	padding: 1.5rem;
}

/* ---------- list items ---------- */
.ihwcs-mo-item {
	display: block;
	width: 100%;
	text-align: left;
	background: #fff;
	border: 0;
	border-bottom: 1px solid var(--color-light-bg, #f7f7f7);
	border-left: 3px solid transparent;
	padding: .85rem 1rem;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}
/* the explicit display:block above beats the UA [hidden] rule — restore it so tab filtering can hide rows */
.ihwcs-mo-item[hidden] { display: none; }
.ihwcs-mo-item:hover { background: #f6fcff; }
.ihwcs-mo-item.is-active { background: #f0f7ff; border-left-color: var(--color-teal, #0872aa); }

/* Freshly-placed order: a highlight sweeps down the left border once, then settles
   to the normal selected (teal) colour. The strip stays teal end-to-end so it blends
   with the .is-active border; only the bright band moves. */
.ihwcs-mo-item.is-new { position: relative; }
.ihwcs-mo-item.is-new::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 3px;
	pointer-events: none;
	background: linear-gradient(
		to bottom,
		var(--color-teal, #0872aa) 0%,
		var(--color-teal, #0872aa) 38%,
		#bdf0ff 47%,
		#ffffff 50%,
		#bdf0ff 53%,
		var(--color-teal, #0872aa) 62%,
		var(--color-teal, #0872aa) 100%
	);
	background-size: 100% 300%;
	animation: ihwcs-mo-border-sweep 1.3s ease-in-out forwards;
}
@keyframes ihwcs-mo-border-sweep {
	0%   { background-position: 50% 100%; }
	100% { background-position: 50% 0%; }
}
@media ( prefers-reduced-motion: reduce ) {
	.ihwcs-mo-item.is-new::before { animation: none; }
	.ihwcs-mo-flash { animation: none; }
}
.ihwcs-mo-item__row { display: flex; align-items: center; gap: .5rem; }
.ihwcs-mo-item__ref {
	flex: 1 1 auto;
	font-weight: 700;
	color: var(--color-heading, #121724);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
/* Downloads-available badge: "n/total". Hidden until at least one document is
   ready; light blue while partial, teal once every document is available. */
.ihwcs-mo-item__badge {
	flex: 0 0 auto;
	height: 20px;
	padding: 0 8px;
	gap: .3rem;
	border-radius: 999px;
	background: var(--color-light-blue, #069BE4);
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	white-space: nowrap;
}
.ihwcs-mo-item__badge i { font-size: .85em; }
.ihwcs-mo-item__badge.is-complete { background: var(--color-teal, #0872aa); }
.ihwcs-mo-item__badge[hidden] { display: none; }
.ihwcs-mo-item__addr {
	display: block;
	font-size: .85rem;
	color: #555;
	margin: .2rem 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ihwcs-mo-item__foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.ihwcs-mo-item__status { font-size: .78rem; font-weight: 600; color: var(--color-teal, #0872aa); }
.ihwcs-mo-item__status i { font-size: .9em; margin-right: .15rem; }

/* drafts: selectable tiles with inline delete + resume, visually distinct */
.ihwcs-mo-item--draft { text-decoration: none; color: inherit; border-left-color: #f0c14b; }
.ihwcs-mo-item--draft:hover { background: #fffaf0; }
.ihwcs-mo-item--draft .ihwcs-mo-item__status { color: #b58a00; }
.ihwcs-mo-item.is-deleting { opacity: .5; pointer-events: none; }

/* inline draft actions (bin icon to the left of Resume) */
.ihwcs-mo-item__draft-actions { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35rem; }
.ihwcs-mo-draft-del,
.ihwcs-mo-draft-resume {
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	transition: background .15s ease, color .15s ease;
}
.ihwcs-mo-draft-del {
	width: 28px;
	height: 28px;
	justify-content: center;
	padding: 0;
	background: transparent;
	color: var(--color-red, #DC2118);
	font-size: .85rem;
}
.ihwcs-mo-draft-del:hover { background: #fde8e7; }
.ihwcs-mo-draft-resume {
	padding: .3rem .6rem;
	font-size: .72rem;
	background: #f7e7b8;
	color: #8a6500;
}
.ihwcs-mo-draft-resume:hover { background: #f0c14b; color: #4d3a00; }
.ihwcs-mo-item__date { font-size: .72rem; color: #9aa0a6; }
.ihwcs-mo-item__bar { display: block; height: 4px; border-radius: 4px; background: var(--color-light-bg, #f7f7f7); margin-top: .55rem; overflow: hidden; }
.is-active .ihwcs-mo-item__bar {
    background: white;
}
.ihwcs-mo-item__bar-fill { display: block; height: 100%; background: var(--color-teal, #0872aa); border-radius: 4px; }

/* ---------- placeholder / loading / empty ---------- */
.ihwcs-mo-placeholder {
	height: 100%;
	min-height: 320px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #9aa0a6;
	text-align: center;
	gap: .5rem;
}
.ihwcs-mo-placeholder i { font-size: 2rem; }
.ihwcs-mo-loading { padding: 2rem; color: #6b7280; text-align: center; }
.ihwcs-mo-empty { color: #888; font-style: italic; padding: 1rem; }

/* ---------- list footer: load the next page of orders ---------- */
.ihwcs-mo-more {
	display: block;
	width: calc(100% - 2rem);
	margin: .75rem 1rem;
	padding: .55rem 1rem;
	border: 1px solid var(--color-border, #d8d8de);
	border-radius: var(--border-radius, 12px);
	background: #fff;
	color: var(--color-teal, #0872aa);
	font: inherit;
	font-size: .85rem;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: background .15s ease;
}
.ihwcs-mo-more:hover { background: #f6fcff; }
.ihwcs-mo-more[disabled] { opacity: .6; cursor: default; }
.ihwcs-mo-more[hidden] { display: none; }

/* ---------- list footer note: completed orders move to Archive ---------- */
.ihwcs-mo-archive-note {
	margin: .25rem 0 0;
	padding: .75rem 1rem;
	font-size: .8rem;
	color: #888;
	text-align: center;
}
.ihwcs-mo-archive-link {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: var(--color-teal, #0872aa);
	text-decoration: underline;
	cursor: pointer;
}

/* ---------- detail: selected draft (resume / delete) ---------- */
.ihwcs-mo-draft-detail {
	max-width: 460px;
	margin: 2.5rem auto;
	text-align: center;
}
.ihwcs-mo-draft-detail__icon { font-size: 2.75rem; color: #d9a400; margin-bottom: .85rem; }
.ihwcs-mo-draft-detail__title { margin: 0 0 .25rem; font-size: 1.4rem; color: var(--color-heading, #121724); }
.ihwcs-mo-draft-detail__sub { margin: 0 0 1rem; color: #6b7280; font-size: .9rem; }
.ihwcs-mo-draft-detail__hint { margin: 0 0 1.75rem; color: #6b7280; font-size: .9rem; line-height: 1.5; }
.ihwcs-mo-draft-detail__actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.ihwcs-mo-btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	border: 0;
	border-radius: 8px;
	padding: .7rem 1.4rem;
	font-size: .95rem;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s ease, opacity .2s ease;
}
.ihwcs-mo-btn--primary { background: var(--color-teal, #0872aa); color: #fff; }
.ihwcs-mo-btn--primary:hover { background: var(--color-dark-blue, #112a78); }
.ihwcs-mo-btn--danger { background: #fde8e7; color: var(--color-red, #DC2118); }
.ihwcs-mo-btn--danger:hover { background: #f9d2d0; }
.ihwcs-mo-btn:disabled { opacity: .6; cursor: default; }

/* ---------- back button (mobile only) ----------
   Sits above the detail panel, so it reads as a page-level "back" rather than
   part of the order. Hidden entirely on desktop, where both panes are visible. */
.ihwcs-mo-back {
	display: none;
	align-items: center;
	gap: .4rem;
	background: none;
	border: 0;
	color: var(--color-teal, #0872aa);
	font-weight: 600;
	cursor: pointer;
	padding: 0 0 .75rem;
}

/* ---------- detail: header + progress ---------- */
.ihwcs-mo-detail__head {
	margin-bottom: 1.25rem;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}
.ihwcs-mo-detail__titles h2 { margin: 0; color: var(--color-heading, #121724); font-size: 1.4rem; }
.ihwcs-mo-detail__sub { margin: .15rem 0 1.1rem; color: #9aa0a6; font-size: .85rem; }

.ihwcs-mo-steps { display: flex; align-items: flex-start; list-style: none; margin: 0; padding: 0; flex-grow: 1;}
.ihwcs-mo-step {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	min-width: 0;
}
.ihwcs-mo-step + .ihwcs-mo-step::before {
	content: "";
	position: absolute;
	top: 19px;
	left: -50%;
	width: 100%;
	height: 2px;
	background: var(--color-border, #d8d8de);
	z-index: 0;
}
.ihwcs-mo-step.is-done + .ihwcs-mo-step::before,
.ihwcs-mo-step.is-active + .ihwcs-mo-step::before { background: var(--color-teal, #0872aa); }
.ihwcs-mo-step__icon {
	position: relative;
	z-index: 1;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-light-bg, #f7f7f7);
	color: var(--color-dark-blue, #112a78);
	font-size: 1rem;
}
.ihwcs-mo-step.is-done .ihwcs-mo-step__icon { background: var(--color-teal, #0872aa); color: #fff; }
.ihwcs-mo-step.is-active .ihwcs-mo-step__icon {
	background: var(--color-dark-blue, #112a78);
	color: #fff;
	box-shadow: 0 0 0 4px rgba(8, 114, 170, .2);
}
.ihwcs-mo-step.is-upcoming { opacity: .35; }
.ihwcs-mo-step__label {
	display: none;
	margin-top: .4rem;
	font-size: .75rem;
	font-weight: 700;
	color: var(--color-heading, #121724);
}
.ihwcs-mo-step.is-active .ihwcs-mo-step__label { display: block; }

/* "Paid" — a set-apart final milestone, only rendered once the order is
   complete or paid. A dashed connector + its own green colour distinguish it
   from the main fulfilment flow. (Higher-specificity selectors below are needed
   to beat the solid is-done/is-active connector rules above.) */
.ihwcs-mo-step.is-done + .ihwcs-mo-step--paid::before,
.ihwcs-mo-step.is-active + .ihwcs-mo-step--paid::before {
	background: transparent;
	height: 0;
	border-top: 2px dashed var(--color-border, #d8d8de);
}
.ihwcs-mo-step--paid .ihwcs-mo-step__label { display: block; color: #2e8b3d; }
/* Reached (order actually paid): green node + green dashed connector. */
.ihwcs-mo-step.is-done + .ihwcs-mo-step--paid.is-active::before { border-top-color: #2e8b3d; }
.ihwcs-mo-step--paid.is-active .ihwcs-mo-step__icon {
	background: #2e8b3d;
	color: #fff;
	box-shadow: 0 0 0 4px rgba(46, 139, 61, .2);
}

/* off-track status chip */
.ihwcs-mo-steps--flag { justify-content: flex-start; }
.ihwcs-mo-flag {
	display: inline-block;
	padding: .35rem .9rem;
	border-radius: 999px;
	background: #fde8e7;
	color: var(--color-red, #DC2118);
	font-weight: 700;
	font-size: .85rem;
}

/* ---------- detail: cards ---------- */
.ihwcs-mo-card {
	border: 1px solid var(--color-border, #d8d8de);
	border-radius: var(--border-radius, 12px);
	padding: 1rem 1.15rem;
	margin-bottom: 1rem;
}
.ihwcs-mo-card__title {
	margin: 0 0 .75rem;
	font-size: 1rem;
	color: var(--color-heading, #121724);
	display: flex;
	align-items: center;
	gap: .5rem;
}
.ihwcs-mo-card__title i { color: var(--color-teal, #0872aa); }

/* key details grid */
.ihwcs-mo-key {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .75rem 1.25rem;
	background: var(--color-light-bg, #f7f7f7);
	border-color: transparent;
}
.ihwcs-mo-key__item { display: flex; flex-direction: column; gap: .15rem; }
.ihwcs-mo-key__item--wide { grid-column: 1 / -1; }
.ihwcs-mo-key__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: #6b7280; font-weight: 700; }
.ihwcs-mo-key__value { font-size: .95rem; color: var(--color-text, #374151); }

/* searches */
.ihwcs-mo-search-list { list-style: none; margin: 0; padding: 0; }
.ihwcs-mo-search {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .6rem 0;
	border-bottom: 1px solid var(--color-light-bg, #f7f7f7);
}
.ihwcs-mo-search:last-child { border-bottom: 0; }
.ihwcs-mo-search__name { flex: 1 1 auto; }
.ihwcs-mo-search.is-pending .ihwcs-mo-search__name { color: #6b7280; }

.ihwcs-mo-tag {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	font-size: .78rem;
	font-weight: 600;
	padding: .25rem .6rem;
	border-radius: 999px;
}
.ihwcs-mo-tag.is-pending { background: #fff4e0; color: #946200; }
.ihwcs-mo-tag.is-complete { background: #e6f6ea; color: #2e8b3d; }

.ihwcs-mo-dl {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	background: var(--color-teal, #0872aa);
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: .4rem .8rem;
	font-size: .85rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s ease;
}
.ihwcs-mo-dl:hover { background: var(--color-dark-blue, #112a78); }
.ihwcs-mo-dl:disabled { opacity: .6; cursor: default; }

/* documents */
.ihwcs-mo-doc-list { list-style: none; margin: 0; padding: 0; }
.ihwcs-mo-doc {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .6rem 0;
	border-bottom: 1px solid var(--color-light-bg, #f7f7f7);
}
.ihwcs-mo-doc:last-child { border-bottom: 0; }
.ihwcs-mo-doc__name { flex: 1 1 auto; display: flex; align-items: center; gap: .5rem; }
.ihwcs-mo-doc__name i { color: var(--color-teal, #0872aa); }

/* updates */
.ihwcs-mo-updates__body { font-size: .92rem; color: #444; }
.ihwcs-mo-updates__body p { margin: 0 0 .5rem; }

.ihwcs-mo-dl, .ihwcs-mo-tag { white-space: nowrap; }

/* "Order Details" definition list */
.ihwcs-mo-fields {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: .5rem 1rem;
	margin: 0;
}
.ihwcs-mo-fields dt { font-weight: 600; color: #6b7280; font-size: .85rem; }
.ihwcs-mo-fields dd { margin: 0; font-size: .9rem; }

/* ---------- responsive: single-pane / full-screen detail on mobile ---------- */
@media (max-width: 780px) {
	.ihwcs-mo-panes { display: block; min-height: 0; }
	.ihwcs-mo-list {
		flex: none;
		max-width: 100%;
		width: 100%;
	}
	.ihwcs-mo-detail-pane { display: none; }
	.ihwcs-mo.is-detail-open .ihwcs-mo-list { display: none; }
	.ihwcs-mo.is-detail-open .ihwcs-mo-detail-pane {
		display: block;
		border: 0;
		/* A small side inset so the header text and the cards (notably the grey
		   key-details block) don't run into the edge of the page. */
		padding: 1rem 10px;
	}
	/* Only meaningful while the detail is open — the list is the whole view otherwise. */
	.ihwcs-mo.is-detail-open .ihwcs-mo-back { display: inline-flex; }
	.ihwcs-mo-key { grid-template-columns: 1fr; }
	.ihwcs-mo-step__label { font-size: .65rem; }
	.ihwcs-mo-step__icon { width: 34px; height: 34px; font-size: .85rem; }
	.ihwcs-mo-fields { grid-template-columns: 1fr; gap: .15rem; }
	.ihwcs-mo-fields dd { margin-bottom: .5rem; }
}
