
/* GroundCheck-inspired compact CAD chrome. Overrides are visual only. */
:root{--ribbon-h:108px;--bottom-h:31px}
#cr-appbar{height:42px;min-height:42px;padding:0 12px;gap:8px;background:#0c192a;border-bottom:1px solid #34516f;box-shadow:none}
#cr-logo-mark{font-family:Segoe UI,Arial,sans-serif;font-size:17px;letter-spacing:-.45px;white-space:nowrap;flex:0 0 auto}
#cr-byline{font-size:10px;white-space:nowrap;color:#b0c5da;margin-left:2px;max-width:230px;overflow:hidden;text-overflow:ellipsis}
#cr-title-sep{margin:0 4px}
#cr-app-name{flex:1 1 120px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#bccce0;font-size:11px}
#cr-spacer{display:none}
#cr-version{flex:0 0 auto;color:#acc0d1;margin:0 5px;font-size:10px}
#cr-helpbtn{flex:0 0 auto;position:relative;max-width:165px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:6px 10px;border-radius:6px;background:#213954;border:1px solid #4b6680;font-size:11px;line-height:18px;z-index:1}
#cr-helpbtn:hover{background:#2c4e71}
.ribbon{height:var(--ribbon-h);min-height:var(--ribbon-h);background:#101d2e;border-bottom:2px solid #426487}
.ribbon-tabs{height:29px;min-height:29px;gap:0;background:#0b1524;overflow-x:auto;flex-shrink:0}
.rtab{padding:0 15px;flex:0 0 auto;color:#b7c9da;font-size:11.5px;font-weight:600;border-right:1px solid #263951}
.rtab:hover{background:#243850;color:#fff}
.rtab.active{background:#253e58;color:#fff;border-bottom:2px solid #62b3f1}
#ribbon-tools-host{flex:1;min-height:0;overflow:hidden}
.ribbon-tools{background:#101d2e!important;display:flex;flex-wrap:nowrap;align-items:stretch;align-content:stretch;overflow-x:auto;overflow-y:hidden;gap:4px;padding:5px 10px 4px}
.ribbon-tools .rtool{flex:0 0 auto;min-width:70px;max-width:100px;height:68px;display:flex;flex-direction:column;justify-content:center;gap:6px;background:#17293e;border:1px solid #2c4660;border-radius:7px;padding:6px 7px;color:#e4eef7;box-shadow:none}
.ribbon-tools .rtool:hover{background:#244361;border-color:#80afd9}
.ribbon-tools .rtool.active{background:#254e72;border-color:#80baf0;color:#fff;box-shadow:inset 0 0 0 1px #447cae}
.ribbon-tools .rtool i{font-size:22px;color:#a6d3f6;line-height:23px}
.ribbon-tools .rtool span{font-size:10px;line-height:1.15;font-weight:600;white-space:normal;overflow-wrap:normal;max-width:90px;text-align:center;color:inherit}
.ribbon-tools .rsep{height:53px;min-width:1px;background:#375069;margin:8px 5px}
.ribbon-tools .rnote{max-width:320px;white-space:normal;line-height:1.35;color:#b3c7d8;font-size:10.5px;padding:6px 10px;align-self:center}
.workspace{min-height:0}
.canvas-area{background:#0c1723;border:1px solid #304358;min-width:0}
.canvas-toolbar{top:9px;padding:5px;gap:5px;background:#16283b;border-color:#47617b;box-shadow:0 3px 12px #0005}
.ctool{width:34px;height:32px;border-radius:6px;color:#d8e9f7}
.ctool:hover{background:#2a4a65;border-color:#527595}
.ctool.active{background:#275378;color:#fff;border-color:#67a8d9}
.view-toggle{top:9px;right:10px;background:#16283b;border-color:#47617b}
.vtbtn{color:#c6d6e6;padding:7px 11px}
.vtbtn.active{background:#2b70a8;color:#fff}
.nav-hint{background:#15263a;color:#c0d0e0;border-color:#3d5972}
.grid-coords{background:#122337e8;color:#bdd1e1;border:1px solid #36506b}
.left-panel,.right-panel{min-width:0}
.panel-header{background:#142438;border-color:#34485e;color:#c8d8e6;padding:9px 12px}
.bottom-panel{height:31px;min-height:31px;overflow:hidden}
.bottom-panel .bottom-tabs{min-height:30px;height:30px;white-space:nowrap;overflow-x:auto}
.bottom-panel .bottom-content{display:none}
.bottom-panel.mh-expanded{height:180px!important;min-height:180px;max-height:45vh}
.bottom-panel.mh-expanded .bottom-content{display:block;height:149px}
.canvas-footer-brand{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);z-index:8;pointer-events:none;background:rgba(14,27,42,.88);border:1px solid #39546b;border-radius:5px;padding:4px 11px;white-space:nowrap;color:#d1e1ee;font-size:10.5px;font-weight:600}
.mh-badge{bottom:8px;right:9px;max-width:25%}
@media(max-width:1040px){#cr-byline{max-width:135px}#cr-app-name{max-width:240px}.ribbon-tools .rtool{min-width:66px}}
@media(max-width:720px){#cr-byline,#cr-title-sep,#cr-app-name,#cr-version{display:none}#cr-helpbtn{margin-left:auto}.canvas-footer-brand{font-size:9px;max-width:70%;white-space:normal;text-align:center}}
@media print{.canvas-footer-brand{display:none!important}}
