:root{
  --barH: 2cm;
  --bg: #0b0f14;
  --txt:#e7eef7;
  --mut:#9fb1c7;
  --acc:#7c3aed;
  --line: rgba(255,255,255,.10);
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --r: 14px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1200px 700px at 30% -10%, rgba(124,58,237,.18), transparent 60%),
              radial-gradient(900px 600px at 80% 10%, rgba(59,130,246,.10), transparent 55%),
              var(--bg);
  color: var(--txt);
  overflow:hidden;
}

.topbar{
  position:fixed; inset:0 0 auto 0;
  height: var(--barH);
  background: rgba(15,22,32,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 0 12px;
  z-index: 60;
}

.menuRow{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  width:100%;
  max-width: 1100px;
}

.dd{
  position:relative;
  height: calc(var(--barH) - 10px);
  display:flex;
  align-items:center;
}

.dd > button{
  height:100%;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(11,15,20,.45);
  color: var(--txt);
  cursor:pointer;
  font-weight: 650;
  letter-spacing: .2px;
  display:flex;
  align-items:center;
  gap:10px;
  user-select:none;
}

.dd > button:hover{border-color: rgba(124,58,237,.55)}

.caret{
  width: 10px; height: 10px;
  border-right: 2px solid rgba(231,238,247,.75);
  border-bottom: 2px solid rgba(231,238,247,.75);
  transform: rotate(45deg);
  margin-top:-2px;
  opacity:.85;
}

.dd[data-open="1"] > button{
  border-color: rgba(124,58,237,.85);
  box-shadow: 0 0 0 5px rgba(124,58,237,.12);
}

/* INNEHÅLLS-VY */
.viewer{
  position:fixed;
  top: var(--barH);
  left:0;
  right:0;
  bottom:0;
  z-index: 10;
  background: rgba(0,0,0,.0);
}

.viewerFrame{
  width:100%;
  height:100%;
  border:0;
  display:block;
  background: #0b0f14;
}

/* DROPDOWN-PANEL */
.panel{
  position:fixed;
  top: var(--barH);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11,15,20,.70);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display:none;
  z-index: 50;
}

.panel[data-show="1"]{display:block}

.panelInner{
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.panelHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

.panelTitle{font-weight: 800; letter-spacing:.3px;}
.hint{color: var(--mut); font-size: 13px; opacity:.95;}

.card{
  flex:1;
  background: rgba(15,22,32,.65);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow:hidden;
  min-height: 0;
  display:flex;
  flex-direction:column;
}

.list{padding: 8px; overflow:auto; min-height:0;}

.item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.item:hover{background: rgba(124,58,237,.08); border-color: rgba(124,58,237,.25)}

.item a{
  color: var(--txt);
  text-decoration:none;
  font-weight: 650;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width: 78%;
}

.badge{
  color: var(--mut);
  font-size: 12px;
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 999px;
  white-space:nowrap;
}

.msg{padding: 16px; color: var(--mut); font-size: 14px; line-height: 1.35;}

.closeRow{display:flex; gap:10px; align-items:center;}

.xbtn{
  border: 1px solid var(--line);
  background: rgba(11,15,20,.55);
  color: var(--txt);
  border-radius: 999px;
  padding: 8px 12px;
  cursor:pointer;
  font-weight: 700;
}

.xbtn:hover{border-color: rgba(255,255,255,.22)}

@media (max-width: 720px){
  .dd > button{padding:0 12px}
  .item a{max-width: 68%}
}

