:root{
  --bg0:#040506;
  --bg1:#050709;
  --bg2:#070a0c;
  --acc:rgba(140,255,200,0.66);
  --acc2:rgba(110,200,230,0.42);
  --accSoft:rgba(140,255,200,0.12);
  --ok:rgba(120,255,190,0.92);
  --okSoft:rgba(120,255,190,0.16);
}

.app-header .brand-text span{
  letter-spacing:1.2px;
}

.side .big{
  letter-spacing:2px;
}

.pill.warn{
  border-color:rgba(255,190,120,0.6);
  color:rgba(255,200,140,0.95);
}

/* Force an opaque screen so the bezel art never bleeds through */
.pda-screen,
.pda-screen-inner{
  background:#050607;
  background-image:none;
}

/* Shrink any large in-panel artwork */
.main img{
  max-width:140px;
  max-height:140px;
  height:auto;
  width:auto;
  opacity:0.7;
}

.main,
.main-scroll{
  background-image:none !important;
}

.footer-logo-wrap{
  width:28px;
  height:28px;
  border-radius:8px;
  background:rgba(10,14,16,0.75);
  border:1px solid rgba(160,200,200,0.12);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.footer-logo{
  width:18px;
  height:18px;
  object-fit:contain;
  display:block;
}
.footer-build-id{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:46px;
  height:18px;
  padding:0 6px;
  border-radius:999px;
  border:1px solid rgba(160,200,200,0.24);
  background:rgba(8,12,14,0.6);
  color:rgba(210,228,228,0.88);
  font-size:10px;
  letter-spacing:0.45px;
}

/* Smaller header logo for feral PDA */
.app-header .logo{
  width:22px;
  height:22px;
  border-radius:6px;
  background:rgba(10,14,16,0.75);
  border:1px solid rgba(160,200,200,0.18);
  padding:2px;
  box-sizing:border-box;
}

.app-header .logo img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.intake-hint{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:14px;
}
.login-steps{
  margin:8px 0 10px 16px;
  padding:0;
  color:rgba(186,214,206,0.9);
}
.login-steps li{
  margin:3px 0;
}

.tab--glitch{
  position:relative;
  isolation:isolate;
}

.tab--glitch::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    repeating-linear-gradient(0deg, rgba(90,255,200,0.05) 0px, rgba(90,255,200,0.05) 1px, rgba(0,0,0,0) 2px, rgba(0,0,0,0) 4px),
    repeating-linear-gradient(90deg, rgba(255,160,120,0.04) 0px, rgba(255,160,120,0.04) 1px, rgba(0,0,0,0) 2px, rgba(0,0,0,0) 6px),
    linear-gradient(180deg, rgba(6,10,12,0.85), rgba(2,4,5,0.92));
  mix-blend-mode:screen;
  opacity:0.55;
  z-index:0;
  pointer-events:none;
  animation:glitchScan 6s steps(120) infinite;
}

.tab--glitch .card,
.tab--glitch .h1,
.tab--glitch .sub{
  position:relative;
  z-index:1;
}

@keyframes glitchScan{
  0%{transform:translateY(0)}
  30%{transform:translateY(-2px)}
  60%{transform:translateY(1px)}
  100%{transform:translateY(0)}
}

/* Player portal status/integration cards */
.status-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:10px;
}

.status-cell{
  border:1px solid rgba(160,200,200,0.18);
  background:rgba(8,12,14,0.55);
  border-radius:10px;
  padding:10px;
}

.notice-list{
  display:grid;
  gap:8px;
}

.notice-row{
  display:grid;
  grid-template-columns:minmax(130px,180px) 1fr minmax(150px,220px);
  gap:10px;
  align-items:start;
  border:1px solid rgba(160,200,200,0.16);
  background:rgba(8,12,14,0.5);
  border-radius:10px;
  padding:10px;
}

.notice-body{
  overflow-wrap:anywhere;
}

.appeal-panel{
  border:1px solid rgba(255,190,120,0.32);
  background:linear-gradient(180deg, rgba(30,22,12,0.44), rgba(14,10,8,0.38));
  border-radius:10px;
  padding:12px;
}

.bot-pref-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:8px;
}

.feral-check{
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(160,200,200,0.16);
  border-radius:8px;
  padding:8px 10px;
  background:rgba(8,12,14,0.4);
}

details > summary{
  cursor:pointer;
  list-style:none;
}
details > summary::-webkit-details-marker{
  display:none;
}
details > summary::before{
  content:"▸ ";
  color:rgba(140,220,200,0.95);
}
details[open] > summary::before{
  content:"▾ ";
}

.appeal-story{
  min-height:170px;
  resize:vertical;
}

.mt12{
  margin-top:12px;
}

.msg-ok{
  color:rgba(120,255,190,0.95);
}

.msg-bad{
  color:rgba(255,170,150,0.95);
}

.pill-ok{
  border-color:rgba(120,255,190,0.55);
  color:rgba(120,255,190,0.95);
  background:rgba(120,255,190,0.14);
}

.pill-bad{
  border-color:rgba(255,180,110,0.55);
  color:rgba(255,190,120,0.95);
  background:rgba(255,170,90,0.12);
}

.pill--idle{
  border-color:rgba(160,180,190,0.32);
  color:rgba(200,210,215,0.92);
}

@media (max-width: 920px){
  .notice-row{
    grid-template-columns:1fr;
  }
}

/* Recovery page layout: single-column centered panel */
.app-body--single{
  grid-template-columns:1fr;
}
.app-body--single .main{
  width:min(980px, 100%);
  margin-inline:auto;
}
.app-body--single .main-scroll{
  padding:16px;
}

/* Guest lock: hide sensitive portal surfaces until authenticated */
body.feral-guest .nav button[data-auth-required="1"]{
  display:none;
}
body.feral-guest .nav-mini button[data-auth-required="1"]{
  display:none;
}
body.feral-guest .tab[data-auth-required="1"]{
  display:none !important;
}
body.feral-guest #btnSessionCopy{
  opacity:0.45;
  pointer-events:none;
}
body.feral-auth .nav button[data-tab="briefing"]{
  display:none;
}
body.feral-auth .nav-mini button[data-tab="briefing"]{
  display:none;
}
body.feral-auth .tab[data-tab="briefing"]{
  display:none !important;
}

/* Locked scale profile: Feral zoom-out 15% */
:root{
  --ui-scale: 0.85 !important;
  --inner-ui-scale: 0.85 !important;
}
