:root{font-family:Inter,system-ui,-apple-system,sans-serif;color:#192e35;background:#f5f7f4;line-height:1.55}*{box-sizing:border-box}body{margin:0}header{background:#fff;border-bottom:1px solid #dce6df}.header-inner{max-width:1200px;margin:auto;padding:16px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{text-decoration:none;color:#173a38;font-weight:750;display:flex;align-items:center;gap:10px}.brand-mark{background:#173f39;color:white;border-radius:10px;padding:4px 12px;font-size:1.5rem}.language{display:flex;align-items:center;gap:8px;font-size:.85rem;font-weight:650}select,button{font:inherit;min-height:44px;border-radius:8px}select{max-width:100%;background:white;border:1px solid #b9c9c1;color:#1b3434;padding:9px}button{border:1px solid #174f42;background:#174f42;color:white;padding:10px 22px;font-weight:700;cursor:pointer}button:hover{background:#246958}button:focus-visible,select:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #dd9d35;outline-offset:2px}button.secondary{background:white;color:#174f42}button:disabled{opacity:.5;cursor:not-allowed}main{max-width:1200px;margin:auto;padding:42px 24px 70px}.hero{max-width:750px;margin-bottom:32px}.eyebrow{text-transform:uppercase;letter-spacing:.14em;color:#9a671f;font-weight:750;font-size:.75rem}h1{font-size:clamp(2rem,4vw,3.5rem);line-height:1.1;letter-spacing:-.035em;margin:12px 0 16px}h2{font-size:1.35rem;line-height:1.25}h3{font-size:1rem}.hero>p:last-child{font-size:1.1rem;color:#546b68}.layout{display:grid;grid-template-columns:1.35fr 1fr;gap:20px}.card{background:#fff;border:1px solid #dce6df;border-radius:16px;padding:28px;box-shadow:0 8px 30px #173f3909}fieldset{border:0;padding:0;margin:0}legend{font-weight:700;margin-bottom:10px}.mode{display:flex;gap:10px}.mode label{border:1px solid #cbdad2;border-radius:8px;padding:10px 14px;min-height:44px;cursor:pointer}.mode input{accent-color:#175b49}.resistor{display:flex;align-items:center;justify-content:center;margin:35px 0 0;direction:ltr}.wire{height:5px;width:48px;background:#9aa9a4}.body{height:66px;width:210px;max-width:70%;background:#e7d3a9;border-radius:28px;display:flex;justify-content:space-evenly;overflow:hidden;border:1px solid #d3be91}.stripe{width:12px;height:100%;background:#ede4ce}.stripe:last-child{margin-left:16px}.black{background:#222}.brown{background:#805032}.red{background:#c9483d}.orange{background:#e78532}.yellow{background:#e5c742}.green{background:#518b5b}.blue{background:#4e78ac}.violet{background:#8867a1}.grey{background:#929b99}.white{background:#fafafa}.gold{background:#c2a146}.silver{background:#aeb9b9}.direction{text-align:center;font-size:.8rem;color:#687d77;margin:8px}.bands{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:24px 0}.band-field{display:flex;flex-direction:column;gap:6px;font-size:.88rem;font-weight:700;min-width:0}.actions{display:flex;gap:10px;flex-wrap:wrap}.error{color:#ac342a;font-weight:650}.error:empty{display:none}.result-heading{display:flex;align-items:center;justify-content:space-between}.symbol{font-size:2rem;color:#c99a48}.nominal{font-size:clamp(1.8rem,3vw,2.6rem);font-weight:800;color:#175b49;overflow-wrap:anywhere;text-align:start}.muted{color:#6b7d77}.result-card #copy{margin-top:20px}.guide{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:36px;margin-top:58px;color:#425a54}.guide h2,.guide h3{color:#1d3731}.example{padding:16px;border-inline-start:4px solid #d9a34e;background:#fff8e9;border-radius:4px}footer{border-top:1px solid #dce6df;display:flex;justify-content:space-between;gap:20px;padding:24px max(24px,calc((100vw - 1152px)/2));color:#62766f;font-size:.9rem}a{color:#175b49}.privacy{max-width:760px;min-height:70vh}@media(max-width:800px){.layout{grid-template-columns:1fr}.guide{grid-template-columns:1fr 1fr}}@media(max-width:540px){.header-inner{align-items:flex-start;flex-direction:column;gap:12px;padding:14px 18px}.brand{font-size:.9rem}.language{width:100%;justify-content:space-between}main{padding:30px 16px 50px}.card{padding:20px}.guide{grid-template-columns:1fr;gap:10px;margin-top:35px}.bands{grid-template-columns:1fr}.wire{width:30px}footer{padding:20px 16px;flex-wrap:wrap}}
