.myc-calculator {
	--myc-border: #e2e5ea;
	--myc-bg: #f8f9fb;
	--myc-accent: #1a73e8;
	--myc-accent-dark: #0f5bc4;
	--myc-text: #222;
	--myc-muted: #666;
	--myc-positive: #d93025;
	max-width: 100%;
	margin: 1.5em 0;
	padding: 1.5em;
	border: 1px solid var(--myc-border);
	border-radius: 10px;
	background: #fff;
	color: var(--myc-text);
	box-sizing: border-box;
}

.myc-calculator * {
	box-sizing: border-box;
}

.myc-field-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1em;
	margin-bottom: 1em;
}

.myc-field-grid--tax {
	align-items: start;
	padding: 0.75em 1em;
	background: var(--myc-bg);
	border-radius: 8px;
}

.myc-field label {
	display: block;
	font-size: 0.85em;
	font-weight: 600;
	margin-bottom: 0.35em;
	color: var(--myc-muted);
}

.myc-field--checkbox label {
	display: flex;
	align-items: center;
	gap: 0.5em;
	font-size: 0.95em;
	font-weight: 600;
	color: var(--myc-text);
	margin-bottom: 0;
}

.myc-field--checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
}

.myc-input {
	width: 100%;
	padding: 0.5em 0.6em;
	border: 1px solid var(--myc-border);
	border-radius: 6px;
	font-size: 1em;
	background: #fff;
}

.myc-input:focus {
	outline: 2px solid var(--myc-accent);
	outline-offset: 1px;
}

.myc-hint {
	margin: 0.4em 0 0;
	font-size: 0.78em;
	color: var(--myc-muted);
	line-height: 1.5;
}

.myc-field--toggle {
	display: flex;
	align-items: center;
	gap: 1em;
	flex-wrap: wrap;
}

.myc-toggle-label {
	font-size: 0.85em;
	font-weight: 600;
	color: var(--myc-muted);
}

.myc-toggle {
	display: flex;
	gap: 1.2em;
}

.myc-toggle label {
	display: flex;
	align-items: center;
	gap: 0.4em;
	font-weight: 600;
	cursor: pointer;
}

.myc-button {
	display: inline-block;
	padding: 0.7em 2em;
	background: var(--myc-accent);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 1em;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
}

.myc-button:hover {
	background: var(--myc-accent-dark);
}

.myc-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0.75em;
	margin: 1.5em 0;
	padding: 1em;
	background: var(--myc-bg);
	border-radius: 8px;
}

.myc-summary-item {
	display: flex;
	flex-direction: column;
	gap: 0.25em;
}

.myc-summary-label {
	font-size: 0.78em;
	color: var(--myc-muted);
}

.myc-summary-value {
	font-size: 1.15em;
	font-weight: 700;
	color: var(--myc-accent-dark);
}

.myc-table-wrap {
	overflow-x: auto;
	margin-top: 1em;
}

.myc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9em;
	min-width: 560px;
}

.myc-table th,
.myc-table td {
	padding: 0.5em 0.7em;
	border-bottom: 1px solid var(--myc-border);
	text-align: right;
	white-space: nowrap;
}

.myc-table th:first-child,
.myc-table td:first-child {
	text-align: left;
}

.myc-table thead th {
	background: var(--myc-bg);
	font-weight: 700;
	color: var(--myc-muted);
	position: sticky;
	top: 0;
}

.myc-table tbody tr:hover {
	background: #fafbfd;
}

.myc-table td.myc-cell-tax {
	color: var(--myc-positive);
}

.myc-disclaimer {
	margin-top: 1.25em;
	font-size: 0.78em;
	color: var(--myc-muted);
	line-height: 1.6;
}
