/* Mechanc Quick View — spec-sheet popup.
   Written against the design tokens only, so it follows the dark/light switch
   without a body.light copy. Fallbacks keep it usable if the theme changes. */

.mc-quick-view.is-disabled {
	opacity: .4;
	cursor: default;
}

html.mc-sheet-open {
	overflow: hidden;
}

.mc-sheet-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(3, 5, 12, .72);
}

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

.mc-sheet-box {
	display: flex;
	flex-direction: column;
	width: min(1000px, 100%);
	height: min(90vh, 1100px);
	background: var(--card, #0E1323);
	border: 1px solid var(--br, rgba(255, 255, 255, .06));
	border-radius: var(--rl, 12px);
	box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
	overflow: hidden;
}

.mc-sheet-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--br, rgba(255, 255, 255, .06));
}

.mc-sheet-title {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-family: var(--fm, monospace);
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--t1, #DDE6F9);
}

.mc-sheet-actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
}

.mc-sheet-modal .mc-sheet-btn {
	padding: 7px 14px;
	border: 1px solid var(--br, rgba(255, 255, 255, .06));
	border-radius: var(--r, 6px);
	font-size: 12px;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	color: var(--t2, #7A8BAD);
	transition: border-color .2s, color .2s;
}

.mc-sheet-modal .mc-sheet-btn:hover,
.mc-sheet-modal .mc-sheet-btn:focus-visible {
	border-color: var(--bra, rgba(0, 207, 255, .22));
	color: var(--cyan, #00CFFF);
}

.mc-sheet-modal .mc-sheet-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid var(--br, rgba(255, 255, 255, .06));
	border-radius: var(--r, 6px);
	background: transparent;
	color: var(--t2, #7A8BAD);
	cursor: pointer;
}

.mc-sheet-modal .mc-sheet-close:hover,
.mc-sheet-modal .mc-sheet-close:focus-visible {
	border-color: var(--bra, rgba(0, 207, 255, .22));
	color: var(--cyan, #00CFFF);
	background: transparent;
}

.mc-sheet-frame {
	flex: 1 1 auto;
	width: 100%;
	border: 0;
	background: #fff;
}
