/* Shared WORMsys glass styling, adapted to the StarLite workspace structure. */
:root{--blue:#176cff;--line:#dfe5ec;--panel:#f7f9fc;--glass:#ffffffdc;--text:#27313c;--muted:#74808e;--shadow:0 4px 18px #25354b08;color:var(--text);background:#f3f5f9}
body{background:#f3f5f9}button{transition:background-color .12s,color .12s;touch-action:manipulation}button:focus-visible{outline:2px solid #176cff;outline-offset:2px}button:hover{background:#edf1f7}input,select{border-radius:9px;border-color:var(--line);height:30px;background:#ffffffb8}input{font-variant-numeric:tabular-nums;text-align:left}button img{opacity:.85}header,#sidebar,#views,#properties,footer{zoom:var(--density)}
header{height:46px;gap:7px;padding:0 12px;background:var(--glass);border-bottom:1px solid var(--line);box-shadow:none;z-index:35;position:relative;min-width:0}
header button,header summary{border-radius:50%;width:32px;height:32px;flex:none}header #save-view,header #follow,header #save,header #show-graphs{width:auto;border-radius:18px;padding:0 10px}header #save{background:#f0f5ff;border-color:#d7e4ff;color:var(--blue)}header #project-menu.brand{width:32px;font-size:25px;font-weight:500;color:var(--blue)}header #project{width:clamp(110px,16vw,230px);max-width:230px;font-size:12px;padding-left:8px;border:1px solid var(--line);border-radius:16px}header #well{width:clamp(105px,15vw,180px);max-width:180px;font-size:12px;border-radius:16px}header #bore{width:110px;max-width:110px;height:30px}header .crumb{display:none}header #choose-well{width:30px;margin:0}header #choose-well img{width:18px;height:18px}header #about{background:#edf1f6;border-color:var(--line)}
#body{gap:0}#sidebar{background:#fafbfd;border-right:1px solid var(--line)}.sidebar-project{padding:12px;gap:7px;background:#fafbfd;color:var(--muted);font-size:11px}.sidebar-project select{height:32px;border-radius:10px;background:#fff;border-color:var(--line)}.panel-head{background:#fafbfd;font-size:11px;height:31px;color:#667283;border:0;padding-left:12px}.panel-head button{border-radius:50%;width:26px;height:26px}.offsets{height:26px;color:#6d7887}.badge{border-radius:12px;font-size:8px;border-color:var(--line);background:#f0f3f7}.search{height:30px;border-radius:10px;margin:3px 10px 7px;border-color:var(--line);background:white}.search input{font-size:12px;background:transparent}.row{height:25px;min-height:25px;border-radius:7px;font-size:11px}.row.selected{background:#eaf2ff;border-color:#d9e7ff;color:#1c65da}.row:hover{background:#f0f4fa}.row input[type=checkbox]{border-radius:4px}.row input[type=checkbox]:checked{border-color:#8badea;background:#edf4ff}.row input[type=checkbox]:checked::after{color:var(--blue)}#tree,#groups{background:#fafbfd;scrollbar-color:#c8cdd6 transparent}.group-label{font-size:10px;color:#7a8696;font-weight:500;margin:10px 0 4px;padding:0 2px 5px}#sidebar-divider{background:#e5e9f0;width:3px}.h-divider{background:#e5e9f0}.forecast-layer{border-left:1px solid #dbe5f8;border-radius:6px;background:#f3f6fc}.forecast-layer select{border-radius:7px}main{background:#f3f5f9;padding:8px;gap:6px;min-height:0}
#views{display:block;height:40px;min-height:40px;border:0;background:transparent;overflow:visible;flex:none}#workspace-tabs{position:relative;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));padding:4px;isolation:isolate;border-radius:24px;border:1px solid #dfe3e9;background:#ffffffc9;height:40px;width:100%;box-shadow:inset 0 1px 0 #fff;overflow:hidden}#workspace-tabs button[data-view]{position:relative;z-index:2;min-width:0;width:100%;justify-content:center;border:0;border-radius:20px;font-size:12px;padding:0 5px;font-weight:400;color:#6b7684;background:transparent;overflow:hidden;text-overflow:ellipsis;display:block;line-height:30px}#workspace-tabs button.active,#workspace-tabs button[data-view=correlation].active{color:var(--blue);font-weight:500;background:transparent;border:0}#workspace-tabs button:hover{color:#34465d}#workspace-lens{position:absolute;left:0;top:4px;height:30px;pointer-events:none;z-index:1;will-change:transform}#workspace-lens svg{width:calc(100% + 12px);height:30px;margin-left:-6px;overflow:visible;display:block}#workspace-lens path{fill:#70757b10;stroke:#858b941c;stroke-width:.75}
#plot-toolbar{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:4px;min-height:34px;flex:none;padding:0 2px}#plot-toolbar button{height:30px;min-width:30px;border-radius:17px;font-size:11px;border:1px solid #dde3eb;background:#ffffffa6;padding:0 8px;white-space:nowrap}#plot-toolbar button:hover{background:#edf3ff}#plot-toolbar .navigation-target select{height:30px;max-width:150px;font-size:11px;border-radius:17px;padding:3px 8px;border-color:#dde3eb}#plot-toolbar .navigation-target[hidden]{display:none}#plot-toolbar #reference-position.active{color:var(--blue);background:#edf3ff}#plot-toolbar .spacer{display:none}#qt-container{border-radius:12px;border:0;box-shadow:var(--shadow),inset 0 0 0 1px var(--line);background:#fff}#mode-note{right:15px;bottom:12px;border-radius:8px;padding:4px 7px;background:#ffffffdf;font-size:9px;max-width:65%;line-height:1.4}
#properties{background:#fafbfd;border-left:1px solid var(--line);border-radius:12px 0 0 12px}#property-form{font-size:12px;padding:14px}#property-form h3{font-size:15px;font-weight:500;margin-bottom:10px}label.field{gap:8px;margin:10px 0}label.field input,label.field select{height:30px;font-size:12px}.apply{border-radius:18px;background:var(--blue);padding:8px 16px}.secondary{border-radius:18px;border-color:var(--line);padding:8px 14px}.curve-scale,.curve-binding{border-radius:10px;border-color:var(--line);padding:10px}.muted{font-size:11px;color:var(--muted)}
footer{height:27px;background:#f8fafc;border-top:1px solid var(--line);color:#5c697a;font-size:10px;padding:0 10px;gap:6px}footer input{height:23px;width:82px;border-radius:7px;background:white;border-color:var(--line);color:#27313c;font-size:11px}footer #save-status{color:#728095;font-size:9px}.runtime{color:#8893a2;border-color:var(--line);font-size:9px}footer #values{font-size:10px}.file-popup{border-radius:16px;background:#ffffffed;border-color:var(--line);box-shadow:0 10px 32px #2534481c;padding:7px}.file-popup button{min-height:34px;border-radius:10px;font-size:12px}
dialog{border-radius:20px;border-color:#d8dee7;background:#ffffffef;box-shadow:0 24px 80px #16223a35}dialog::backdrop{background:#29334935}.dialog-head{background:transparent;border-bottom:1px solid #e6e9ef;height:48px;padding:0 18px}.dialog-head strong{font-size:15px;font-weight:500}.dialog-head button{border-radius:50%;height:30px;width:30px}#dialog-content{padding:18px;max-height:calc(86dvh - 50px)}dialog .apply,dialog .secondary{min-height:36px}dialog label.field{grid-template-columns:minmax(0,140px) minmax(0,1fr)}.project-item{border-radius:12px;border-color:var(--line);padding:12px}.project-item button{border-radius:18px;background:#edf4ff;color:var(--blue);padding:7px 14px}.chooser-item{border-radius:10px;min-height:49px}.chooser-item.selected{background:#edf4ff;border-color:#d7e5fc;color:#176cff}.chooser-search{margin:0 0 8px}.source-tabs button{border-radius:16px;border:1px solid var(--line)}.source-tabs button[aria-selected=true]{border-color:#d7e5fc;background:#edf4ff;color:#176cff}.source-row button{border-radius:17px;padding:7px 12px}.source-selected{border-radius:10px}.source-row a{color:var(--blue)}#toast{border-radius:16px;bottom:40px;box-shadow:var(--shadow)}
@media(min-width:1500px){#workspace-tabs button[data-view]{font-size:13px}}
@media(max-width:1100px){header #project{width:125px;max-width:125px}header #well{width:125px;max-width:125px}header #save span,header #show-graphs span{display:none}header #save,header #show-graphs{width:30px;padding:0}header #bore{display:none}#plot-toolbar #reference-position span{display:none}}
@media(max-width:850px){header{zoom:1}header #project{width:110px;max-width:110px}#properties{top:47px;bottom:27px;width:min(90vw,300px);z-index:36;box-shadow:-8px 0 32px #27365318}#workspace-tabs button[data-view]{font-size:11px}}
@media(max-width:650px){header{height:42px;padding:0 8px;gap:3px}header #project{display:none}header #well{height:28px;width:clamp(94px,29vw,135px);max-width:135px}header #save-view{padding:0 7px;font-size:11px}header #follow{display:none}header #show-graphs{display:flex}header #save{display:none}header #layout-menu,header #about{width:28px;height:28px}header #project-menu.brand{width:25px}header #choose-well{width:27px}header #properties-toggle{display:none}main{padding:4px;gap:4px}#views{height:36px;min-height:36px;zoom:1;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}#workspace-tabs{display:flex;width:max-content;min-width:100%;height:36px;padding:2px;border-radius:20px}#workspace-tabs button[data-view]{flex:none;width:auto;font-size:9px;padding:0 10px;line-height:30px}#workspace-lens{top:2px}#plot-toolbar{gap:3px;min-height:30px;justify-content:flex-end}#plot-toolbar button{height:28px;min-width:28px;padding:0 6px;font-size:10px}#plot-toolbar button img{width:15px;height:15px}#plot-toolbar #pan-left,#plot-toolbar #pan-right,#plot-toolbar #table{display:inline-flex}#plot-toolbar .navigation-target select{max-width:125px;height:28px;font-size:10px}#reference-position{display:none!important}#qt-container{border-radius:9px;box-shadow:none}footer{height:26px;zoom:1;padding:0 6px;gap:4px}footer #cursor-label{font-size:9px}footer #values,footer .runtime{display:none}footer #save-status{overflow:hidden;text-overflow:ellipsis;max-width:145px}.navigation-sidebar-open #sidebar{top:42px;bottom:26px;width:min(92vw,330px);background:#fafbfd;border-radius:0 16px 16px 0;box-shadow:10px 0 32px #22314928}#properties{top:42px;bottom:26px}.well-chooser{display:grid;grid-template-columns:1fr;min-height:0;max-height:none;gap:14px}.well-chooser section:first-child{display:none}.well-chooser section{border:0;padding:0;max-height:32dvh;min-height:100px}.choose-well-dialog{max-height:90dvh}.chooser-list{max-height:25dvh}.file-popup{right:0;min-width:240px}#mode-note{font-size:8px;max-width:70%;right:8px;bottom:8px}dialog label.field{grid-template-columns:minmax(0,105px) minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){button{transition:none}}

.project-item span small{display:block;font-size:10px;color:var(--muted);margin-top:4px}#project-operation{font-size:12px;line-height:1.5;min-height:22px;margin:10px 0;color:var(--blue)}

#empty-workspace{position:absolute;z-index:12;inset:130px 20px 35px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;pointer-events:none;color:var(--text)}#empty-workspace[hidden]{display:none}#empty-workspace strong{font-size:18px;font-weight:500}#empty-workspace p{max-width:420px;font-size:12px;line-height:1.6;color:var(--muted)}#empty-workspace div{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;pointer-events:auto}#empty-workspace button{padding:8px 13px;border:1px solid var(--line);border-radius:18px;background:#fff}#empty-import{color:var(--blue)}

/* Desktop uses the original top tabs; mobile layout is left as it was. */
@media(min-width:651px){
 /* Match the old rectangular chart field; rounding clipped outer channel headers. */
 #qt-container{border-radius:0;box-shadow:inset 0 0 0 1px var(--line)}
 #views{height:31px;min-height:31px;background:#f7f9fc;border-bottom:1px solid #dfe5ec;overflow-x:auto;scrollbar-width:none}
 #workspace-tabs{display:flex;width:max-content;min-width:100%;height:31px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;isolation:auto}
 #workspace-tabs button[data-view]{flex:none;width:auto;min-width:0;height:31px;line-height:normal;padding:4px 14px;border:0;border-bottom:2px solid transparent;border-radius:0;font-size:12px;text-align:left;color:#576777;background:transparent;font-weight:400;overflow:visible}
 #workspace-tabs button[data-view=geosteering]{min-width:130px}
 #workspace-tabs button[data-view=correlation]{min-width:145px}
 #workspace-tabs button.active,#workspace-tabs button[data-view=correlation].active{border-bottom-color:#3c73b1;background:white;color:#205a90;font-weight:600}
 #workspace-tabs button[data-view]:hover{background:#edf2f8}
 #workspace-lens{display:none}
 #workspace-tabs button[data-view]:focus-visible{outline-offset:-3px}
}

/* Desktop: StarLite tabs touch the data field; cursor tools remain compact. */
#design-tools{display:none}
@media(min-width:651px){
 main{padding:0;gap:0}
 #views,#workspace-tabs{height:29px;min-height:29px}
 #workspace-tabs button[data-view]{height:29px;padding:4px 13px}
 #workspace-tabs button[data-view].active{border-radius:9px 9px 0 0}
 #plot-toolbar{position:absolute;z-index:20;left:50%;transform:translateX(-50%);bottom:12px;min-height:36px;flex-wrap:nowrap;max-width:calc(100% - 24px);padding:3px 5px;background:#ffffffed;border:1px solid var(--line);border-radius:21px;box-shadow:0 2px 9px #26384b12}
 #plot-toolbar #design-tools{display:inline-flex}
 #plot-toolbar #reference-position[hidden]{display:none}
 header #recording-toggle{width:auto;border-radius:18px;padding:0 10px;font-size:11px}
 footer .runtime{display:none}
 #mode-note{bottom:60px}
}
.design-points-label{display:flex;flex-direction:column;gap:7px;font-size:12px}
#design-points{font:12px/1.65 monospace;resize:vertical;min-height:160px;max-height:35dvh;padding:10px;border:1px solid var(--line);border-radius:8px}
#design-error{padding-top:10px;font-size:12px;white-space:pre-wrap}
.editor-actions{display:grid;gap:8px}.editor-actions button{text-align:left;padding:12px;border:1px solid var(--line);border-radius:8px}
.correlation-well{border:1px solid var(--line);border-radius:8px;margin:10px 0;padding:10px}

/* The workspace is an application; dragging controls must not select labels. */
html,body *:not(input):not(textarea):not([contenteditable=true]){user-select:none!important;-webkit-user-select:none!important}
input,textarea,[contenteditable=true]{user-select:text;-webkit-user-select:text}
button img{ -webkit-user-drag:none }
