.hub-global-nav{gap:12px}.hub-share-nav{display:flex;align-items:center;gap:7px;margin-left:auto;padding:7px 12px;border:1px solid #6d96b6;border-radius:9px;color:#eff7ff;background:#123651;text-decoration:none;font-size:13px;white-space:nowrap}.hub-share-nav:hover{background:#245777;color:#fff}.hub-share-nav .icon{width:17px;height:17px}.v8-stack{display:grid;gap:16px}.v8-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}.v8-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.v8-muted{color:#c8d9e6}.v8-table{width:100%;border-collapse:collapse}.v8-table th,.v8-table td{padding:10px;text-align:left;border-bottom:1px solid #48647c;vertical-align:top}.v8-table th{color:#f1f7fd;background:#203e57}.v8-table input,.v8-table select{min-width:85px;width:100%}.v8-scroll{overflow-x:auto}.v8-badge{display:inline-block;border:1px solid #63839f;background:#1b3952;color:#e9f4ff;padding:3px 9px;border-radius:999px;font-size:12px}.v8-page-line{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.v8-share-editor{padding:20px;border:1px solid #628caa;border-radius:12px;background:#102d45}.v8-empty{padding:25px;border:1px dashed #55718b;border-radius:12px}.v8-danger{color:#ffd4cf}.v8-choice-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;max-height:45vh;overflow:auto}.v8-choice{padding:10px;border:1px solid #53748d;border-radius:8px;display:flex;gap:8px;align-items:center}.v8-choice select{width:130px;margin-left:auto}.v8-choice input[type=checkbox]{width:auto}.v8-footer-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}pre.v8-formula{overflow:auto;background:#10293e;color:#e3f4ff;padding:14px;border-radius:10px;white-space:pre-wrap;overflow-wrap:anywhere}dialog.v8-dialog{width:min(750px,calc(100% - 24px));max-height:90vh;overflow:auto;background:#122d44;border:1px solid #6c91ab;color:#e9f3fc;border-radius:14px;padding:22px}dialog.v8-dialog::backdrop{background:#00101ccc}@media(max-width:600px){.hub-global-current{display:none}.hub-share-nav{font-size:12px}.v8-table td,.v8-table th{padding:8px}.v8-share-editor{padding:12px}}@media print{.hub-share-nav{display:none!important}}

.resistor-preview{display:flex;gap:12px;align-items:stretch;justify-content:center;max-width:340px;margin:1rem auto;padding:0 28px;background:#dbbd8f;border-radius:36px;border:2px solid #967b55;min-height:74px}.resistor-preview span{width:16px;flex:none;border:1px solid #555;color:transparent;overflow:hidden}.ht-metric strong{overflow-wrap:anywhere;word-break:break-word}.ht-metric:has(strong) {min-width:0}

.html-editor,.html-editor *{color:#172033}.html-editor{background:#fff!important;color:#172033!important;min-height:440px;padding:30px!important;line-height:1.65;border:2px solid #6584a2!important;border-radius:5px;caret-color:#172033;overflow-wrap:anywhere}.html-editor:focus{outline:3px solid #61b4fa}.html-editor table,.html-editor td,.html-editor th,.html-editor tr:hover td{background:#fff!important;color:#172033!important;border:1px solid #9bacc2!important;padding:8px}.html-editor h1,.html-editor h2,.html-editor h3{color:#143b65}.html-editor img{max-width:100%;height:auto;display:block;margin:12px 0}.html-editor img[data-selected]{outline:3px solid #2175c6}.html-editor a{color:#174e9a!important;text-decoration:underline}.editor-toolbar{display:flex;flex-wrap:wrap;gap:5px;padding:10px;background:#112b49;border-radius:8px 8px 0 0}.editor-toolbar button{font-size:12px!important;padding:7px 9px!important}.rich-select{display:flex;align-items:center;gap:4px;color:#eff6ff;font-size:12px;margin:0}.rich-select select{width:auto!important;min-width:70px;max-width:145px;padding:5px!important}.rich-status{font-size:12px;color:#bacce2}.rich-fullscreen{position:fixed!important;inset:56px 10px 10px!important;background:#10243d;padding:16px;z-index:2000;overflow:auto;box-shadow:0 0 0 100vmax #061424d9}.rich-fullscreen .html-editor{min-height:65vh}.notes-layout{display:grid;grid-template-columns:minmax(260px,330px) minmax(0,1fr);gap:20px}.notes-list{display:grid;gap:8px;align-content:start}.note-row{width:100%;text-align:left;display:block;border-left:5px solid var(--note-color,#4d98d0)!important}.note-row small{display:block;color:#c4d5e9}.note-row.active{outline:2px solid #8fc4ff}.notes-tools{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.notes-editor[hidden]{display:none}.notes-editor input,.notes-editor textarea{width:100%}@media(max-width:850px){.notes-layout{grid-template-columns:1fr}.html-editor{padding:16px!important}.notes-list{max-height:40vh;overflow:auto}}@media print{.editor-toolbar,.rich-status,.notes-tools,.notes-list{display:none!important}.notes-layout{display:block}.notes-editor{color:#172033;background:#fff}.html-editor{border:0!important}}

/* Keep native upload controls readable against the dark application theme. */
@media screen{body.huber-theme input[type="file"],body input[type="file"]{background:#173958!important;color:#e8f2ff!important;border:1px solid #587c9f!important}body input[type="file"]::file-selector-button{background:#245b91;color:#fff;border:1px solid #7faad3;border-radius:8px;padding:9px 12px;margin-right:10px}}
