.mosfet-calculator{font-family:var(--font-mono);color:var(--foreground);width:100%;max-width:1200px;margin:0 auto;padding:1rem}.mosfet-calculator .mosfet-container{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1rem}@media (min-width:768px){.mosfet-calculator .mosfet-container{flex-direction:row}}.mosfet-calculator .mosfet-left-section,.mosfet-calculator .mosfet-right-section{flex:1}.mosfet-calculator .mosfet-diagram{position:relative;margin-top:.5rem;font-family:var(--font-mono);white-space:pre;background-color:rgba(0,0,0,.5);padding:1rem;border-radius:8px;border:1px solid #333}.mosfet-calculator .image-container{position:relative;width:100%;padding-top:100%}.mosfet-calculator .scaled-image{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:contain}.mosfet-calculator .mosfet-inputs{margin-top:.5rem}.mosfet-calculator .mosfet-inputs div{margin-bottom:.5rem}.mosfet-calculator .mosfet-label{display:block;margin-bottom:.25rem;color:var(--foreground)}.mosfet-calculator .mosfet-button,.mosfet-calculator .mosfet-input,.mosfet-calculator .mosfet-select{width:100%;padding:.5rem;box-sizing:border-box;background-color:rgba(0,0,0,.3);border:1px solid #333;color:var(--foreground);font-family:var(--font-mono);border-radius:4px}.mosfet-calculator select{background-color:var(--accent-purple);color:#18102b;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .75rem center;background-size:12px;padding-right:2rem}.mosfet-calculator select option{background-color:#18102b;color:#ededed}.mosfet-calculator .mosfet-input:focus,.mosfet-calculator .mosfet-select:focus{border-color:var(--accent-purple);outline:none;box-shadow:0 0 0 2px var(--accent-purple)}.mosfet-calculator .mosfet-button{background-color:transparent;border:1px solid var(--accent-primary);color:var(--accent-primary);cursor:pointer;margin-top:.5rem}.mosfet-calculator .mosfet-button:hover{background-color:var(--accent-primary);color:#000;box-shadow:0 0 10px rgba(0,255,157,.5)}.mosfet-calculator .description-container{width:100%;padding:1rem;background-color:rgba(0,0,0,.5);border-radius:8px;border:1px solid #333;margin-top:.75rem}.mosfet-calculator .mosfet-output{padding:.75rem;border-radius:4px;font-family:var(--font-mono);margin-bottom:.75rem;text-align:center}.mosfet-calculator .mosfet-output.conducting{background-color:rgba(0,255,157,.1);color:var(--accent-primary);border:1px solid var(--accent-primary)}.mosfet-calculator .mosfet-output.not-conducting{background-color:rgba(255,0,0,.1);color:#ff5555;border:1px solid #ff5555}.mosfet-calculator .overlay{position:absolute;font-weight:700;color:var(--foreground)}.mosfet-calculator .conducting-status{top:10px;left:50%;transform:translateX(-50%);padding:5px 10px;border-radius:4px;text-align:center}.mosfet-calculator .focused{border:2px dashed var(--accent-primary);min-height:2ch;min-width:2ch}.mosfet-calculator .nchannel-vcc{color:#ff5555;font-weight:700;top:5%;left:50%}.mosfet-calculator .n-channel_gate_green{top:36%;left:7%;font-weight:700}.mosfet-calculator .n-channel_drain_grey{top:17%;left:84%;font-weight:700}.mosfet-calculator .n-channel_source_orange{top:50%;left:88%;font-weight:700}.mosfet-calculator .p-channel_gate_green{top:36%;left:7%;font-weight:700}.mosfet-calculator .p-channel_drain_grey{top:50%;left:88%;font-weight:700}.mosfet-calculator .p-channel_source_orange{top:17%;left:84%;font-weight:700}.mosfet-calculator .type-selector{display:flex;gap:.5rem;margin-bottom:.5rem}.mosfet-calculator .type-button{flex:1;padding:.5rem;background-color:transparent;border:1px solid #333;color:var(--foreground);cursor:pointer;transition:all .2s ease}.mosfet-calculator .type-button.active{background-color:var(--accent-primary);color:#000;border-color:var(--accent-primary)}.mosfet-calculator .type-button:hover:not(.active){border-color:var(--accent-primary)}.mosfet-calculator .results-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem;margin-top:.75rem}.mosfet-calculator .result-item{background-color:rgba(0,0,0,.3);padding:.5rem;border-radius:4px}.mosfet-calculator .result-label{font-size:.8rem;color:#888;margin-bottom:.25rem}.mosfet-calculator .result-value{font-size:1.1rem;color:var(--accent-primary)}