.th-workspace{--th-blue:#0759bd;--th-navy:#062959;--th-border:#d5e5f3;color:var(--th-navy);background:#f7fbff;padding:12px 18px 8px;font-size:12px;line-height:1.35;max-width:2000px;margin:auto}.th-workspace *{box-sizing:border-box}.th-workspace button,.th-workspace input,.th-workspace select{font:inherit}.th-workspace button{cursor:pointer;background:white;border:1px solid #c5d9ee;border-radius:4px;color:#074884;padding:7px 9px;display:inline-flex;gap:6px;align-items:center;justify-content:center}.th-workspace button:hover{background:#eaf3ff}.th-workspace button:focus-visible,.th-workspace input:focus-visible,.th-workspace select:focus-visible{outline:2px solid #1685db;outline-offset:2px}.th-workspace .primary,.th-workspace button.active{background:linear-gradient(120deg,#0866c9,#0051a8);color:white;border-color:#0866c9}.th-workspace button:disabled{opacity:.45;cursor:not-allowed}main .th-workspace h1{font-size:24px;margin:0 0 4px;font-weight:750;letter-spacing:-.7px}main .th-workspace h2{font-size:13px;line-height:1.3;margin:0;font-weight:700;letter-spacing:-.2px}main .th-workspace p{font-size:inherit;line-height:1.4;margin:0}main .th-workspace ul{font-size:12px;margin:8px 0;padding-left:18px}.th-top{display:flex;gap:12px;justify-content:space-between;align-items:center;min-height:62px}.th-top p{color:#47638a}.th-top-actions{display:flex;gap:5px;align-items:stretch;flex-shrink:0}.th-top-actions button{height:40px;padding:6px 10px;font-size:11px;font-weight:650}.th-top-actions svg{width:16px;height:16px}.th-top-actions .th-load{margin-left:5px;border-color:#087cff;color:#0768ca;background:#f5faff}.th-context{display:flex;gap:14px;align-items:center;justify-content:space-between;font-size:10px;color:#52708e;min-height:22px;position:relative}.th-context details[open] .th-unit-options{position:absolute;right:0;top:22px;background:white;padding:14px;z-index:3;box-shadow:0 5px 20px #1233;border:1px solid var(--th-border);display:grid;grid-template-columns:repeat(2,1fr);grid-gap:8px;gap:8px}.th-unit-options label{display:grid;grid-gap:4px;gap:4px}.th-unit-options select{padding:4px;border:1px solid var(--th-border);background:white}.th-state{font-size:10px;margin:3px 0 6px;padding:4px 8px;border:1px solid var(--th-border);border-radius:3px;background:#edf7ff}.th-state.review{color:#8d5009;background:#fff8e9;border-color:#eed7ae}.th-console{display:grid;grid-template-columns:minmax(260px,.97fr) minmax(360px,1.45fr) minmax(300px,1.1fr);grid-template-rows:560px 110px;grid-gap:9px;gap:9px}.th-inputs{min-height:0;overflow:auto;scrollbar-width:thin;display:flex;flex-direction:column;gap:7px;padding-right:4px}.th-input-section,.th-panel{background:white;border:1px solid var(--th-border);border-radius:5px;min-width:0;overflow:hidden}.th-input-section{flex-shrink:0}.th-input-section>summary{font-size:12px;font-weight:700;background:linear-gradient(95deg,#e8f5fe,#f6faff);padding:7px 9px;cursor:pointer;display:flex;align-items:center;gap:6px}.th-input-section>summary:after{content:"⌃";margin-left:auto}.th-input-section:not([open])>summary:after{content:"⌄"}.th-input-section>div{padding:7px 9px}.th-field{display:grid;grid-template-columns:minmax(110px,.85fr) minmax(0,1fr);grid-gap:6px;gap:6px;align-items:center;margin:5px 0;min-width:0;font-size:11px}.th-field>span{line-height:1.2}.th-field small{font-size:9px;color:#74849a}.th-field>div{display:flex;min-width:0}.th-field input,.th-field select{height:27px;min-width:0;width:100%;border:1px solid #cddff1;border-radius:3px;padding:4px 6px;color:#173958;background:#fcfdff;font-size:10px}.th-field input[readonly]{background:#eef3f9}.th-unit{font-size:9px;padding:5px 4px;background:#f0f6fb;border:1px solid #cddff1;border-left:0;white-space:nowrap;display:flex;align-items:center}.th-badge{display:inline-block;padding:2px 5px;font-size:8px;border-radius:3px;line-height:1.2;background:#ddebfb;color:#155196;max-width:100%;overflow-wrap:anywhere}.th-badge.reference{background:#e4eaf4;color:#556b84}.th-badge.calculated{background:#dbf5e4;color:#1c6a37}.th-badge.user{background:#e3edfc;color:#154f9d}.th-layer{padding:4px 0;border-bottom:1px solid #e9f0f7}.th-layer:last-child{border:0}.th-layer-title{display:flex;align-items:center;gap:5px;font-size:10px}.th-layer-title button{margin-left:auto;padding:3px}.th-small-action{font-size:10px!important;padding:4px 7px!important;margin-top:5px}.th-note{color:#677d94;font-size:9px!important;margin-top:5px!important}.th-checkbox{display:flex;align-items:center;gap:6px;font-size:10px;margin:7px 0}.th-input-actions{position:-webkit-sticky;position:sticky;bottom:0;background:#f7fbff;padding:5px;display:flex;gap:6px;justify-content:flex-end;flex-shrink:0;border-top:1px solid var(--th-border)}.th-center{grid-template-rows:minmax(0,1.65fr) minmax(0,.72fr) minmax(0,1fr);grid-gap:8px}.th-center,.th-right{display:grid;gap:8px;min-height:0}.th-right{grid-template-rows:1fr 1fr;grid-gap:8px}.th-panel{display:flex;flex-direction:column}.th-panel-heading{background:linear-gradient(95deg,#eef8ff,#f8fbff);padding:7px 9px;border-bottom:1px solid #e0edf8;display:flex;gap:5px;justify-content:space-between;align-items:center;flex-shrink:0}.th-panel-body{min-height:0;overflow:auto;scrollbar-width:thin;padding:6px 8px;flex:1 1}.th-diagram-panel .th-panel-heading{flex-wrap:wrap}.th-view-tabs{display:flex;gap:3px}.th-view-tabs button{font-size:9px;padding:4px 6px}.th-panel svg{display:block;width:100%;height:100%;max-height:290px;color:#0a355d;font-size:11px}.th-center>.th-panel:last-child svg{height:100%;min-height:130px}.th-empty{color:#7890a5;display:flex;flex-direction:column;gap:8px;padding:16px;justify-content:center;min-height:75px;font-size:11px}.th-diagram-empty{height:100%;text-align:center;padding:30px}.th-diagram-empty strong{font-size:18px;color:#365e82}.th-resistance-chain{display:flex;align-items:center;height:100%;min-height:55px;gap:2px;overflow:auto}.th-resistor{min-width:75px;flex:1 1;text-align:center;display:flex;flex-direction:column;gap:3px;font-size:8px}.th-resistor span{max-width:110px;min-height:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.th-resistor svg{max-height:24px;height:24px;stroke:#456076;fill:none;stroke-width:2}.th-resistor b,.th-resistor small{font-size:8px}.th-radiation-branch{min-width:110px;border-left:2px solid #8cb2d4;padding-left:5px}.th-gridline{stroke:#dce9f4;stroke-width:1}.th-hotline{fill:none;stroke:#ed3648;stroke-width:2}.th-coldline{fill:none;stroke:#167bed;stroke-width:2}.th-model-summary{height:100%;font-size:9px;display:flex;flex-direction:column}.th-model-summary>svg{flex:1 1;min-height:0}.th-model-summary>span{color:#70859c;font-size:9px}.th-table{border-collapse:collapse;width:100%;font-size:9px;line-height:1.35;text-align:left}.th-table td,.th-table th{padding:4px 5px;border:1px solid #e2ecf7;vertical-align:middle;overflow-wrap:anywhere}.th-table th{background:#f1f7fd;color:#163c75;font-weight:650;position:-webkit-sticky;position:sticky;top:-6px}.th-table tbody tr:nth-child(2n){background:#f8fcff}.th-table .th-number{color:#17622c;font-weight:700;white-space:nowrap;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.th-status{display:inline-block;border-radius:3px;padding:2px 4px;font-size:8px;font-weight:650;white-space:nowrap}.th-status.pass{color:#11703a;background:#e3f7e9}.th-status.required{color:#9a6504;background:#fff2d5}.th-status.neutral{color:#637687;background:#edf2f6}.th-breakdown{grid-column:2/4}.th-breakdown .th-panel-body{padding:3px 6px}.th-footer{font-size:9px;color:#6882a0;padding:5px 0 0}.th-review-layout{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;gap:10px;align-items:start;min-height:680px}.th-review-layout .th-panel-body{max-height:500px}.th-review-layout .th-table{font-size:11px}.th-review-layout .th-badge,.th-review-layout .th-status{font-size:9px}.th-report{grid-column:1/-1;max-width:1100px;margin:auto;width:100%}.th-report>.th-panel{margin:10px 0}.th-report-actions{display:flex;justify-content:flex-end;gap:8px}.th-report h2{font-size:22px!important}.th-report-inputs{display:grid;grid-template-columns:1fr 1fr;grid-gap:6px;gap:6px;font-size:10px;margin:0}.th-report-inputs>div{padding:5px;border-bottom:1px solid #e3edf5;min-width:0}.th-report-inputs dt{font-weight:650}.th-report-inputs dd{margin:3px 0;overflow-wrap:anywhere}.th-report>.th-panel .th-panel-body{max-height:none}.th-report>.th-panel svg{max-height:220px}.th-workspace a{color:#075dc4;text-decoration:underline}@media(min-width:1700px){.th-console{grid-template-rows:600px 120px}.th-workspace{font-size:13px}.th-field{font-size:12px}.th-field input,.th-field select{font-size:11px;height:29px}.th-table{font-size:10px}}@media(max-width:1250px){.th-top{flex-wrap:wrap}.th-top-actions{width:100%}.th-top-actions .th-load{margin-left:auto}.th-console{grid-template-columns:minmax(240px,.85fr) minmax(330px,1.35fr);grid-template-rows:560px auto auto}.th-right{grid-column:1/-1;grid-template-columns:1fr 1fr;grid-template-rows:290px}.th-breakdown{grid-column:1/-1;max-height:180px}.th-context>span:nth-child(2){max-width:55%}.th-inputs{max-height:560px}}@media(max-width:800px){.th-workspace{padding:10px}.th-top-actions{flex-wrap:wrap}.th-top-actions button{flex:1 0 25%;font-size:10px}.th-top-actions .th-load{margin-left:0}.th-console{display:flex;flex-direction:column}.th-inputs{max-height:none;overflow:visible}.th-input-actions{position:static}.th-center{grid-template-rows:310px 125px 200px}.th-right{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:320px}.th-breakdown{max-height:240px}.th-review-layout{grid-template-columns:1fr}.th-review-layout .th-table{font-size:10px}.th-context{flex-wrap:wrap;gap:5px;margin:5px 0}.th-context>span:nth-child(2){max-width:100%}}@media(max-width:480px){main .th-workspace h1{font-size:21px}.th-top-actions button{flex:1 0 40%}.th-top-actions .th-load{flex-basis:40%}.th-context{font-size:9px}.th-right{display:flex;flex-direction:column}.th-right>.th-panel{max-height:380px}.th-panel-heading h2{font-size:12px}.th-view-tabs{flex-wrap:wrap}.th-view-tabs button{font-size:9px;padding:4px}.th-report-inputs{grid-template-columns:1fr}.th-table{font-size:9px}.th-panel-body{padding:5px}.th-resistor{min-width:70px}}@media print{.th-context,.th-footer,.th-inputs,.th-report-actions,.th-state,.th-top-actions,footer,header{display:none!important}.th-workspace{padding:0;background:white}.th-review-layout{display:block}.th-report{max-width:none}.th-report .th-panel-body{overflow:visible!important;max-height:none!important}.th-panel{page-break-inside:avoid;break-inside:avoid}.th-table th{position:static}}main .th-workspace h1{font-size:24px!important;line-height:1.2;overflow-wrap:normal}main .th-workspace h2{font-size:13px!important;line-height:1.25;letter-spacing:0}main .th-workspace label{font-size:11px!important;font-weight:400}main .th-workspace button,main .th-workspace input,main .th-workspace select{font-size:11px!important;line-height:1.25;min-height:27px;margin-top:0}main .th-workspace .th-top-actions button{font-size:11px!important;min-height:40px}main .th-workspace .th-view-tabs button{font-size:9px!important;min-height:25px}main .th-workspace a,main .th-workspace b,main .th-workspace p,main .th-workspace small,main .th-workspace span{font-size:inherit!important}main .th-workspace .th-note{font-size:9px!important}main .th-workspace .th-badge,main .th-workspace .th-status{font-size:8px!important}main .th-workspace .th-unit{font-size:9px!important}main .th-workspace details{margin:0;padding:0}main .th-workspace summary{min-height:30px;font-size:12px}main .th-workspace details label{margin-top:5px}main .th-workspace .th-context details{border:0}main .th-workspace .th-context summary{min-height:20px;font-size:10px}.th-table{font-size:10px}.th-table td:nth-child(2){font-feature-settings:"tnum";font-variant-numeric:tabular-nums}@media(max-width:480px){main .th-workspace h1{font-size:21px!important}main .th-workspace input,main .th-workspace select{font-size:16px!important;min-height:36px}main .th-workspace button,main .th-workspace summary{min-height:40px}main .th-workspace .th-view-tabs button{min-height:30px}.th-field{grid-template-columns:minmax(100px,.85fr) minmax(0,1fr)}}@media(min-width:1251px) and (max-width:1699px){.th-console{grid-template-rows:520px 110px;grid-template-rows:550px 100px}.th-center{grid-template-rows:minmax(0,1fr) 125px 170px}}.th-center>.th-panel:last-child svg{min-height:0;max-height:100%}.th-resistance-chain{align-items:flex-start;padding:4px 0}.th-resistor span{min-height:16px}