.pmc-tool {
	--pmc-border: #d9e0e7;
	--pmc-muted: #5b6672;
	--pmc-accent: #1769aa;
	--pmc-surface: #fff;
	color: #17212b;
	font: inherit;
	max-width: 900px;
	margin: 0 auto;
}
.pmc-tool *, .pmc-tool *::before, .pmc-tool *::after { box-sizing: border-box; }
.pmc-tool [hidden] { display: none !important; }
.pmc-tool h2 { font-size: 1.35rem; line-height: 1.3; margin: 0 0 .55rem; }
.pmc-intro { color: var(--pmc-muted); margin: 0 0 1.1rem; }
.pmc-form, .pmc-results, .pmc-explanation { background: var(--pmc-surface); border: 1px solid var(--pmc-border); border-radius: 11px; margin: 0 0 1rem; padding: clamp(1rem, 3vw, 1.4rem); }
.pmc-mode-set { border: 0; margin: 0 0 1rem; min-width: 0; padding: 0; }
.pmc-mode-set legend { font-weight: 700; margin-bottom: .55rem; }
.pmc-mode-choices { display: grid; gap: .55rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pmc-mode-choice { align-items: flex-start; background: #f7f9fb; border: 1px solid var(--pmc-border); border-radius: 7px; cursor: pointer; display: flex; gap: .55rem; line-height: 1.4; padding: .7rem; }
.pmc-mode-choice:has(input:checked) { background: #eef6fc; border-color: var(--pmc-accent); }
.pmc-mode-choice input { accent-color: var(--pmc-accent); flex: 0 0 auto; margin: .15rem 0 0; }
.pmc-field { display: flex; flex-direction: column; gap: .35rem; margin: 0 0 .9rem; min-width: 0; }
.pmc-field > label { font-size: .95rem; font-weight: 650; }
.pmc-field input, .pmc-field select { background: #fff; border: 1px solid #aab7c3; border-radius: 6px; color: inherit; font: inherit; min-height: 42px; padding: .55rem .65rem; width: 100%; }
.pmc-field input[aria-invalid="true"] { background: #fff8f7; border-color: #b42318; }
.pmc-help { color: var(--pmc-muted); font-size: .85rem; }
.pmc-field-error { color: #a51d2d; font-size: .87rem; font-weight: 600; }
.pmc-validation { background: #fff1f0; border-radius: 6px; color: #92251c; margin: .25rem 0 .8rem; padding: .7rem .8rem; }
.pmc-validation[hidden] { display: none; }
.pmc-actions { display: flex; justify-content: flex-end; }
.pmc-button { appearance: none; background: #f5f7f9; border: 1px solid #aab7c3; border-radius: 7px; color: #17212b; cursor: pointer; font: inherit; font-weight: 650; min-height: 42px; padding: .55rem 1rem; }
.pmc-button:hover { background: #edf1f5; }
.pmc-button:focus-visible, .pmc-tool input:focus-visible, .pmc-tool select:focus-visible, .pmc-explanation summary:focus-visible { outline: 3px solid #75b9ed; outline-offset: 2px; }
.pmc-empty-state { background: #f7f9fb; border: 1px dashed var(--pmc-border); border-radius: 8px; color: var(--pmc-muted); margin: 0 0 1rem; padding: 1rem; text-align: center; }
.pmc-results h3 { font-size: 1.15rem; margin: 0 0 .65rem; }
.pmc-summary { color: var(--pmc-muted); margin: 0 0 .85rem; }
.pmc-target-price { background: #eef6fc; border-left: 4px solid var(--pmc-accent); border-radius: 5px; margin: 0 0 1rem; padding: .7rem .9rem; }
.pmc-target-price p { font-weight: 700; margin: .15rem 0; }
.pmc-result-list { border-top: 1px solid var(--pmc-border); margin: 0; }
.pmc-result-row { align-items: baseline; border-bottom: 1px solid var(--pmc-border); display: flex; flex-wrap: wrap; gap: .3rem 1rem; justify-content: space-between; padding: .7rem .1rem; }
.pmc-result-row dt { color: var(--pmc-muted); }
.pmc-result-row dd { font-variant-numeric: tabular-nums; font-weight: 650; margin: 0; text-align: right; }
.pmc-result-row.is-profit dd { color: #176334; }
.pmc-result-row.is-loss dd { color: #a51d2d; }
.pmc-explanation summary { cursor: pointer; font-weight: 700; }
.pmc-explanation-content { color: var(--pmc-muted); line-height: 1.55; margin-top: .75rem; }
.pmc-explanation-content p { margin: .5rem 0; }
@media (max-width: 560px) {
	.pmc-mode-choices { grid-template-columns: 1fr; }
	.pmc-result-row { display: block; }
	.pmc-result-row dd { margin-top: .25rem; text-align: left; }
}
