.mksg-wrapper {
	--mksg-bg-main: #fcfcfb;
	--mksg-bg-card: #fcfcfb;
	--mksg-text-main: #1a1a1a;
	--mksg-text-muted: #666666;
	--mksg-border: #e6e4e0;
	--mksg-accent: #788a75;
	--mksg-accent-hover: #546851;
	--mksg-accent-text: #ffffff;
	--mksg-shadow: 0 4px 20px rgba(0,0,0,0.03);
	--mksg-radius: 12px;
	--mksg-font-head: 'Playfair Display', serif;
	--mksg-font-body: 'Inter', sans-serif;

	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
	font-family: var(--mksg-font-body);
	color: var(--mksg-text-main);
	background: #ffffff;
	padding: 0;
	transition: background 0.3s, color 0.3s;
}

.mksg-wrapper[data-theme="dark"] {
	--mksg-bg-main: #121212;
	--mksg-bg-card: #1e1e1e;
	--mksg-text-main: #f5f5f5;
	--mksg-text-muted: #a0a0a0;
	--mksg-border: #333333;
	--mksg-accent: #8ba687;
	--mksg-accent-hover: #9bbd96;
	--mksg-accent-text: #121212;
	--mksg-shadow: 0 4px 20px rgba(0,0,0,0.2);
	background: #000000;
}

.mksg-wrapper,
.mksg-wrapper * {
	box-sizing: border-box;
}

.mksg-top-bar {
	display: flex;
	justify-content: flex-end;
	width: 100%;
	max-width: 100%;
	margin-bottom: 2rem;
}

.mksg-toggle-wrapper {
	display: inline-flex;
	max-width: 100%;
	background: #ffffff;
	border: 1px solid var(--mksg-border);
	border-radius: 30px;
	padding: 4px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.mksg-wrapper[data-theme="dark"] .mksg-toggle-wrapper {
	background: #1e1e1e;
}

.mksg-theme-btn {
	background: transparent;
	border: none;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 13px;
	color: var(--mksg-text-muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s;
	line-height: 1;
	white-space: nowrap;
}

.mksg-theme-btn.active {
	background: #f4f4f4;
	color: var(--mksg-text-main);
}

.mksg-wrapper[data-theme="dark"] .mksg-theme-btn.active {
	background: #333333;
}

.mksg-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	width: 100%;
	max-width: 100%;
	align-items: stretch;
}

.mksg-left-col,
.mksg-right-col {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	flex: 0 0 100%;
}

@media (min-width: 992px) {
	.mksg-left-col {
		flex: 0 0 35%;
		max-width: 35%;
	}

	.mksg-right-col {
		flex: 1 1 0%;
		max-width: calc(65% - 2rem);
		min-width: 0;
	}
}

.mksg-card {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	background: var(--mksg-bg-card);
	border-radius: var(--mksg-radius);
	padding: 2.5rem;
	box-shadow: var(--mksg-shadow);
	height: 100%;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--mksg-border);
	overflow: hidden;
}

.mksg-title,
.mksg-right-title {
	font-family: var(--mksg-font-head);
	font-size: 2.5rem;
	font-weight: 500;
	margin: 0 0 0.75rem 0;
	color: var(--mksg-text-main);
	line-height: 1.2;
	word-break: normal;
}

.mksg-subtitle,
.mksg-right-subtitle {
	color: var(--mksg-text-muted);
	font-size: 14px;
	margin: 0 0 2.5rem 0;
	line-height: 1.5;
}

.mksg-image-wrap {
	margin-top: auto;
	text-align: center;
	flex-grow: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
}

.mksg-illustration {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	max-height: 600px;
	object-fit: contain;
}

.mksg-right-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-bottom: 2rem;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.mksg-rh-text {
	min-width: 0;
	max-width: 100%;
}

.mksg-rh-controls {
	display: flex;
	gap: 1.25rem;
	flex-wrap: wrap;
	max-width: 100%;
	min-width: 0;
}

.mksg-control-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
	max-width: 100%;
	min-width: 0;
}

.mksg-cg-label {
	font-size: 12px;
	color: var(--mksg-text-main);
}

.mksg-pill-group {
	display: flex;
	flex-wrap: wrap;
	max-width: 100%;
	border: 1px solid var(--mksg-border);
	border-radius: 30px;
	overflow: hidden;
	background: #ffffff;
}

.mksg-wrapper[data-theme="dark"] .mksg-pill-group {
	background: #1e1e1e;
}

.mksg-pill {
	background: transparent;
	border: none;
	padding: 8px 16px;
	font-size: 13px;
	color: var(--mksg-text-muted);
	cursor: pointer;
	border-right: 1px solid var(--mksg-border);
	transition: 0.2s;
	line-height: 1;
	min-width: 60px;
	white-space: nowrap;
}

.mksg-pill:last-child {
	border-right: none;
}

.mksg-pill.active {
	background: transparent;
	color: var(--mksg-text-main);
	font-weight: 500;
	box-shadow: inset 0 0 0 1px var(--mksg-text-main);
	border-radius: 30px;
}

