.fna-header .topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.fna-header .title{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
  line-height:1.15;
}

.fna-header .title h1{
  margin:0;
  font-size:26px;
  letter-spacing:.2px;
  font-weight:720;
}

.fna-header .subtitle{
  margin-top:30px;
  font-size:13px;
  color:var(--muted, rgba(255,255,255,.68));
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.fna-header .pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--border-2, rgba(255,255,255,.07));
  background:rgba(255,255,255,.05);
  color:rgba(255,255,255,.82);
  font-size:12px;
  line-height:1;
  white-space:nowrap;
  text-decoration:none;
}

.fna-header .pill.accent{
  border-color:rgba(77,178,255,.35);
  box-shadow:
    0 0 0 1px rgba(77,178,255,.16) inset,
    0 0 0 6px rgba(77,178,255,.06);
}

.fna-header .pill.warn{
  border-color:rgba(255,176,32,.50);
  box-shadow:
    0 0 0 1px rgba(255,176,32,.16) inset,
    0 0 0 6px rgba(255,176,32,.07);
}

.fna-header .session-column{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
  min-width:240px;
}

.fna-header .session-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}

.fna-header .session-actions .pill,
.fna-header .session-actions .pill-btn,
.fna-header .session-actions .btn,
.fna-header .session-actions a.btn{
  height:30px;
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
  line-height:1;
}

.fna-header .session-actions .btn,
.fna-header .session-actions a.btn,
.fna-header .pill-btn{
  appearance:none;
  border:1px solid var(--border-2, rgba(255,255,255,.07));
  background:rgba(255,255,255,.05);
  color:rgba(255,255,255,.82);
  cursor:pointer;
  text-decoration:none;
  font-weight:500;
}

.fna-header .user-chip,
.fna-header .session-chip{
  width:100%;
  min-width:240px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 11px;
  border-radius:12px;
  border:1px solid var(--border-2, rgba(255,255,255,.07));
  background:rgba(255,255,255,.05);
  color:rgba(255,255,255,.90);
}

.fna-header .user-avatar,
.fna-header .session-avatar{
  width:45px;
  height:45px;
  border-radius:999px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.06);
  flex:0 0 auto;
}

.fna-header .user-stove,
.fna-header .session-stove{
  width:33px;
  height:33px;
  object-fit:contain;
  opacity:.95;
  flex:0 0 auto;
}

.fna-header .user-text{
  display:flex;
  flex-direction:column;
  min-width:0;
  line-height:1.2;
}

.fna-header .user-name{
  font-size:13px;
  font-weight:680;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.fna-header .user-rank{
  margin-top:2px;
  font-size:11px;
  color:var(--muted, rgba(255,255,255,.68));
}

.fna-header .user-chip.access-member,
.fna-header .session-chip.access-member,
.fna-header .pill.access-member{
  border-color:rgba(58,197,122,.45) !important;
  box-shadow:
    0 0 0 1px rgba(58,197,122,.18) inset,
    0 0 0 5px rgba(58,197,122,.07);
}

.fna-header .user-chip.access-officer,
.fna-header .session-chip.access-officer,
.fna-header .pill.access-officer{
  border-color:rgba(223,66,97,.50) !important;
  box-shadow:
    0 0 0 1px rgba(223,66,97,.20) inset,
    0 0 0 5px rgba(223,66,97,.07);
}

.fna-header .user-chip.access-developer,
.fna-header .session-chip.access-developer,
.fna-header .pill.access-developer{
  border-color:rgba(123,224,255,.52) !important;
  box-shadow:
    0 0 0 1px rgba(123,224,255,.20) inset,
    0 0 0 5px rgba(123,224,255,.08),
    0 0 14px rgba(123,224,255,.16);
}

.fna-header .admin-pill,
.fna-header #admin-link{
  border-color:rgba(123,224,255,.48);
  box-shadow:
    0 0 0 1px rgba(123,224,255,.20) inset,
    0 0 0 5px rgba(123,224,255,.08),
    0 0 14px rgba(123,224,255,.18);
}

.fna-header .logout-pill{
  border-color:rgba(255,120,120,.48);
  box-shadow:
    0 0 0 1px rgba(255,120,120,.22) inset,
    0 0 0 5px rgba(255,120,120,.07),
    0 0 12px rgba(255,80,80,.16);
  color:rgba(255,220,220,.95);
}

