body{
  font-family:Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial; 
  margin:12px; 
  background:#f6fbff; 
  color:#07203a
}
header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}
h1{
  font-size:18px;
  margin:0
}
.controls{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:12px
}
.panel{
  background:white;
  border-radius:10px;
  padding:12px;
  box-shadow:0 8px 20px rgba(10,40,80,0.06);
  width:100%
}
label{
  font-size:13px;
  color:#093048
}
input[type=range]{
  width:180px
}
.row{
  display:flex;
  gap:12px;
  align-items:center
}
#plot{
  height:640px;
  margin-top:12px;
  background:white;
  border-radius:8px;
  border:1px solid #e3f0ff
}
small.note{
  display:block;
  color:#114;
  font-size:12px;
  margin-top:6px
}
.help{
  font-size:13px;
  color:#375
}
.btn{
  background:#0b5bd7;
  color:white;
  padding:8px 10px;
  border-radius:8px;
  text-decoration:none;
  border:none;
  cursor:pointer
}
.btn.secondary{
  background:#eef6ff;
  color:#0b4aa8;
  border:1px solid #d6e8ff
}
.leftcol{
  min-width:320px;
  max-width:420px
}
textarea{
  width:100%;
  height:90px;
  font-family:monospace
}
select{
  padding:6px;
  border-radius:6px
}
.footer{
  margin-top:10px;
  font-size:13px;
  color:#284
}
.tab{
  display:none
}
.tab.active{
  display:block
}
.tab-buttons{
  display:flex;
  gap:4px;
  margin-bottom:12px
}
.tab-btn{
  background:#eef6ff;
  border:1px solid #d6e8ff;
  padding:6px 12px;
  border-radius:6px;
  cursor:pointer;
  font-size:12px
}
.tab-btn.active{
  background:#0b5bd7;
  color:white
}
.data-info {
  background: #e8f4fd; 
  padding: 8px; 
  border-radius: 5px; 
  margin: 8px 0; 
  font-size: 12px; 
}
.legend {
  position: absolute; 
  top: 80px; 
  right: 20px; 
  background: white; 
  padding: 10px; 
  border-radius: 5px; 
  box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
  z-index: 1000; 
  max-width: 200px;
}
.legend-item {
  display: flex; 
  align-items: center; 
  margin-bottom: 5px; 
  font-size: 11px;
}
.legend-color {
  width: 15px; 
  height: 15px; 
  margin-right: 8px; 
  border-radius: 2px;
}
.analysis-result {
  background: #f0f8ff; 
  padding: 10px; 
  border-radius: 5px; 
  margin-top: 10px; 
  font-size: 12px; 
  border-left: 3px solid #0b5bd7;
}

/* Depth profile styles */
.depth-profile-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eef6ff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #07203a;
}

.profile-data-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
}

.profile-label {
  min-width: 50px;
  font-size: 11px;
  font-weight: 600;
  color: #375;
}

.profile-value {
  flex: 1;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.depth-point {
  flex: 1;
  text-align: center;
  padding: 4px;
  background: #f8fcff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #093048;
  border: 1px solid #e3f0ff;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.depth-point.highlight {
  background: #0b5bd7;
  color: white;
  border-color: #0b4aa8;
}

.depth-point.anomaly {
  background: #ff6b6b;
  color: white;
  border-color: #ff5252;
}

.depth-point.reservoir {
  background: #51cf66;
  color: white;
  border-color: #40c057;
}

.profile-legend {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 11px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.resistivity-bar {
  height: 12px;
  background: linear-gradient(90deg, #2E8B57, #FFD700, #FF8C00, #DC143C);
  border-radius: 6px;
  margin: 8px 0;
  position: relative;
}

.resistivity-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #666;
  margin-top: 4px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #07203a;
  margin: 12px 0 8px 0;
  padding-bottom: 4px;
  border-bottom: 2px solid #0b5bd7;
}