.mtg-page{padding-top:1rem}.mtg-page>nav{margin-bottom:1rem}.mtg-page>section[aria-labelledby=tool-title]{padding-bottom:1.5rem}.mtg-page #tool-title{font-size:2rem;line-height:1.2}.mtg-page #tool-title+p{margin-top:.5rem;font-size:1rem;line-height:1.5}.mtg-layout,.mtg-tool,.mtg-workspace,.mtg-summary,.mtg-conditions{min-width:0}.mtg-workspace{padding:1rem;border:1px solid var(--border);border-radius:.75rem;background:var(--surface)}.mtg-icon{width:1.25rem;height:1.25rem;flex-shrink:0}.mtg-summary{display:flex;flex-direction:column;gap:1rem}.mtg-payment-label{font-size:.875rem;line-height:1.5;font-weight:600}.mtg-payment-value{margin-top:.375rem;font-size:clamp(1.75rem,8.4vw,2.25rem);line-height:1.15;font-weight:800;letter-spacing:-.04em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.mtg-payment-unit,.mtg-payment-detail{margin-top:.25rem;font-size:.875rem;line-height:1.5;color:var(--text-muted)}.mtg-payment-detail strong{font-weight:600;color:var(--text-primary)}.mtg-metrics{display:flex;flex-direction:column;gap:.5rem;border-top:1px solid var(--border);padding-top:1rem}.mtg-metric{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem;min-width:0}.mtg-metric dt{color:var(--text-muted);font-size:.875rem;line-height:1.5}.mtg-metric dd{font-size:.875rem;line-height:1.5;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;text-align:right}.mtg-saving{display:flex;flex-direction:column;gap:.375rem;padding-top:.75rem;border-top:1px solid var(--border);font-size:.875rem;line-height:1.5;color:var(--text-muted)}.mtg-saving strong{color:var(--text-primary);font-weight:700}.mtg-copy{display:inline-flex;min-height:2.75rem;align-items:center;justify-content:center;gap:.5rem;padding:.625rem 1rem;border:1px solid var(--primary);border-radius:.5rem;background:var(--primary);color:var(--on-primary);font-size:.875rem;font-weight:600;line-height:1.5}.mtg-copy:hover{background:var(--text-primary);border-color:var(--text-primary)}.mtg-copy:active{background:var(--accent);border-color:var(--accent)}.mtg-copy:disabled{opacity:.5;cursor:default}.mtg-copy-desktop{display:none}.mtg-conditions{margin-top:1.25rem;padding-top:1.25rem;border-top:1px solid var(--border)}.mtg-conditions h2,.mtg-schedule h2{font-size:1.125rem;font-weight:700;line-height:1.5;letter-spacing:-.025em}.mtg-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem .75rem;margin-top:.75rem}.mtg-fields>div>div,.mtg-fields>div:not(.mtg-price-field):not(.mtg-down-field){gap:.25rem}.mtg-fields p{line-height:1.5}.mtg-price-field,.mtg-down-field{grid-column:1 / -1}.mtg-fields .field-input,.mtg-early-fields .field-input{border-radius:.5rem;font-variant-numeric:tabular-nums}.mtg-options{display:grid;gap:1.25rem;margin-top:1.25rem;align-items:start}.mtg-payment-type legend,.mtg-strategy legend{margin-bottom:.5rem;font-size:.875rem;line-height:1.5;font-weight:600}.mtg-type-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:20rem;border:1px solid var(--border);border-radius:.5rem;background:var(--surface-muted)}.mtg-type-choice label{min-width:0;cursor:pointer}.mtg-type-choice span{display:flex;min-height:2.75rem;align-items:center;justify-content:center;padding:.5rem;border:1px solid transparent;border-radius:.5rem;font-size:.875rem;line-height:1.5;font-weight:600}.mtg-type-choice input:checked+span{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}.mtg-type-choice label:hover span{border-color:var(--primary)}.mtg-type-choice input:focus-visible+span{outline:2px solid var(--focus);outline-offset:3px}.mtg-help{margin-top:.5rem;color:var(--text-muted);font-size:.75rem;line-height:1.5;max-width:28rem}.mtg-early{min-width:0;border:1px solid var(--border);border-radius:.5rem;background:var(--surface-muted)}.mtg-early>summary{display:flex;min-height:3.5rem;align-items:center;gap:.75rem;padding:.75rem;font-size:.875rem;line-height:1.5;font-weight:600}.mtg-early>summary>span{flex:1;min-width:0}.mtg-early>summary .mtg-icon:first-child{display:none;color:var(--primary)}.mtg-early-hint{display:block;color:var(--text-muted);font-size:.75rem;font-weight:400}.mtg-early>summary:hover{background:var(--surface-hover);border-radius:.5rem}.mtg-chevron{width:1rem;height:1rem;color:var(--text-muted)}.mtg-early[open]>summary .mtg-chevron,.mtg-year[open]>summary .mtg-chevron,.mtg-remaining[open]>summary .mtg-chevron{transform:rotate(180deg)}.mtg-early-fields{padding:0 .75rem .75rem}.mtg-check{display:flex;min-height:2.75rem;align-items:center;gap:.75rem;font-size:.875rem;line-height:1.5;cursor:pointer}.mtg-check input,.mtg-strategy input{width:1.125rem;height:1.125rem;flex-shrink:0;accent-color:var(--primary)}.mtg-early-inputs{display:grid;grid-template-columns:minmax(0,1fr);gap:.875rem;margin-top:.5rem;min-width:0}.mtg-early-inputs:disabled{opacity:.65}.mtg-strategy{min-width:0}.mtg-strategy label{display:flex;min-height:2.75rem;align-items:flex-start;gap:.625rem;padding-block:.5rem;cursor:pointer;font-size:.875rem;line-height:1.5}.mtg-strategy input{margin-top:.125rem}.mtg-strategy small{display:block;color:var(--text-muted);font-size:.75rem}.mtg-footer{display:flex;flex-direction:column;gap:.375rem;margin-top:1.25rem;font-size:.75rem;line-height:1.5;color:var(--text-muted)}.mtg-auto{display:flex;align-items:center;gap:.5rem}.mtg-auto .mtg-icon{width:1rem;height:1rem}.mtg-copy-fallback{margin-top:1rem;font-size:.875rem;line-height:1.5}.mtg-copy-fallback textarea{width:100%;min-height:10rem;padding:.75rem;margin-top:.5rem;border:1px solid var(--border);border-radius:.5rem;background:var(--surface-muted);font-size:1rem}.mtg-schedule{margin-top:1.5rem}.mtg-years{margin-top:.75rem;border:1px solid var(--border);border-radius:.75rem;background:var(--surface)}.mtg-year+.mtg-year,.mtg-remaining{border-top:1px solid var(--border)}.mtg-year>summary,.mtg-remaining>summary{display:flex;min-height:3rem;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem 1rem;font-size:.875rem;line-height:1.5;font-weight:600;border-radius:.5rem}.mtg-year>summary:hover,.mtg-remaining>summary:hover{background:var(--surface-hover)}.mtg-year-total{display:flex;min-width:0;align-items:center;justify-content:flex-end;gap:.75rem;font-size:.75rem;font-weight:500;color:var(--text-muted);font-variant-numeric:tabular-nums;text-align:right}.mtg-year-months{display:none}.mtg-remaining-hint{display:block;font-size:.75rem;font-weight:400;color:var(--text-muted)}.mtg-remaining>div{border-top:1px solid var(--border)}.mtg-schedule-empty{margin-top:.75rem;font-size:.875rem;line-height:1.5;color:var(--text-muted)}.mtg-table{width:100%;border-collapse:collapse;font-size:.875rem}.mtg-table th,.mtg-table td{padding:.75rem;text-align:right;border-top:1px solid var(--border);font-variant-numeric:tabular-nums}.mtg-table th:first-child{text-align:left}.mtg-table thead th{font-size:.75rem;color:var(--text-muted);font-weight:600}.mtg-mobile-label{display:none}.mtg-page #instruction,.mtg-guidance{margin-top:2rem}.mtg-instruction-steps{display:grid;gap:1.25rem;margin-top:1.25rem}.mtg-instruction-steps>li{display:flex;min-width:0;align-items:flex-start;gap:.75rem}.mtg-instruction-number{display:flex;width:2.75rem;height:2.75rem;flex-shrink:0;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:50%;background:var(--surface-muted);font-weight:600}.mtg-guidance-grid{display:grid;gap:.75rem;margin-top:1rem}.mtg-guidance-grid>div{min-width:0;border:1px solid var(--border);border-radius:.75rem;background:var(--surface);padding:1rem}.mtg-instruction-steps h3,.mtg-guidance-grid h3{font-size:.875rem;line-height:1.25rem;font-weight:700}.mtg-instruction-steps p,.mtg-guidance p{margin-top:.5rem;font-size:.875rem;line-height:1.5rem;color:var(--text-muted)}.mtg-guidance>p{max-width:48rem}.mtg-guidance .mtg-formula{color:var(--text-primary);font-weight:600;overflow-wrap:anywhere}@media(max-width:63.999rem){.mtg-table,.mtg-table tbody{display:block}.mtg-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.mtg-table tr{display:flex;flex-direction:column;gap:.375rem;padding:.75rem 1rem;border-top:1px solid var(--border)}.mtg-table th,.mtg-table td{border:0;padding:0}.mtg-table tbody th{padding-bottom:.25rem;font-weight:700}.mtg-table td{display:flex;justify-content:space-between;align-items:baseline;gap:.75rem;font-size:.875rem;text-align:right;overflow-wrap:anywhere}.mtg-mobile-label{display:inline;color:var(--text-muted);text-align:left}.mtg-table th .mtg-mobile-label{color:var(--text-primary)}}@media(max-width:47.999rem){.mtg-page>nav{margin-bottom:.75rem}.mtg-page>section[aria-labelledby=tool-title]{padding-bottom:1rem}.mtg-page #tool-title{font-size:1.875rem}.mtg-page #tool-title+p{margin-top:.25rem}.mtg-summary{gap:.75rem}.mtg-payment-value{font-size:clamp(1.75rem,9.1vw,2.25rem)}.mtg-metrics{gap:.375rem;padding-top:.75rem}.mtg-conditions{margin-top:1rem;padding-top:1rem}.mtg-fields label{line-height:1.25}.mtg-fields>div:last-child [id$=-hint],.mtg-early-hint-default{display:none}.mtg-early>summary{min-height:2.75rem;padding-block:.5rem}}@media(min-width:40rem){.mtg-guidance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mtg-price-field,.mtg-down-field{grid-column:auto}.mtg-fields{gap:1rem 1.5rem}.mtg-early-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}.mtg-strategy{grid-column:1 / -1}.mtg-year-months{display:inline}.mtg-remaining-hint{display:inline;margin-left:.5rem}}@media(min-width:48rem){.mtg-page #instruction,.mtg-guidance{margin-top:2.5rem}.mtg-instruction-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}.mtg-page{padding-top:.5rem}.mtg-page>nav{margin-bottom:.5rem}.mtg-page>section[aria-labelledby=tool-title]{padding-bottom:1rem}.mtg-page #tool-title{font-size:2.25rem}.mtg-workspace{padding:1.25rem}.mtg-summary{display:grid;grid-template-columns:minmax(0,1fr);gap:1.5rem;align-items:center;min-height:5.5rem}.mtg-payment-value{font-size:2.25rem}.mtg-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;padding-top:0;border-top:0}.mtg-metric{display:block;padding-left:1rem;border-left:1px solid var(--border)}.mtg-metric dt{font-size:.875rem}.mtg-metric dd{margin-top:.5rem;text-align:left;font-size:1rem}.mtg-saving{grid-column:1 / -1;flex-direction:row;justify-content:space-between;flex-wrap:wrap}.mtg-conditions{margin-top:1rem;padding-top:1rem}.mtg-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem;margin-top:1rem}.mtg-payment-type{display:grid;grid-template-columns:minmax(0,18rem) minmax(0,1fr);gap:0 1rem;align-items:center}.mtg-payment-type legend{grid-column:1 / -1}.mtg-help{margin:0}.mtg-early>summary .mtg-icon:first-child{display:block}.mtg-early>summary{min-height:4rem}.mtg-footer{flex-direction:row;align-items:center;gap:1rem;justify-content:space-between;margin-top:1rem}.mtg-note{margin-left:auto;max-width:20rem}.mtg-copy-mobile{display:none}.mtg-copy-desktop{display:inline-flex;flex-shrink:0}}@media(min-width:64rem){.mtg-summary{grid-template-columns:minmax(0,1.2fr) minmax(0,3fr)}.mtg-metric dd{font-size:1.125rem}.mtg-metric{padding-left:1.5rem}.mtg-page #tool-title+p{font-size:1.125rem}}