.fna-header .lang-selector{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px;
}

.fna-header .lang-btn{
  appearance:none;
  border:1px solid var(--border-2, rgba(255,255,255,.07));
  background:rgba(255,255,255,.05);
  color:var(--text, rgba(255,255,255,.92));
  border-radius:999px;
  padding:4px 7px;
  font-size:11px;
  line-height:1;
  cursor:pointer;
}

.fna-header .lang-btn:hover{
  border-color:rgba(77,178,255,.35);
}

.fna-header .lang-btn.active{
  border-color:rgba(77,178,255,.35);
  box-shadow:0 0 0 1px rgba(77,178,255,.16) inset;
  background:rgba(77,178,255,.10);
}

@media (max-width:860px){
  .fna-header .topbar{
    flex-direction:row;
    align-items:flex-start;
    justify-content:space-between;
    gap:8px;
    flex-wrap:nowrap;
  }

  .fna-header .title{
    min-width:0;
    flex:0 1 auto;
    display:flex;
    flex-direction:column;
    gap:6px;
  }

  .fna-header .title h1{
    display:none;
  }

  .fna-header .subtitle{
    margin-top:0;
    justify-content:flex-start;
    flex-wrap:nowrap;
  }

  .fna-header .session-column{
    min-width:0;
    max-width:64%;
    align-items:flex-end;
    gap:6px;
  }

  .fna-header .user-chip,
  .fna-header .session-chip{
    width:auto;
    min-width:0;
    max-width:100%;
    padding:7px 8px;
    gap:6px;
  }

  .fna-header .user-avatar,
  .fna-header .session-avatar{
    width:34px;
    height:34px;
  }

  .fna-header .user-stove,
  .fna-header .session-stove{
    width:22px;
    height:22px;
  }

  .fna-header .user-name{
    font-size:12px;
  }

  .fna-header .user-rank{
    font-size:10px;
  }

  .fna-header .session-actions{
    justify-content:flex-end;
    gap:6px;
  }

  .fna-header .session-actions .pill,
  .fna-header .session-actions .pill-btn,
  .fna-header .session-actions .btn,
  .fna-header .session-actions a.btn{
    height:28px;
    font-size:11px;
    padding:6px 9px;
  }

  .fna-header .header-nav-link{
    background:transparent !important;
    border:0 !important;
    border-bottom:1px solid transparent !important;
    border-radius:0 !important;
    box-shadow:none !important;
    min-height:0 !important;
    padding:4px 2px !important;
  }

  .fna-header .header-nav-link::after{
    display:none !important;
  }
}

@media (max-width:520px){
  .fna-header .topbar{
    display:grid;
    grid-template-columns:86px minmax(0, 1fr);
    align-items:stretch;
    column-gap:8px;
    row-gap:0;
  }

  .fna-header .title{
    width:86px;
    min-width:86px;
    flex:none;
  }

  .fna-header .subtitle{
    margin-top:0;
    font-size:12px;
  }

  .fna-header .session-column{
    width:100%;
    justify-self:stretch;
    align-items:stretch;
    max-width:none;
    min-width:0;
  }

  .fna-header .user-chip,
  .fna-header .session-chip{
    padding:6px 7px;
    width:100%;
    max-width:none;
    min-height:46px;
    box-sizing:border-box;
  }

  .fna-header .user-avatar,
  .fna-header .session-avatar{
    width:30px;
    height:30px;
  }

  .fna-header .user-stove,
  .fna-header .session-stove{
    width:18px;
    height:18px;
  }

  .fna-header .header-nav-link{
    font-size:10.5px !important;
    padding:4px 1px !important;
  }

  .fna-header .session-actions{
    justify-content:flex-end;
  }

  .fna-header #utc-pill.utc-square{
    width:86px;
    min-width:86px;
    height:46px;
    padding:4px 6px;
    border-radius:12px;
    gap:1px;
  }

  .fna-header #utc-pill.utc-square .utc-date{
    font-size:8.5px;
    letter-spacing:.3px;
  }

  .fna-header #utc-pill.utc-square .utc-time{
    font-size:12px;
    line-height:1.05;
  }

  .fna-header #utc-pill.utc-square .utc-zone{
    font-size:8px;
    letter-spacing:.45px;
  }
}
