/* TAS charcoal/red chrome; GX-style neutral editing and settings surfaces. */
:root{color:#242424;background:#f4f4f4;--muted:#686868;--line:#d9d9d9;--green:#c91f32}
header{height:64px;background:#141414;color:#eee;border-top:3px solid #c91f32;border-bottom:1px solid #303030;padding:0 24px;gap:18px}
.brand{color:#fff;font-size:19px}.brand b{color:#aaa;letter-spacing:.6px}.brand-icon{background:#c91f32;color:white;border-radius:3px;font-size:22px;padding:5px 9px}.badge{color:#bbb;border-color:#444}.open{background:#c91f32;border-radius:3px}.open:hover{background:#a91626}
button{border-radius:3px;padding:7px 12px}button:hover{background:#fff0f2}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,a:focus-visible{outline-color:#c91f32}.eyebrow,em,.privacy{color:#a91626}.drop{background:#fafafa;border-color:#c99198;border-radius:5px}.drop:hover,.drop.over{background:#fff0f2}.file-icon{color:#c91f32;border-color:#e4b7be}.features article{border-color:#ddd}.features small{color:#888}
.projectbar{padding:12px 24px;background:#232323;color:#eee}.projectbar h1{font-size:15px;margin:3px 0 0;letter-spacing:0}.projectbar small{font-size:9px;color:#aaa}.cpu{background:#343434;color:#eee;border-color:#555;padding:5px;border-radius:2px}
nav{padding:0 24px;gap:22px;background:#eee;border-color:#ccc}nav button{padding:12px 3px;color:#555}nav button.active{color:#b0192b;border-color:#c91f32}#body{min-height:55vh}
.xref-toolbar{display:flex;align-items:center;gap:10px;padding:10px 20px;background:#fafafa;border-bottom:1px solid #ccc;flex-wrap:wrap;font-size:12px}.xref-toolbar input:not([type=checkbox]){width:250px;max-width:100%;border:1px solid #bbb;padding:8px;background:white;border-radius:3px}.xref-toolbar>button{background:#c91f32;color:white;border-color:#c91f32}.xref-toolbar label{display:flex;align-items:center;gap:4px;white-space:nowrap}.xref-toolbar>span{font-size:11px;color:#777}.xref-toolbar input[type=checkbox]{accent-color:#c91f32}
.split{grid-template-columns:245px minmax(0,1fr)}.sidebar{background:#191919;color:#ddd;padding:0 10px 12px;border-right:1px solid #333}.tree-title{font-size:12px;font-weight:600;color:#ddd;background:#262626;margin:0 -10px 10px;padding:10px 12px;border-bottom:1px solid #353535}.tree-root{font-size:12px;margin:12px 5px}.sidebar input,.filterrow select{background:#292929;color:#ddd;border:1px solid #444;border-radius:2px;padding:8px;font-size:12px}.sidebar .count{color:#999;font-size:11px;margin:8px 4px}.list{max-height:72vh}.list button{padding:7px 6px;margin:0;border-radius:0;color:#ddd;font-size:11px;line-height:1.6}.list button.active{background:#391c22;color:#fff;box-shadow:inset 3px 0 #ef3446}.list button:hover{background:#2c2c2c}.tag,.tag.st{background:#eee;color:#444;border:1px solid #ccc;border-radius:2px;font-size:9px}.sidebar .tag{background:#303030;color:#aaa;border-color:#555}
.content{padding:0;min-width:0;background:#e9e9e9}.content>p,.content>.notice,.content>h2{margin:16px}.editor-heading{display:flex;align-items:center;gap:8px;padding:10px 15px;background:white;border-bottom:2px solid #c91f32}.editor-heading h2{font-size:14px;margin:0;letter-spacing:0}.readonly{margin-left:auto;font-size:10px;color:#777;white-space:nowrap}.tools{padding:8px 12px;margin:0;background:#f5f5f5;border-bottom:1px solid #ccc;gap:6px}.tools input{padding:7px;border-radius:2px}.tools .count{margin:0 7px;color:#666}.tools button{padding:6px 9px}.editor-body{padding:10px;min-height:50vh}.ladder-view{background:white}.ladder-block{border-radius:0!important;margin:0!important;border-color:#ddd!important;scroll-margin-top:20px}.hide-comments .device-comment{visibility:hidden}.inline-section{padding:8px;background:white}.inline-code{border-top:1px solid #ddd;padding:4px 10px}.code{border-radius:0;background:white;color:#173b6b;border:1px solid #ccc;padding:14px;font-size:13px}.code .num{color:#999;border-right:1px solid #ddd;margin-right:12px}.section-title{color:#555}.xref-highlight{outline:3px solid #c91f32;outline-offset:-3px}.xref-line{background:#ffe1e6!important}.notice{background:#fff8ed;color:#73582e;border-radius:3px}.parameter-note{font-size:12px;margin:12px 18px}.card,.stat,.table-wrap{border-radius:3px}.table-wrap{max-height:65vh}th{background:#eee;color:#444}th,td{border-color:#e1e1e1;padding:9px 12px}tbody tr:hover{background:#fff5f7}.pager{color:#666;padding:0 12px;margin:8px 0;font-size:11px}.jump{color:#b0192b;white-space:nowrap;font-size:11px}.search{border-color:#ccc;border-radius:3px}.count{color:#777}
#xref{border-top:3px solid #c91f32;background:#fff;padding:0 16px 16px;scroll-margin-top:10px}.xref-heading{display:flex;align-items:center;justify-content:space-between;background:#232323;color:white;margin:0 -16px;padding:8px 16px;font-size:12px}.xref-heading button{color:#ddd;border:0;background:transparent;font-size:11px}#xrefStatus{font-size:12px;margin:10px 0;white-space:pre-wrap}#xref .table-wrap{max-height:340px}.spinner{border-color:#eee;border-top-color:#c91f32}footer{background:#191919;color:#999;border-color:#333;padding:12px 24px}
@media(max-width:700px){header{padding:0 12px;height:60px}.brand{font-size:15px}.brand b{font-size:8px}.projectbar{padding:10px 14px}.projectbar h1{font-size:12px}.xref-toolbar{padding:10px 12px;gap:7px}.xref-toolbar strong{width:100%;font-size:11px}.xref-toolbar input:not([type=checkbox]){flex:1;min-width:150px;width:auto}.xref-toolbar>span{display:none}.xref-toolbar label{font-size:11px}.sidebar{padding:0 10px 10px}.list{max-height:150px}.tree-title{padding:8px 12px}.tree-root{display:none}.sidebar input{margin-top:2px}.filterrow{margin:6px 0}.split{display:block}.content{padding:0}.editor-body{padding:5px}.tools{gap:5px;padding:8px}.tools input{flex-basis:100%;min-width:0}.tools .count{margin:0;font-size:10px}.editor-heading{padding:10px}.editor-heading h2{font-size:12px}.code{font-size:12px;padding:8px}.table-page{padding:14px}.xref-heading{position:sticky;top:0;z-index:2}#xref{padding:0 10px 10px}.xref-heading{margin:0 -10px}#xref .table-wrap{max-height:300px}th,td{padding:8px;font-size:11px}.readonly{font-size:9px}.content>.notice{margin:10px}}
.editor-body{max-height:70vh;overflow:auto}.ladder-block::before{content:attr(data-block-number);display:block;float:left;color:#999;font:10px Consolas,monospace;padding:4px}#xref{position:sticky;bottom:0;z-index:5;box-shadow:0 -4px 14px #0002;max-height:45vh;overflow:auto}@media(max-width:700px){.editor-body{max-height:65vh}#xref{max-height:42vh}}
.ladder-block{content-visibility:visible;contain-intrinsic-size:none}
#xref .xref-heading{position:sticky;top:0;z-index:3}#workspace:has(#xref:not([hidden])) .split{min-height:0}#workspace:has(#xref:not([hidden])) .editor-body{height:38vh;min-height:0;max-height:38vh}#workspace:has(#xref:not([hidden])) .list{max-height:calc(38vh - 60px)}#xref{max-height:36vh}@media(max-width:700px){#workspace:has(#xref:not([hidden])) .list{max-height:110px}#workspace:has(#xref:not([hidden])) .editor-body{height:36vh;max-height:36vh}#xref{max-height:33vh}}
