.precious-metals{--pm-ink:#172d4d;--pm-muted:#5b6f88;--pm-blue:#245fd0;--pm-line:#dce6f3;--pm-paper:#fff;--pm-soft:#f3f7fe;color:var(--pm-ink);font-family:inherit;text-align:start;line-height:1.6}
.precious-metals *{box-sizing:border-box;min-width:0}.precious-metals [hidden]{display:none!important}.pm-links{display:flex;flex-wrap:wrap;gap:.45rem;margin-bottom:1rem}.pm-links a{padding:.35rem .7rem;border:1px solid var(--pm-line);border-radius:.6rem;font-size:.8rem;text-decoration:none;color:var(--pm-muted);background:var(--pm-paper)}.pm-links a[aria-current],.pm-links a:hover{color:var(--pm-blue);border-color:var(--pm-blue);background:var(--pm-soft)}
.pm-workbench{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);border:1px solid var(--pm-line);border-radius:1.3rem;overflow:hidden;background:var(--pm-paper);box-shadow:0 10px 30px #143e7910}.pm-form{padding:1.5rem}.pm-results{padding:1.5rem;background:var(--pm-soft);border-inline-start:1px solid var(--pm-line)}.pm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}.pm-field{display:flex;flex-direction:column;gap:.35rem}.pm-field label,.pm-metal legend{font-size:.84rem;font-weight:700;line-height:1.5}.pm-field input,.pm-field select{width:100%;min-height:2.9rem;padding:.6rem .7rem;border:1px solid var(--pm-line);border-radius:.65rem;background:var(--pm-paper);color:var(--pm-ink);font:inherit;font-size:.95rem}.pm-field input{font-variant-numeric:tabular-nums;direction:ltr;text-align:start}.pm-field :is(input,select):focus-visible,.precious-metals button:focus-visible,.pm-links a:focus-visible{outline:2px solid var(--pm-blue);outline-offset:3px}.pm-field input[aria-invalid=true]{border-color:#c63737}.precious-metals button{font-family:inherit;cursor:pointer}.precious-metals button:disabled{opacity:.6;cursor:wait}.pm-metal{padding:0;margin:0 0 1rem;border:0}.pm-metal legend{margin-bottom:.4rem}.pm-metal>div{display:flex;gap:.4rem;padding:.25rem;background:var(--pm-soft);border:1px solid var(--pm-line);border-radius:.8rem}.pm-metal button{flex:1;border:0;background:transparent;color:var(--pm-muted);border-radius:.55rem;padding:.5rem;font-size:.95rem;font-weight:700}.pm-metal button[aria-pressed=true]{background:var(--pm-blue);color:white}
.pm-hint,.pm-note{font-size:.77rem;color:var(--pm-muted);line-height:1.8;margin:.5rem 0 .85rem}.pm-price-box{margin:1rem 0;padding:1rem;border:1px solid var(--pm-line);border-radius:.85rem;background:var(--pm-soft)}.pm-icon{width:1.15rem;height:1.15rem;flex-shrink:0}.pm-fetch,.pm-submit,.pm-vat-detect{display:flex;align-items:center;justify-content:center;gap:.45rem;border:1px solid var(--pm-line);border-radius:.65rem;min-height:2.75rem;padding:.55rem .85rem;font-size:.87rem;font-weight:700;line-height:1.5}:is(.pm-fetch,.pm-vat-detect){background:var(--pm-paper);color:var(--pm-blue)}.pm-price-status{margin-bottom:0;white-space:pre-line;overflow-wrap:anywhere}.pm-hawl{display:flex;align-items:flex-start;gap:.5rem;font-size:.86rem;cursor:pointer}.pm-hawl input{width:1rem;height:1rem;flex-shrink:0;margin-top:.3rem;accent-color:var(--pm-blue)}.pm-quote{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--pm-line)}.pm-submit{width:100%;background:var(--pm-blue);color:#fff;border-color:var(--pm-blue)}.pm-error{color:#ad2424;font-size:.8rem;margin:.7rem 0;line-height:1.6}.pm-error:empty{margin:.8rem 0}
.pm-result-heading{display:flex;align-items:center;gap:.6rem;margin-bottom:1rem}.pm-result-heading>span{display:flex;padding:.6rem;background:var(--pm-paper);border:1px solid var(--pm-line);border-radius:.7rem;color:var(--pm-blue)}.pm-result-heading h2{font-size:1.05rem;font-weight:800;margin:0}.pm-prompt{color:var(--pm-muted);font-size:.9rem;padding:1rem 0 1.5rem}.pm-hero{border-radius:.85rem;padding:1.25rem;background:#1b4fa7;color:white;margin-bottom:.8rem}.pm-hero small{font-size:.8rem}.pm-hero output{display:block;font-size:clamp(1.25rem,3vw,1.9rem);font-weight:800;overflow-wrap:anywhere;margin:.35rem 0;font-variant-numeric:tabular-nums}.pm-hero p{font-size:.83rem;margin:0;line-height:1.7}.pm-hero[data-higher=true]{background:#874715}.pm-ledger{margin:0}.pm-ledger>div{display:flex;justify-content:space-between;align-items:baseline;gap:.8rem;border-bottom:1px solid var(--pm-line);padding:.7rem 0;font-size:.83rem}.pm-ledger dt{color:var(--pm-muted)}.pm-ledger dd{margin:0;flex-shrink:0;max-width:60%;text-align:end;overflow-wrap:anywhere;font-weight:700;font-variant-numeric:tabular-nums}.pm-note{margin:1rem 0 0}.pm-sources{margin-top:1rem;font-size:.78rem;color:var(--pm-muted)}.pm-sources summary{cursor:pointer;font-weight:700;padding:.4rem 0}.pm-sources a{color:var(--pm-blue);text-underline-offset:.2rem}.pm-sources p{margin:.5rem 0}
html[data-theme=dark] .precious-metals{--pm-ink:#e1ebfa;--pm-muted:#adc1dd;--pm-blue:#3877e5;--pm-line:#334c6b;--pm-paper:#15263d;--pm-soft:#1b304c}html[data-theme=dark] .pm-links a[aria-current],html[data-theme=dark] .pm-fetch,html[data-theme=dark] .pm-vat-detect,html[data-theme=dark] .pm-sources a,html[data-theme=dark] .pm-result-heading>span{color:#9bc2ff}html[data-theme=dark] .pm-error{color:#ffaaa4}html[data-theme=dark] .pm-hero{background:#174381}html[data-theme=dark] .pm-hero[data-higher=true]{background:#694118}
.pm-differences{padding:.9rem;border:1px solid var(--pm-line);border-radius:.85rem;background:var(--pm-paper);margin-bottom:.6rem}.pm-differences>p{font-size:.83rem;font-weight:700;margin:0 0 .7rem}.pm-differences dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin:0}.pm-differences dt{font-size:.75rem;line-height:1.6}.pm-differences dd{margin:.25rem 0;font-size:1.05rem;font-weight:800;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.pm-differences small{font-size:.75rem}.pm-differences[data-direction=more]{background:#fff4e5;border-color:#e9cba5;color:#804116}.pm-differences[data-direction=less]{background:#edf9f5;border-color:#b7dcd1;color:#155e4b}html[data-theme=dark] .pm-differences[data-direction=more]{background:#3b2b1c;border-color:#735533;color:#ffcf96}html[data-theme=dark] .pm-differences[data-direction=less]{background:#173b33;border-color:#326a59;color:#a2e1cc}
.pm-making-comparison{margin-top:1rem;padding:.85rem;border:1px solid var(--pm-line);border-radius:.85rem;background:var(--pm-paper)}.pm-making-comparison h3{margin:0 0 .6rem;font-size:.9rem;font-weight:800}.precious-metals .pm-making-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:.76rem;margin:0;color:var(--pm-ink);background:transparent}.precious-metals .pm-making-table :is(th,td){padding:.5rem .25rem;border:0;border-bottom:1px solid var(--pm-line);background:transparent;color:inherit;text-align:end;overflow-wrap:anywhere;vertical-align:top;font-variant-numeric:tabular-nums;line-height:1.6}.precious-metals .pm-making-table th:first-child{width:40%;text-align:start}.precious-metals .pm-making-table thead th{font-weight:600;color:var(--pm-muted);font-size:.73rem}.precious-metals .pm-making-table tbody tr:last-child{font-weight:800}.pm-making-comparison .pm-hint{font-size:.73rem;margin:.6rem 0 0}.pm-making-warning{font-size:.75rem;line-height:1.8;color:#97430d;margin:.6rem 0 0}html[data-theme=dark] .pm-making-warning{color:#ffcf96}
.pm-price-basis{margin-bottom:.85rem}.pm-quote>.pm-field:last-child{grid-column:1/-1}.pm-karat-price{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:.3rem .8rem;margin-top:.85rem;padding:.75rem .85rem;border:1px solid var(--pm-line);border-radius:.65rem;background:var(--pm-paper)}.pm-karat-price>span{font-size:.83rem;font-weight:700}.pm-karat-price output{font-size:1.1rem;font-weight:800;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.pm-karat-price small{flex-basis:100%;font-size:.73rem;color:var(--pm-muted);line-height:1.7}
.precious-metals .pm-field{display:grid;grid-template-rows:1fr auto}.precious-metals .pm-field :is(input,select){height:2.9rem;min-height:2.9rem;padding:.6rem .7rem;border:1px solid var(--pm-line);border-radius:.65rem;background:var(--pm-paper);color:var(--pm-ink);font:inherit;font-size:.95rem;box-shadow:none;transition:none}html[data-theme=dark] .tool-card .precious-metals .pm-field :is(input,select){background:var(--pm-paper)!important;color:var(--pm-ink)!important;border-color:var(--pm-line)!important}.precious-metals .pm-field input[aria-invalid=true]{border-color:#c63737!important}
@media(max-width:700px){.pm-workbench{grid-template-columns:minmax(0,1fr);border-radius:1rem}.pm-form,.pm-results{padding:1rem}.pm-results{border-inline-start:0;border-top:1px solid var(--pm-line)}.pm-price-box{padding:.8rem}.pm-links a{font-size:.74rem}.pm-hero output{font-size:1.5rem}}
@media(max-width:360px){.pm-grid{gap:.6rem}.pm-form,.pm-results{padding:.8rem}.pm-field label{font-size:.77rem}.pm-field input,.pm-field select{padding:.5rem;font-size:.85rem}.pm-ledger>div{font-size:.78rem}.pm-ledger dd{max-width:55%}}

.pm-making-percent{display:block;margin-top:.25rem;font-size:.72rem;font-weight:500;line-height:1.6;color:var(--pm-muted)}
.pm-quote-tax{grid-column:1/-1}.precious-metals .pm-field select:disabled{opacity:.55;cursor:not-allowed}
.pm-quote-conversion{grid-column:1/-1;margin:-.35rem 0 0;font-size:.73rem;line-height:1.7;color:var(--pm-muted);overflow-wrap:anywhere}.pm-quote-conversion:empty{display:none}
.pm-review{margin:1rem 0;padding:.85rem;border:1px solid var(--pm-line);border-radius:.75rem;background:var(--pm-soft)}.pm-review h4{margin:0 0 .7rem;font-size:.82rem;font-weight:800;line-height:1.6}.pm-review dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin:0}.pm-review dt{font-size:.72rem;color:var(--pm-muted);line-height:1.6}.pm-review dd{margin:.2rem 0 0;font-size:.9rem;font-weight:700;line-height:1.6;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.pm-review dd small{display:block;margin-top:.15rem;font-size:.7rem;font-weight:400;line-height:1.6;color:var(--pm-muted)}
.pm-review dt{display:flex;align-items:baseline;justify-content:space-between;gap:.3rem}.pm-review-edit{flex-shrink:0;min-width:2rem;min-height:2rem;margin-top:-.3rem;padding:.15rem .25rem;border:0;border-radius:.35rem;background:transparent;color:var(--pm-blue);font:inherit;font-size:.67rem;font-weight:700;line-height:1.6}.pm-review-edit:hover{background:var(--pm-paper);text-decoration:underline;text-underline-offset:.2rem}html[data-theme=dark] .pm-review-edit{color:#9bc2ff}
.pm-return-summary{display:block;width:100%;min-height:2.75rem;margin-top:1rem;padding:.55rem .85rem;border:1px solid var(--pm-blue);border-radius:.65rem;background:var(--pm-soft);color:var(--pm-blue);font:inherit;font-size:.85rem;font-weight:700;line-height:1.6}html[data-theme=dark] .pm-return-summary{color:#9bc2ff;border-color:#9bc2ff}
.pm-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem;padding:0;margin:0 0 1.4rem;list-style:none}.pm-steps button{display:flex;align-items:center;gap:.4rem;width:100%;height:100%;padding:.6rem .4rem;border:0;border-bottom:2px solid var(--pm-line);background:transparent;color:var(--pm-muted);font:inherit;font-size:.76rem;font-weight:700;text-align:start;line-height:1.5;overflow-wrap:anywhere}.pm-steps button>span{display:grid;place-items:center;flex-shrink:0;width:1.5rem;height:1.5rem;border-radius:50%;background:var(--pm-soft);font-size:.75rem}.pm-steps button[aria-current=step]{color:var(--pm-blue);border-color:var(--pm-blue)}.pm-steps button[aria-current=step]>span{background:var(--pm-blue);color:white}.pm-step h3{margin:0 0 .35rem;font-size:1.12rem;line-height:1.6;font-weight:800}.pm-step>.pm-hint:first-of-type{margin-bottom:1rem}.pm-step .pm-quote{margin:0;padding:0;border:0}.pm-step .pm-quote>.pm-field:last-child{grid-column:1/-1}.pm-more{margin:1rem 0 0;border-top:1px solid var(--pm-line);font-size:.8rem}.pm-more summary{padding:.65rem 0;color:var(--pm-muted);font-weight:700;cursor:pointer;line-height:1.7}.pm-more>.pm-field{margin-bottom:.8rem}.pm-more .pm-vat-source{display:inline-block;margin-top:.6rem}.pm-step-actions{display:flex;align-items:center;gap:.6rem;margin-top:1rem}.pm-next,.pm-back{display:flex;align-items:center;justify-content:center;min-height:2.9rem;padding:.6rem 1rem;border:1px solid var(--pm-line);border-radius:.65rem;font:inherit;font-size:.87rem;font-weight:700;line-height:1.5}.pm-next{flex:1;background:var(--pm-blue);border-color:var(--pm-blue);color:white}.pm-back{background:var(--pm-paper);color:var(--pm-muted)}.pm-step-actions .pm-submit{flex:1;width:auto;min-height:2.9rem}.pm-step .pm-price-box{margin-bottom:0}html[data-theme=dark] .pm-steps button[aria-current=step]{color:#9bc2ff}
@media(max-width:360px){.pm-steps{gap:.2rem}.pm-steps button{font-size:.69rem;gap:.25rem;padding:.5rem .1rem}.pm-step h3{font-size:1rem}}
.pm-vat{padding:1rem;margin:1rem 0 0;border:1px solid var(--pm-line);border-radius:.85rem;background:var(--pm-soft)}.pm-vat legend{font-size:.9rem;font-weight:800;padding:0 .35rem}.pm-vat .pm-hawl{margin:0 0 .85rem}.pm-vat-detect{margin-top:.8rem}.pm-vat-source{font-size:.76rem;color:var(--pm-blue);text-underline-offset:.2rem}.pm-vat-status:empty{display:none}.pm-vat .pm-hint:last-child{margin-bottom:0}.precious-metals .pm-field input:disabled{opacity:.55;cursor:not-allowed}html[data-theme=dark] .pm-vat-source{color:#9bc2ff}