.mksg-pill:hover:not(.active) {
	background: rgba(0,0,0,0.02);
}

.mksg-tabs-wrap {
	flex-grow: 1;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	background: #ffffff;
	border-radius: var(--mksg-radius);
	border: 1px solid var(--mksg-border);
	overflow: hidden;
}

.mksg-wrapper[data-theme="dark"] .mksg-tabs-wrap {
	background: #1e1e1e;
}

.mksg-tabs-nav {
	display: flex;
	width: 100%;
	max-width: 100%;
	border-bottom: 1px solid var(--mksg-border);
}

.mksg-tab-btn {
	background: #f8f8f8;
	border: none;
	padding: 16px 24px;
	font-size: 14px;
	font-weight: 500;
	color: var(--mksg-text-muted);
	cursor: pointer;
	flex: 1 1 0;
	min-width: 0;
	transition: 0.2s;
	line-height: 1;
}

.mksg-wrapper[data-theme="dark"] .mksg-tab-btn {
	background: #2a2a2a;
}

.mksg-tab-btn:first-child {
	border-right: 1px solid var(--mksg-border);
}

.mksg-tab-btn.active {
	background: #ffffff;
	color: var(--mksg-accent);
	border-top: 2px solid var(--mksg-accent);
}

.mksg-wrapper[data-theme="dark"] .mksg-tab-btn.active {
	background: #1e1e1e;
}

.mksg-tab-pane {
	display: none;
	animation: mksgFadeIn 0.3s ease;
	padding: 0;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.mksg-tab-pane.active {
	display: block;
}

@keyframes mksgFadeIn {
	from { opacity: 0; transform: translateY(5px); }
	to { opacity: 1; transform: translateY(0); }
}

.mksg-table-wrap {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

.mksg-table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	text-align: center;
}

.mksg-table th,
.mksg-table td {
	padding: 1rem;
	border-bottom: 1px solid var(--mksg-border);
	font-size: 14px;
	white-space: nowrap;
}

.mksg-table th {
	font-weight: 500;
	color: var(--mksg-text-main);
}

.mksg-table td {
	color: var(--mksg-text-muted);
}

.mksg-table tr:last-child td {
	border-bottom: none;
}

.mksg-table tr.mksg-highlight {
	background-color: rgba(120, 138, 117, 0.1);
}

.mksg-size-label {
	color: var(--mksg-text-main);
	font-weight: 600;
}

.mksg-fit-form-wrap {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 2rem;
}

.mksg-ff-title {
	font-size: 1.1rem;
	margin: 0 0 0.5rem;
	color: var(--mksg-text-main);
	font-weight: 500;
}

.mksg-ff-desc {
	color: var(--mksg-text-muted);
	font-size: 13px;
	margin: 0 0 1.5rem;
}

.mksg-ff-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-bottom: 1.5rem;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.mksg-ff-field {
	min-width: 0;
	max-width: 100%;
}

.mksg-ff-field label {
	display: block;
	font-size: 12px;
	color: var(--mksg-text-main);
	margin-bottom: 6px;
	font-weight: 500;
}

.mksg-input-wrap {
	position: relative;
	display: flex;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.mksg-fit-input {
	width: 100%;
	min-width: 0;
	padding: 12px;
	border: 1px solid var(--mksg-border);
	border-right: none;
	border-radius: 6px 0 0 6px;
	background: var(--mksg-bg-main);
	color: var(--mksg-text-main);
	font-size: 14px;
	outline: none;
	transition: border-color 0.2s;
	box-shadow: none;
}

.mksg-fit-input:focus {
	border-color: var(--mksg-accent);
}

.mksg-input-unit {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	background: var(--mksg-bg-main);
	border: 1px solid var(--mksg-border);
	border-radius: 0 6px 6px 0;
	color: var(--mksg-text-muted);
	font-size: 13px;
	flex: 0 0 auto;
}

.mksg-btn-primary {
	width: 100%;
	background: var(--mksg-accent);
	color: var(--mksg-accent-text);
	border: none;
	padding: 14px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s;
	line-height: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

.mksg-btn-primary:hover {
	background: var(--mksg-accent-hover);
}

.mksg-rec-card {
	margin-top: 1.5rem;
	background: #f5f5f3;
	border: 1px solid var(--mksg-border);
	border-radius: 8px;
	padding: 1.5rem;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.mksg-wrapper[data-theme="dark"] .mksg-rec-card {
	background: #2a2a2a;
}

.mksg-rec-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid var(--mksg-border);
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--mksg-text-main);
	flex-shrink: 0;
}

.mksg-wrapper[data-theme="dark"] .mksg-rec-icon {
	background: #1e1e1e;
}

.mksg-rec-info {
	flex-grow: 1;
	min-width: 0;
	max-width: 100%;
}

.mksg-rec-label {
	font-size: 12px;
	color: var(--mksg-text-main);
	font-weight: 500;
}

.mksg-rec-size {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--mksg-text-main);
	margin: 4px 0;
	line-height: 1.2;
	word-break: break-word;
}

.mksg-rec-note {
	font-size: 12px;
	color: var(--mksg-text-muted);
	line-height: 1.5;
}

.mksg-btn-outline {
	background: #ffffff;
	border: 1px solid var(--mksg-border);
	color: var(--mksg-text-main);
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 13px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: 0.2s;
	line-height: 1;
	white-space: nowrap;
}

.mksg-wrapper[data-theme="dark"] .mksg-btn-outline {
	background: #1e1e1e;
}

.mksg-btn-outline:hover {
	border-color: var(--mksg-text-main);
}

.mksg-footer {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--mksg-border);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.mksg-help-text {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--mksg-text-muted);
	font-size: 13px;
	line-height: 1.5;
	min-width: 0;
	max-width: 100%;
}

