/* RECORD TABS / PANELS — owned by the entity database */
.ei-tabs{
  grid-area:tabs;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border-top:1px solid var(--ei-line);
  border-bottom:1px solid var(--ei-line);
  background:#080b0c
}

.ei-tabs button{
  position:relative;
  border:0;
  border-right:1px solid var(--ei-line2);
  background:transparent;
  color:#5f6e73;
  min-height:45px;
  font:700 6px ui-monospace,SFMono-Regular,monospace;
  letter-spacing:.13em;
  cursor:pointer
}

.ei-tabs button:last-child{
  border-right:0!important
}

.ei-tabs button.active{
  color:#d0dcde!important;
  background:#0d1518!important;
  box-shadow:inset 0 -2px #91a8ad
}

.ei-tabs button.active:after{
  content:"";
  position:absolute;
  left:18%;
  right:18%;
  bottom:0;
  height:1px;
  background:#b7d0d5
}

.ei-panels{
  grid-area:panel;
  min-height:270px;
  background:#06090a
}

.ei-panel{
  display:none;
  padding:24px 18px 28px
}

.ei-panel.active{
  display:block;
  animation:eiPanelIn .2s ease both
}

@keyframes eiPanelIn{
  from{
    opacity:.25;
    transform:translateY(5px)
  }
  to{
    opacity:1;
    transform:none
  }
  
}

.ei-panel-overline{
  font:650 6px ui-monospace,SFMono-Regular,monospace;
  letter-spacing:.16em;
  color:#59686d
}

.ei-panel h3{
  margin:8px 0 0;
  font-size:24px;
  letter-spacing:-.03em
}

.ei-panel-copy{
  max-width:820px;
  margin:14px 0 0;
  font-size:12px;
  line-height:1.8;
  color:#87959a
}

.ei-seraph-notice{
  margin-top:16px;
  padding:12px;
  border:1px solid #553534;
  background:#170d0d
}

.ei-seraph-notice span,.ei-seraph-notice b{
  display:block;
  font:700 6px ui-monospace,SFMono-Regular,monospace;
  letter-spacing:.12em;
  color:#9f7471
}

.ei-seraph-notice b{
  margin-top:5px;
  color:#d2aaa7
}

@media(max-width:820px){
  
  .ei-tabs{
    margin-top:10px;
    border:1px solid var(--ei-line)
  }
  
  .ei-tabs button{
    min-height:42px;
    font-size:5px;
    padding:0 2px
  }
  
  .ei-panels{
    min-height:0
  }
  
  .ei-panel{
    padding:18px 4px 24px
  }
  
  .ei-panel h3{
    font-size:21px
  }
  
  .ei-panel-copy{
    font-size:11px;
    line-height:1.72
  }
  

}

@media(prefers-reduced-motion:reduce){
  .ei-panel.active{
    animation:none!important
  }
  
}


/* EIDOLON ENTITY DATABASE
   Record-module shell only. Module-specific visuals belong here, not in eidolon.css. */

.ei-record-console{
  grid-column:1/-1;
  margin-top:10px;
  border:1px solid #2d3d41;
  background:#070b0d;
  overflow:hidden
}

.ei-record-console>header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  padding:14px 17px 12px;
  border-bottom:1px solid #2b3a3e;
  background:linear-gradient(90deg,#0c1417,#080d0f 55%,#070b0d)
}

.ei-record-console>header div{
  display:grid;
  gap:5px
}

.ei-record-console>header span,.ei-record-console>header em{
  font:700 6px ui-monospace,SFMono-Regular,monospace;
  letter-spacing:.15em;
  color:#61757a;
  font-style:normal
}

.ei-record-console>header b{
  font:850 12px ui-monospace,SFMono-Regular,monospace;
  letter-spacing:.08em;
  color:#c4d0d2
}

.ei-record-console>header em{
  color:#4f6267
}

.ei-record-console .ei-tabs{
  display:grid!important;
  grid-template-columns:repeat(4,1fr)!important;
  margin:0!important;
  border:0!important;
  border-bottom:1px solid #2b3a3e!important
}

.ei-record-console .ei-tabs button{
  min-height:52px!important;
  padding:0 12px!important;
  text-align:left!important;
  font-size:6px!important;
  letter-spacing:.1em!important;
  border-right:1px solid #26363a!important;
  color:#607278!important
}

.ei-record-console .ei-tabs button.active{
  background:#111b1e!important
}
\n.ei-record-console .ei-tabs button.active:before{
  content:"";
  position:absolute;
  left:50%;
  top:-3px;
  width:5px;
  height:5px;
  border:1px solid #8da3a8;
  background:#071012;
  transform:translateX(-50%) rotate(45deg)
}

.ei-record-console .ei-panels{
  margin:0!important;
  border:0!important;
  background:linear-gradient(180deg,#091012,#070b0d)!important
}

.ei-record-console .ei-panel{
  padding:22px 20px 24px!important;
  min-height:0!important
}

.ei-record-console .ei-panel-overline{
  margin-bottom:12px!important
}

.ei-record-console .ei-panel h3{
  margin-top:0!important
}


@media(max-width:760px){
  
  .ei-record-console{
    margin:8px 0 0
  }
  
  .ei-record-console>header{
    padding:12px 13px 10px
  }
  
  .ei-record-console>header b{
    font-size:10px
  }
  
  .ei-record-console>header em{
    display:none
  }
  
  .ei-record-console .ei-tabs button{
    min-width:0!important;
    min-height:44px!important;
    padding:0 5px!important;
    text-align:center!important;
    font-size:5px!important;
    letter-spacing:.045em!important;
    white-space:nowrap
  }
  
  .ei-record-console .ei-panel{
    padding:17px 13px 20px!important
  }
  

}



