/* Measurement-specific styling only. */
.rb-measure-panel[hidden]{display:none!important}
.rb-measure-panel{background:#14263b;border:1px solid #385a78;border-radius:12px;padding:10px 12px;margin:0 0 10px;color:#dbeaf8;font-size:12px}
.rb-measure-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:8px}.rb-measure-tools strong{color:#8cdeff;font-size:14px}.rb-measure-tools strong span{color:#ffd863;font-size:12px;margin-left:3px}.rb-measure-tools label{display:inline-flex;align-items:center;gap:5px;max-width:100%;white-space:nowrap}.rb-measure-tools select{max-width:100%;background:#0b192b;border:1px solid #577694;color:#eaf2fb;border-radius:6px;padding:7px;font:inherit}.rb-measure-tools input[type=color]{width:34px;height:30px;padding:2px;background:#0b192b;border:1px solid #577694;border-radius:5px}.rb-measure-tools input[type=range]{width:80px}.rb-measure-tools input{accent-color:#65c9f8}.rb-measure-tools .cad-btn,.rb-measure-row .cad-btn{padding:5px 9px;min-height:33px;font-size:12px}.rb-measure-help,.rb-cad-independent{font-size:12px;color:#a8bdd2;line-height:1.65;margin:5px 0 10px;overflow-wrap:anywhere}.rb-cad-independent a{color:#91d9ff;text-decoration:underline}.rb-measure-list{max-height:150px;overflow:auto}.rb-measure-row{display:flex;align-items:center;gap:6px;padding:4px 0;border-top:1px solid #304963}.rb-measure-row span{flex:1;min-width:0;overflow-wrap:anywhere;color:#ffdf88}.cad-viewbox.rb-measuring{cursor:url("/assets/cad-measure-cursor-v276.png") 16 16,default}.cad-viewbox.rb-measuring.grabbing{cursor:grabbing}#measureHint{color:#ffe08e;flex:1;min-width:100px}.rb-measure-toggle{border-color:#6ba9c6;color:#b6edff}


.rb-cad-notice-box{margin:0 0 12px;padding:12px 14px;border:1px solid #385a78;border-radius:12px;background:linear-gradient(180deg,rgba(16,32,52,.96),rgba(11,24,39,.96));box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}
.rb-cad-notice-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.rb-cad-notice-badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:rgba(101,201,248,.14);border:1px solid rgba(101,201,248,.35);color:#9fe4ff;font-weight:800;font-size:11px;letter-spacing:.04em;text-transform:uppercase}
.rb-cad-notice-title{margin:0;color:#f1f7ff;font-size:14px;font-weight:800}
.rb-cad-notice-desc{margin:0 0 8px;color:#b7cade;line-height:1.65;font-size:12px}
.rb-cad-notice-list{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px}
.rb-cad-notice-list li{display:flex;align-items:flex-start;gap:8px;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.03);border:1px solid rgba(88,120,153,.38);color:#dce8f5;line-height:1.55}
.rb-cad-notice-list li::before{content:"✓";flex:0 0 auto;color:#74e48a;font-weight:800}
.rb-cad-notice-list strong{color:#ffffff}
.rb-cad-notice-foot{margin-top:9px;color:#9ecff0;font-size:12px;line-height:1.6}
.rb-cad-notice-foot a{color:#91d9ff;text-decoration:underline;text-underline-offset:3px;font-weight:700}
@media (max-width:640px){.rb-cad-notice-box{padding:11px 12px}.rb-cad-notice-title{font-size:13px}.rb-cad-notice-list{grid-template-columns:1fr}}

/* Keyboard deletion with a touch-only fallback; no measurement results list. */
.rb-measure-touch-delete{display:none!important}
@media (any-pointer:coarse){.rb-measure-touch-delete{display:inline-flex!important}}


.rb-measure-inline-note{margin-left:auto;color:#a8bdd2;font-size:12px;line-height:1.45;text-align:right;white-space:nowrap;max-width:100%}
@media (max-width:900px){.rb-measure-inline-note{width:100%;margin-left:0;text-align:left;white-space:normal}}

/* v8.289: inline original-annotation controls in the existing status area.
   Both states share one grid cell; hidden controls reserve only this cell,
   never an additional full-width panel. */
#measurePanel:not([hidden]){display:grid;grid-template-columns:minmax(0, 1.65fr) minmax(0, 1fr);align-items:center;gap:5px 12px}
#measurePanel .rb-measure-primary{min-width:0}
#measurePanel .rb-measure-primary>.rb-measure-tools{margin-bottom:5px;gap:6px}
#measurePanel .rb-measure-primary>.rb-measure-tools:last-child{margin-bottom:0}
#measurePanel .rb-measure-side{min-width:0;display:grid;gap:3px;align-content:center}
#measurePanel .rb-measure-status-slot{min-width:0;display:grid;align-items:center}
#measurePanel .rb-measure-status-slot>*{grid-area:1/1;min-width:0}
#measurePanel #measureHint{min-width:0;display:block;max-height:3.9em;overflow:auto;overflow-wrap:anywhere;line-height:1.3;scrollbar-width:thin}
#measurePanel .rb-measure-status-slot:has(#annotationPanel:not([hidden]))>#measureHint{visibility:hidden}
#measurePanel #annotationPanel{border:0;background:transparent;padding:0;margin:0;border-radius:0;min-width:0}
#measurePanel #annotationPanel[hidden]{display:block!important;visibility:hidden;pointer-events:none}
#measurePanel #annotationPanel>.rb-measure-tools{gap:4px;min-width:0;margin:0 0 3px;align-items:center}
#measurePanel #annotationSelection{font-size:12px;flex:0 1 112px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[lang="en"] #measurePanel #annotationSelection{flex-basis:135px}
#measurePanel #annotationPanel .cad-btn{padding:3px 6px;min-height:30px;font-size:12px}
#measurePanel #annotationPanel label{gap:3px}
#measurePanel #annotationColor{width:30px;height:28px}
#measurePanel #annotationHint{height:2.6em;line-height:1.3;overflow:auto;overflow-wrap:anywhere;scrollbar-width:thin}
#measurePanel .rb-measure-inline-note{margin:0;width:auto;white-space:normal;text-align:right;line-height:1.3}
@media(max-width:900px){
 #measurePanel:not([hidden]){grid-template-columns:minmax(0,1fr);gap:5px}
 #measurePanel .rb-measure-inline-note{text-align:left}
}
/* Keep both tool rows as compact as possible without abbreviating measurement tools. */
@media(min-width:901px){
 #measurePanel:not([hidden]){grid-template-columns:minmax(0,1fr) minmax(350px,31%)}
 html[lang="en"] #measurePanel:not([hidden]){grid-template-columns:minmax(0,1fr) minmax(390px,31%)}
 #measurePanel .rb-measure-primary>.rb-measure-tools{gap:4px}
 #measurePanel .rb-measure-primary .rb-measure-tools label{gap:4px}
 #measurePanel .rb-measure-primary .rb-measure-tools select{padding:5px}
 #measurePanel .rb-measure-primary .rb-measure-tools input[type=range]{width:65px}
}