.mksg-help-text svg,
.mksg-contact-link svg {
	flex: 0 0 auto;
}

.mksg-contact-link {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--mksg-text-main);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	min-width: 0;
	max-width: 100%;
	word-break: break-word;
}

.mksg-contact-link:hover {
	text-decoration: underline;
}

.mksg-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.5);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
	padding: 16px;
}

.mksg-modal-overlay.active {
	opacity: 1;
	pointer-events: auto;
}

.mksg-modal {
	background: var(--mksg-bg-card);
	padding: 2rem;
	border-radius: var(--mksg-radius);
	width: min(400px, calc(100vw - 32px));
	max-width: 100%;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	position: relative;
	transform: translateY(20px);
	transition: transform 0.3s;
	box-shadow: var(--mksg-shadow);
	border: 1px solid var(--mksg-border);
}

.mksg-modal-overlay.active .mksg-modal {
	transform: translateY(0);
}

.mksg-modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: none;
	border: none;
	color: var(--mksg-text-muted);
	cursor: pointer;
}

.mksg-modal-title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	color: var(--mksg-text-main);
	font-family: var(--mksg-font-head);
}

/* Tablet */
@media (max-width: 1024px) {
	.mksg-layout {
		flex-direction: column;
		gap: 1.5rem;
	}

	.mksg-left-col,
	.mksg-right-col {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.mksg-card {
		padding: 1.5rem;
	}

	.mksg-title,
	.mksg-right-title {
		font-size: 2rem;
	}

	.mksg-rh-controls {
		width: 100%;
		justify-content: flex-start;
		gap: 1rem;
	}

	.mksg-illustration {
		max-height: 520px;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.mksg-wrapper {
		padding: 0;
	}

	.mksg-top-bar {
		justify-content: center;
		margin-bottom: 1rem;
	}

	.mksg-layout {
		gap: 1rem;
	}

	.mksg-card {
		padding: 1.25rem;
		border-radius: 10px;
	}

	.mksg-title,
	.mksg-right-title {
		font-size: 1.7rem;
		line-height: 1.2;
	}

	.mksg-subtitle,
	.mksg-right-subtitle {
		margin-bottom: 1.5rem;
	}

	.mksg-right-header {
		flex-direction: column;
		gap: 1rem;
	}

	.mksg-rh-controls {
		width: 100%;
		flex-direction: column;
		gap: 1rem;
	}

	.mksg-control-group {
		width: 100%;
		align-items: flex-start;
	}

	.mksg-pill-group {
		width: 100%;
		justify-content: flex-start;
		border-radius: 18px;
	}

	.mksg-pill {
		flex: 1 1 auto;
		text-align: center;
		min-width: 0;
		padding: 10px 8px;
	}

	.mksg-tabs-nav {
		flex-direction: column;
	}

	.mksg-tab-btn {
		width: 100%;
		border-right: none !important;
		border-bottom: 1px solid var(--mksg-border);
	}

	.mksg-tab-btn:last-child {
		border-bottom: none;
	}

	.mksg-fit-form-wrap {
		padding: 1.25rem;
	}

	.mksg-ff-grid {
		grid-template-columns: 1fr;
	}

	.mksg-rec-card {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
		gap: 1rem;
	}

	.mksg-btn-outline {
		width: 100%;
		white-space: normal;
	}

	.mksg-footer {
		flex-direction: column;
		align-items: flex-start;
	}

	.mksg-help-text,
	.mksg-contact-link {
		width: 100%;
	}

	.mksg-illustration {
		max-height: 420px;
	}

	.mksg-table {
		min-width: 560px;
	}
}

/* Small Mobile */
@media (max-width: 480px) {
	.mksg-card {
		padding: 1rem;
	}

	.mksg-title,
	.mksg-right-title {
		font-size: 1.45rem;
	}

	.mksg-theme-btn {
		padding: 8px 12px;
		font-size: 12px;
	}

	.mksg-pill {
		font-size: 12px;
	}

	.mksg-btn-primary {
		padding: 14px;
		font-size: 14px;
	}

	.mksg-rec-size {
		font-size: 1.25rem;
	}

	.mksg-table {
		min-width: 520px;
	}

	.mksg-illustration {
		max-height: 340px;
	}
}