:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5f5f5;
  background: #111111;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; padding: 24px 16px; }
a { color: inherit; }
.calculator { max-width: 560px; margin: 0 auto; }
.brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { display: block; width: 100px; height: auto; }
.brand span { color: #aaa; font-size: 12px; }
.brand a { text-decoration: none; color: #eee; }
.brand a:hover { text-decoration: underline; }
h1 { margin: 16px 0; font-size: 24px; letter-spacing: -.7px; font-weight: 650; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { min-width: 0; }
.field-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 24px; margin-bottom: 9px; }
label { display: block; font-size: 13px; color: #ccc; }
.input-wrap { display: flex; gap: 8px; align-items: center; padding: 0 12px; background: #1b1b1b; border: 1px solid #444; border-radius: 8px; }
.input-wrap:focus-within { border-color: #e8bf42; outline: 1px solid #e8bf42; }
.input-wrap span { color: #aaa; font-size: 12px; flex-shrink: 0; }
input { width: 100%; min-width: 0; height: 48px; padding: 0; border: 0; outline: 0; color: #fff; background: transparent; font: inherit; font-size: 16px; font-variant-numeric: tabular-nums; }
input::placeholder { color: #929292; }
input[aria-invalid="true"] { color: #ffb6a9; }
.field-error { color: #ffb6a9; font-size: 12px; line-height: 1.4; margin: 8px 0 0; }
.price-status { color: #aaa; font-size: 12px; line-height: 1.5; margin: 10px 0 18px; }
.result { padding: 20px; border-radius: 10px; background: #e8bf42; color: #29210b; }
.result-label { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
output { display: block; margin-top: 10px; font-size: clamp(26px, 7.5vw, 46px); font-weight: 650; letter-spacing: -1.5px; line-height: 1.25; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
button, .open-site { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; margin-top: 16px; border: 1px solid #555; border-radius: 8px; background: #222; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
button:hover:not(:disabled), .open-site[href]:hover { background: #303030; border-color: #e8bf42; }
button:disabled, .open-site[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.current-price { width: auto; flex-shrink: 0; min-height: 24px; margin: 0; padding: 3px 6px; border-color: #66552b; border-radius: 5px; font-size: 11px; font-weight: 500; color: #e8bf42; }
a:focus-visible, button:focus-visible { outline: 2px solid #e8bf42; outline-offset: 4px; }
.note { color: #aaa; font-size: 11px; line-height: 1.6; text-align: center; margin: 14px 0 0; }
@media (max-width: 359px) {
  body { padding: 12px; }
  .fields { grid-template-columns: 1fr; gap: 10px; }
  .result { padding: 16px; }
  h1 { font-size: 22px; }
}
