.resistor-stage{max-width:640px;margin:12px auto 10px}.resistor-stage svg{width:100%;height:auto;display:block;overflow:visible}.svg-band{cursor:pointer}.svg-band rect:last-child{transition:filter .15s,opacity .15s}.svg-band:hover rect:last-child{filter:brightness(1.1)saturate(1.08)}.svg-band:focus{outline:none}.svg-band:focus rect:first-child{fill:#1474e821;stroke:#1474e8;stroke-width:3px}.band-readouts{gap:9px;max-width:1020px;margin:-12px auto 30px;display:grid}.band-readouts.band-count-4{grid-template-columns:repeat(4,minmax(0,1fr));max-width:840px}.band-readouts.band-count-5{grid-template-columns:repeat(5,minmax(0,1fr))}.band-readouts.band-count-6{grid-template-columns:repeat(6,minmax(0,1fr))}.band-readout{color:#112448;text-align:left;background:0 0;border:1px solid #0000;border-radius:12px;align-items:center;gap:10px;min-width:0;min-height:62px;padding:8px 10px;transition:border-color .15s,background-color .15s;display:flex}.band-readout:hover{background:#f3f9ff;border-color:#bdd6ee}.band-readout>span:nth-child(2){flex:1;min-width:0}.band-readout>svg{color:#55789e;width:15px}.band-swatch{border:1px solid #0000003d;border-radius:5px;flex:none;width:11px;height:39px;box-shadow:inset 0 1px #ffffff8c}.band-readout small,.band-readout strong{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.band-readout small{color:#5a7596;font-size:.72rem;font-weight:700}.band-readout strong{margin-top:3px;font-size:.96rem}.band-popover{border-color:#a9c8e5;border-radius:18px;width:min(390px,100vw - 28px);padding:18px;box-shadow:0 18px 55px #11375e33}.color-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;display:grid}.color-choice{text-align:left;border:2px solid #0000001f;border-radius:11px;flex-direction:column;justify-content:center;align-items:flex-start;min-height:67px;padding:9px 10px;transition:transform .12s,box-shadow .12s;display:flex;position:relative;overflow:hidden;box-shadow:inset 0 1px #ffffff52}.color-choice:hover{transform:translateY(-1px);box-shadow:0 6px 14px #1021472e,inset 0 1px #ffffff52}.color-choice[data-selected=true]{border-color:#0b2f5a;box-shadow:0 0 0 2px #fff,0 0 0 5px #1474e8}.color-value{font-size:.88rem;font-weight:850}.color-name{opacity:.86;margin-top:2px;font-size:.7rem;font-weight:700}.instrument-rail{background:linear-gradient(#f7fbff,#edf7ff);border:1px solid #b8d5ef;border-radius:18px;grid-template-columns:1.45fr .8fr 1fr;display:grid;overflow:hidden}.instrument-rail.has-tcr{grid-template-columns:1.35fr .75fr .9fr 1fr}.readout-block{border-left:1px solid #c8ddf0;align-items:center;gap:14px;min-width:0;min-height:126px;padding:20px 22px;display:flex}.readout-block:first-child{border-left:0}.readout-icon{color:#1474e8;background:#e0efff;border-radius:13px;flex:none;place-items:center;width:46px;height:46px;display:grid}.readout-icon svg{width:27px;height:27px}.control-content{flex:1;min-width:0}.control-content label,.control-label{color:#42658c;align-items:center;gap:4px;font-size:.88rem;font-weight:750;display:inline-flex}.resistance-entry{grid-template-columns:minmax(90px,1fr) 84px;gap:7px;margin-top:7px;display:grid}.resistance-entry input{color:#102147;background:#fff;border-width:2px;border-color:#1474e8;border-radius:11px;height:48px;padding-inline:14px;font-size:1.23rem;font-weight:800}.resistance-entry button{color:#102147;background:#fff;border-color:#a9c8e5;border-radius:11px;width:84px;height:48px;font-size:1rem;font-weight:800}.field-message{color:#617b9a;min-height:1.05rem;margin:5px 0 0;font-size:.72rem;line-height:1.35}.field-message.error{color:#b51f34;font-weight:700}.field-message.notice{color:#8a5700;font-weight:700}@media (max-width:1100px){.instrument-rail,.instrument-rail.has-tcr{grid-template-columns:repeat(2,minmax(0,1fr))}.readout-block:nth-child(odd){border-left:0}.readout-block:nth-child(n+3){border-top:1px solid #c8ddf0}.band-readouts.band-count-6,.band-readouts.band-count-5{grid-template-columns:repeat(3,minmax(0,1fr));max-width:760px}}@media (max-width:720px){.resistor-stage{margin-top:0}.band-readouts,.band-readouts.band-count-4,.band-readouts.band-count-5,.band-readouts.band-count-6{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none;margin-top:-2px}.instrument-rail,.instrument-rail.has-tcr{grid-template-columns:1fr}.readout-block,.readout-block:nth-child(odd){border-top:1px solid #c8ddf0;border-left:0;min-height:96px;padding:15px 16px}.readout-block:first-child{border-top:0}.readout-icon{width:42px;height:42px}}@media (max-width:430px){.band-readouts,.band-readouts.band-count-4,.band-readouts.band-count-5,.band-readouts.band-count-6{grid-template-columns:1fr}.band-readout{justify-content:flex-start;padding-inline:16px}.color-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.readout-icon{display:none}}.smd-mode{width:min(500px,100%);margin-bottom:8px}.smd-mode button{text-transform:none}.smd-detection{text-align:center;color:#4b6b92;min-height:24px;margin:0;font-size:.875rem}.smd-marking{background:0 0;border:0;width:min(500px,100%);margin:12px auto 20px;padding:0;display:block}.smd-marking svg{width:100%;height:auto;display:block}.smd-fields{background:#f3f8fe;border:1px solid #c8ddf0;border-radius:18px;grid-template-columns:1fr 1fr;gap:32px;padding:24px;display:grid}.smd-field{min-width:0}.smd-field label{margin-bottom:10px;font-size:1rem;font-weight:750;display:block}.smd-field input{background:#fff;min-width:0;height:56px;font-size:1.45rem;font-weight:650}.smd-value-row{gap:8px;display:flex}.smd-value-row input{flex:1;width:0}.smd-value-row [data-slot=select-trigger]{background:#fff;min-width:86px;height:56px;font-size:1.1rem}.smd-message{color:#4b6b92;align-items:baseline;gap:6px;margin:8px 0 0;font-size:.875rem;line-height:1.5;display:flex}.smd-message svg{flex-shrink:0}.smd-message.error{color:#b11e33}.smd-help-link{color:#075fc8;text-underline-offset:3px;padding:8px 0;font-size:.875rem;font-weight:700;text-decoration:underline}.smd-multipliers{width:min(320px,100vw - 24px);max-height:var(--radix-popover-content-available-height);overflow:auto}.smd-multipliers h2{margin-bottom:8px;font-weight:800}.smd-multipliers p{margin-top:10px;font-size:.875rem}.smd-table{border-collapse:collapse;width:100%;margin:12px 0;font-size:.9rem}.smd-table th,.smd-table td{text-align:left;border-bottom:1px solid #d7e5f2;padding:7px 12px}.smd-table thead{background:#eaf3fb}.smd-result p{color:#34587f;overflow-wrap:anywhere;margin:6px 0 0;font-size:1rem}.smd-result .smd-nearest{color:#795000}.smd-cap-fields.has-tolerance{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(180px,.62fr);gap:20px}.smd-cap-tolerance [data-slot=select-trigger]{background:#fff;width:100%;height:56px;font-size:1rem}.smd-cap-eia198-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.e96-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-top:12px;display:grid}.e96-grid>div{background:#edf5fd;justify-content:space-between;padding:7px;font-size:.875rem;display:flex}.e96-grid span{color:#557397}@media (max-width:900px){.smd-cap-fields.has-tolerance{grid-template-columns:1fr 1fr}.smd-cap-tolerance{grid-column:1/-1}}@media (max-width:720px){.smd-fields,.smd-cap-fields.has-tolerance{grid-template-columns:1fr;gap:24px;padding:16px}.smd-cap-tolerance{grid-column:auto}.smd-marking{margin:8px auto}.smd-mode button,.smd-detection{font-size:.875rem}.e96-grid,.smd-cap-eia198-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.smd-result{padding:16px}.smd-result strong{font-size:1.65rem}}.code-calculator-page .heading-actions{gap:var(--space-sm)}.code-calculator-page .heading-actions .code-heading-action{gap:var(--space-sm);color:#075fc8;width:auto;height:auto;min-height:32px;box-shadow:none;background:0 0;border:0;flex:none;padding:4px 2px;font-size:.82rem;font-weight:800;text-decoration:none}.code-calculator-page .heading-actions .code-heading-action:hover{color:#004fae;text-underline-offset:3px;background:#edf6ff;border:0;text-decoration:underline}.code-calculator-page .heading-actions .code-heading-action:focus-visible{outline-offset:3px;border-radius:6px;outline:2px solid #1474e8}.code-calculator-page .heading-actions .code-heading-action svg{flex:0 0 16px;width:16px;height:16px}.code-calculator-page .code-calculator-workbench{padding:var(--space-xl);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;background:#f8fbff;border-color:#bdd6ee;border-radius:20px}.code-calculator-toolbar{align-items:center;gap:var(--space-md);margin-bottom:var(--space-lg);background:linear-gradient(#f8fbff,#edf7ff);border:1px solid #bdd6ee;border-radius:15px;padding:10px 12px;display:flex}.code-calculator-toolbar-label{color:#173a67;flex:none;font-size:.82rem;font-weight:850}.code-calculator-segments{background:#fff;border:1px solid #b8d3ea;border-radius:9px;grid-template-columns:repeat(3,minmax(0,1fr));width:min(100%,520px);min-width:0;display:grid;overflow:hidden}.code-calculator-segments button{color:#3d5f82;white-space:nowrap;min-width:0;min-height:38px;box-shadow:none;background:#fff;border:0;border-radius:0;padding:0 14px;font-size:.82rem;font-weight:800;line-height:1.15}.code-calculator-segments button+button{border-left:1px solid #c9dcef}.code-calculator-segments button:hover{color:#075fc8;background:#edf6ff}.code-calculator-segments button.is-active{color:#fff;box-shadow:none;background:#1474e8}.code-calculator-segments button:focus-visible{z-index:1;outline-offset:-3px;outline:3px solid #1474e859;position:relative}.color-code-page .code-calculator-segments{width:min(100%,430px)}.code-calculator-page .instrument-rail{background:#f5faff;border-radius:14px}.code-calculator-page .readout-block{min-height:92px;padding:var(--space-lg);gap:0}.code-calculator-page .control-content label,.code-calculator-page .control-label,.code-calculator-page .smd-field label{color:#42658c;font-size:.82rem;font-weight:825}.code-calculator-page .resistance-entry{margin-top:var(--space-sm);gap:var(--space-sm);grid-template-columns:minmax(90px,1fr) 76px}.code-calculator-page .resistance-entry input,.code-calculator-page .resistance-entry button,.code-calculator-page .value-selector,.code-calculator-page .smd-field input,.code-calculator-page .smd-value-row [data-slot=select-trigger],.code-calculator-page .smd-cap-tolerance [data-slot=select-trigger]{color:#102147;height:40px;min-height:40px;box-shadow:none;background:#fff;border:1px solid #a9c8e5;border-radius:9px;padding-inline:12px;font-size:.875rem;font-weight:700}.code-calculator-page .resistance-entry input:focus-visible{outline-offset:1px;border-color:#1474e8;outline:3px solid #1474e833}.code-calculator-page .resistance-entry button:focus-visible{outline-offset:1px;border-color:#1474e8;outline:3px solid #1474e833}.code-calculator-page .value-selector:focus-visible{outline-offset:1px;border-color:#1474e8;outline:3px solid #1474e833}.code-calculator-page .smd-field input:focus-visible{outline-offset:1px;border-color:#1474e8;outline:3px solid #1474e833}.code-calculator-page .smd-value-row [data-slot=select-trigger]:focus-visible{outline-offset:1px;border-color:#1474e8;outline:3px solid #1474e833}.code-calculator-page .smd-cap-tolerance [data-slot=select-trigger]:focus-visible{outline-offset:1px;border-color:#1474e8;outline:3px solid #1474e833}.code-calculator-page .resistance-entry button{width:76px}.code-calculator-page .value-selector{margin-top:var(--space-sm)}.code-calculator-page .value-selector svg{width:14px;height:14px}.code-calculator-page .field-message,.code-calculator-page .smd-message{margin-top:var(--space-xs);color:#4d6988;font-size:.75rem;font-weight:400;line-height:1.45}.code-calculator-page .info-dot{width:32px;height:32px}.code-calculator-page .info-dot svg{width:15px;height:15px}.code-calculator-page .range-value{margin-top:var(--space-sm);letter-spacing:-.01em;font-size:.96rem;font-weight:750}.code-calculator-page .smd-detection{color:#4d6988;min-height:18px;margin:-8px 0 0;font-size:.74rem;line-height:1.45}.code-calculator-page .smd-marking{margin:var(--space-md) auto var(--space-lg)}.code-calculator-page .smd-fields{gap:var(--space-lg);padding:var(--space-lg);background:#f5faff;border-radius:14px}.code-calculator-page .smd-field label{margin-bottom:var(--space-sm)}.code-calculator-page .smd-field input{min-width:0}.code-calculator-page #smd-code,.code-calculator-page #smd-cap-code{letter-spacing:.12em;font-family:ui-monospace,monospace}.code-calculator-page .smd-value-row{gap:var(--space-sm)}.code-calculator-page .smd-value-row [data-slot=select-trigger]{min-width:76px}.code-calculator-page .smd-cap-fields.has-tolerance{gap:var(--space-lg)}.code-calculator-page .smd-help-link{font-size:.78rem}.code-calculator-page .code-calculator-result{margin-top:var(--space-md);padding:var(--space-md) var(--space-lg);color:#102147;background:#fff;border:1px solid #bdd6ee;border-radius:13px}.code-calculator-page .code-calculator-result span{color:#4d6988;letter-spacing:0;text-transform:none;font-size:.76rem;font-weight:750}.code-calculator-page .code-calculator-result strong{margin-top:var(--space-xs);color:#102147;font-size:1.18rem;font-weight:850}.code-calculator-page .code-calculator-result p{margin:var(--space-xs) 0 0;color:#4d6988;font-size:.76rem;line-height:1.45}.code-calculator-page .code-calculator-result .smd-nearest{color:#795000}.code-calculator-page .code-calculator-result button{color:#075fc8;gap:6px;min-height:32px;font-size:.78rem;font-weight:800}.code-calculator-page .code-calculator-result button:hover{color:#004fae;background:#edf6ff}.code-calculator-page .code-calculator-result button svg{width:16px;height:16px}@media (max-width:720px){.code-calculator-page .heading-actions{width:auto}.code-calculator-page .code-calculator-workbench{padding:var(--space-lg);border-radius:16px}.code-calculator-toolbar{align-items:stretch;gap:var(--space-sm);flex-direction:column}.code-calculator-segments{width:100%}.code-calculator-segments button{padding-inline:8px;font-size:.78rem}.code-calculator-page .smd-fields,.code-calculator-page .smd-cap-fields.has-tolerance{gap:var(--space-lg);padding:var(--space-lg);grid-template-columns:1fr}.code-calculator-page .smd-cap-tolerance{grid-column:auto}.code-calculator-page .code-calculator-result{padding:var(--space-md);align-items:flex-start}.code-calculator-page .code-calculator-result strong{white-space:normal}}@media (max-width:430px){.code-calculator-page .code-calculator-workbench{padding:var(--space-md)}.code-calculator-segments button{font-size:.72rem}.code-calculator-page .code-calculator-result{gap:var(--space-sm)}}.code-calculator-segments button.is-active{background:#075fc8}.code-calculator-segments[aria-label="Capacitor code format"]{grid-template-columns:1fr 1.55fr 1fr}.code-calculator-segments[aria-label="Capacitor code format"] button{white-space:normal;min-height:44px;padding:7px 6px;line-height:1.3}.code-calculator-segments button:focus-visible{outline-offset:-3px;outline:3px solid #102147;box-shadow:inset 0 0 0 5px #fff}
